Refactor SQL Binding code over from sql-database-projects (#18674)

* add sql binding prompt / logic

* remove controller and move to extension

* remove unused dependencies
This commit is contained in:
Vasu Bhog
2022-03-09 01:02:37 -08:00
committed by GitHub
parent 025e0831e7
commit eb77d86136
12 changed files with 1869 additions and 3 deletions

View File

@@ -2,8 +2,13 @@
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the Source EULA. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import * as vscode from 'vscode';
import { getAzdataApi } from './common/utils';
import { launchAddSqlBindingQuickpick } from '../src/dialogs/addSqlBindingQuickpick';
export function activate(): void {
export function activate(context: vscode.ExtensionContext): void {
void vscode.commands.executeCommand('setContext', 'azdataAvailable', !!getAzdataApi());
context.subscriptions.push(vscode.commands.registerCommand('sqlBindings.addSqlBinding', async (uri: vscode.Uri | undefined) => { return launchAddSqlBindingQuickpick(uri); }));
}
export function deactivate(): void {