Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
arshad-yaseen committed Sep 23, 2024
1 parent d31e922 commit f27543c
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/ui/src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,19 @@ export default function Home() {
endpoint: '/api/complete',
language: 'javascript',
maxContextLines: 60,
trigger: 'onDemand',
});

monaco.editor.addEditorAction({
id: 'monacopilot.triggerCompletion',
label: 'Complete Code',
contextMenuGroupId: 'navigation',
keybindings: [
monaco.KeyMod.CtrlCmd | monaco.KeyMod.Shift | monaco.KeyCode.Space,
],
run: () => {
completion.trigger();
},
});

return () => {
Expand Down

0 comments on commit f27543c

Please sign in to comment.