Cleanup: use light services

^IDEA-254577

GitOrigin-RevId: 01afb3f2166f8713cd4599f37d43ecf7f4d2944c
This commit is contained in:
Andrey Cherkasov
2024-01-18 12:56:33 +04:00
committed by intellij-monorepo-bot
parent 33dc0b0678
commit 1a62d88764
232 changed files with 325 additions and 315 deletions

View File

@@ -32,7 +32,6 @@
<registryKey key="spellchecker.corrections.limit" defaultValue="3" description="Spellchecker corrections limit" restartRequired="false"/>
<registryKey key="spellchecker.inspection.enabled" defaultValue="true" description="Enable spellchecking inspection" restartRequired="false"/>
<projectService serviceImplementation="com.intellij.spellchecker.state.ProjectDictionaryState"/>
<statistics.projectUsagesCollector implementation="com.intellij.spellchecker.statistics.SpellcheckerConfigCollector"/>
<lookup.usageDetails implementation="com.intellij.spellchecker.statistics.SpellcheckerLookupUsageDescriptor"/>
<statistics.collectorExtension implementation="com.intellij.spellchecker.statistics.SpellcheckerLookupUsageDescriptor$SpellcheckerCompletionCollectorExtension"/>

View File

@@ -2,6 +2,7 @@
package com.intellij.spellchecker.state;
import com.intellij.openapi.components.PersistentStateComponent;
import com.intellij.openapi.components.Service;
import com.intellij.openapi.components.State;
import com.intellij.openapi.components.Storage;
import com.intellij.spellchecker.dictionary.EditableDictionary;
@@ -17,6 +18,7 @@ import java.util.HashSet;
import java.util.List;
import java.util.Set;
@Service(Service.Level.PROJECT)
@State(name = "ProjectDictionaryState", storages = @Storage(value = "dictionaries", stateSplitter = ProjectDictionarySplitter.class))
public final class ProjectDictionaryState implements PersistentStateComponent<ProjectDictionaryState> {
@Property(surroundWithTag = false)