Also check file scheme

This commit is contained in:
Daniel Imms 2024-03-29 06:14:08 -07:00
parent 4df13e9771
commit c204429da3
No known key found for this signature in database
GPG key ID: E5CF412B63651C69

View file

@ -26,7 +26,7 @@ export class TerminalLinkResolver implements ITerminalLinkResolver {
async resolveLink(processManager: Pick<ITerminalProcessManager, 'initialCwd' | 'os' | 'remoteAuthority' | 'userHome'> & { backend?: Pick<ITerminalBackend, 'getWslPath'> }, link: string, uri?: URI): Promise<ResolvedLink> {
// Correct scheme and authority for remote terminals
if (uri && processManager.remoteAuthority) {
if (uri && uri.scheme === Schemas.file && processManager.remoteAuthority) {
uri = uri.with({
scheme: Schemas.vscodeRemote,
authority: processManager.remoteAuthority