JSON completion provider doesn't work without triggering characters.

pull/582/head
rebornix 2017-07-13 16:27:01 -07:00
parent a7b44c7331
commit d5f9985edb
2 changed files with 2 additions and 0 deletions

View File

@ -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});

View File

@ -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});