Skip to content

Conversation

@Yicong-Huang
Copy link
Contributor

@Yicong-Huang Yicong-Huang commented Oct 16, 2024

After #2936, the code editor would conduct a WebSocket request before initializing the editor itself to testify if the language server is available. This adds a significant delay during the initialization of the editor itself. As the language client is an addon, it should be separately started without affecting the main editor.

This PR changes the logic to ignore the WebSocket error from the editor wrapper. If a language client connection fails, the main editor is still initialized and functioning properly.

This PR also cleans out some redundant code.

Copy link
Contributor

@aglinxinyuan aglinxinyuan left a comment

Choose a reason for hiding this comment

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

LGTM!

@Yicong-Huang Yicong-Huang merged commit d8af4c1 into master Oct 16, 2024
@Yicong-Huang Yicong-Huang deleted the yicong-refactor-code-editor branch October 16, 2024 23:02
PurelyBlank pushed a commit that referenced this pull request Dec 4, 2024
@Yicong-Huang Yicong-Huang removed the bug label Oct 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants