mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
ADS changes for opening XEL files (#23666)
* Initial set of changes for opening XEL files in ADS * Code cleanup and update STS version * Fix runtime errors * Address comments * Address comments and update Start button to be disabled for file session * Code cleanup
This commit is contained in:
@@ -1298,9 +1298,14 @@ export interface StartProfilingParams {
|
||||
ownerUri: string;
|
||||
|
||||
/**
|
||||
* Session name
|
||||
* Session name or full path of XEL file to open
|
||||
*/
|
||||
sessionName: string;
|
||||
|
||||
/**
|
||||
* Identifies which type of target session name identifies
|
||||
*/
|
||||
sessionType: azdata.ProfilingSessionType;
|
||||
}
|
||||
|
||||
export interface StartProfilingResponse { }
|
||||
|
||||
@@ -1001,10 +1001,11 @@ export class ProfilerFeature extends SqlOpsFeature<undefined> {
|
||||
);
|
||||
};
|
||||
|
||||
let startSession = (ownerUri: string, sessionName: string): Thenable<boolean> => {
|
||||
let startSession = (ownerUri: string, sessionName: string, sessionType: azdata.ProfilingSessionType = azdata.ProfilingSessionType.RemoteSession): Thenable<boolean> => {
|
||||
let params: contracts.StartProfilingParams = {
|
||||
ownerUri,
|
||||
sessionName
|
||||
sessionName,
|
||||
sessionType
|
||||
};
|
||||
|
||||
return client.sendRequest(contracts.StartProfilingRequest.type, params).then(
|
||||
|
||||
@@ -51,6 +51,11 @@
|
||||
"command": "profiler.openCreateSessionDialog",
|
||||
"title": "profiler.contributes.title.openCreateSessionDialog",
|
||||
"category": "%profiler.category%"
|
||||
},
|
||||
{
|
||||
"command": "profiler.openFile",
|
||||
"title": "%profiler.contributes.title.openXELFile%",
|
||||
"category": "%profiler.category%"
|
||||
}
|
||||
],
|
||||
"menus": {
|
||||
|
||||
@@ -5,5 +5,6 @@
|
||||
"profiler.contributes.title.start": "Start",
|
||||
"profiler.contributes.title.stop": "Stop",
|
||||
"profiler.contributes.title.openCreateSessionDialog": "Create Profiler Season",
|
||||
"profiler.category": "Profiler"
|
||||
"profiler.category": "Profiler",
|
||||
"profiler.contributes.title.openXELFile": "Open XEL File"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user