Skip to content

Commit

Permalink
Build: get rid of internal API usages
Browse files Browse the repository at this point in the history
  • Loading branch information
ForNeVeR committed Oct 20, 2024
1 parent 4b63768 commit 0a0c7b3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 2 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import org.jetbrains.intellij.platform.gradle.TestFrameworkType
import org.jetbrains.intellij.platform.gradle.tasks.PrepareSandboxTask
import org.jetbrains.intellij.platform.gradle.tasks.VerifyPluginTask
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import java.security.MessageDigest
import java.util.zip.ZipFile
Expand Down Expand Up @@ -99,6 +100,7 @@ intellijPlatform {
"-mute", "ForbiddenPluginIdPrefix",
"-mute", "TemplateWordInPluginId"
)
failureLevel.add(VerifyPluginTask.FailureLevel.INTERNAL_API_USAGES)
}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
package com.intellij.plugin.powershell.ide.debugger

import com.intellij.icons.AllIcons
import com.intellij.openapi.diagnostic.logger
import com.intellij.ui.IconManager
import com.intellij.ui.PlatformIcons
import com.intellij.util.io.await
import com.intellij.xdebugger.XDebugSession
import com.intellij.xdebugger.XExpression
Expand All @@ -13,7 +12,6 @@ import org.eclipse.lsp4j.debug.SetVariableArguments
import org.eclipse.lsp4j.debug.Variable
import org.eclipse.lsp4j.debug.VariablesArguments
import org.eclipse.lsp4j.debug.services.IDebugProtocolServer
import javax.swing.Icon

class PowerShellDebuggerVariableValue(val variable: Variable, val parentReference: Int?,
val server: IDebugProtocolServer,
Expand All @@ -34,8 +32,7 @@ class PowerShellDebuggerVariableValue(val variable: Variable, val parentReferenc
}

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

override fun computeChildren(node: XCompositeNode) {
Expand Down

0 comments on commit 0a0c7b3

Please sign in to comment.