Skip to content

Conversation

go-wyvern
Copy link
Member

No description provided.

@Copilot Copilot AI review requested due to automatic review settings August 27, 2025 09:55
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

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 setLocale method 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 initialize method 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.

@qiniu-ci
Copy link

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.

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