File tree Expand file tree Collapse file tree 3 files changed +3
-15
lines changed
Expand file tree Collapse file tree 3 files changed +3
-15
lines changed Original file line number Diff line number Diff line change 66import * as vscode from 'vscode' ;
77import { localize } from '../../localize' ;
88
9- enum FuncHostDebugContextValue {
10- HostError = 'azFunc.funcHostDebug.hostError' ,
11- }
12-
139export class HostErrorNode {
1410 public readonly kind = 'hostError' as const ;
1511
@@ -27,7 +23,7 @@ export class HostErrorNode {
2723 const item = new vscode . TreeItem ( label , vscode . TreeItemCollapsibleState . None ) ;
2824 item . iconPath = new vscode . ThemeIcon ( 'error' ) ;
2925 item . tooltip = this . message ;
30- item . contextValue = FuncHostDebugContextValue . HostError ;
26+ item . contextValue = 'azFunc.funcHostDebug.hostError' ;
3127 return item ;
3228 }
3329
Original file line number Diff line number Diff line change @@ -8,10 +8,6 @@ import { runningFuncTaskMap } from '../../funcCoreTools/funcHostTask';
88import { buildHostTooltip , formatTimestamp , getScopeLabel } from './funcHostDebugUtils' ;
99import { HostErrorNode } from './HostErrorNode' ;
1010
11- enum FuncHostDebugContextValue {
12- HostTask = 'azFunc.funcHostDebug.hostTask' ,
13- }
14-
1511export class HostTaskNode {
1612 public readonly kind = 'hostTask' as const ;
1713
@@ -32,7 +28,7 @@ export class HostTaskNode {
3228 const item = new vscode . TreeItem ( label , vscode . TreeItemCollapsibleState . Expanded ) ;
3329 item . description = formatTimestamp ( this . startTime ) ;
3430 item . tooltip = tooltip ;
35- item . contextValue = FuncHostDebugContextValue . HostTask ;
31+ item . contextValue = 'azFunc.funcHostDebug.hostTask' ;
3632 item . iconPath = new vscode . ThemeIcon ( 'server-process' ) ;
3733 return item ;
3834 }
Original file line number Diff line number Diff line change @@ -8,10 +8,6 @@ import { type IStoppedFuncTask } from '../../funcCoreTools/funcHostTask';
88import { buildHostTooltip , formatTimestamp , getScopeLabel } from './funcHostDebugUtils' ;
99import { HostErrorNode } from './HostErrorNode' ;
1010
11- enum FuncHostDebugContextValue {
12- StoppedHostTask = 'azFunc.funcHostDebug.stoppedHostTask' ,
13- }
14-
1511export class StoppedHostNode {
1612 public readonly kind = 'stoppedHost' as const ;
1713
@@ -28,7 +24,7 @@ export class StoppedHostNode {
2824 const item = new vscode . TreeItem ( label , errorCount > 0 ? vscode . TreeItemCollapsibleState . Expanded : vscode . TreeItemCollapsibleState . None ) ;
2925 item . description = `${ formatTimestamp ( stopped . startTime ) } → ${ formatTimestamp ( stopped . stopTime ) } ` ;
3026 item . tooltip = tooltip ;
31- item . contextValue = FuncHostDebugContextValue . StoppedHostTask ;
27+ item . contextValue = 'azFunc.funcHostDebug.stoppedHostTask' ;
3228 item . iconPath = new vscode . ThemeIcon ( 'debug-stop' , new vscode . ThemeColor ( 'disabledForeground' ) ) ;
3329 return item ;
3430 }
You can’t perform that action at this time.
0 commit comments