Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Re-introduce volar.config.js and vue.server.configFilePath setting #4709

@Ilanaya

Description

@Ilanaya

What problem does this feature solve?

  • Return users the ability to write and use custom language service plugins
  • Restore compatibility with volarjs/services (Related issue)

What does the proposed solution look like?

Real world case

We have a typescript plugin extension which adds lots of useful but opinionated code actions/suggestions/completions etc.

Before v2 we were able to use volar.config.js to provide support for both .ts and .vue files. So, what we need is to be able to add a way to decorate vue language service methods:

How it was done before:

  1. Get what we need to create plugin from context
  2. Init plugin and save original LS
  3. Create our 'proxy' plugin
  4. Mutate language service to use our proxy

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions