@@ -25,8 +25,8 @@ import { Widget } from '@lumino/widgets';
25
25
26
26
import { driveBrowserIcon } from '../icons' ;
27
27
import { Drive } from '../contents' ;
28
- import { getDrivesList , setListingLimit } from '../requests' ;
29
- import { IDriveInfo , IDrivesList , CommandIDs } from '../token' ;
28
+ import { setListingLimit } from '../requests' ;
29
+ import { CommandIDs } from '../token' ;
30
30
31
31
/**
32
32
* The file browser factory ID.
@@ -48,24 +48,6 @@ const FILE_DIALOG_CLASS = 'jp-FileDialog';
48
48
*/
49
49
const CREATE_DRIVE_TITLE_CLASS = 'jp-new-drive-title' ;
50
50
51
- /**
52
- * The drives list provider.
53
- */
54
- export const drivesListProvider : JupyterFrontEndPlugin < IDriveInfo [ ] > = {
55
- id : 'jupyter-drives:drives-list' ,
56
- description : 'The drives list provider.' ,
57
- provides : IDrivesList ,
58
- activate : async ( _ : JupyterFrontEnd ) : Promise < IDriveInfo [ ] > => {
59
- let drives : IDriveInfo [ ] = [ ] ;
60
- try {
61
- drives = await getDrivesList ( ) ;
62
- } catch ( error ) {
63
- console . log ( 'Failed loading available drives list, with error: ' , error ) ;
64
- }
65
- return drives ;
66
- }
67
- } ;
68
-
69
51
/**
70
52
* The drive file browser factory provider.
71
53
*/
@@ -77,8 +59,7 @@ export const driveFileBrowser: JupyterFrontEndPlugin<void> = {
77
59
IFileBrowserFactory ,
78
60
IToolbarWidgetRegistry ,
79
61
ISettingRegistry ,
80
- ITranslator ,
81
- IDrivesList
62
+ ITranslator
82
63
] ,
83
64
optional : [
84
65
IRouter ,
@@ -92,7 +73,6 @@ export const driveFileBrowser: JupyterFrontEndPlugin<void> = {
92
73
toolbarRegistry : IToolbarWidgetRegistry ,
93
74
settingsRegistry : ISettingRegistry ,
94
75
translator : ITranslator ,
95
- drivesList : IDriveInfo [ ] ,
96
76
router : IRouter | null ,
97
77
tree : JupyterFrontEnd . ITreeResolver | null ,
98
78
labShell : ILabShell | null ,
@@ -105,8 +85,7 @@ export const driveFileBrowser: JupyterFrontEndPlugin<void> = {
105
85
106
86
// create drive for drive file browser
107
87
const drive = new Drive ( {
108
- name : 's3' ,
109
- drivesList : drivesList
88
+ name : 's3'
110
89
} ) ;
111
90
112
91
app . serviceManager . contents . addDrive ( drive ) ;
@@ -266,7 +245,7 @@ namespace Private {
266
245
/**
267
246
* Create the node for a creating a new drive handler.
268
247
*/
269
- const createNewDriveNode = ( newDriveName : string ) : HTMLElement => {
248
+ const createNewDriveNode = ( ) : HTMLElement => {
270
249
const body = document . createElement ( 'div' ) ;
271
250
272
251
const drive = document . createElement ( 'label' ) ;
@@ -295,7 +274,7 @@ namespace Private {
295
274
* Construct a new "create-drive" dialog.
296
275
*/
297
276
constructor ( newDriveName : string ) {
298
- super ( { node : createNewDriveNode ( newDriveName ) } ) ;
277
+ super ( { node : createNewDriveNode ( ) } ) ;
299
278
this . onAfterAttach ( ) ;
300
279
}
301
280
0 commit comments