mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Extension telemetry feature cleanup (#21779)
* Extension telemetry feature cleanup * one more
This commit is contained in:
@@ -15,6 +15,7 @@ import { ResourceTypePickerDialog } from './ui/resourceTypePickerDialog';
|
||||
import * as rd from 'resource-deployment';
|
||||
import { getExtensionApi } from './api';
|
||||
import { UriHandlerService } from './services/uriHandlerService';
|
||||
import { TelemetryReporter } from './services/telemetryService';
|
||||
|
||||
const localize = nls.loadMessageBundle();
|
||||
|
||||
@@ -46,9 +47,9 @@ export async function activate(context: vscode.ExtensionContext): Promise<rd.IEx
|
||||
}
|
||||
};
|
||||
|
||||
vscode.commands.registerCommand('azdata.resource.sql-image.deploy', () => {
|
||||
context.subscriptions.push(vscode.commands.registerCommand('azdata.resource.sql-image.deploy', () => {
|
||||
openDialog('sql-image');
|
||||
});
|
||||
}));
|
||||
|
||||
/**
|
||||
* Command to open the Resource Deployment wizard - with options to filter the values shown
|
||||
@@ -59,7 +60,7 @@ export async function activate(context: vscode.ExtensionContext): Promise<rd.IEx
|
||||
* @param initialVariableValues - Optional list of initial values to assign to variables. This is an object of key/value pairs in the format
|
||||
* { "VARIABLE_NAME": "value", "OTHER_VARIABLE_NAME": "value" }
|
||||
*/
|
||||
vscode.commands.registerCommand('azdata.resource.deploy', (defaultResourceTypeName?: string, resourceTypeNameFilters?: string[], optionValuesFilter?: OptionValuesFilter, initialVariableValues?: InitialVariableValues) => {
|
||||
context.subscriptions.push(vscode.commands.registerCommand('azdata.resource.deploy', (defaultResourceTypeName?: string, resourceTypeNameFilters?: string[], optionValuesFilter?: OptionValuesFilter, initialVariableValues?: InitialVariableValues) => {
|
||||
if ((resourceTypeNameFilters && !Array.isArray(resourceTypeNameFilters) ||
|
||||
(resourceTypeNameFilters && resourceTypeNameFilters.length > 0 && typeof resourceTypeNameFilters[0] !== 'string'))) {
|
||||
throw new Error('resourceTypeNameFilters must either be undefined or an array of strings');
|
||||
@@ -76,11 +77,14 @@ export async function activate(context: vscode.ExtensionContext): Promise<rd.IEx
|
||||
}
|
||||
openDialog(defaultDeploymentType, resourceTypeNameFilters, optionValuesFilter, initialVariableValues);
|
||||
}
|
||||
});
|
||||
vscode.commands.registerCommand('azdata.openNotebookInputDialog', (dialogInfo: NotebookBasedDialogInfo) => {
|
||||
}));
|
||||
|
||||
context.subscriptions.push(vscode.commands.registerCommand('azdata.openNotebookInputDialog', (dialogInfo: NotebookBasedDialogInfo) => {
|
||||
const dialog = new DeploymentInputDialog(notebookService, platformService, toolsService, dialogInfo);
|
||||
dialog.open();
|
||||
});
|
||||
}));
|
||||
|
||||
context.subscriptions.push(TelemetryReporter);
|
||||
return getExtensionApi();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user