File tree 1 file changed +0
-22
lines changed
src/vs/code/browser/workbench
1 file changed +0
-22
lines changed Original file line number Diff line number Diff line change @@ -282,8 +282,6 @@ class LocalStorageURLCallbackProvider extends Disposable implements IURLCallback
282
282
283
283
class WorkspaceProvider implements IWorkspaceProvider {
284
284
285
- private static readonly LAST_WORKSPACE_STORAGE_KEY = 'workspaces.lastOpened' ;
286
-
287
285
private static QUERY_PARAM_EMPTY_WINDOW = 'ew' ;
288
286
private static QUERY_PARAM_FOLDER = 'folder' ;
289
287
private static QUERY_PARAM_WORKSPACE = 'workspace' ;
@@ -350,29 +348,9 @@ class WorkspaceProvider implements IWorkspaceProvider {
350
348
workspace = { folderUri : URI . revive ( config . folderUri ) } ;
351
349
} else if ( config . workspaceUri ) {
352
350
workspace = { workspaceUri : URI . revive ( config . workspaceUri ) } ;
353
- } else {
354
- workspace = ( ( ) => {
355
- const lastWorkspaceRaw = window . localStorage . getItem ( WorkspaceProvider . LAST_WORKSPACE_STORAGE_KEY ) ;
356
- if ( lastWorkspaceRaw ) {
357
- try {
358
- return parse ( lastWorkspaceRaw ) ; // use marshalling#parse() to revive potential URIs
359
- } catch ( error ) {
360
- // Ignore
361
- }
362
- }
363
-
364
- return undefined ;
365
- } ) ( ) ;
366
351
}
367
352
}
368
353
369
- // Keep this as last opened workspace in storage
370
- if ( workspace ) {
371
- window . localStorage . setItem ( WorkspaceProvider . LAST_WORKSPACE_STORAGE_KEY , JSON . stringify ( workspace ) ) ;
372
- } else {
373
- window . localStorage . removeItem ( WorkspaceProvider . LAST_WORKSPACE_STORAGE_KEY ) ;
374
- }
375
-
376
354
return new WorkspaceProvider ( workspace , payload , config ) ;
377
355
}
378
356
You can’t perform that action at this time.
0 commit comments