Skip to content

Commit b3078c4

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

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

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)