Skip to content

Support vue hybrid mode #136

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Support vue hybrid mode #136

wants to merge 3 commits into from

Conversation

predragnikolic
Copy link
Member

@predragnikolic predragnikolic commented Feb 17, 2025

A different attempt to fix #130

#2523 tried to introduce a new API in order to address #130,
that new API would exist only for the purpose to solve hybridMode for vue and maybe we would not need it for anything else.

This PR makes the minimal changes in order to make hybrid mode work without introducing any new plugin API.
Here is the bad:

  • Some logic needs to live in LSP-typescript as well Support vue hybrid mode LSP-typescript#265
  • Each time someone changes vue.hybridMode they need to restart ST. I didn't add logic to LSP-vue to restart the LSP-typescript server. (I tried to add such logic but I wasn't successful, feel free to add if you know/can.)

Overall I like the approach. I do not consider the code to be difficult and I consider that the good overweights the bad.
If LSP-vue changes the approach in the future we can just delete this code in LSP-vue and LSP-typescript.

@predragnikolic predragnikolic requested a review from rchl February 17, 2025 13:38
@niksy
Copy link

niksy commented Aug 10, 2025

@predragnikolic it seems like there will always be some magic which could go wrong (as mentioned in comment).

Does it make sense to have some specific install command instead of phantom which will set up everything for the user in Vue and TypeScript settings, either in global settings or per-project settings?

This will all be described and mentioned in documentation.

If something changes (e.g. Node gets updated to new version), user should rerun the command to get updated options. This way we avoid any magic and leave everything to users, but I guess this shouldn’t change that much if it’s set up properly.

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.

Implement hybrid mode support
2 participants