Skip to content

Commit

Permalink
Fixed compilation error in label provider template
Browse files Browse the repository at this point in the history
fixed #93

Signed-off-by: Jonas Helming <jhelming@eclipsesource.com>
  • Loading branch information
JonasHelming committed Feb 24, 2021
1 parent 03c198e commit ca72cf0
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 ca72cf0

Please sign in to comment.