Skip to content

Commit dbba764

Browse files
committed
Moved webview commands to constants
1 parent e5e94cd commit dbba764

File tree

4 files changed

+6
-13
lines changed

4 files changed

+6
-13
lines changed

src/util/constants.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,3 +90,7 @@ export const enum ViewCommands {
9090
RefreshTree = 'gcode.views.navTree.refresh',
9191
TreeSelect = 'gcode.views.navTree.select',
9292
}
93+
94+
export const enum WebViewCommands {
95+
ShowCodesWebview = 'gcode.webviews.codes.show',
96+
}

src/webviews/codesWebview.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
import { Uri, Webview } from 'vscode';
1111
import { Control } from '../control';
12-
import { WebViewCommands } from './webviewCommands';
12+
import { WebViewCommands } from '../util/constants';
1313
import { GWebView } from './webviews';
1414

1515
const GCodesWebviewInfo = {

src/webviews/webviewCommands.ts

Lines changed: 0 additions & 10 deletions
This file was deleted.

src/webviews/webviews.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ import {
1919
window,
2020
} from 'vscode';
2121
import { configuration } from '../util/configuration/config';
22-
import { WebViewCommands } from './webviewCommands';
23-
import { constants } from '../util/constants';
22+
import { constants, WebViewCommands } from '../util/constants';
2423
import { Control } from '../control';
2524

2625
export abstract class GWebView implements Disposable {

0 commit comments

Comments
 (0)