Open zerocewl opened 1 month ago
Is there any working example how to use multiple workspaceFolders?
Hi @zerocewl no we don't have such an example. What I observed though is that the pyright language server requires to have the files physically available (e.g. import). The import to hello2.py
in this example is not marked as erroneous if the file exists. As client and server don't share the same file system this leads to problems. I am currently looking for a solution.
I don't know how pyright behaves in this scenario with multiple workspaces. Have you tried this in VSCode just to see if or how it works there?
To have multiple workspace folders, you can use the workspaceUri
but it should link to an existing file on the virtual filesystem
I'm trying to enable auto completion in the monaco editor from different custom python folders using
python-lsp-server
. For a single folder this works fine using theworkspaceFolder
setting from theclientConfig
as suggested in the python example config. So for my requirements i tried to useworkspaceFolders
, but i can not manage to set more folders, i think i'm missing something on the client side.In the
languageClientConfig
startOptions
i usedworkspace/didChangeWorkspaceFolders
which seems to work withpython-lsp-server
.On the client side is no setting for
workspaceFolders
so i tried to implement a customworkspaceProvider
together with a custom workspace file, but this setting seem not to be used at all.e.g.
Can you suggest what i'm missing here? Is there any working example how to use multiple workspaceFolders?