mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-02 00:09:30 +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)',
|
||||
enableTelemetry: false,
|
||||
},
|
||||
workspaceProvider: {
|
||||
workspace: undefined,
|
||||
open: async () => false,
|
||||
payload: [['isSessionsWindow', 'true']],
|
||||
},
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
|
||||
@@ -255,7 +255,7 @@ export class BrowserWorkbenchEnvironmentService implements IBrowserWorkbenchEnvi
|
||||
get disableWorkspaceTrust(): boolean { return !this.options.enableWorkspaceTrust; }
|
||||
|
||||
@memoize
|
||||
get isSessionsWindow(): boolean { return false; }
|
||||
get isSessionsWindow(): boolean { return this.payload?.get('isSessionsWindow') === 'true'; }
|
||||
|
||||
@memoize
|
||||
get profile(): string | undefined { return this.payload?.get('profile'); }
|
||||
|
||||
Reference in New Issue
Block a user