Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reuse ssh terminal when configured #130

Merged
merged 4 commits into from
Jun 15, 2018
Merged

reuse ssh terminal when configured #130

merged 4 commits into from
Jun 15, 2018

Conversation

yungezz
Copy link
Contributor

@yungezz yungezz commented Jun 11, 2018

Summary

Issue #119 #73 . Support reuse ssh terminal per configuraiton.

Issue Type

  • New Feature

@yungezz yungezz requested review from zikalino and yuwzho June 11, 2018 07:59
src/sshRunner.ts Outdated

constructor(outputChannel: vscode.OutputChannel) {
super(outputChannel);

this.folderSyncer = new FolderSyncer(outputChannel);

vscode.window.onDidCloseTerminal((terminal) => {

var termianlNames = Object.keys(this.terminalList);

Choose a reason for hiding this comment

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

misspelled variable name

if (terminal) {
terminal.show();

cmds.push('ansible-playbook ' + targetPlaybook);

Choose a reason for hiding this comment

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

How will this work with other PR which introduced ansible-playbook params?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

merge. so pls review them, then i can do merge


private sendCommandsToTerminal(terminal: vscode.Terminal, cmds: string[]): void {
if (utilities.isTelemetryEnabled()) {
terminal.sendText('export ' + Constants.UserAgentName + '=' + utilities.getUserAgent());

Choose a reason for hiding this comment

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

so this will be sent to terminal even if terminal is reused and these variables are already set?

Choose a reason for hiding this comment

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

actually i think there should be if (telemetry) sendCommands... (telemetry commands) when terminal is created.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

those variables may change.

Copy link

@zikalino zikalino left a comment

Choose a reason for hiding this comment

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

i think telemetry command should be sent only when terminal is created. also, i think this need to be synced with the other pr introducing configured params.

@yungezz
Copy link
Contributor Author

yungezz commented Jun 11, 2018

telemetry configuration may change. that's why it's sent everytime. actually changed envs are one of concern that I hesitate to add reuse terminal, as we discussed before.

@yungezz yungezz merged commit c37dd15 into master Jun 15, 2018
@yungezz yungezz deleted the reuse-ssh branch June 15, 2018 08:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants