瀏覽代碼

Regex fix in completion provider sample

Martin Aeschlimann 9 年之前
父節點
當前提交
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 [];

文件差異過大導致無法顯示
+ 0 - 0
website/playground/samples/extending-language-services-completion-provider-example.js


部分文件因文件數量過多而無法顯示