File tree Expand file tree Collapse file tree
extensions/mssql/src/backgroundTasks Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,13 +9,13 @@ import { uuid } from "../utils/utils";
99import logger2 from "../models/logger2" ;
1010
1111export enum BackgroundTaskState {
12- NotStarted = 0 ,
13- InProgress = 1 ,
14- Succeeded = 2 ,
15- SucceededWithWarning = 3 ,
16- Failed = 4 ,
17- Canceled = 5 ,
18- Canceling = 6 ,
12+ NotStarted = "NotStarted" ,
13+ InProgress = "InProgress" ,
14+ Succeeded = "Succeeded" ,
15+ SucceededWithWarning = "SucceededWithWarning" ,
16+ Failed = "Failed" ,
17+ Canceled = "Canceled" ,
18+ Canceling = "Canceling" ,
1919}
2020
2121export type BackgroundTaskIcon =
@@ -285,8 +285,8 @@ export function toBackgroundTaskStateDisplayString(state: BackgroundTaskState):
285285 case BackgroundTaskState . NotStarted :
286286 return localizedConstants . notStarted ;
287287 default :
288- logger . warn ( `Unexpected background task state: ${ String ( state ) } ` ) ;
289- return String ( state ) ;
288+ logger . warn ( `Unexpected background task state: ${ state } ` ) ;
289+ return state ;
290290 }
291291}
292292
You can’t perform that action at this time.
0 commit comments