Skip to content

Commit 5ca94b3

Browse files
committed
fix(work): await whenready of cobol extension
1 parent 868cdd2 commit 5ca94b3

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

src/customExtensions/cobol.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { ExtensionHostKind, registerExtension } from '@codingame/monaco-vscode-api/extensions'
22

3-
const { registerFileUrl } = registerExtension(
3+
export const { registerFileUrl, whenReady } = registerExtension(
44
{
55
name: 'cobol-indent',
66
publisher: 'codingame',

src/extensions.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ import { whenReady as whenVbReady } from '@codingame/monaco-vscode-vb-default-ex
3232
import { whenReady as wheXmlReady } from '@codingame/monaco-vscode-xml-default-extension'
3333
import { whenReady as whenYamlReady } from '@codingame/monaco-vscode-yaml-default-extension'
3434
import { whenReady as whenNpmReady } from '@codingame/monaco-vscode-npm-default-extension'
35+
import { whenReady as whenCobolReady } from './customExtensions/cobol'
3536

3637
export async function whenReady(): Promise<void> {
3738
await Promise.allSettled([
@@ -68,6 +69,7 @@ export async function whenReady(): Promise<void> {
6869
whenVbReady(),
6970
wheXmlReady(),
7071
whenYamlReady(),
71-
whenNpmReady()
72+
whenNpmReady(),
73+
whenCobolReady()
7274
])
7375
}

0 commit comments

Comments
 (0)