mirror of
https://github.com/microsoft/vscode-extension-samples.git
synced 2026-04-27 16:55:44 +08:00
do not use id attribute in ftp explorer
This commit is contained in:
@ -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 };
|
||||
}
|
||||
}
|
||||
@ -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 : {
|
||||
|
||||
Reference in New Issue
Block a user