The goal of this PR is to reduce the number of abstractions and unnecessary files, and to provide optimal compatibility with Volar v2 Hybrid Mode.
Changes
No longer re-expose ts module. Other service plugins should ask the ts module to be passed in as a parameter if necessary
The create function now returns multiple ServicePlugins. If need to use a ServicePlugin alone to avoid the language server registering unnecessary trigger characters when using Hybrid Mode, you need to use the create function of the following entry file:
The goal of this PR is to reduce the number of abstractions and unnecessary files, and to provide optimal compatibility with Volar v2 Hybrid Mode.
Changes
volar-service-typescript/lib/plugins/directiveComment
volar-service-typescript/lib/plugins/docCommentTemplate
volar-service-typescript/lib/plugins/semantic
volar-service-typescript/lib/plugins/syntactic
volar-service-typescript/semantic
rather than maintained in separate files