Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 701a510

Browse files
Enable 'noUnusedLocals'
1 parent 57042b1 commit 701a510

File tree

5 files changed

+4
-13
lines changed

5 files changed

+4
-13
lines changed

‎src/features/CustomViews.ts‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ export class CustomViewsFeature extends LanguageClientConsumer {
7272

7373
class PowerShellContentProvider implements vscode.TextDocumentContentProvider {
7474

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

‎src/features/ExtensionCommands.ts‎

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -66,15 +66,6 @@ function asPosition(value: vscode.Position): Position | undefined | null {
6666
return { line: value.line, character: value.character };
6767
}
6868

69-
function asCodeRange(value: Range): vscode.Range | undefined | null {
70-
if (value === undefined) {
71-
return undefined;
72-
} else if (value === null) {
73-
return null;
74-
}
75-
return new vscode.Range(asCodePosition(value.start)!, asCodePosition(value.end)!);
76-
}
77-
7869
function asCodePosition(value: Position): vscode.Position | undefined | null {
7970
if (value === undefined) {
8071
return undefined;

‎src/features/HelpCompletion.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT License.
33

4-
import { Disposable, EndOfLine, Position,Range, SnippetString,
4+
import { Disposable, EndOfLine, Range, SnippetString,
55
TextDocument, TextDocumentChangeEvent, window, workspace } from "vscode";
66
import { RequestType } from "vscode-languageclient";
77
import { LanguageClient } from "vscode-languageclient/node";

‎src/main.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import { RemoteFilesFeature } from "./features/RemoteFiles";
2525
import { RunCodeFeature } from "./features/RunCode";
2626
import { ShowHelpFeature } from "./features/ShowHelp";
2727
import { SpecifyScriptArgsFeature } from "./features/DebugSession";
28-
import { Logger,LogLevel } from "./logging";
28+
import { Logger } from "./logging";
2929
import { SessionManager } from "./session";
3030
import Settings = require("./settings");
3131
import { PowerShellLanguageId } from "./utils";

‎tsconfig.json‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@
1212
"sourceMap": true,
1313
"rootDir": ".",
1414
"strict": true,
15-
"noImplicitReturns": true,
1615
"noFallthroughCasesInSwitch": true,
1716
"noImplicitOverride": true,
17+
"noImplicitReturns": true,
18+
"noUnusedLocals": true,
1819
"noUnusedParameters": true,
1920
},
2021
"include": [ "src", "test" ],

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /