Skip to content

Commit 384cd35

Browse files
authored
Fix configuration squiggles not appearing for multiple occurrences of the same error. (#3766)
1 parent 2d4df91 commit 384cd35

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Extension/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
* Fix problem matcher to show fatal errors from GCC [#3712](https://github.com/microsoft/vscode-cpptools/issues/3712)
3030
* Fix multi-root folders with the same name sharing the same browse database. [PR #3715](https://github.com/microsoft/vscode-cpptools/pull/3715)
3131
* Fix `remoteProcessPicker` on Windows. [#3758](https://github.com/microsoft/vscode-cpptools/issues/3758)
32+
* Fix configuration squiggles not appearing for multiple occurrences of the same error. [#3765](https://github.com/microsoft/vscode-cpptools/issues/3765)
3233
* Improvements to CPU and memory usage when editing.
3334
* Fix pause not working when using `DebugServer`/`MIDebuggerServerAddress` on Linux and macOS. [MIEngine#844](https://github.com/microsoft/MIEngine/issues/844)
3435
* Fix multiple anonymous unions not showing correctly in Locals while debugging. [MIEngine#820](https://github.com/microsoft/MIEngine/issues/820)

Extension/src/LanguageServer/configurations.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1186,7 +1186,7 @@ export class CppProperties {
11861186

11871187
// Create a pattern to search for the path with either a quote or semicolon immediately before and after,
11881188
// and extend that pattern to the next quote before and next quote after it.
1189-
let pattern: RegExp = new RegExp(`"[^"]*?(?<="|;)${escapedPath}(?="|;).*?"`);
1189+
let pattern: RegExp = new RegExp(`"[^"]*?(?<="|;)${escapedPath}(?="|;).*?"`, "g");
11901190
let matches: string[] = curText.match(pattern);
11911191
if (matches) {
11921192
let curOffset: number = 0;

0 commit comments

Comments
 (0)