Log extension host commands (#15721)

* Log extension host commands

* Add more comments
This commit is contained in:
Charles Gagnon
2021-06-15 12:10:09 -07:00
committed by GitHub
parent c9850fe59f
commit ebe24046de
4 changed files with 27 additions and 13 deletions

View File

@@ -3,7 +3,14 @@
* Licensed under the Source EULA. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
export enum ModalDialogName {
export const enum EventName {
Action = 'action',
Error = 'error',
Metrics = 'metrics',
View = 'view'
}
export const enum ModalDialogName {
ErrorMessage = 'ErrorMessage',
WebView = 'WebView',
ConnectionAdvancedProperties = 'ConnectionAdvancedProperties',
@@ -22,7 +29,7 @@ export enum ModalDialogName {
CalloutDialog = 'CalloutDialog'
}
export enum TelemetryView {
export const enum TelemetryView {
Agent = 'Agent',
AgentJobs = 'AgentJobs',
AgentJobHistory = 'AgentJobHistory',
@@ -30,18 +37,19 @@ export enum TelemetryView {
AgentNotebookHistory = 'AgentNotebookHistory',
AgentNotebooks = 'AgentNotebooks',
ConnectionDialog = 'ConnectionDialog',
Shell = 'Shell',
ExtensionHost = 'ExtensionHost',
ExtensionRecommendationDialog = 'ExtensionRecommendationDialog',
ResultsPanel = 'ResultsPanel',
Notebook = 'Notebook',
ResultsPanel = 'ResultsPanel',
Shell = 'Shell',
SqlAssessment = 'SqlAssessment'
}
export enum TelemetryError {
export const enum TelemetryError {
DatabaseConnectionError = 'DatabaseConnectionError'
}
export enum TelemetryAction {
export const enum TelemetryAction {
AddServerGroup = 'AddServerGroup',
adsCommandExecuted = 'adsCommandExecuted',
ConnectToServer = 'ConnectToServer',
@@ -82,7 +90,7 @@ export enum TelemetryAction {
SearchCompleted = 'SearchCompleted'
}
export enum NbTelemetryAction {
export const enum NbTelemetryAction {
RunCell = 'RunCell',
RunAll = 'RunNotebook',
AddCell = 'AddCell',
@@ -90,7 +98,7 @@ export enum NbTelemetryAction {
NewNotebookFromConnections = 'NewNotebookWithConnectionProfile'
}
export enum TelemetryPropertyName {
export const enum TelemetryPropertyName {
ChartMaxRowCountExceeded = 'chartMaxRowCountExceeded',
ConnectionSource = 'connectionSource'
}