You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Can extensions detect that they are running in the agents window #315776
Is there a way for extensions to detect that they are running in the agents window? I'd like to use this for the TS extension to disable some notifications/prompts
Currently we only expose the proposed API workspace.isAgentSessionsWorkspace for some built-in extension support. We haven't fully figured out the extension story yet, which is why there isn't a proper public API at the moment.
So far, the main goal has been to identify extensions that work well without requiring any changes, so they can be enabled from day 1 and provide a seamless transition from a normal VS Code window into the agents window.
Activity
benibenj commentedon May 12, 2026
Currently we only expose the proposed API
workspace.isAgentSessionsWorkspacefor some built-in extension support. We haven't fully figured out the extension story yet, which is why there isn't a proper public API at the moment.So far, the main goal has been to identify extensions that work well without requiring any changes, so they can be enabled from day 1 and provide a seamless transition from a normal VS Code window into the agents window.
Rename agent workspace api proposal (microsoft#350351)
alexr00 commentedon Nov 27, 2026
Renamed to
isAgentManaged. Will put up for finalization!