Skip to content

Commit 982c4fb

Browse files
authored
Add path back to cl.exe compiler selection. (#10471)
1 parent 9b7f7de commit 982c4fb

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Extension/src/LanguageServer/client.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -908,11 +908,9 @@ export class DefaultClient implements Client {
908908
for (let i: number = 0; i < paths.length; i++) {
909909
let option: string | undefined;
910910
let isCompiler: boolean = false;
911-
let isCl: boolean = false;
912911
const slash: string = (os.platform() === 'win32') ? "\\" : "/";
913912

914913
if (paths[i].includes(slash)) {
915-
isCl = util.isCl(paths[i]);
916914
if (paths[i].split(slash).pop() !== undefined) {
917915
option = paths[i].split(slash).pop();
918916
isCompiler = true;
@@ -921,7 +919,7 @@ export class DefaultClient implements Client {
921919

922920
if (option !== undefined && isCompiler) {
923921
const path: string | undefined = paths[i].replace(option, "");
924-
const description: string = isCl ? "" : localize("found.string", "Found at {0}", path);
922+
const description: string = localize("found.string", "Found at {0}", path);
925923
items.push({ label: option, description: description, index: i });
926924
} else {
927925
items.push({ label: paths[i], index: i });

0 commit comments

Comments
 (0)