diff --git a/src/extension.ts b/src/extension.ts index f40de6b..9077c17 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -159,9 +159,6 @@ export class Extension { this.logger.appendLine( `running ${python3Path} ${pyArgs} to refresh data...`, ); - const cwd = vscode.workspace.workspaceFolders ? - vscode.workspace.workspaceFolders[0].uri.fsPath : - undefined; runCmd( python3Path, pyArgs, @@ -171,8 +168,7 @@ export class Extension { this.completer.updateData(errorsCompletions[1]); this.logger.appendLine('Data refreshed.'); }, - cwd ? {cwd} : undefined, - (str) => this.logger.append(str), + (str) => this.logger.append(str), ); } diff --git a/src/utils.ts b/src/utils.ts index f33a37f..9a001c3 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -1,10 +1,9 @@ -import {spawn, SpawnOptions} from 'child_process'; +import {spawn} from 'child_process'; export function runCmd( cmd: string, args: string[], callBack: (stdout: string) => void, - options?: SpawnOptions, logger?: (str: string) => void, ) { const child = spawn(cmd, args);