Skip to content

Commit 0a0c7b3

Browse files
committed
Build: get rid of internal API usages
1 parent 4b63768 commit 0a0c7b3

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

build.gradle.kts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import org.jetbrains.intellij.platform.gradle.TestFrameworkType
22
import org.jetbrains.intellij.platform.gradle.tasks.PrepareSandboxTask
3+
import org.jetbrains.intellij.platform.gradle.tasks.VerifyPluginTask
34
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
45
import java.security.MessageDigest
56
import java.util.zip.ZipFile
@@ -99,6 +100,7 @@ intellijPlatform {
99100
"-mute", "ForbiddenPluginIdPrefix",
100101
"-mute", "TemplateWordInPluginId"
101102
)
103+
failureLevel.add(VerifyPluginTask.FailureLevel.INTERNAL_API_USAGES)
102104
}
103105
}
104106

src/main/kotlin/com/intellij/plugin/powershell/ide/debugger/PowerShellDebuggerVariableValue.kt

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
package com.intellij.plugin.powershell.ide.debugger
22

3+
import com.intellij.icons.AllIcons
34
import com.intellij.openapi.diagnostic.logger
4-
import com.intellij.ui.IconManager
5-
import com.intellij.ui.PlatformIcons
65
import com.intellij.util.io.await
76
import com.intellij.xdebugger.XDebugSession
87
import com.intellij.xdebugger.XExpression
@@ -13,7 +12,6 @@ import org.eclipse.lsp4j.debug.SetVariableArguments
1312
import org.eclipse.lsp4j.debug.Variable
1413
import org.eclipse.lsp4j.debug.VariablesArguments
1514
import org.eclipse.lsp4j.debug.services.IDebugProtocolServer
16-
import javax.swing.Icon
1715

1816
class PowerShellDebuggerVariableValue(val variable: Variable, val parentReference: Int?,
1917
val server: IDebugProtocolServer,
@@ -34,8 +32,7 @@ class PowerShellDebuggerVariableValue(val variable: Variable, val parentReferenc
3432
}
3533

3634
override fun computePresentation(node: XValueNode, place: XValuePlace) {
37-
val icon: Icon = IconManager.getInstance().getPlatformIcon(PlatformIcons.Variable)
38-
node.setPresentation(icon, variable.type, variable.value, variable.variablesReference != 0)
35+
node.setPresentation(AllIcons.Nodes.Variable, variable.type, variable.value, variable.variablesReference != 0)
3936
}
4037

4138
override fun computeChildren(node: XCompositeNode) {

0 commit comments

Comments
 (0)