Skip to content

feat: add languages to ts servers plugin settings #37

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

Merged
merged 1 commit into from
Jun 8, 2025

Conversation

sacki5
Copy link
Contributor

@sacki5 sacki5 commented May 7, 2025

This will make it possible to use the Vue plugin in hybrid mode which is the recommended way since v2 of vue language tools.

The hybrid mode setting will be deprecated in v3 of vue language tools. So current Vue extension will break when v3 becomes stable.

This pr will make it easier to enable hybrid mode but will still need some additional settings.

// Settings to enable hybrid mode. (after this pr)
{
  "languages": {
    "Vue.js": {
      "language_servers": [
        "vtsls",
        "..."
      ]
    }
  },
  "lsp": {
    "vue-language-server": {
      "initialization_options": {
        "vue": {
          "hybridMode": true
        }
      }
    },
  },
}

Would be neat that in the future to be able to have the hybrid mode as default and work out of the box after you install the Vue plugin.

@cla-bot cla-bot bot added the cla-signed label May 7, 2025
@smitbarmase smitbarmase merged commit 5e1b134 into zed-extensions:main Jun 8, 2025
1 check passed
@smitbarmase
Copy link
Contributor

Thank you!

smitbarmase added a commit that referenced this pull request Jun 8, 2025
Includes:
- #37
@carlcs
Copy link

carlcs commented Jun 9, 2025

Thanks for the PR. Testing the hybrid mode, it seems organize imports action is now working in Vue files, but for some reason I can’t get auto imports to get resolved/show up any longer?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants