@@ -49,6 +49,13 @@ class RestSASServerAdapter implements ContentAdapter {
4949 this . rootFolders = { } ;
5050 this . fileMetadataMap = { } ;
5151 }
52+ addChildItem : (
53+ childItemUri : string | undefined ,
54+ parentItemUri : string | undefined ,
55+ properties : AddChildItemProperties ,
56+ ) => Promise < boolean > ;
57+ recycleItem ?: ( item : ContentItem ) => Promise < { newUri ?: Uri ; oldUri ?: Uri } > ;
58+ restoreItem ?: ( item : ContentItem ) => Promise < boolean > ;
5259
5360 public async connect ( ) : Promise < void > {
5461 const session = getSession ( ) ;
@@ -86,8 +93,7 @@ class RestSASServerAdapter implements ContentAdapter {
8693 }
8794
8895 public connected ( ) : boolean {
89- // TODO (sas-server)
90- return true ;
96+ return ! ! this . sessionId ;
9197 }
9298
9399 public async setup ( ) : Promise < void > {
@@ -98,16 +104,14 @@ class RestSASServerAdapter implements ContentAdapter {
98104 await this . connect ( ) ;
99105 }
100106
101- public async addChildItem (
102- childItemUri : string | undefined ,
103- parentItemUri : string | undefined ,
104- properties : AddChildItemProperties ,
105- ) : Promise < boolean > {
107+ // TODO #417 Implement favorites
108+ public async addItemToFavorites ( ) : Promise < boolean > {
106109 throw new Error ( "Method not implemented." ) ;
107110 }
108111
109- public async addItemToFavorites ( item : ContentItem ) : Promise < boolean > {
110- throw new Error ( "fds Method not implemented." ) ;
112+ // TODO #417 Implement favorites
113+ public async removeItemFromFavorites ( ) : Promise < boolean > {
114+ throw new Error ( "Method not implemented." ) ;
111115 }
112116
113117 public async createNewFolder (
@@ -278,6 +282,7 @@ class RestSASServerAdapter implements ContentAdapter {
278282 return this . filePropertiesToContentItem ( response . data ) ;
279283 }
280284
285+ // TODO #417 Implement as part of favorites
281286 public getRootFolder ( ) : ContentItem | undefined {
282287 return undefined ;
283288 }
@@ -308,6 +313,7 @@ class RestSASServerAdapter implements ContentAdapter {
308313 }
309314
310315 return item . vscUri ;
316+ // TODO #417 Implement favorites
311317 // // If we're attempting to open a favorite, open the underlying file instead.
312318 // try {
313319 // return (await this.getItemOfId(item.uri)).vscUri;
@@ -341,10 +347,6 @@ class RestSASServerAdapter implements ContentAdapter {
341347 return ! ! this . filePropertiesToContentItem ( response . data ) ;
342348 }
343349
344- public async removeItemFromFavorites ( item : ContentItem ) : Promise < boolean > {
345- throw new Error ( "Method not implemented." ) ;
346- }
347-
348350 public async renameItem (
349351 item : ContentItem ,
350352 newName : string ,
0 commit comments