feat(language-server): add shared workspace/configuration utilities#66734
feat(language-server): add shared workspace/configuration utilities#66734kbrilla wants to merge 1 commit intoangular:mainfrom
Conversation
This commit adds infrastructure for features to request configuration from the VS Code client using the LSP workspace/configuration protocol. This is the preferred approach over CLI arguments because: 1. Configuration changes take effect immediately without restarting 2. Supports per-workspace and per-folder configuration 3. VS Code automatically merges settings from different scopes: - Default settings - User settings (global) - Workspace settings - Workspace folder settings - Language-specific settings The new utilities include: - getWorkspaceConfiguration: Request multiple config sections at once - getConfigurationSection: Convenience wrapper for single sections - flattenConfiguration: Flatten nested config to dot-notation keys This infrastructure will be used by: - Inlay hints feature (PR angular#66731) - Document symbols feature (PR angular#66690)
|
I'm going to close this one. Let's just couple it to one of the other PRs that uses it. It's a bit awkward to submit this on its own when it's not used anywhere. |
Oh ok! I actually though that's how Angular team does it - one PR per small features for easier code review and better git history.
|
Yes, though this PR doesn't really appear to be a feature (it should be marked as a refactor in the other PRs too). The separate commit is good and will make the other PRs easier to review.
You can separate it into 2 commits in the PRs |
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Description
Adds shared infrastructure for features to request configuration from the VS Code client using the LSP
workspace/configurationprotocol. This is the preferred approach over CLI arguments because:New Utilities
getWorkspaceConfigurationgetConfigurationSectionflattenConfigurationUsage Example
LSP Reference
See workspace/configuration in the LSP 3.17 specification.
Dependents
This infrastructure will be used by:
Breaking Changes
None
🤖 AI Disclosure
This PR was developed using Claude Opus 4.5 AI assistant under human orchestration and review by @kbrilla.