Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit bf1b2fc

Browse files
author
Akos Kitta
committed
Ensure URIs are encoded before compare.
Signed-off-by: Akos Kitta <a.kitta@arduino.cc>
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‎

Lines changed: 4 additions & 1 deletion
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)

AltStyle によって変換されたページ (->オリジナル) /