By default, no workspace seems to be open. How can I open a workspace?
const wrapper = new MonacoEditorLanguageClientWrapper();
const userConfig : UserConfig = {
wrapperConfig: {
editorAppConfig: {
$type: 'extended',
codeResources: {
main: {
text: 'print("Hello, World!")',
uri: '/workspace/hello.py'
}
}
}
}
};
const htmlElement = document.getElementById('monaco-editor-root');
await wrapper.initAndStart(userConfig, htmlElement);
workspace.getConfiguration('editor').update('tabSize', 5)
Uncaught CodeExpectedError: Unable to write to Workspace Settings because no workspace is opened. Please open a workspace first and try again.
By default, no workspace seems to be open. How can I open a workspace?
For instance:
yields:
Here is an example repo: https://github.com/abentkamp/monacotest3/tree/workspace
Thanks for your help!