1
0
Эх сурвалжийг харах

add line break in example

MSeifert04 7 жил өмнө
parent
commit
a9dbe7bcaf

+ 2 - 1
website/playground/new-samples/extending-language-services/completion-provider-example/sample.js

@@ -28,7 +28,8 @@ 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 [];