Skip to content

Commit

Permalink
Enable 'noUnusedLocals'
Browse files Browse the repository at this point in the history
  • Loading branch information
andyleejordan committed Oct 17, 2022
1 parent 57042b1 commit 701a510
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 13 deletions.
1 change: 0 additions & 1 deletion src/features/CustomViews.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ export class CustomViewsFeature extends LanguageClientConsumer {

class PowerShellContentProvider implements vscode.TextDocumentContentProvider {

private count: number = 1;
private viewIndex: { [id: string]: CustomView } = {};
private didChangeEvent: vscode.EventEmitter<vscode.Uri> = new vscode.EventEmitter<vscode.Uri>();

Expand Down
9 changes: 0 additions & 9 deletions src/features/ExtensionCommands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,6 @@ function asPosition(value: vscode.Position): Position | undefined | null {
return { line: value.line, character: value.character };
}

function asCodeRange(value: Range): vscode.Range | undefined | null {
if (value === undefined) {
return undefined;
} else if (value === null) {
return null;
}
return new vscode.Range(asCodePosition(value.start)!, asCodePosition(value.end)!);
}

function asCodePosition(value: Position): vscode.Position | undefined | null {
if (value === undefined) {
return undefined;
Expand Down
2 changes: 1 addition & 1 deletion src/features/HelpCompletion.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

import { Disposable, EndOfLine, Position, Range, SnippetString,
import { Disposable, EndOfLine, Range, SnippetString,
TextDocument, TextDocumentChangeEvent, window, workspace } from "vscode";
import { RequestType } from "vscode-languageclient";
import { LanguageClient } from "vscode-languageclient/node";
Expand Down
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import { RemoteFilesFeature } from "./features/RemoteFiles";
import { RunCodeFeature } from "./features/RunCode";
import { ShowHelpFeature } from "./features/ShowHelp";
import { SpecifyScriptArgsFeature } from "./features/DebugSession";
import { Logger, LogLevel } from "./logging";
import { Logger } from "./logging";
import { SessionManager } from "./session";
import Settings = require("./settings");
import { PowerShellLanguageId } from "./utils";
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@
"sourceMap": true,
"rootDir": ".",
"strict": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"noImplicitOverride": true,
"noImplicitReturns": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
},
"include": [ "src", "test" ],
Expand Down

0 comments on commit 701a510

Please sign in to comment.