Skip to content

Commit

Permalink
#462 | Do not inject FlexibleSearch language into strings starting …
Browse files Browse the repository at this point in the history
…with `#%` in `ImpEx` files
  • Loading branch information
mlytvyn authored May 28, 2023
1 parent fff4b67 commit 86ffd1f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
- `ImpEx` alignment strategy is not file specific and fails in multithreading environment [#454](https://github.com/epam/sap-commerce-intellij-idea-plugin/pull/454)
- `ImpEx` inline type reference is not correctly validated [#461](https://github.com/epam/sap-commerce-intellij-idea-plugin/pull/461)
- Inject `FlexibleSearch` language only into `query` column of the `SearchRestriction` in `ImpEx` files [#441](https://github.com/epam/sap-commerce-intellij-idea-plugin/pull/441)
- Do not inject `FlexibleSearch` language into strings starting with `#%` in `ImpEx` files [#462](https://github.com/epam/sap-commerce-intellij-idea-plugin/pull/462)

### Deprecated
- `TreeSpeedSearch` -> `TreeUIHelper` [#415](https://github.com/epam/sap-commerce-intellij-idea-plugin/pull/415)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ class FlexibleSearchToImpexInjectorProvider : FlexibleSearchInjectorProvider() {

val expression = StringUtil.unquoteString(host.getText()).lowercase(Locale.getDefault())

// do not inject executable statement
if (expression.startsWith("#%")) return

val valueLine = host.valueGroup
?.valueLine

Expand Down

0 comments on commit 86ffd1f

Please sign in to comment.