Skip to content

Commit 996453b

Browse files
authored
Fix issue in which duplicate compiler args might be used in compiler query (#9532)
1 parent 0eb68d2 commit 996453b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Extension/src/LanguageServer/client.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2793,6 +2793,7 @@ export class DefaultClient implements Client {
27932793
itemConfig.compilerPath = compilerPathAndArgs.compilerPath;
27942794
if (providerVersion < Version.v6) {
27952795
itemConfig.compilerArgsLegacy = compilerPathAndArgs.allCompilerArgs;
2796+
itemConfig.compilerArgs = undefined;
27962797
} else {
27972798
itemConfig.compilerArgs = compilerPathAndArgs.allCompilerArgs;
27982799
}
@@ -2884,6 +2885,7 @@ export class DefaultClient implements Client {
28842885
sanitized.compilerPath = compilerPathAndArgs.compilerPath;
28852886
if (providerVersion < Version.v6) {
28862887
sanitized.compilerArgsLegacy = compilerPathAndArgs.allCompilerArgs;
2888+
sanitized.compilerArgs = undefined;
28872889
} else {
28882890
sanitized.compilerArgs = compilerPathAndArgs.allCompilerArgs;
28892891
}

0 commit comments

Comments
 (0)