summaryrefslogtreecommitdiff
path: root/cli/lsp/diagnostics.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2024-04-14 20:07:04 -0400
committerGitHub <noreply@github.com>2024-04-15 00:07:04 +0000
commit1835b4f06189560eb17a103b8db05e011a7cd799 (patch)
treed4cdda015ca39e861d1a1fdc9fbb843ec02c35a2 /cli/lsp/diagnostics.rs
parent8f1a92f3c39a4db7582824944d2c9319a11efcc0 (diff)
fix(lsp): ensure project version is incremented when config changes (#23366)
I'm running into a node resolution bug in the lsp only and while tracking it down I noticed this one. Fixed by moving the project version out of `Documents`.
Diffstat (limited to 'cli/lsp/diagnostics.rs')
-rw-r--r--cli/lsp/diagnostics.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/cli/lsp/diagnostics.rs b/cli/lsp/diagnostics.rs
index 71c34bdbe..431cddeb6 100644
--- a/cli/lsp/diagnostics.rs
+++ b/cli/lsp/diagnostics.rs
@@ -1628,6 +1628,7 @@ mod tests {
config.tree.inject_config_file(config_file).await;
}
StateSnapshot {
+ project_version: 0,
documents,
assets: Default::default(),
cache_metadata: cache::CacheMetadata::new(Arc::new(