mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-18 17:22:45 -05:00
* moved items around to handle new untitledQueryEditorInput location * added editor inputs to constants. * added interface for untitledQueryEditorInput * added IUntitledQueryEditorInput * Revert "added IUntitledQueryEditorInput" This reverts commit 67955eb289458e7ac4e7e5ce0ee077f38ed82a2c. * Revert "added interface for untitledQueryEditorInput" This reverts commit 88552dbd811b643fd51d5d21f4571b677d7bfc73. * Revert "Revert "added interface for untitledQueryEditorInput"" This reverts commit 13a89c40e4cb0a3fa495f5b150c066892387e509. * Revert "Revert "added IUntitledQueryEditorInput"" This reverts commit 8b2258ab49275a271a39036ea1734feca98ee753. * added extends for IUntitledQueryEditorInput * added casting in editorGroupView * Revert "added casting in editorGroupView" This reverts commit 61500ea43690b08ba2393808a8d118abc60da4ac.
27 lines
2.2 KiB
TypeScript
27 lines
2.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 { ITestInstantiationService, workbenchInstantiationService as vsworkbenchInstantiationService } from 'vs/workbench/test/browser/workbenchTestServices';
|
|
import { IQueryModelService } from 'sql/workbench/services/query/common/queryModel';
|
|
import { TestQueryModelService } from 'sql/workbench/services/query/test/common/testQueryModelService';
|
|
import { IConnectionManagementService } from 'sql/platform/connection/common/connectionManagement';
|
|
import { TestConnectionManagementService } from 'sql/platform/connection/test/common/testConnectionManagementService';
|
|
import { TestObjectExplorerService } from 'sql/workbench/services/objectExplorer/test/browser/testObjectExplorerService';
|
|
import { IObjectExplorerService } from 'sql/workbench/services/objectExplorer/browser/objectExplorerService';
|
|
import { IQueryEditorService } from 'sql/workbench/services/queryEditor/common/queryEditorService';
|
|
import { TestQueryEditorService } from 'sql/workbench/services/queryEditor/test/browser/testQueryEditorService';
|
|
import { IQueryManagementService } from 'sql/workbench/services/query/common/queryManagement';
|
|
import { TestQueryManagementService } from 'sql/workbench/services/query/test/common/testQueryManagementService';
|
|
|
|
export function workbenchInstantiationService(): ITestInstantiationService {
|
|
const instantiationService = vsworkbenchInstantiationService();
|
|
instantiationService.stub(IQueryEditorService, instantiationService.createInstance(TestQueryEditorService));
|
|
instantiationService.stub(IConnectionManagementService, new TestConnectionManagementService());
|
|
instantiationService.stub(IQueryModelService, new TestQueryModelService());
|
|
instantiationService.stub(IObjectExplorerService, new TestObjectExplorerService());
|
|
instantiationService.stub(IQueryManagementService, new TestQueryManagementService());
|
|
return instantiationService;
|
|
}
|