Skip to content

Commit 26ee556

Browse files
authored
Copy vscode.dev link to tunnel generates an invalid link when an untitled workspace is open (microsoft#183739)
1 parent c2a9a86 commit 26ee556

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/vs/workbench/contrib/remoteTunnel/electron-sandbox/remoteTunnel.contribution.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ import { IPreferencesService } from 'vs/workbench/services/preferences/common/pr
3131
import { IOpenerService } from 'vs/platform/opener/common/opener';
3232
import { Action } from 'vs/base/common/actions';
3333
import { IClipboardService } from 'vs/platform/clipboard/common/clipboardService';
34-
import { IWorkspaceContextService } from 'vs/platform/workspace/common/workspace';
34+
import { IWorkspaceContextService, isUntitledWorkspace } from 'vs/platform/workspace/common/workspace';
3535
import { Schemas } from 'vs/base/common/network';
3636
import { URI } from 'vs/base/common/uri';
3737
import { joinPath } from 'vs/base/common/resources';
@@ -687,7 +687,7 @@ export class RemoteTunnelWorkbenchContribution extends Disposable implements IWo
687687
let resource;
688688
if (folders.length === 1) {
689689
resource = folders[0].uri;
690-
} else if (workspace.configuration) {
690+
} else if (workspace.configuration && !isUntitledWorkspace(workspace.configuration, this.environmentService)) {
691691
resource = workspace.configuration;
692692
}
693693
const link = URI.parse(connectionInfo.link);

0 commit comments

Comments
 (0)