Skip to content

refactor(language-service): stricter context isolation for Service interface#100

Merged
johnsoncodehk merged 2 commits intomasterfrom
service-plugin-context
Dec 4, 2023
Merged

refactor(language-service): stricter context isolation for Service interface#100
johnsoncodehk merged 2 commits intomasterfrom
service-plugin-context

Conversation

@johnsoncodehk
Copy link
Member

@johnsoncodehk johnsoncodehk commented Dec 4, 2023

Changes

  • Service interface has been renamed to ServicePlugin
  • Trigger characters are no longer exposed when creating a service plugin instance, but are exposed in advance as properties of ServicePluginFactory. Therefore the language server no longer needs to create fake service plugin instances in order to collect trigger characters.
  • Services are no longer coupled with SharedModules, and the modules that the service depends on should be exposed through the parameters of the create function

@johnsoncodehk johnsoncodehk merged commit 06c778d into master Dec 4, 2023
@johnsoncodehk johnsoncodehk deleted the service-plugin-context branch December 4, 2023 08:38
@johnsoncodehk johnsoncodehk mentioned this pull request Dec 4, 2023
42 tasks
johnsoncodehk added a commit to volarjs/services that referenced this pull request Dec 4, 2023
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