Skip to content

Commit f0f22fa

Browse files
committed
fix: don't allow workspace/didChangeConfiguration during init
1 parent 1558355 commit f0f22fa

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

crates/emmylua_ls/src/server/message_processor.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,7 @@ impl ServerMessageProcessor {
3030
Message::Response(_) => true,
3131
// Allow specific notifications
3232
Message::Notification(notify) => {
33-
matches!(
34-
notify.method.as_str(),
35-
"workspace/didChangeConfiguration" | "$/cancelRequest" | "initialized"
36-
)
33+
matches!(notify.method.as_str(), "$/cancelRequest" | "initialized")
3734
}
3835
// Don't process other requests during initialization
3936
Message::Request(_) => false,

0 commit comments

Comments
 (0)