mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
defining arc api (#12153)
* defining arcApi * pr feedback * activate arc extension in test * skip failing test temporarily * remove arcService test file
This commit is contained in:
17
extensions/resource-deployment/src/services/arcService.ts
Normal file
17
extensions/resource-deployment/src/services/arcService.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the Source EULA. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
import * as arc from 'arc';
|
||||
import * as vscode from 'vscode';
|
||||
|
||||
export class ArcService {
|
||||
private _arcApi: arc.IExtension;
|
||||
constructor() {
|
||||
this._arcApi = vscode.extensions.getExtension(arc.extension.name)?.exports;
|
||||
}
|
||||
|
||||
public async getRegisteredDataControllers(): Promise<arc.ControllerInfo[]> {
|
||||
return await this._arcApi.getRegisteredDataControllers();
|
||||
}
|
||||
}
|
||||
@@ -6,6 +6,7 @@
|
||||
/// <reference path='../../../../src/vs/vscode.d.ts'/>
|
||||
/// <reference path='../../../../src/sql/azdata.d.ts'/>
|
||||
/// <reference path='../../../../src/sql/azdata.proposed.d.ts'/>
|
||||
/// <reference path='../../../arc/src/typings/arc.d.ts'/>
|
||||
/// <reference path='../../../azurecore/src/azurecore.d.ts'/>
|
||||
/// <reference path='../../../azurecore/src/azureResource/azure-resource.d.ts'/>
|
||||
/// <reference types='@types/node'/>
|
||||
|
||||
Reference in New Issue
Block a user