Skip to content

Commit

Permalink
Fix auto language used for code actions
Browse files Browse the repository at this point in the history
  • Loading branch information
valentjn committed Oct 14, 2021
1 parent 2e1227e commit b42b7ee
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ class CodeActionGenerator(

val annotatedTextFragment: AnnotatedTextFragment = annotatedTextFragments[fragmentIndex]
val codeFragment: CodeFragment = annotatedTextFragment.codeFragment
val language: String = codeFragment.settings.languageShortCode
val language: String = codeFragment.languageShortCode
val offset: Int = codeFragment.fromPos
val word: String = annotatedTextFragment.getSubstringOfPlainText(
match.fromPos - offset, match.toPos - offset)
Expand Down Expand Up @@ -229,7 +229,7 @@ class CodeActionGenerator(

val annotatedTextFragment: AnnotatedTextFragment = annotatedTextFragments[fragmentIndex]
val codeFragment: CodeFragment = annotatedTextFragment.codeFragment
val language: String = codeFragment.settings.languageShortCode
val language: String = codeFragment.languageShortCode

val sentencePatternStringBuilder = StringBuilder()
var lastEnd = 0
Expand Down Expand Up @@ -299,7 +299,7 @@ class CodeActionGenerator(
}

val annotatedTextFragment: AnnotatedTextFragment = annotatedTextFragments[fragmentIndex]
val language: String = annotatedTextFragment.codeFragment.settings.languageShortCode
val language: String = annotatedTextFragment.codeFragment.languageShortCode
addToMap(language, ruleId, ruleIdsMap, ruleIdsJsonObject)
}

Expand Down

0 comments on commit b42b7ee

Please sign in to comment.