diff options
author | David Schulz <david.schulz@qt.io> | 2022-12-15 07:23:55 +0100 |
---|---|---|
committer | David Schulz <david.schulz@qt.io> | 2022-12-15 09:49:48 +0000 |
commit | 2d0456f08509092b2bd882a723b8b26b2143945a (patch) | |
tree | 8e23b8bc61939755f497793cb823073ac95a42ad /src/plugins/python/pythonlanguageclient.cpp | |
parent | 0b33a08af1e088670e561fad316f4dfe7fcd265e (diff) | |
download | qt-creator-2d0456f08509092b2bd882a723b8b26b2143945a.tar.gz |
LSP: Support remote LSP file paths
Change-Id: If3cf1b8d675ef091427dbcd703c7d14b384a1b3a
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/plugins/python/pythonlanguageclient.cpp')
-rw-r--r-- | src/plugins/python/pythonlanguageclient.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/python/pythonlanguageclient.cpp b/src/plugins/python/pythonlanguageclient.cpp index aa66af328f..d6ce45d3b6 100644 --- a/src/plugins/python/pythonlanguageclient.cpp +++ b/src/plugins/python/pythonlanguageclient.cpp @@ -213,7 +213,7 @@ void PyLSClient::openDocument(TextEditor::TextDocument *document) const FilePath workspacePath = documentPath.parentDir(); if (!m_extraWorkspaceDirs.contains(workspacePath)) { WorkspaceFoldersChangeEvent event; - event.setAdded({WorkSpaceFolder(DocumentUri::fromFilePath(workspacePath), + event.setAdded({WorkSpaceFolder(hostPathToServerUri(workspacePath), workspacePath.fileName())}); DidChangeWorkspaceFoldersParams params; params.setEvent(event); |