Additions to sqlLocalizedExtensions (#15490)

* additions to sqlLocalizedExtensions

* remove azdata from sqlLocalizedExtensions

* fix extension files to work with nls.metadata.json function (required)
This commit is contained in:
Alex Ma
2021-05-18 12:21:27 -07:00
committed by GitHub
parent 08ae25d7ba
commit 1040d5bc4c
10 changed files with 18 additions and 8 deletions

View File

@@ -0,0 +1,25 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the Source EULA. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import * as azdata from 'azdata';
export class CreateSessionData {
public ownerUri: string;
public sessionName: string;
public templates: Array<azdata.ProfilerSessionTemplate> = new Array<azdata.ProfilerSessionTemplate>();
constructor(ownerUri: string, templates: Array<azdata.ProfilerSessionTemplate>) {
this.ownerUri = ownerUri;
this.templates = templates;
}
public getTemplateNames(): string[] {
return this.templates.map(e => e.name);
}
public selectTemplate(name: string): azdata.ProfilerSessionTemplate {
return this.templates.find((t) => { return t.name === name; });
}
}