mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Vscode merge (#4582)
* Merge from vscode 37cb23d3dd4f9433d56d4ba5ea3203580719a0bd * fix issues with merges * bump node version in azpipe * replace license headers * remove duplicate launch task * fix build errors * fix build errors * fix tslint issues * working through package and linux build issues * more work * wip * fix packaged builds * working through linux build errors * wip * wip * wip * fix mac and linux file limits * iterate linux pipeline * disable editor typing * revert series to parallel * remove optimize vscode from linux * fix linting issues * revert testing change * add work round for new node * readd packaging for extensions * fix issue with angular not resolving decorator dependencies
This commit is contained in:
@@ -7,7 +7,7 @@ import { IMode, LanguageIdentifier } from 'vs/editor/common/modes';
|
||||
|
||||
export class FrankensteinMode implements IMode {
|
||||
|
||||
private _languageIdentifier: LanguageIdentifier;
|
||||
private readonly _languageIdentifier: LanguageIdentifier;
|
||||
|
||||
constructor(languageIdentifier: LanguageIdentifier) {
|
||||
this._languageIdentifier = languageIdentifier;
|
||||
|
||||
@@ -170,7 +170,7 @@ export interface IDocComment {
|
||||
/**
|
||||
* The string that appears on the last line and closes the doc comment (e.g. ' * /').
|
||||
*/
|
||||
close: string;
|
||||
close?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -175,7 +175,7 @@ export class LanguageConfigurationChangeEvent {
|
||||
|
||||
export class LanguageConfigurationRegistryImpl {
|
||||
|
||||
private _entries: RichEditSupport[];
|
||||
private readonly _entries: RichEditSupport[];
|
||||
|
||||
private readonly _onDidChange = new Emitter<LanguageConfigurationChangeEvent>();
|
||||
public readonly onDidChange: Event<LanguageConfigurationChangeEvent> = this._onDidChange.event;
|
||||
|
||||
@@ -29,7 +29,7 @@ function isExclusive(selector: LanguageSelector): boolean {
|
||||
export class LanguageFeatureRegistry<T> {
|
||||
|
||||
private _clock: number = 0;
|
||||
private _entries: Entry<T>[] = [];
|
||||
private readonly _entries: Entry<T>[] = [];
|
||||
private readonly _onDidChange = new Emitter<number>();
|
||||
|
||||
constructor() {
|
||||
|
||||
@@ -19,7 +19,7 @@ export interface LanguageFilter {
|
||||
|
||||
export type LanguageSelector = string | LanguageFilter | Array<string | LanguageFilter>;
|
||||
|
||||
export function score(selector: LanguageSelector, candidateUri: URI, candidateLanguage: string, candidateIsSynchronized: boolean): number {
|
||||
export function score(selector: LanguageSelector | undefined, candidateUri: URI, candidateLanguage: string, candidateIsSynchronized: boolean): number {
|
||||
|
||||
if (Array.isArray(selector)) {
|
||||
// array -> take max individual value
|
||||
|
||||
@@ -35,8 +35,8 @@ export type Edge = [State, number, State];
|
||||
|
||||
export class StateMachine {
|
||||
|
||||
private _states: Uint8Matrix;
|
||||
private _maxCharCode: number;
|
||||
private readonly _states: Uint8Matrix;
|
||||
private readonly _maxCharCode: number;
|
||||
|
||||
constructor(edges: Edge[]) {
|
||||
let maxCharCode = 0;
|
||||
|
||||
@@ -17,7 +17,7 @@ export const Extensions = {
|
||||
|
||||
export class EditorModesRegistry {
|
||||
|
||||
private _languages: ILanguageExtensionPoint[];
|
||||
private readonly _languages: ILanguageExtensionPoint[];
|
||||
private _dynamicLanguages: ILanguageExtensionPoint[];
|
||||
|
||||
private readonly _onDidChangeLanguages = new Emitter<void>();
|
||||
|
||||
@@ -33,7 +33,7 @@ export class BracketElectricCharacterSupport {
|
||||
this._complexAutoClosePairs = autoClosePairs.filter(pair => pair.open.length > 1 && !!pair.close).map(el => new StandardAutoClosingPairConditional(el));
|
||||
if (contribution.docComment) {
|
||||
// IDocComment is legacy, only partially supported
|
||||
this._complexAutoClosePairs.push(new StandardAutoClosingPairConditional({ open: contribution.docComment.open, close: contribution.docComment.close }));
|
||||
this._complexAutoClosePairs.push(new StandardAutoClosingPairConditional({ open: contribution.docComment.open, close: contribution.docComment.close || '' }));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -64,7 +64,7 @@ export class BasicInplaceReplace {
|
||||
return null;
|
||||
}
|
||||
|
||||
private _defaultValueSet: string[][] = [
|
||||
private readonly _defaultValueSet: string[][] = [
|
||||
['true', 'false'],
|
||||
['True', 'False'],
|
||||
['Private', 'Public', 'Friend', 'ReadOnly', 'Partial', 'Protected', 'WriteOnly'],
|
||||
|
||||
@@ -151,8 +151,8 @@ const colorRegExp = /^#?([0-9A-Fa-f]{6})([0-9A-Fa-f]{2})?$/;
|
||||
export class ColorMap {
|
||||
|
||||
private _lastColorId: number;
|
||||
private _id2color: Color[];
|
||||
private _color2id: Map<string, ColorId>;
|
||||
private readonly _id2color: Color[];
|
||||
private readonly _color2id: Map<string, ColorId>;
|
||||
|
||||
constructor() {
|
||||
this._lastColorId = 0;
|
||||
@@ -240,7 +240,7 @@ export class TokenTheme {
|
||||
}
|
||||
}
|
||||
|
||||
const STANDARD_TOKEN_TYPE_REGEXP = /\b(comment|string|regex)\b/;
|
||||
const STANDARD_TOKEN_TYPE_REGEXP = /\b(comment|string|regex|regexp)\b/;
|
||||
export function toStandardTokenType(tokenType: string): StandardTokenType {
|
||||
let m = tokenType.match(STANDARD_TOKEN_TYPE_REGEXP);
|
||||
if (!m) {
|
||||
@@ -253,6 +253,8 @@ export function toStandardTokenType(tokenType: string): StandardTokenType {
|
||||
return StandardTokenType.String;
|
||||
case 'regex':
|
||||
return StandardTokenType.RegEx;
|
||||
case 'regexp':
|
||||
return StandardTokenType.RegEx;
|
||||
}
|
||||
throw new Error('Unexpected match for standard token type!');
|
||||
}
|
||||
|
||||
@@ -10,8 +10,8 @@ import { ColorId, ITokenizationRegistry, ITokenizationSupport, ITokenizationSupp
|
||||
|
||||
export class TokenizationRegistryImpl implements ITokenizationRegistry {
|
||||
|
||||
private _map: { [language: string]: ITokenizationSupport };
|
||||
private _promises: { [language: string]: Thenable<void> };
|
||||
private readonly _map: { [language: string]: ITokenizationSupport };
|
||||
private readonly _promises: { [language: string]: Thenable<void> };
|
||||
|
||||
private readonly _onDidChange = new Emitter<ITokenizationSupportChangedEvent>();
|
||||
public readonly onDidChange: Event<ITokenizationSupportChangedEvent> = this._onDidChange.event;
|
||||
|
||||
Reference in New Issue
Block a user