Browse Source

Regex fix in completion provider sample

Martin Aeschlimann 9 years ago
parent
commit
e1052ec3f6

+ 1 - 2
website/playground/playground.mdoc

@@ -1040,8 +1040,7 @@ monaco.languages.registerCompletionItemProvider('json', {
     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});
-        var match = textUntilPosition.match(/"dependencies"\s*:\s*{\s*("[^"]*"\s*:\s*"[^"]*"\s*,\s*)*("[^"]"]*)?$/);
-        if (match) {
+		var match = textUntilPosition.match(/"dependencies"\s*:\s*{\s*("[^"]*"\s*:\s*"[^"]*"\s*,\s*)*("[^"]*)?$/);        if (match) {
             return createDependencyProposals();
         }
         return [];

File diff suppressed because it is too large
+ 0 - 0
website/playground/samples/extending-language-services-completion-provider-example.js


Some files were not shown because too many files changed in this diff