mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-09 09:42:34 -05:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user