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

Clear previous output when running in terminal #153

Merged
merged 5 commits into from
Jul 31, 2017
Merged
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/codeManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,9 @@ export class CodeManager {
this._appInsightsClient.sendEvent(executor);
let command = this.getFinalCommandToRunCodeFile(executor, appendFile);
command = this.changeCommandForBashOnWindows(command);
if (this._config.get<boolean>('clearPreviousOutput')) {
this._terminal.sendText('clear');
Copy link
Owner

Choose a reason for hiding this comment

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

Most shell is using clear, while cmd is cls. Need to handle it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you, fixed.

}
this._terminal.sendText(command);
}

Expand Down