Skip to content

Support vue hybrid mode #265

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 2 commits into
base: master
Choose a base branch
from
Open

Support vue hybrid mode #265

wants to merge 2 commits into from

Conversation

predragnikolic
Copy link
Member

Follow up PR for LSP-vue.

Comment on lines +36 to +44
@classmethod
def on_pre_start(
cls,
window: sublime.Window,
initiating_view: sublime.View,
workspace_folders: list[WorkspaceFolder],
configuration: ClientConfig,
) -> str | None:
cls._support_vue_hybrid_mode(configuration)
Copy link
Member

@rchl rchl Aug 5, 2025

Choose a reason for hiding this comment

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

Problems:

  • This will not trigger until one opens a supported file type (ts/js/..). So none of this logic will run when just opening a *.vue file.
  • This changes global LSP-typescript settings so the vue plugin will be enabled for every project/file once some *.vue file is opened. Doesn't seem ideal. I wouldn't trust the vue plugin enough to enable it at all times, for all projects.

Copy link

@niksy niksy Aug 6, 2025

Choose a reason for hiding this comment

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

This will not trigger until one opens a supported file type (ts/js/..). So none of this logic will run when just opening a *.vue file.

Is the simple solution to manually add text.html.vue to LSP-typescript selector setting? Maybe this could be mentioned in installation instructions as prerequisite step.

Copy link

Choose a reason for hiding this comment

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

Maybe we should avoid all the magic if we can: sublimelsp/LSP-vue#136 (comment)

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.

3 participants