mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-17 01:25:36 -05:00
* add more workspace apis * update dialog and check workspace scheme * cleanup * add comment * update create project from db dialog * cleanup * update names * add test
32 lines
1.2 KiB
TypeScript
32 lines
1.2 KiB
TypeScript
/*---------------------------------------------------------------------------------------------
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the Source EULA. See License.txt in the project root for license information.
|
|
*--------------------------------------------------------------------------------------------*/
|
|
|
|
import { IMainContext } from 'vs/workbench/api/common/extHost.protocol';
|
|
|
|
import { ExtHostWorkspaceShape, MainThreadWorkspaceShape, SqlMainContext } from 'sql/workbench/api/common/sqlExtHost.protocol';
|
|
import { URI } from 'vs/base/common/uri';
|
|
|
|
|
|
export class ExtHostWorkspace implements ExtHostWorkspaceShape {
|
|
|
|
private readonly _proxy: MainThreadWorkspaceShape;
|
|
|
|
constructor(_mainContext: IMainContext) {
|
|
this._proxy = _mainContext.getProxy(SqlMainContext.MainThreadWorkspace);
|
|
}
|
|
|
|
$createAndEnterWorkspace(folder: URI, workspaceFile: URI): Promise<void> {
|
|
return this._proxy.$createAndEnterWorkspace(folder, workspaceFile);
|
|
}
|
|
|
|
$enterWorkspace(workspaceFile: URI): Promise<void> {
|
|
return this._proxy.$enterWorkspace(workspaceFile);
|
|
}
|
|
|
|
$saveAndEnterWorkspace(workspaceFile: URI): Promise<void> {
|
|
return this._proxy.$saveAndEnterWorkspace(workspaceFile);
|
|
}
|
|
}
|