Skip to content

Commit

Permalink
Merge pull request #94 from JonasHelming/GH-93
Browse files Browse the repository at this point in the history
Fixed compilation error in label provider template
  • Loading branch information
JonasHelming authored Feb 24, 2021
2 parents ce67d64 + ca72cf0 commit 7191f3f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions templates/labelprovider/contribution.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import URI from "@theia/core/lib/common/uri";
import { FileStatNode } from "@theia/filesystem/lib/browser/file-tree/file-tree";
import { FileTreeLabelProvider } from "@theia/filesystem/lib/browser/file-tree/file-tree-label-provider";
import { injectable, } from "inversify";
Expand All @@ -8,7 +7,7 @@ export class <%= params.extensionPrefix %>LabelProviderContribution extends File

canHandle(element: object): number {
if (FileStatNode.is(element)) {
let uri = new URI(element.fileStat.uri);
let uri = element.uri;
if (uri.path.ext === '.my') {
return super.canHandle(element)+1;
}
Expand Down

0 comments on commit 7191f3f

Please sign in to comment.