mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-05 17:23:51 -05:00
Merge from vscode e3c4990c67c40213af168300d1cfeb71d680f877 (#16569)
This commit is contained in:
@@ -26,7 +26,7 @@ export function getRemoteName(authority: string | undefined): string | undefined
|
||||
return authority.substr(0, pos);
|
||||
}
|
||||
|
||||
function isVirtualResource(resource: URI) {
|
||||
export function isVirtualResource(resource: URI) {
|
||||
return resource.scheme !== Schemas.file && resource.scheme !== Schemas.vscodeRemote;
|
||||
}
|
||||
|
||||
@@ -42,3 +42,7 @@ export function getVirtualWorkspaceLocation(workspace: IWorkspace): { scheme: st
|
||||
export function getVirtualWorkspaceScheme(workspace: IWorkspace): string | undefined {
|
||||
return getVirtualWorkspaceLocation(workspace)?.scheme;
|
||||
}
|
||||
|
||||
export function isVirtualWorkspace(workspace: IWorkspace): boolean {
|
||||
return getVirtualWorkspaceLocation(workspace) !== undefined;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user