We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
snapshot.query()
1 parent cd67988 commit e76575aCopy full SHA for e76575a
crates/ty_server/src/server/api/diagnostics.rs
@@ -107,9 +107,7 @@ pub(super) fn compute_diagnostics(
107
108
let diagnostics = db.check_file(file);
109
110
- let query = snapshot.query();
111
-
112
- if let Some(notebook) = query.as_notebook() {
+ if let Some(notebook) = snapshot.query().as_notebook() {
113
let mut cell_diagnostics: FxHashMap<Url, Vec<Diagnostic>> = FxHashMap::default();
114
115
// Populates all relevant URLs with an empty diagnostic list. This ensures that documents
0 commit comments