Skip to content

Conversation

@aeschli
Copy link
Contributor

@aeschli aeschli commented Jan 19, 2026

Copilot AI review requested due to automatic review settings January 19, 2026 10:47
@aeschli aeschli enabled auto-merge (squash) January 19, 2026 10:47
@aeschli aeschli self-assigned this Jan 19, 2026
@vs-code-engineering vs-code-engineering bot added this to the January 2026 milestone Jan 19, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request fixes an issue where the remote CLI incorrectly attempted to open file:// URIs using the openExternal command, which would fail since these URIs refer to the remote machine's file system and have no meaning on the local machine.

Changes:

  • Modified the openExternal method to skip file:// URIs instead of attempting to open them
  • Simplified the logic by always passing the string representation of URIs to the command handler

const urioOpen = uri.scheme === 'file' ? uri : uriString; // workaround for #112577
await this._commands.executeCommand('_remoteCLI.openExternal', urioOpen);
if (uri.scheme === 'file') {
// skip file:// uris, they refer to the file system of the remote that have no meaning on the local machine
Copy link

Copilot AI Jan 19, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The comment has a grammatical error. It should read "they refer to the file system of the remote and have no meaning on the local machine" instead of "they refer to the file system of the remote that have no meaning on the local machine".

Suggested change
// skip file:// uris, they refer to the file system of the remote that have no meaning on the local machine
// skip file:// uris, they refer to the file system of the remote and have no meaning on the local machine

Copilot uses AI. Check for mistakes.
@aeschli aeschli merged commit 08132f0 into main Jan 19, 2026
27 of 28 checks passed
@aeschli aeschli deleted the aeschli/significant-elk branch January 19, 2026 11:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants