Skip to content

feat: workspace/didChangeConfiguration support#1

Open
Serial-ATA wants to merge 3 commits into
stjude-rust-labs:mainfrom
Serial-ATA:config-reload
Open

feat: workspace/didChangeConfiguration support#1
Serial-ATA wants to merge 3 commits into
stjude-rust-labs:mainfrom
Serial-ATA:config-reload

Conversation

@Serial-ATA
Copy link
Copy Markdown

No description provided.

Comment thread README.md Outdated
Comment thread src/lib.rs Outdated
Comment thread src/lib.rs Outdated
Comment thread src/lib.rs Outdated
})));
}

Ok(None)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If a user removes their server settings, returning None here means Sprocket won't receive an update to clear the old configuration. It might be worth returning an empty object as the default so stale settings don't linger.

Suggested change
Ok(None)
Ok(Some(serde_json::json!({ "sprocket.server": {} })))

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed it to return the default server config. An empty config also wouldn't update anything since the server applies config changes as patches

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants