monaco-languageclient
Advanced tools
Comparing version 0.0.1-alpha.1 to 0.0.1-alpha.2
@@ -0,4 +1,8 @@ | ||
export * from './disposable'; | ||
export * from './console-window'; | ||
export * from './languages'; | ||
export * from './workspace'; | ||
export * from './converter'; | ||
export * from './disposable'; | ||
export * from './services'; | ||
export * from 'vscode-base-languageclient/lib/base'; | ||
export * from 'vscode-base-languageclient/lib/connection'; |
@@ -10,5 +10,9 @@ "use strict"; | ||
* ------------------------------------------------------------------------------------------ */ | ||
__export(require("./disposable")); | ||
__export(require("./console-window")); | ||
__export(require("./languages")); | ||
__export(require("./workspace")); | ||
__export(require("./converter")); | ||
__export(require("./disposable")); | ||
__export(require("./services")); | ||
__export(require("vscode-base-languageclient/lib/base")); | ||
__export(require("vscode-base-languageclient/lib/connection")); |
@@ -13,2 +13,3 @@ import { Languages, DiagnosticCollection, CompletionItemProvider, DocumentIdentifier, HoverProvider, SignatureHelpProvider, DefinitionProvider, ReferenceProvider, DocumentHighlightProvider, DocumentSymbolProvider, CodeActionProvider, CodeLensProvider, DocumentFormattingEditProvider, DocumentRangeFormattingEditProvider, OnTypeFormattingEditProvider, RenameProvider, CompletionClientCapabilities, DocumentFilter, DocumentSelector } from "vscode-base-languageclient/lib/services"; | ||
} | ||
export declare function testGlob(pattern: string, value: string): boolean; | ||
export declare class MonacoLanguages implements Languages { | ||
@@ -15,0 +16,0 @@ protected readonly p2m: ProtocolToMonacoConverter; |
@@ -29,2 +29,10 @@ "use strict"; | ||
})(MonacoModelIdentifier = exports.MonacoModelIdentifier || (exports.MonacoModelIdentifier = {})); | ||
function testGlob(pattern, value) { | ||
var regExp = glob_to_regexp_1.default(pattern, { | ||
extended: true, | ||
globstar: true | ||
}); | ||
return regExp.test(value); | ||
} | ||
exports.testGlob = testGlob; | ||
var MonacoLanguages = (function () { | ||
@@ -371,10 +379,4 @@ function MonacoLanguages(p2m, m2p) { | ||
} | ||
if (!!selector.pattern) { | ||
var regExp = glob_to_regexp_1.default(selector.pattern, { | ||
extended: true, | ||
globstar: true | ||
}); | ||
if (!regExp.test(model.uri.path)) { | ||
return false; | ||
} | ||
if (!!selector.pattern && !testGlob(selector.pattern, model.uri.path)) { | ||
return false; | ||
} | ||
@@ -381,0 +383,0 @@ return true; |
{ | ||
"name": "monaco-languageclient", | ||
"version": "0.0.1-alpha.1", | ||
"version": "0.0.1-alpha.2", | ||
"description": "Monaco Language client implementation", | ||
@@ -25,3 +25,3 @@ "author": "TypeFox GmbH (http://www.typefox.io)", | ||
"monaco-editor-core": "^0.8.2", | ||
"vscode-base-languageclient": "^0.0.1-alpha.0" | ||
"vscode-base-languageclient": "^0.0.1-alpha.2" | ||
}, | ||
@@ -28,0 +28,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
124750
29
2535