Skip to content

Commit

Permalink
Sending of code field
Browse files Browse the repository at this point in the history
  • Loading branch information
ppiliaev committed Dec 29, 2022
1 parent f8f1845 commit 16759e8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@aws/mynah-ui",
"displayName": "AWS Mynah UI",
"version": "1.1.1",
"version": "1.1.2",
"description": "AWS Tookit VSCode and Intellij IDE Extension Mynah UI",
"publisher": "Amazon Web Services",
"license": "Apache License 2.0",
Expand Down
2 changes: 2 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ export class MynahUI {
if (this.props.onSearch !== undefined) {
this.props.onSearch({
query: data.query,
code: MynahUIDataStore.getInstance().getValue('code'),
codeSelection: MynahUIDataStore.getInstance().getValue('codeSelection'),
matchPolicy: MynahUIDataStore.getInstance().getValue('matchPolicy'),
codeQuery: MynahUIDataStore.getInstance().getValue('codeQuery'),
Expand Down Expand Up @@ -211,6 +212,7 @@ export class MynahUI {
if (this.props.onSearch !== undefined) {
this.props.onSearch({
query: MynahUIDataStore.getInstance().getValue('query'),
code: MynahUIDataStore.getInstance().getValue('code'),
codeSelection: MynahUIDataStore.getInstance().getValue('codeSelection'),
matchPolicy: currentMatchPolicy,
codeQuery: MynahUIDataStore.getInstance().getValue('codeQuery'),
Expand Down

0 comments on commit 16759e8

Please sign in to comment.