mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-17 09:35:37 -05:00
Fix data workspace vscode telemetry (#19768)
* fix data workspace vscode extension telemetry extension name * remove unused fullName
This commit is contained in:
@@ -342,7 +342,6 @@ export async function getDefaultPublishDeploymentOptions(project: Project): Prom
|
||||
|
||||
export interface IPackageInfo {
|
||||
name: string;
|
||||
fullName: string;
|
||||
version: string;
|
||||
aiKey: string;
|
||||
}
|
||||
@@ -363,11 +362,9 @@ export function getPackageInfo(packageJson?: any): IPackageInfo | undefined {
|
||||
// package.vscode.json values replace the corresponding values in the package.json for the sql-database-projects-vscode extension
|
||||
// so we need to read these values directly from the package.vscode.json to get the correct extension and publisher names
|
||||
const extensionName = azdataApi ? packageJson.name : vscodePackageJson.name;
|
||||
const publisher = azdataApi ? packageJson.publisher : vscodePackageJson.publisher;
|
||||
|
||||
return {
|
||||
name: extensionName,
|
||||
fullName: `${publisher}.${extensionName}`,
|
||||
version: packageJson.version,
|
||||
aiKey: packageJson.aiKey
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user