LanguageClient: Silence soft assert

The reported path may be OS specific and can contain
backslashes on Windows.

Change-Id: I93d990c7fec84ae335d57a0671c12dcac3d2f939
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Christian Stenger
2023-08-21 12:38:06 +02:00
parent c18de1ecb6
commit b17c83b548

View File

@@ -577,7 +577,7 @@ void SymbolSupport::applyRename(const Utils::SearchResultItems &checkedItems,
QSet<Utils::FilePath> affectedNonOpenFilePaths;
QMap<Utils::FilePath, QList<TextEdit>> 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());