mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Merge from vscode c58aaab8a1cc22a7139b761166a0d4f37d41e998 (#7880)
* Merge from vscode c58aaab8a1cc22a7139b761166a0d4f37d41e998 * fix pipelines * fix strict-null-checks * add missing files
This commit is contained in:
@@ -288,14 +288,6 @@ class BrowserMain extends Disposable {
|
||||
let workspace: IWorkspace | undefined = undefined;
|
||||
if (this.configuration.workspaceProvider) {
|
||||
workspace = this.configuration.workspaceProvider.workspace;
|
||||
} else {
|
||||
// TODO@ben remove me once IWorkspaceProvider API is adopted
|
||||
const legacyConfiguration = this.configuration as { workspaceUri?: URI, folderUri?: URI };
|
||||
if (legacyConfiguration.workspaceUri) {
|
||||
workspace = { workspaceUri: legacyConfiguration.workspaceUri };
|
||||
} else if (legacyConfiguration.folderUri) {
|
||||
workspace = { folderUri: legacyConfiguration.folderUri };
|
||||
}
|
||||
}
|
||||
|
||||
// Multi-root workspace
|
||||
@@ -311,7 +303,7 @@ class BrowserMain extends Disposable {
|
||||
return { id: 'empty-window' };
|
||||
}
|
||||
|
||||
private getRemoteUserDataUri(): URI | null {
|
||||
private getRemoteUserDataUri(): URI | undefined {
|
||||
const element = document.getElementById('vscode-remote-user-data-uri');
|
||||
if (element) {
|
||||
const remoteUserDataPath = element.getAttribute('data-settings');
|
||||
@@ -320,7 +312,7 @@ class BrowserMain extends Disposable {
|
||||
}
|
||||
}
|
||||
|
||||
return null;
|
||||
return undefined;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user