Skip to content

Commit

Permalink
Cleanup: use light services
Browse files Browse the repository at this point in the history
^IDEA-254577

GitOrigin-RevId: 01afb3f2166f8713cd4599f37d43ecf7f4d2944c
  • Loading branch information
jqyp authored and intellij-monorepo-bot committed Jan 23, 2024
1 parent 887e334 commit dee0dce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@ package com.intellij.styledComponents

import com.intellij.lang.javascript.psi.JSExpression
import com.intellij.openapi.components.PersistentStateComponent
import com.intellij.openapi.components.Service
import com.intellij.openapi.components.State
import com.intellij.openapi.project.Project
import com.intellij.patterns.PlatformPatterns

@Service(Service.Level.PROJECT)
@State(name = "StyledComponentsInjections")
class CustomInjectionsConfiguration : PersistentStateComponent<CustomInjectionsConfiguration.InjectionsState> {
private var myState: InjectionsState? = null
Expand Down
1 change: 0 additions & 1 deletion src/main/resources/META-INF/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
<extensions defaultExtensionNs="com.intellij">
<dependencySupport kind="javascript" coordinate="npm:styled-components" displayName="Styled Components"/>
<multiHostInjector implementation="com.intellij.styledComponents.StyledComponentsInjector"/>
<projectService serviceImplementation="com.intellij.styledComponents.CustomInjectionsConfiguration"/>
<projectConfigurable id="styled-components"
parentId="Settings.JavaScript"
instance="com.intellij.styledComponents.StyledComponentsConfigurable"
Expand Down

0 comments on commit dee0dce

Please sign in to comment.