Enabled the noUnusedLocals and added @tsignore

This commit is contained in:
Erich Gamma
2017-11-07 13:13:17 +01:00
parent c1bfc05014
commit c536efdfbc
202 changed files with 380 additions and 26 deletions

View File

@@ -142,6 +142,7 @@ export function createApiFactory(
// namespace: commands
const commands: typeof vscode.commands = {
// @ts-ignore unused generic parameter
registerCommand<T>(id: string, command: <T>(...args: any[]) => T | Thenable<T>, thisArgs?: any): vscode.Disposable {
return extHostCommands.registerCommand(id, command, thisArgs);
},

View File

@@ -707,8 +707,10 @@ 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
) { }

View File

@@ -10,6 +10,7 @@ import { MainContext, MainThreadMessageServiceShape, MainThreadMessageOptions, I
import { IExtensionDescription } from 'vs/platform/extensions/common/extensions';
// @ts-ignore unused generic parameter
function isMessageItem<T>(item: any): item is vscode.MessageItem {
return item && item.title;
}

View File

@@ -19,6 +19,8 @@ import * as types from 'vs/workbench/api/node/extHostTypes';
import { ExtHostWorkspace } from 'vs/workbench/api/node/extHostWorkspace';
import * as vscode from 'vscode';
// @ts-ignore unused type
interface StringMap<V> {
[key: string]: V;
}

View File

@@ -1131,6 +1131,7 @@ export enum TaskPanelKind {
export class TaskGroup implements vscode.TaskGroup {
private _id: string;
// @ts-ignore unused property
private _label: string;
public static Clean: TaskGroup = new TaskGroup('clean', 'Clean');