forked from TypeFox/monaco-languageclient
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.ts
16 lines (13 loc) · 766 Bytes
/
main.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* --------------------------------------------------------------------------------------------
* Copyright (c) 2024 TypeFox and others.
* Licensed under the MIT License. See LICENSE in the package root for license information.
* ------------------------------------------------------------------------------------------ */
import { MonacoEditorLanguageClientWrapper } from 'monaco-editor-wrapper';
import { configure } from './config.js';
import { configurePostStart } from './common.js';
const wrapper = new MonacoEditorLanguageClientWrapper();
export const runApplicationPlayground = async () => {
const configResult = configure(document.body);
await wrapper.init(configResult.wrapperConfig);
await configurePostStart(wrapper, configResult);
};