Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion src/additionalExtensions.ts
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
export { whenReady } from '../extensions/*.vsix'
import { whenReady as whenReadyCustomExtension } from './customExtensions'
import { whenReady as whenReadyExtension } from '../extensions/*.vsix'

const whenReady = async () => {
await Promise.all([whenReadyCustomExtension(), whenReadyExtension()])
}

export { whenReady }
4 changes: 3 additions & 1 deletion src/customExtensions/cobol.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ExtensionHostKind, registerExtension } from '@codingame/monaco-vscode-api/extensions'

const { registerFileUrl } = registerExtension(
const { registerFileUrl, whenReady } = registerExtension(
{
name: 'cobol-indent',
publisher: 'codingame',
Expand Down Expand Up @@ -41,3 +41,5 @@ const { registerFileUrl } = registerExtension(
)

registerFileUrl('./extension.js', new URL('./cobol-extension.js', import.meta.url).href)

export { whenReady }
2 changes: 1 addition & 1 deletion src/customExtensions/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
import './cobol'
export { whenReady } from './cobol'
1 change: 0 additions & 1 deletion src/services.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ import { IWorkbenchConstructionOptions, IWorkspaceProvider } from '@codingame/mo
import EditorOpenHandlerRegistry from './tools/EditorOpenHandlerRegistry'
import { whenReady as whenExtensionsReady } from './extensions'
import 'vscode/localExtensionHost'
import './customExtensions'
import './languages'
import './worker'

Expand Down
Loading