Skip to content

Commit 306d364

Browse files
committed
Refactor registerCommands func into index. Fixes #47
1 parent cdc8125 commit 306d364

File tree

2 files changed

+19
-23
lines changed

2 files changed

+19
-23
lines changed

src/util/commands/functions.ts

Lines changed: 0 additions & 23 deletions
This file was deleted.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,28 @@
55

66
'use strict';
77

8+
import { Disposable } from 'vscode';
9+
import { AddComment } from './addComment';
10+
import { AddLineNumbers } from './addLineNumbers';
11+
import { RemoveComment } from './removeComment';
12+
import { RemoveLineNumbers } from './removeLineNumbers';
13+
import { ShowGCodeSettings } from './showGCodeSettings';
14+
import { ShowSupportGCode } from './showSupportGCode';
15+
816
export { AddComment } from './addComment';
917
export { AddLineNumbers } from './addLineNumbers';
1018
export { RemoveComment } from './removeComment';
1119
export { RemoveLineNumbers } from './removeLineNumbers';
1220
export { ShowGCodeSettings } from './showGCodeSettings';
1321
export { ShowSupportGCode } from './showSupportGCode';
22+
23+
export function registerCommands(): Disposable[] {
24+
return [
25+
new AddComment(),
26+
new AddLineNumbers(),
27+
new RemoveComment(),
28+
new RemoveLineNumbers(),
29+
new ShowGCodeSettings(),
30+
new ShowSupportGCode(),
31+
];
32+
}

0 commit comments

Comments
 (0)