mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-08 17:19:48 +01:00
add telemetry comments (#150317)
This commit is contained in:
@@ -144,7 +144,7 @@ export class ShellIntegrationAddon extends Disposable implements IShellIntegrati
|
||||
private _handleVSCodeSequence(data: string): boolean {
|
||||
const didHandle = this._doHandleVSCodeSequence(data);
|
||||
if (!this._hasUpdatedTelemetry && didHandle) {
|
||||
this._telemetryService?.publicLog2<{}, { owner: 'meganrogge' }>('terminal/shellIntegrationActivationSucceeded');
|
||||
this._telemetryService?.publicLog2<{}, { owner: 'meganrogge'; comment: 'Indicates shell integration was activated' }>('terminal/shellIntegrationActivationSucceeded');
|
||||
this._hasUpdatedTelemetry = true;
|
||||
if (this._activationTimeout !== undefined) {
|
||||
clearTimeout(this._activationTimeout);
|
||||
@@ -232,7 +232,7 @@ export class ShellIntegrationAddon extends Disposable implements IShellIntegrati
|
||||
private async _ensureCapabilitiesOrAddFailureTelemetry(): Promise<void> {
|
||||
this._activationTimeout = setTimeout(() => {
|
||||
if (!this.capabilities.get(TerminalCapability.CommandDetection) && !this.capabilities.get(TerminalCapability.CwdDetection)) {
|
||||
this._telemetryService?.publicLog2<{}, { owner: 'meganrogge' }>('terminal/shellIntegrationActivationTimeout');
|
||||
this._telemetryService?.publicLog2<{}, { owner: 'meganrogge'; comment: 'Indicates shell integration activation did not occur within 10 seconds' }>('terminal/shellIntegrationActivationTimeout');
|
||||
this._logService.warn('Shell integration failed to add capabilities within 10 seconds');
|
||||
}
|
||||
this._hasUpdatedTelemetry = true;
|
||||
|
||||
@@ -1634,7 +1634,7 @@ export class TerminalInstance extends Disposable implements ITerminalInstance {
|
||||
}
|
||||
|
||||
if (failedShellIntegrationInjection) {
|
||||
this._telemetryService.publicLog2<{}, { owner: 'meganrogge' }>('terminal/shellIntegrationFailureProcessExit');
|
||||
this._telemetryService.publicLog2<{}, { owner: 'meganrogge'; comment: 'Indicates the process exited when created with shell integration args' }>('terminal/shellIntegrationFailureProcessExit');
|
||||
}
|
||||
|
||||
// First onExit to consumers, this can happen after the terminal has already been disposed.
|
||||
|
||||
@@ -335,7 +335,7 @@ export class TerminalProcessManager extends Disposable implements ITerminalProce
|
||||
this._hasChildProcesses = value;
|
||||
break;
|
||||
case ProcessPropertyType.FailedShellIntegrationActivation:
|
||||
this._telemetryService?.publicLog2<{}, { owner: 'meganrogge' }>('terminal/shellIntegrationActivationFailureCustomArgs');
|
||||
this._telemetryService?.publicLog2<{}, { owner: 'meganrogge'; comment: 'Indicates shell integration was not activated because of custom args' }>('terminal/shellIntegrationActivationFailureCustomArgs');
|
||||
break;
|
||||
}
|
||||
this._onDidChangeProperty.fire({ type, value });
|
||||
|
||||
Reference in New Issue
Block a user