@@ -46,7 +46,7 @@ export class PayaraServerTreeDataProvider implements vscode.TreeDataProvider<Tre
4646 public async getChildren ( item ?: TreeItem ) : Promise < TreeItem [ ] > {
4747 if ( ! item ) {
4848 return this . instanceProvider . getServers ( ) . map ( ( server : PayaraServerInstance ) => {
49- server . iconPath = this . context . asAbsolutePath ( path . join ( 'resources' , server . getIcon ( ) ) ) ;
49+ server . iconPath = vscode . Uri . file ( this . context . asAbsolutePath ( path . join ( 'resources' , server . getIcon ( ) ) ) ) ;
5050 server . contextValue = server . getState ( ) + ( server instanceof PayaraLocalServerInstance ? "Local" : "Remote" ) ;
5151 server . collapsibleState = vscode . TreeItemCollapsibleState . Collapsed ;
5252 server . label = server . getName ( ) ;
@@ -55,15 +55,15 @@ export class PayaraServerTreeDataProvider implements vscode.TreeDataProvider<Tre
5555 } ) ;
5656 } else if ( item instanceof PayaraServerInstance && item . isStarted ( ) ) {
5757 return item . getApplications ( ) . map ( ( application : ApplicationInstance ) => {
58- application . iconPath = this . context . asAbsolutePath ( path . join ( 'resources' , application . getIcon ( ) ) ) ;
58+ application . iconPath = vscode . Uri . file ( this . context . asAbsolutePath ( path . join ( 'resources' , application . getIcon ( ) ) ) ) ;
5959 application . collapsibleState = vscode . TreeItemCollapsibleState . Collapsed ;
6060 application . label = application . name ;
6161 application . contextValue = "payara-application" ;
6262 return application ;
6363 } ) ;
6464 } else if ( item instanceof ApplicationInstance ) {
6565 return item . getRestEndpoints ( ) . map ( ( endpoint : RestEndpoint ) => {
66- endpoint . iconPath = this . context . asAbsolutePath ( path . join ( 'resources' , 'rest-endpoint.svg' ) ) ;
66+ endpoint . iconPath = vscode . Uri . file ( this . context . asAbsolutePath ( path . join ( 'resources' , 'rest-endpoint.svg' ) ) ) ;
6767 endpoint . label = endpoint . httpMethod + " " + endpoint . endpoint ;
6868 endpoint . contextValue = "application-rest-endpoint" ;
6969 return endpoint ;
0 commit comments