Skip to content

Commit

Permalink
fix: autompletion not working in examples (#227)
Browse files Browse the repository at this point in the history
  • Loading branch information
SyMind committed Nov 2, 2023
1 parent 3eb7c53 commit 6ebf897
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
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
7 changes: 6 additions & 1 deletion examples/monaco-editor-webpack-plugin/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,12 @@ monaco.editor.createModel(

const editor = monaco.editor.create(document.getElementById('editor'), {
automaticLayout: true,
model: prettierc
model: prettierc,
quickSuggestions: {
other: true,
comments: false,
strings: true
}
})

const select = document.getElementById('model')
Expand Down
7 changes: 6 additions & 1 deletion examples/vite-example/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,12 @@ monaco.editor.createModel(

const editor = monaco.editor.create(document.getElementById('editor'), {
automaticLayout: true,
model: prettierc
model: prettierc,
quickSuggestions: {
other: true,
comments: false,
strings: true
}
})

const select = document.getElementById('model')
Expand Down

0 comments on commit 6ebf897

Please sign in to comment.