Skip to content

Commit

Permalink
fix: autompletion not working in demo
Browse files Browse the repository at this point in the history
  • Loading branch information
pancongcong committed Nov 1, 2023
1 parent 3eb7c53 commit 71ef467
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion examples/demo/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,12 @@ formatting: Formatting is supported too! Under the hood this is powered by
const ed = editor.create(document.getElementById('editor')!, {
automaticLayout: true,
model: editor.createModel(value, 'yaml', Uri.parse('monaco-yaml.yaml')),
theme: window.matchMedia('(prefers-color-scheme: dark)').matches ? 'vs-dark' : 'vs-light'
theme: window.matchMedia('(prefers-color-scheme: dark)').matches ? 'vs-dark' : 'vs-light',
quickSuggestions: {
other: true,
comments: false,
strings: true
}
})

const select = document.getElementById('schema-selection') as HTMLSelectElement
Expand Down

0 comments on commit 71ef467

Please sign in to comment.