Skip to content

Commit bf1b2fc

Browse files
author
Akos Kitta
committed
Ensure URIs are encoded before compare.
Signed-off-by: Akos Kitta <[email protected]>
1 parent 04cba66 commit bf1b2fc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

arduino-ide-extension/src/browser/contributions/compiler-errors.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,10 @@ export class CompilerErrors
264264
registry.registerCommand(CompilerErrors.Commands.MARK_AS_CURRENT, {
265265
execute: (arg: unknown) => {
266266
if (ErrorDecorationRef.is(arg)) {
267-
this.markAsCurrentError(arg, true);
267+
this.markAsCurrentError(
268+
{ id: arg.id, uri: new URI(arg.uri).toString() }, // Make sure the URI fragments are encoded. On Windows, `C:` is encoded as `C%3A`.
269+
true
270+
);
268271
}
269272
},
270273
isEnabled: () => !!this.errors.length,

0 commit comments

Comments
 (0)