-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathcobol.ts
More file actions
45 lines (42 loc) · 1.14 KB
/
cobol.ts
File metadata and controls
45 lines (42 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
import { ExtensionHostKind, registerExtension } from '@codingame/monaco-vscode-api/extensions'
const { registerFileUrl, whenReady } = registerExtension(
{
name: 'cobol-indent',
publisher: 'codingame',
version: '1.0.0',
engines: {
vscode: '*'
},
activationEvents: ['onLanguage:cobol'],
contributes: {
commands: [
{
command: 'cobol-indent',
title: 'Indent cobol',
enablement: 'editorLangId == cobol && !inSnippetMode'
},
{
command: 'cobol-unindent',
title: 'Unindent cobol',
enablement: 'editorLangId == cobol && !inSnippetMode'
}
],
keybindings: [
{
command: 'cobol-indent',
key: 'tab',
when: 'editorLangId == cobol && !inSnippetMode'
},
{
command: 'cobol-unindent',
key: 'shift+tab',
when: 'editorLangId == cobol && !inSnippetMode'
}
]
},
browser: './extension.js'
},
ExtensionHostKind.LocalWebWorker
)
registerFileUrl('./extension.js', new URL('./cobol-extension.js', import.meta.url).href)
export { whenReady }