monaco-languageclient
monaco-languageclient copied to clipboard
What is rootUri in MonacoServices.install() for?
From this line:
MonacoServices.install(monaco, {rootUri: "file:///C:\\file\\path"})
Where is this uri used? I couldn't find docs for it nor it's clear looking over at source code
The rootUri is only used to generate a default workspaceFolder if none is provided
Btw the api will probably slightly change in a near future
The rootUri is only used to generate a default workspaceFolder if none is provided
but where is this default workspaceFolder used? for exe so i would do things like pass relative path in uri here when calling monaco.editor.createModel() and it would be combined with default workspaceFolder, is that right?
Btw the api will probably slightly change in a near future
hm how is that going to change?
but where is this default workspaceFolder used?
In the lsp initialize request
for exe so i would do things like pass relative path in uri here when calling monaco.editor.createModel() and it would be combined with default workspaceFolder, is that right?
There is no such things as relative uri/path in vscode/monaco
hm how is that going to change?
The rootPath and the workspaceFolders will be expected as parameters directly
but where is this default workspaceFolder used?
The the lsp
initializerequest
sorry i misunderstood that previously and still didnt get it, i'm not familiar with lsp's initialize... what is workspaceFolder supposed to be? the project's folder or what?
for exe so i would do things like pass relative path in uri here when calling monaco.editor.createModel() and it would be combined with default workspaceFolder, is that right?
There is no such things as relative uri/path in vscode/monaco
hm how is that going to change?
The rootPath and the workspaceFolders will be expected as parameters directly
sorry i misunderstood that previously and still didnt get it, i'm not familiar with lsp's initialize... what is workspaceFolder supposed to be? the project's folder or what?
Yes, a workspaceFolder is a project
sorry i misunderstood that previously and still didnt get it, i'm not familiar with lsp's initialize... what is workspaceFolder supposed to be? the project's folder or what?
Yes, a workspaceFolder is a project
where is this used by the lps? is that documented somewhere? if i pass a empty string, what's the behavior for exe?
What is
exe?
example
The language server protocol is pretty well documented
i should rather be looking over this doc to find out about workspaceFolder thanks.
@MassMessage I am closing the issue. If there are further questions please open a discussion: https://github.com/TypeFox/monaco-languageclient/discussions
Thank you