Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.8
-
None
-
e40871352 (dev), ab90f3e0e (dev)
Description
There is a type that confuses the JSON serialization in WorkspaceEdit, and it is:
std::optional<std::variant<QList<TextDocumentEdit>, QList<std::variant<TextDocumentEdit, CreateFile, RenameFile, DeleteFile>>>>
Basically, if you deserialize a WorkspaceEdit with a
QList<std::variant<TextDocumentEdit, CreateFile, RenameFile, DeleteFile>
and then later reserialize it, you will obtain a QList<TextDocumentEdit> with invalid content.
This was found while writing tests for renaming qml components and their corresponding files.
Attachments
Issue Links
- is required for
-
QTBUG-114993 qmlls: rename files when renaming Qml Objects
- Closed