Skip to content

Commit

Permalink
(#448 | ImpEx: Inject space after mode keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
mlytvyn authored May 26, 2023
1 parent c3acf67 commit b475878
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
- Inject FlexibleSearch language into suitable macro declaration values [#433](https://github.com/epam/sap-commerce-intellij-idea-plugin/pull/433)
- Inject FlexibleSearch language into `SearchRestriction :: query` respecting `restrictedType` [#434](https://github.com/epam/sap-commerce-intellij-idea-plugin/pull/434)
- Inject complete `User Rights` block on code completion for `$START_USERRIGHTS` [#446](https://github.com/epam/sap-commerce-intellij-idea-plugin/pull/446)
- Inject space after mode keyword [#448](https://github.com/epam/sap-commerce-intellij-idea-plugin/pull/448)
- Inspection rule: validate that `lang` modifier value is present in the `lang.packs` [#417](https://github.com/epam/sap-commerce-intellij-idea-plugin/pull/417)
- Inspection rule: validate that `lang` modifier is used only for localized attributes [#418](https://github.com/epam/sap-commerce-intellij-idea-plugin/pull/418)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ import com.intellij.openapi.application.ApplicationManager
import com.intellij.util.ProcessingContext

private val keywords = mutableListOf(
"INSERT",
"UPDATE",
"INSERT_UPDATE",
"REMOVE"
"INSERT ",
"UPDATE ",
"INSERT_UPDATE ",
"REMOVE "
)

class ImpexKeywordModeCompletionProvider : CompletionProvider<CompletionParameters>() {
Expand All @@ -39,6 +39,7 @@ class ImpexKeywordModeCompletionProvider : CompletionProvider<CompletionParamete
keywords
.map {
LookupElementBuilder.create(it)
.withPresentableText(it.trim())
.withIcon(AllIcons.Nodes.Function)
}
.forEach { result.addElement(it) }
Expand Down

0 comments on commit b475878

Please sign in to comment.