From b17c83b5485f6d6e9ad67390653ec0dc9c28169f Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Mon, 21 Aug 2023 12:38:06 +0200 Subject: [PATCH] LanguageClient: Silence soft assert The reported path may be OS specific and can contain backslashes on Windows. Change-Id: I93d990c7fec84ae335d57a0671c12dcac3d2f939 Reviewed-by: David Schulz --- src/plugins/languageclient/languageclientsymbolsupport.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/languageclient/languageclientsymbolsupport.cpp b/src/plugins/languageclient/languageclientsymbolsupport.cpp index 89cc9f44e2b..546ad068e4b 100644 --- a/src/plugins/languageclient/languageclientsymbolsupport.cpp +++ b/src/plugins/languageclient/languageclientsymbolsupport.cpp @@ -577,7 +577,7 @@ void SymbolSupport::applyRename(const Utils::SearchResultItems &checkedItems, QSet affectedNonOpenFilePaths; QMap> editsForDocuments; for (const Utils::SearchResultItem &item : checkedItems) { - const auto filePath = Utils::FilePath::fromString(item.path().value(0)); + const auto filePath = Utils::FilePath::fromUserInput(item.path().value(0)); if (!m_client->documentForFilePath(filePath)) affectedNonOpenFilePaths << filePath; TextEdit edit(item.userData().toJsonObject());