feat(code-editor): add locale setting to language server#2039
feat(code-editor): add locale setting to language server#2039go-wyvern wants to merge 2 commits intogoplus:devfrom
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR adds locale setting support to the language server in the code editor component. The changes enable dynamic locale configuration by integrating the i18n locale value with the language server protocol initialization.
- Adds a
setLocalemethod to the CodeEditor class that initializes the LSP client with locale settings - Implements a watcher to sync locale changes with the language server in real-time
- Exposes an
initializemethod in the SpxLSPClient for LSP initialization requests
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| CodeEditorUI.vue | Adds locale synchronization watchers to update language server when locale changes |
| lsp/index.ts | Exposes the LSP initialize method for locale configuration |
| code-editor.ts | Implements setLocale method to initialize LSP client with locale parameters |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
|
This PR has been deployed to the preview environment. You can explore it using the preview URL. Warning Please note that deployments in the preview environment are temporary and will be automatically cleaned up after a certain period. Make sure to explore it before it is removed. For any questions, contact the XBuilder team. |
No description provided.