更新字段

This commit is contained in:
锦恢 2024-12-23 17:38:21 +08:00
parent bdec500594
commit 95632ace63
2 changed files with 2 additions and 2 deletions

View File

@ -255,7 +255,7 @@ impl LanguageServer for Backend {
async fn did_close(&self, params: DidCloseTextDocumentParams) { async fn did_close(&self, params: DidCloseTextDocumentParams) {
// 获取诊断相关的配置信息,如果 mode 为 common则需要清空关闭文件的诊断信息 // 获取诊断相关的配置信息,如果 mode 为 common则需要清空关闭文件的诊断信息
let linter_mode = self.server.db.get_lsp_configuration_string_value("digital-ide.function.lsp.linter.linter-mode").unwrap(); let linter_mode = self.server.db.get_lsp_configuration_string_value("digital-ide.function.lsp.linter.mode").unwrap();
if linter_mode == "common" { if linter_mode == "common" {
self.client.publish_diagnostics(params.text_document.uri, vec![], None).await; self.client.publish_diagnostics(params.text_document.uri, vec![], None).await;
} }

@ -1 +1 @@
Subproject commit cf95eb9b901e847b54ed824b6b6a780fd2f6eac3 Subproject commit 3c806793fa9ba596fbf23b383653ae12204581c5