Skip to content

get shell integration to work for zsh#143305

Merged
meganrogge merged 7 commits intomainfrom
merogge/fix-zsh
Feb 18, 2022
Merged

get shell integration to work for zsh#143305
meganrogge merged 7 commits intomainfrom
merogge/fix-zsh

Conversation

@meganrogge
Copy link
Collaborator

@meganrogge meganrogge commented Feb 17, 2022

This PR fixes #141620

@meganrogge meganrogge self-assigned this Feb 17, 2022
@meganrogge meganrogge requested a review from Tyriar February 17, 2022 20:28
shellLaunchConfig.env = shellLaunchConfig.env || {} as IProcessEnvironment;
shellLaunchConfig.env['VSCODE_SHELL_LOGIN'] = '1';
}
if (env?.['ZDOTDIR']) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think ?. for here and above isn't actually needed anymore, we should also remove the TODO: fix above

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We may also be able to remove these all together as env is passed into createProcess? See how VSCODE_SHELL_HIDE_WELCOME doesn't need to get set on shellLaunchConfig.env

Copy link
Collaborator Author

@meganrogge meganrogge Feb 18, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see this TODO - slc.env is used, not env in remote terminal backend

env: IProcessEnvironment, // TODO: This is ignored

@meganrogge meganrogge merged commit 7181933 into main Feb 18, 2022
@meganrogge meganrogge deleted the merogge/fix-zsh branch February 18, 2022 01:30
@github-actions github-actions bot locked and limited conversation to collaborators Apr 4, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Shell integration zsh hooks don't load on macOS/Linux sometimes

2 participants