We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1fbb476 commit fb8969dCopy full SHA for fb8969d
src/containers/Tenant/Query/QueryEditor/YqlEditor.tsx
@@ -93,8 +93,13 @@ export function YqlEditor({
93
window.ydbEditor = editor;
94
const keybindings = getKeyBindings(monaco);
95
monaco.editor.registerCommand('insertSnippetToEditor', (_asessor, input: string) => {
96
- changeUserInput({input});
97
- dispatch(setIsDirty(false));
+ //suggestController is not properly typed yet in monaco-editor package
+ const contribution = editor.getContribution<any>('snippetController2');
98
+ if (contribution) {
99
+ editor.focus();
100
+ editor.setValue('');
101
+ contribution.insert(input);
102
+ }
103
});
104
105
if (window.api.codeAssist) {
0 commit comments