mirror of
https://github.com/Microsoft/vscode
synced 2024-08-28 05:19:39 +00:00
Merge pull request #209103 from microsoft/tyriar/208572
Adjust scheme and authority of URIs in remote terminals
This commit is contained in:
commit
1a2b9b528c
|
@ -25,6 +25,14 @@ 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 && uri.scheme === Schemas.file && processManager.remoteAuthority) {
|
||||
uri = uri.with({
|
||||
scheme: Schemas.vscodeRemote,
|
||||
authority: processManager.remoteAuthority
|
||||
});
|
||||
}
|
||||
|
||||
// Get the link cache
|
||||
let cache = this._resolvedLinkCaches.get(processManager.remoteAuthority ?? '');
|
||||
if (!cache) {
|
||||
|
|
Loading…
Reference in a new issue