mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Get tools service install location from extensions (#16796)
* Get STS install location from extensions * Update error
This commit is contained in:
@@ -8,9 +8,13 @@ import { IExtension, ICmsService, IDacFxService, ISchemaCompareService, MssqlObj
|
||||
import * as constants from './constants';
|
||||
import { MssqlObjectExplorerNodeProvider } from './objectExplorerNodeProvider/objectExplorerNodeProvider';
|
||||
import * as azdata from 'azdata';
|
||||
import { SqlToolsServer } from './sqlToolsServer';
|
||||
|
||||
export function createMssqlApi(context: AppContext): IExtension {
|
||||
export function createMssqlApi(context: AppContext, sqlToolsServer: SqlToolsServer): IExtension {
|
||||
return {
|
||||
get sqlToolsServicePath() {
|
||||
return sqlToolsServer.installDirectory;
|
||||
},
|
||||
get cmsService() {
|
||||
return context.getService<ICmsService>(constants.CmsService);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user