Skip to content

Commit 375df6b

Browse files
author
Kartik Raj
committed
Fix lint errors
1 parent c167f57 commit 375df6b

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/client/common/platform/fileSystemWatcher.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const POLLING_INTERVAL = 5000;
2222
export function watchLocationForPattern(
2323
baseDir: string,
2424
pattern: string,
25-
callback: (type: FileChangeType, absPath: string) => void,
25+
callback: (type: FileChangeType, absPath: string) => void
2626
): Disposable {
2727
// Use VSCode API iff base directory to exists within the current workspace folders
2828
const found = workspace.workspaceFolders?.find((e) => normCasePath(baseDir).startsWith(normCasePath(e.uri.fsPath)));
@@ -36,7 +36,7 @@ export function watchLocationForPattern(
3636
function watchLocationUsingVSCodeAPI(
3737
baseDir: string,
3838
pattern: string,
39-
callback: (type: FileChangeType, absPath: string) => void,
39+
callback: (type: FileChangeType, absPath: string) => void
4040
) {
4141
const globPattern = new RelativePattern(baseDir, pattern);
4242
const disposables: Disposable[] = [];
@@ -48,14 +48,14 @@ function watchLocationUsingVSCodeAPI(
4848
return {
4949
dispose: async () => {
5050
disposables.forEach((d) => d.dispose());
51-
},
51+
}
5252
};
5353
}
5454

5555
function watchLocationUsingChokidar(
5656
baseDir: string,
5757
pattern: string,
58-
callback: (type: FileChangeType, absPath: string) => void,
58+
callback: (type: FileChangeType, absPath: string) => void
5959
) {
6060
const watcherOpts: chokidar.WatchOptions = {
6161
cwd: baseDir,
@@ -74,9 +74,9 @@ function watchLocationUsingChokidar(
7474
'**/.hg/store/**',
7575
'/dev/**',
7676
'/proc/**',
77-
'/sys/**',
77+
'/sys/**'
7878
], // https://github.com/microsoft/vscode/issues/23954
79-
followSymlinks: false,
79+
followSymlinks: false
8080
};
8181
traceVerbose(`Start watching: ${baseDir} with pattern ${pattern} using chokidar`);
8282
let watcher: chokidar.FSWatcher | null = chokidar.watch(pattern, watcherOpts);

src/test/pythonEnvironments/discovery/locators/windowsStoreLocator.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ suite('Windows Store Locator', async () => {
8383

8484
async function setupLocator(onChanged: (e: PythonEnvsChangedEvent) => Promise<void>) {
8585
locator = new WindowsStoreLocator();
86-
locator.initialize();
86+
await locator.initialize();
8787
// Wait for watchers to get ready
8888
await sleep(1000);
8989
locator.onChanged(onChanged);

0 commit comments

Comments
 (0)