mirror of
https://github.com/denoland/deno.git
synced 2025-08-03 18:38:33 +00:00
perf(lsp): independent diagnostic source publishes (#13427)
This commit is contained in:
parent
30ddf436d0
commit
bc8de78da3
6 changed files with 480 additions and 526 deletions
|
@ -36,7 +36,6 @@ use super::config::Config;
|
|||
use super::config::ConfigSnapshot;
|
||||
use super::config::SETTINGS_SECTION;
|
||||
use super::diagnostics;
|
||||
use super::diagnostics::DiagnosticSource;
|
||||
use super::diagnostics::DiagnosticsServer;
|
||||
use super::documents::to_hover_text;
|
||||
use super::documents::to_lsp_range;
|
||||
|
@ -1198,7 +1197,7 @@ impl Inner {
|
|||
let mut code_actions = CodeActionCollection::default();
|
||||
let file_diagnostics = self
|
||||
.diagnostics_server
|
||||
.get(&specifier, DiagnosticSource::TypeScript)
|
||||
.get_ts_diagnostics(&specifier, asset_or_doc.document_lsp_version())
|
||||
.await;
|
||||
for diagnostic in &fixable_diagnostics {
|
||||
match diagnostic.source.as_deref() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue