diff --git a/src/vs/workbench/api/common/extHostLanguageFeatures.ts b/src/vs/workbench/api/common/extHostLanguageFeatures.ts index 2218fbd300b..e962967ee8b 100644 --- a/src/vs/workbench/api/common/extHostLanguageFeatures.ts +++ b/src/vs/workbench/api/common/extHostLanguageFeatures.ts @@ -810,10 +810,10 @@ class SignatureHelpAdapter { class Cache { - private _data = new Map(); + private _data = new Map(); private _idPool = 1; - add(item: T[]): number { + add(item: readonly T[]): number { const id = this._idPool++; this._data.set(id, item); return id; @@ -898,7 +898,7 @@ class ColorProviderAdapter { provideColors(resource: URI, token: CancellationToken): Promise { const doc = this._documents.getDocument(resource); return asPromise(() => this._provider.provideDocumentColors(doc, token)).then(colors => { - if (!Array.isArray(colors)) { + if (!Array.isArray(colors)) { return []; }