-
Notifications
You must be signed in to change notification settings - Fork 48
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
Conversation
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); |
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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()); |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
those variables may change.
There was a problem hiding this 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.
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. |
Summary
Issue #119 #73 . Support reuse ssh terminal per configuraiton.
Issue Type