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:
@@ -31,7 +31,7 @@ class ClangdSwitchDeclDef::Private
|
||||
public:
|
||||
Private(ClangdSwitchDeclDef * q, ClangdClient *client, TextDocument *doc,
|
||||
const QTextCursor &cursor, CppEditorWidget *editorWidget, const LinkHandler &callback)
|
||||
: q(q), client(client), document(doc), uri(DocumentUri::fromFilePath(doc->filePath())),
|
||||
: q(q), client(client), document(doc), uri(client->hostPathToServerUri(doc->filePath())),
|
||||
cursor(cursor), editorWidget(editorWidget), callback(callback)
|
||||
{}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user