forked from qt-creator/qt-creator
LSP: Support remote LSP file paths
Change-Id: If3cf1b8d675ef091427dbcd703c7d14b384a1b3a Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user