@@ -25,11 +25,11 @@ import {
2525} from "./instrumentation/diagnostics" ;
2626import { WorkspaceOperationTelemetry } from "./instrumentation/workspace" ;
2727import {
28- type DevcontainerMode ,
28+ type DevContainerMode ,
2929 type WorkspaceOpenSource ,
3030 WorkspaceOpenTelemetry ,
3131 type WorkspaceOpenTrace ,
32- type WorkspacePickerFailureCategory ,
32+ type WorkspacePickerErrorCategory ,
3333 type WorkspacePickerResult ,
3434 type WorkspacePickerSource ,
3535} from "./instrumentation/workspaceOpen" ;
@@ -102,7 +102,7 @@ type WorkspaceResolution =
102102 | { readonly status : "cancelled" }
103103 | {
104104 readonly status : "failed" ;
105- readonly category : WorkspacePickerFailureCategory ;
105+ readonly category : WorkspacePickerErrorCategory ;
106106 } ;
107107
108108type OpenWorkspaceResult =
@@ -281,7 +281,7 @@ export class Commands {
281281 ) : Promise < void > {
282282 const resolved = await this . resolveClientAndWorkspace ( item ) ;
283283 if ( resolved . status === "cancelled" ) {
284- telemetry . cancel ( "workspace_picker" ) ;
284+ telemetry . abort ( "workspace_picker" ) ;
285285 return ;
286286 }
287287 if ( resolved . status === "failed" ) {
@@ -304,7 +304,7 @@ export class Commands {
304304 } ,
305305 } ) ;
306306 if ( input === undefined ) {
307- telemetry . cancel ( "input" ) ;
307+ telemetry . abort ( "input" ) ;
308308 return ;
309309 }
310310 const seconds = Number ( input . trim ( ) ) ;
@@ -343,7 +343,7 @@ export class Commands {
343343
344344 if ( ! result . ok ) {
345345 if ( result . cancelled ) {
346- telemetry . cancel ( "progress" ) ;
346+ telemetry . abort ( "progress" ) ;
347347 return ;
348348 }
349349 telemetry . fail ( ) ;
@@ -391,7 +391,7 @@ export class Commands {
391391 ) : Promise < void > {
392392 const resolved = await this . resolveClientAndWorkspace ( item ) ;
393393 if ( resolved . status === "cancelled" ) {
394- telemetry . cancel ( "workspace_picker" ) ;
394+ telemetry . abort ( "workspace_picker" ) ;
395395 return ;
396396 }
397397 if ( resolved . status === "failed" ) {
@@ -403,7 +403,7 @@ export class Commands {
403403
404404 const outputUri = await this . promptSupportBundlePath ( ) ;
405405 if ( ! outputUri ) {
406- telemetry . cancel ( "save_dialog" ) ;
406+ telemetry . abort ( "save_dialog" ) ;
407407 return ;
408408 }
409409
@@ -441,7 +441,7 @@ export class Commands {
441441
442442 if ( ! result . ok ) {
443443 if ( result . cancelled ) {
444- telemetry . cancel ( "progress" ) ;
444+ telemetry . abort ( "progress" ) ;
445445 return ;
446446 }
447447 telemetry . fail (
@@ -832,7 +832,7 @@ export class Commands {
832832 const agents = await this . extractAgentsWithFallback ( item . workspace ) ;
833833 const agent = await maybeAskAgent ( agents ) ;
834834 if ( ! agent ) {
835- telemetry . cancel ( "agent_picker" , { workspace : item . workspace } ) ;
835+ telemetry . abort ( "agent_picker" , { workspace : item . workspace } ) ;
836836 return false ;
837837 }
838838 const selection = { workspace : item . workspace , agent } ;
@@ -911,7 +911,7 @@ export class Commands {
911911 } else {
912912 const pick = await this . pickWorkspace ( "workspace_open" ) ;
913913 if ( pick . status === "cancelled" ) {
914- telemetry . cancel ( "workspace_picker" ) ;
914+ telemetry . abort ( "workspace_picker" ) ;
915915 return false ;
916916 }
917917 if ( pick . status === "failed" ) {
@@ -924,7 +924,7 @@ export class Commands {
924924 const agents = await this . extractAgentsWithFallback ( workspace ) ;
925925 const agent = await maybeAskAgent ( agents , agentName ) ;
926926 if ( ! agent ) {
927- telemetry . cancel ( "agent_picker" , { workspace } ) ;
927+ telemetry . abort ( "agent_picker" , { workspace } ) ;
928928 return false ;
929929 }
930930 const selection = { workspace, agent } ;
@@ -952,10 +952,10 @@ export class Commands {
952952 localWorkspaceFolder = "" ,
953953 localConfigFile = "" ,
954954 ) : Promise < void > {
955- const mode : DevcontainerMode = localWorkspaceFolder
955+ const mode : DevContainerMode = localWorkspaceFolder
956956 ? "dev_container"
957957 : "attached_container" ;
958- await this . workspaceOpenTelemetry . traceDevcontainer ( mode , ( ) =>
958+ await this . workspaceOpenTelemetry . traceDevContainer ( mode , ( ) =>
959959 this . runOpenDevContainer (
960960 workspaceOwner ,
961961 workspaceName ,
@@ -1184,7 +1184,7 @@ export class Commands {
11841184
11851185 let lastWorkspaces : readonly Workspace [ ] = [ ] ;
11861186 let settled = false ;
1187- let fetchFailureCategory : WorkspacePickerFailureCategory | undefined ;
1187+ let fetchErrorCategory : WorkspacePickerErrorCategory | undefined ;
11881188 const disposables : vscode . Disposable [ ] = [ ] ;
11891189 disposables . push (
11901190 quickPick . onDidChangeValue ( ( value ) => {
@@ -1194,7 +1194,7 @@ export class Commands {
11941194 q : value ,
11951195 } )
11961196 . then ( ( workspaces ) => {
1197- fetchFailureCategory = undefined ;
1197+ fetchErrorCategory = undefined ;
11981198 const filtered = filter
11991199 ? workspaces . workspaces . filter ( filter )
12001200 : workspaces . workspaces ;
@@ -1224,7 +1224,7 @@ export class Commands {
12241224 }
12251225 } )
12261226 . catch ( ( ex ) => {
1227- fetchFailureCategory = "fetch_failed" ;
1227+ fetchErrorCategory = "fetch_failed" ;
12281228 this . logger . error ( "Failed to fetch workspaces" , ex ) ;
12291229 if ( ex instanceof CertificateError ) {
12301230 void ex . showNotification ( ) ;
@@ -1256,10 +1256,10 @@ export class Commands {
12561256 } ;
12571257 disposables . push (
12581258 quickPick . onDidHide ( ( ) => {
1259- if ( fetchFailureCategory ) {
1259+ if ( fetchErrorCategory ) {
12601260 finish ( {
12611261 status : "failed" ,
1262- category : fetchFailureCategory ,
1262+ category : fetchErrorCategory ,
12631263 } ) ;
12641264 return ;
12651265 }
@@ -1460,7 +1460,7 @@ function recordOpenResult(
14601460 result : OpenWorkspaceResult ,
14611461) : boolean {
14621462 if ( result . status === "cancelled" ) {
1463- telemetry . cancel ( result . stage , selection ) ;
1463+ telemetry . abort ( result . stage , selection ) ;
14641464 return false ;
14651465 }
14661466 telemetry . handoff ( result . handoff ) ;
0 commit comments