Skip to content

Commit 4e2ffa2

Browse files
committed
Add a message explaining why we couldn't find a quote-wrapped path
1 parent 1b2285c commit 4e2ffa2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Extension/src/LanguageServer/configurations.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2132,6 +2132,9 @@ export class CppProperties {
21322132
badPath = `"${expandedPaths[0]}"`;
21332133
}
21342134
message = localize('cannot.find', "Cannot find: {0}", badPath);
2135+
if (incorrectExpandedPaths.length === 1 && incorrectExpandedPaths[0].match(/".*"/) !== null) {
2136+
message += '.\n' + localize('wrapped.with.quotes', 'Do not add extra quotes around paths.');
2137+
}
21352138
newSquiggleMetrics.PathNonExistent++;
21362139
} else {
21372140
// Check for file versus path mismatches.

0 commit comments

Comments
 (0)