mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 18:32:56 +01:00
JSON completion provider doesn't work without triggering characters.
This commit is contained in:
parent
a7b44c7331
commit
d5f9985edb
2 changed files with 2 additions and 0 deletions
|
|
@ -63,6 +63,7 @@ function createDependencyProposals() {
|
|||
|
||||
|
||||
monaco.languages.registerCompletionItemProvider('json', {
|
||||
triggerCharacters: ['\"'],
|
||||
provideCompletionItems: function(model, position) {
|
||||
// find out if we are completing a property in the 'dependencies' object.
|
||||
var textUntilPosition = model.getValueInRange({startLineNumber: 1, startColumn: 1, endLineNumber: position.lineNumber, endColumn: position.column});
|
||||
|
|
|
|||
|
|
@ -25,6 +25,7 @@ function createDependencyProposals() {
|
|||
|
||||
|
||||
monaco.languages.registerCompletionItemProvider('json', {
|
||||
triggerCharacters: ['\"'],
|
||||
provideCompletionItems: function(model, position) {
|
||||
// find out if we are completing a property in the 'dependencies' object.
|
||||
var textUntilPosition = model.getValueInRange({startLineNumber: 1, startColumn: 1, endLineNumber: position.lineNumber, endColumn: position.column});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue