mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Remove unused commands from vs code sql proj (#16507)
This commit is contained in:
@@ -17,6 +17,8 @@ import { getAzdataApi } from './common/utils';
|
||||
import { createNewProjectWithQuickpick } from './dialogs/newProjectQuickpick';
|
||||
|
||||
export async function activate(context: vscode.ExtensionContext): Promise<IExtension> {
|
||||
const azdataApi = getAzdataApi();
|
||||
vscode.commands.executeCommand('setContext', 'azdataAvailable', !!azdataApi);
|
||||
const workspaceService = new WorkspaceService();
|
||||
|
||||
const workspaceTreeDataProvider = new WorkspaceTreeDataProvider(workspaceService);
|
||||
@@ -31,7 +33,7 @@ export async function activate(context: vscode.ExtensionContext): Promise<IExten
|
||||
setProjectProviderContextValue(workspaceService);
|
||||
|
||||
context.subscriptions.push(vscode.commands.registerCommand('projects.new', async () => {
|
||||
if (getAzdataApi()) {
|
||||
if (azdataApi) {
|
||||
const dialog = new NewProjectDialog(workspaceService);
|
||||
await dialog.open();
|
||||
} else {
|
||||
@@ -40,7 +42,7 @@ export async function activate(context: vscode.ExtensionContext): Promise<IExten
|
||||
}));
|
||||
|
||||
context.subscriptions.push(vscode.commands.registerCommand('projects.openExisting', async () => {
|
||||
if (getAzdataApi()) {
|
||||
if (azdataApi) {
|
||||
const dialog = new OpenExistingDialog(workspaceService);
|
||||
await dialog.open();
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user