diff --git a/src/CfgEditor/CfgEditorPanel.ts b/src/CfgEditor/CfgEditorPanel.ts index 1de1c5cc..3fb0e127 100644 --- a/src/CfgEditor/CfgEditorPanel.ts +++ b/src/CfgEditor/CfgEditorPanel.ts @@ -174,7 +174,7 @@ export class CfgEditorPanel implements vscode.CustomTextEditorProvider { } }); - webviewPanel.onDidChangeViewState(e => { + webviewPanel.onDidChangeViewState(() => { if (webviewPanel.visible) { vscode.commands.executeCommand('one.explorer.revealInOneExplorer', document.fileName); } diff --git a/src/Execute/DeviceViewProvider.ts b/src/Execute/DeviceViewProvider.ts index 416a1b62..225ffed0 100644 --- a/src/Execute/DeviceViewProvider.ts +++ b/src/Execute/DeviceViewProvider.ts @@ -21,7 +21,6 @@ import {globalBackendMap} from '../Backend/API'; import {Command} from '../Backend/Command'; import {Executor} from '../Backend/Executor'; import {DeviceSpec, supportedSpecs} from '../Backend/Spec'; -import {Balloon} from '../Utils/Balloon'; import {Logger} from '../Utils/Logger'; import {Device} from './Device'; @@ -150,7 +149,7 @@ export class DeviceViewProvider implements vscode.TreeDataProvider { - return new Promise((resolve, reject) => { + return new Promise((resolve) => { let result: string = ''; let error: string = ''; let cmdSpawn = cp.spawn(cmd.str(), {shell: false}); diff --git a/src/Job/ToolRunner.ts b/src/Job/ToolRunner.ts index 37bad028..eb65d9e3 100644 --- a/src/Job/ToolRunner.ts +++ b/src/Job/ToolRunner.ts @@ -20,7 +20,6 @@ import {Logger} from '../Utils/Logger'; import {pipedSpawn} from '../Utils/PipedSpawn'; import {ToolArgs} from './ToolArgs'; -const path = require('path'); const which = require('which'); const K_DATA: string = 'data'; diff --git a/src/Jsontracer/JsonTracerViewerPanel.ts b/src/Jsontracer/JsonTracerViewerPanel.ts index c1c7844d..6fadee18 100644 --- a/src/Jsontracer/JsonTracerViewerPanel.ts +++ b/src/Jsontracer/JsonTracerViewerPanel.ts @@ -114,7 +114,7 @@ export class JsonTracerViewerPanel implements vscode.CustomTextEditorProvider { } }); - webviewPanel.onDidChangeViewState(e => { + webviewPanel.onDidChangeViewState(() => { vscode.commands.executeCommand( 'setContext', JsonTracerViewerPanel.viewType, webviewPanel.visible); }, null, this._disposables); diff --git a/src/View/InstallQuickInput.ts b/src/View/InstallQuickInput.ts index 582ea672..b80647e9 100644 --- a/src/View/InstallQuickInput.ts +++ b/src/View/InstallQuickInput.ts @@ -25,7 +25,7 @@ import {InputStep, MultiStepInput} from '../Utils/MultiStepInput'; async function shouldResume() { // Could show a notification with the option to resume. return new Promise( - (resolve, reject) => { + () => { // noop }); } @@ -268,7 +268,7 @@ class InstallQuickInput { } /* istanbul ignore next */ - public async updateBackend(input: MultiStepInput, state: Partial) { + public async updateBackend(input: MultiStepInput, _state: Partial) { if (this.toolchainEnv === undefined || this.toolchainType === undefined) { this.error = 'toolchainenv is undefined.'; throw Error('toolchainenv is undefined.');