Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f46d292

Browse files
authored
Pass execution arguments to linter when run as a stand alone executable (microsoft#406)
* pass execution arguments
1 parent 4267ad3 commit f46d292

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/client/linters/baseLinter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ export abstract class BaseLinter {
126126
} else {
127127
const env = await this.serviceContainer.get<IEnvironmentVariablesProvider>(IEnvironmentVariablesProvider).getEnvironmentVariables(true, document.uri);
128128
const executionService = this.serviceContainer.get<IProcessService>(IProcessService);
129-
executionPromise = executionService.exec(executionInfo.execPath!, args, { cwd, env, token: cancellation, mergeStdOutErr: true });
129+
executionPromise = executionService.exec(executionInfo.execPath!, executionInfo.args, { cwd, env, token: cancellation, mergeStdOutErr: true });
130130
}
131131
try {
132132
const result = await executionPromise;

0 commit comments

Comments
 (0)