Skip to content

Commit

Permalink
include single line editor closing pairs
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Sebastian <paulstn@amazon.com>
  • Loading branch information
paulstn committed Jul 23, 2024
1 parent 9b2b4f1 commit 3e44d33
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export interface QuerySuggestionGetFnArgs {
selectionEnd: number;
signal?: AbortSignal;
boolFilter?: any;
position?: monaco.Position;
position: monaco.Position;
connectionService?: any; // will need to add type when ConnectionService is properly exposed from queryEnhancements
}

Expand Down
13 changes: 13 additions & 0 deletions src/plugins/data/public/ui/query_editor/query_editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -501,6 +501,19 @@ export default class QueryEditorUI extends Component<Props, State> {
suggestionProvider={{
provideCompletionItems: this.provideCompletionItems,
}}
languageConfiguration={{
language: LANGUAGE_ID_KUERY,
autoClosingPairs: [
{
open: '(',
close: ')',
},
{
open: '"',
close: '"',
},
],
}}
/>
</div>
</EuiFlexItem>
Expand Down

0 comments on commit 3e44d33

Please sign in to comment.