Skip to content

Commit c9d6f13

Browse files
authored
Make tslint happy. (#157)
1 parent ed676ce commit c9d6f13

File tree

3 files changed

+19
-30
lines changed

3 files changed

+19
-30
lines changed

package-lock.json

Lines changed: 7 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/fileWather.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,19 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT license.
33

4-
import { Disposable, workspace, commands, FileSystemWatcher } from "vscode";
4+
import { commands, Disposable, FileSystemWatcher, workspace } from "vscode";
55
import { Commands } from "./commands";
66

77
export class SyncHandler {
88

9-
private static javaFileContentWatcher: Disposable = null;
10-
11-
private static javaFileSystemWatcher: FileSystemWatcher = null;
12-
139
public static updateFileWatcher(autoRefresh: boolean): void {
1410
if (autoRefresh) {
1511
SyncHandler.javaFileContentWatcher = workspace.onDidChangeTextDocument((event) => {
16-
if (event.document.languageId === 'java') {
12+
if (event.document.languageId === "java") {
1713
SyncHandler.refresh();
1814
}
1915
});
20-
SyncHandler.javaFileSystemWatcher = workspace.createFileSystemWatcher('**/*.{java}');
16+
SyncHandler.javaFileSystemWatcher = workspace.createFileSystemWatcher("**/*.{java}");
2117
SyncHandler.javaFileSystemWatcher.onDidChange(SyncHandler.refresh);
2218
SyncHandler.javaFileSystemWatcher.onDidCreate(SyncHandler.refresh);
2319
SyncHandler.javaFileSystemWatcher.onDidDelete(SyncHandler.refresh);
@@ -31,7 +27,11 @@ export class SyncHandler {
3127
}
3228
}
3329

30+
private static javaFileContentWatcher: Disposable = null;
31+
32+
private static javaFileSystemWatcher: FileSystemWatcher = null;
33+
3434
private static refresh(): void {
3535
commands.executeCommand(Commands.VIEW_PACKAGE_REFRESH);
3636
}
37-
}
37+
}

src/settings.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT license.
33

4-
import { commands, ConfigurationChangeEvent, ExtensionContext, workspace, WorkspaceConfiguration, window, DocumentHighlight, Disposable } from "vscode";
4+
import {
5+
commands, ConfigurationChangeEvent, Disposable, DocumentHighlight, ExtensionContext,
6+
window, workspace, WorkspaceConfiguration,
7+
} from "vscode";
58
import { instrumentOperation } from "vscode-extension-telemetry-wrapper";
69
import { Commands } from "./commands";
710
import { SyncHandler } from "./fileWather";

0 commit comments

Comments
 (0)