debt - remove some ts-ignored things

This commit is contained in:
Johannes Rieken
2017-11-07 17:23:19 +01:00
parent d2cc96626b
commit 6dc7e364d7
11 changed files with 15 additions and 43 deletions

View File

@@ -707,11 +707,7 @@ class LinkProviderAdapter {
class ColorProviderAdapter {
constructor(
// @ts-ignore unused property
private _proxy: MainThreadLanguageFeaturesShape,
private _documents: ExtHostDocuments,
// @ts-ignore unused property
private _colorFormatCache: Map<string, number>,
private _provider: vscode.DocumentColorProvider
) { }
@@ -758,7 +754,6 @@ export class ExtHostLanguageFeatures implements ExtHostLanguageFeaturesShape {
private _heapService: ExtHostHeapService;
private _diagnostics: ExtHostDiagnostics;
private _adapter = new Map<number, Adapter>();
private _colorFormatCache = new Map<string, number>();
constructor(
mainContext: IMainContext,
@@ -1041,7 +1036,7 @@ export class ExtHostLanguageFeatures implements ExtHostLanguageFeaturesShape {
registerColorProvider(selector: vscode.DocumentSelector, provider: vscode.DocumentColorProvider): vscode.Disposable {
const handle = this._nextHandle();
this._adapter.set(handle, new ColorProviderAdapter(this._proxy, this._documents, this._colorFormatCache, provider));
this._adapter.set(handle, new ColorProviderAdapter(this._documents, provider));
this._proxy.$registerDocumentColorProvider(handle, selector);
return this._createDisposable(handle);
}