Skip to content

Commit ce18409

Browse files
committed
修复一个增量更新bug
1 parent 79399e0 commit ce18409

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

CodeFormatServer/src/VirtualFile/VirtualFile.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,7 @@ void VirtualFile::UpdateFile(std::vector<vscode::TextDocumentContentChangeEvent>
103103
}
104104
}
105105

106-
_luaFile->UpdateLineInfo();
107-
_luaParser = nullptr;
106+
UpdateFile(std::move(text));
108107
}
109108

110109
void VirtualFile::UpdateFile(std::string&& text)

0 commit comments

Comments
 (0)