Skip to content

Commit 8d18412

Browse files
author
Nathan Turinski
committed
Remove enums that are not shared
1 parent ada82e4 commit 8d18412

File tree

3 files changed

+3
-15
lines changed

3 files changed

+3
-15
lines changed

src/debug/nodes/HostErrorNode.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@
66
import * as vscode from 'vscode';
77
import { localize } from '../../localize';
88

9-
enum FuncHostDebugContextValue {
10-
HostError = 'azFunc.funcHostDebug.hostError',
11-
}
12-
139
export 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

src/debug/nodes/HostTaskNode.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@ import { runningFuncTaskMap } from '../../funcCoreTools/funcHostTask';
88
import { buildHostTooltip, formatTimestamp, getScopeLabel } from './funcHostDebugUtils';
99
import { HostErrorNode } from './HostErrorNode';
1010

11-
enum FuncHostDebugContextValue {
12-
HostTask = 'azFunc.funcHostDebug.hostTask',
13-
}
14-
1511
export 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
}

src/debug/nodes/StoppedHostNode.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@ import { type IStoppedFuncTask } from '../../funcCoreTools/funcHostTask';
88
import { buildHostTooltip, formatTimestamp, getScopeLabel } from './funcHostDebugUtils';
99
import { HostErrorNode } from './HostErrorNode';
1010

11-
enum FuncHostDebugContextValue {
12-
StoppedHostTask = 'azFunc.funcHostDebug.stoppedHostTask',
13-
}
14-
1511
export 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
}

0 commit comments

Comments
 (0)