Skip to content
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

Multiple server completion support #480

Closed
wants to merge 7 commits into from
Closed

Multiple server completion support #480

wants to merge 7 commits into from

Conversation

DanielViberg
Copy link
Contributor

@DanielViberg DanielViberg commented Mar 16, 2024

  • Working mult server compl
  • Removed time measure prop
  • Tweaked LspResolver to be server id dependent
  • Fixed text complete server dependent
  • Reset tests

Purpose: Volar 2 support

Note, should propbably be tested by more people before being merged to main!

Config

{
      "name": "vue-ls",
      "filetype": ["vue"],
      "path": "vue-language-server",
      "args": ["--stdio"],
      "features": {
        "definition": true,
        "rename": true
      },
      "initializationOptions": {
          "typescript": {
              "tsdk": "../node/v20.11.0/lib/node_modules/typescript/lib"
          }
      },
    },
    {
      "name": "ts-ls",
      "filetype": ["typescript", "javascript", "vue"],
      "path": "typescript-language-server",
      "args": ["--stdio"],
      "features": {
        "documentFormatting": false,
        "definition": true,
        "rename": true
      },
      "initializationOptions": {
          "plugins":[
            {
              "name": "@vue/typescript-plugin",
              "location":".../node/v20.11.0/lib/node_modules/@vue/typescript-plugin",
              "languages": ["vue"]
            }
          ]
      }
   }

Status:

  • completions
    • auto imports
  • diagnostics
  • definitions (working in some cases, but not all)
  • references

@DanielViberg
Copy link
Contributor Author

I noticed need for cleanup, will update soon.

@DanielViberg
Copy link
Contributor Author

vuejs/language-tools#3925 (comment) Volar now does not need tsserver running in parallel. Parking this pr until future need.

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