Skip to content

Commit 2080e28

Browse files
Colengmssean-mcmanus
authored andcommitted
Fix issue in which duplicate compiler args might be used in compiler query (#9532)
1 parent 79e8468 commit 2080e28

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
@@ -3215,6 +3215,7 @@ export class DefaultClient implements Client {
32153215
itemConfig.compilerPath = compilerPathAndArgs.compilerPath;
32163216
if (providerVersion < Version.v6) {
32173217
itemConfig.compilerArgsLegacy = compilerPathAndArgs.allCompilerArgs;
3218+
itemConfig.compilerArgs = undefined;
32183219
} else {
32193220
itemConfig.compilerArgs = compilerPathAndArgs.allCompilerArgs;
32203221
}
@@ -3306,6 +3307,7 @@ export class DefaultClient implements Client {
33063307
sanitized.compilerPath = compilerPathAndArgs.compilerPath;
33073308
if (providerVersion < Version.v6) {
33083309
sanitized.compilerArgsLegacy = compilerPathAndArgs.allCompilerArgs;
3310+
sanitized.compilerArgs = undefined;
33093311
} else {
33103312
sanitized.compilerArgs = compilerPathAndArgs.allCompilerArgs;
33113313
}

0 commit comments

Comments
 (0)