Skip to content

Commit 62119e3

Browse files
committed
fix: Stop processing resource changes when dispatcher was shutdown
1 parent 8747384 commit 62119e3

3 files changed

Lines changed: 6 additions & 2 deletions

File tree

org.eclipse.lsp4e/META-INF/MANIFEST.MF

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Manifest-Version: 1.0
22
Bundle-ManifestVersion: 2
33
Bundle-Name: Language Server Protocol client for Eclipse IDE (Incubation)
44
Bundle-SymbolicName: org.eclipse.lsp4e;singleton:=true
5-
Bundle-Version: 0.19.3.qualifier
5+
Bundle-Version: 0.19.4.qualifier
66
Bundle-RequiredExecutionEnvironment: JavaSE-21
77
Require-Bundle: org.eclipse.core.runtime;bundle-version="3.12.0",
88
org.eclipse.equinox.common;bundle-version="3.8.0",

org.eclipse.lsp4e/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
</parent>
1111
<artifactId>org.eclipse.lsp4e</artifactId>
1212
<packaging>eclipse-plugin</packaging>
13-
<version>0.19.3-SNAPSHOT</version>
13+
<version>0.19.4-SNAPSHOT</version>
1414

1515
<build>
1616
<plugins>

org.eclipse.lsp4e/src/org/eclipse/lsp4e/LanguageServerWrapper.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1524,6 +1524,10 @@ public void resourceChanged(final IResourceChangeEvent event) {
15241524
if (currentServer == null)
15251525
return;
15261526

1527+
if (dispatcher.isShutdown()) {
1528+
return;
1529+
}
1530+
15271531
// Offload potentially expensive glob matching and notification dispatching
15281532
// to the language-server dispatcher thread to avoid blocking the workspace
15291533
// resource change thread.

0 commit comments

Comments
 (0)