Skip to content

Support Multiple Workspace Folders for TypeScript/JavaScript#133

Closed
maks-ivanov wants to merge 1 commit intomainfrom
cosine/feature/multiple-workspace-folders-al7nyd
Closed

Support Multiple Workspace Folders for TypeScript/JavaScript#133
maks-ivanov wants to merge 1 commit intomainfrom
cosine/feature/multiple-workspace-folders-al7nyd

Conversation

@maks-ivanov
Copy link
Contributor

This pull request addresses issue #21 by enabling support for multiple workspace folders for TypeScript and JavaScript in the LSP manager. The changes include:

  1. New LspClientKey Enum: Introduced a new enum LspClientKey to differentiate between clients per language and clients per workspace folder.
  2. Client Management: Updated the Manager struct to manage LSP clients using the new key, allowing multiple TypeScript/JavaScript servers to run concurrently, one for each workspace folder.
  3. Workspace Folder Detection: Implemented logic to detect and initialize LSP clients for each workspace folder found in the project.
  4. Client Retrieval: Modified the get_client method to retrieve the appropriate client based on the workspace folder for TypeScript/JavaScript.

These changes ensure that the TypeScript/JavaScript language server can operate independently for each workspace folder, aligning with the requirements outlined in the issue.


This pull request was co-created with Cosine Genie

Original Task: lsproxy/ps7dkfc535ze
Author: Maksim Ivanov

…orkspace folders

Co-authored-by: Genie <genie@cosine.sh>
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.

1 participant