Skip to content

Commit

Permalink
Ignore Qodana warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
PHPirates committed Dec 12, 2024
1 parent f2b7d62 commit c06ebb7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ internal object LatexWrapWithMathbbPostfixTemplate : LatexWrapWithCommandPostfix
internal object LatexWrapWithBmPostfixTemplate : LatexWrapWithCommandPostfixTemplate("bm", mathOnly = true, pack = LatexPackage.BM)
internal object LatexWrapWithMathcalPostfixTemplate : LatexWrapWithCommandPostfixTemplate("mathcal", name = "cal", mathOnly = true)

// Not actually a postfix template, just a base class
@Suppress("PostfixTemplateDescriptionNotFound")
internal open class LatexWrapWithCommandPostfixTemplate(commandName: String, name: String = commandName, mathOnly: Boolean = false, textOnly: Boolean = false, pack: LatexPackage? = null) : ConstantStringBasedPostfixTemplate(
name,
"\\$commandName{expr}",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import com.intellij.psi.PsiElement
import nl.hannahsten.texifyidea.editor.postfix.LatexPostFixTemplateProvider
import nl.hannahsten.texifyidea.editor.postfix.LatexPostfixExpressionSelector

@Suppress("PostfixTemplateDescriptionNotFound")
class LatexEditablePostfixTemplate(templateId: String, templateName: String, template: TemplateImpl, conditions: Set<LatexPostfixTemplateExpressionCondition>, provider: LatexPostFixTemplateProvider) :
EditablePostfixTemplateWithMultipleExpressions<LatexPostfixTemplateExpressionCondition>(templateId, templateName, template, "", conditions, true, provider) {

Expand Down
3 changes: 2 additions & 1 deletion src/nl/hannahsten/texifyidea/gutter/LatexCompileGutter.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package nl.hannahsten.texifyidea.gutter
import com.intellij.execution.lineMarker.ExecutorAction
import com.intellij.execution.lineMarker.RunLineMarkerContributor
import com.intellij.openapi.actionSystem.ActionManager
import com.intellij.openapi.actionSystem.IdeActions
import com.intellij.psi.PsiElement
import nl.hannahsten.texifyidea.TexifyIcons
import nl.hannahsten.texifyidea.psi.LatexBeginCommand
Expand All @@ -29,7 +30,7 @@ class LatexCompileGutter : RunLineMarkerContributor() {

// Lookup actions.
val actionManager = ActionManager.getInstance()
val editConfigs = actionManager.getAction("editRunConfigurations")
val editConfigs = actionManager.getAction(IdeActions.ACTION_EDIT_RUN_CONFIGURATIONS)
val actions = ExecutorAction.getActions(0)

// Create icon.
Expand Down

0 comments on commit c06ebb7

Please sign in to comment.