Skip to content

Commit

Permalink
6636-custom-editor: support for CustomEditor API
Browse files Browse the repository at this point in the history
Signed-off-by: Dan Arad <dan.arad@sap.com>
  • Loading branch information
danarad05 committed Dec 30, 2020
1 parent 6be6df1 commit 65d2871
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export class CustomEditorOpener implements OpenHandler {

selectorMatches(selector: CustomEditorSelector, resource: URI): boolean {
if (selector.filenamePattern) {
if (glob.match(selector.filenamePattern.toLowerCase(), resource.path.ext.toLowerCase())) {
if (glob.match(selector.filenamePattern.toLowerCase(), resource.path.name.toLowerCase() + resource.path.ext.toLowerCase())) {
return true;
}
}
Expand Down

0 comments on commit 65d2871

Please sign in to comment.