do not use id attribute in ftp explorer

This commit is contained in:
Sandeep Somavarapu
2018-04-03 17:26:35 +02:00
parent 26bc3537d9
commit 9ee0dba70c
2 changed files with 1 additions and 3 deletions

View File

@ -205,7 +205,6 @@ export class FtpTreeDataProvider implements TreeDataProvider<FtpNode> {
public getTreeItem(element: FtpNode): TreeItem {
return {
id: element.resource.fsPath,
resourceUri: element.resource,
collapsibleState: element.isDirectory ? TreeItemCollapsibleState.Collapsed : void 0,
command: element.isDirectory ? void 0 : {
@ -275,6 +274,6 @@ export class FtpExplorer {
return { resource: vscode.window.activeTextEditor.document.uri, isDirectory: false };
}
}
return null;
return { resource: vscode.Uri.parse('ftp://mirror.switch.ch/doc/standard/README.txt'), isDirectory: false };
}
}

View File

@ -130,7 +130,6 @@ export class FtpTreeDataProvider implements TreeDataProvider<FtpNode>, TextDocum
public getTreeItem(element: FtpNode): TreeItem {
return {
id: element.resource.fsPath,
resourceUri: element.resource,
collapsibleState: element.isDirectory ? TreeItemCollapsibleState.Collapsed : void 0,
command: element.isDirectory ? void 0 : {