typescript-language-server 4.3.0 → 4.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,6 +1,13 @@
1
1
  # Changelog
2
2
  All notable changes to this project will be documented in this file.
3
3
 
4
+ ## [4.3.1](https://github.com/typescript-language-server/typescript-language-server/compare/v4.3.0...v4.3.1) (2024-01-12)
5
+
6
+
7
+ ### Bug Fixes
8
+
9
+ * out of date diagnostics after closing and re-opening a file ([#851](https://github.com/typescript-language-server/typescript-language-server/issues/851)) ([f395cd6](https://github.com/typescript-language-server/typescript-language-server/commit/f395cd67fc0fefb06e301eecb3b0af492c6672da))
10
+
4
11
  ## [4.3.0](https://github.com/typescript-language-server/typescript-language-server/compare/v4.2.0...v4.3.0) (2024-01-08)
5
12
 
6
13
 
package/lib/cli.mjs CHANGED
@@ -19574,8 +19574,8 @@ class FileDiagnostics {
19574
19574
  return result;
19575
19575
  }
19576
19576
  onDidClose() {
19577
- this.publishDiagnostics();
19578
19577
  this.diagnosticsPerKind.clear();
19578
+ this.publishDiagnostics();
19579
19579
  this.closed = true;
19580
19580
  }
19581
19581
  async waitForDiagnosticsForTesting() {
@@ -19623,6 +19623,7 @@ class DiagnosticEventQueue {
19623
19623
  const uri = this.client.toResource(file).toString();
19624
19624
  const diagnosticsForFile = this.diagnostics.get(uri);
19625
19625
  diagnosticsForFile?.onDidClose();
19626
+ this.diagnostics.delete(uri);
19626
19627
  }
19627
19628
  async waitForDiagnosticsForTesting(file) {
19628
19629
  const uri = this.client.toResource(file).toString();