mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-18 07:47:23 +01:00
Refactor: update isSessionsWindow getter to use payload for dynamic value
This commit is contained in:
@@ -136,6 +136,11 @@ ${importMapJson}
|
|||||||
nameLong: 'Sessions (Web)',
|
nameLong: 'Sessions (Web)',
|
||||||
enableTelemetry: false,
|
enableTelemetry: false,
|
||||||
},
|
},
|
||||||
|
workspaceProvider: {
|
||||||
|
workspace: undefined,
|
||||||
|
open: async () => false,
|
||||||
|
payload: [['isSessionsWindow', 'true']],
|
||||||
|
},
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
@@ -255,7 +255,7 @@ export class BrowserWorkbenchEnvironmentService implements IBrowserWorkbenchEnvi
|
|||||||
get disableWorkspaceTrust(): boolean { return !this.options.enableWorkspaceTrust; }
|
get disableWorkspaceTrust(): boolean { return !this.options.enableWorkspaceTrust; }
|
||||||
|
|
||||||
@memoize
|
@memoize
|
||||||
get isSessionsWindow(): boolean { return false; }
|
get isSessionsWindow(): boolean { return this.payload?.get('isSessionsWindow') === 'true'; }
|
||||||
|
|
||||||
@memoize
|
@memoize
|
||||||
get profile(): string | undefined { return this.payload?.get('profile'); }
|
get profile(): string | undefined { return this.payload?.get('profile'); }
|
||||||
|
|||||||
Reference in New Issue
Block a user