Skip to content

Conversation

corivera
Copy link
Contributor

@corivera corivera commented Nov 14, 2019

Fixes microsoft/azuredatastudio#8277
Fixes microsoft/azuredatastudio#7999

There are a couple of things going on in this change. Originally, I intended to fix the above issues with end of line comments by adding a newline to the end of the input text. That solved the comment problem, but then I started seeing issues with cell execution always returning the last result run. Looks like we continually append text to self.output (even after a command "completes"), which messes up the string parsing to get cell outputs later. My solution here was to clear self.output before running a command.

Since we're modifying self.output in a multithreaded environment, I also decided to combine the input and output functions and add some locking for good measure.

Any ideas for potential edge case tests here would be appreciated.

@chlafreniere chlafreniere self-requested a review November 14, 2019 19:28
@chlafreniere chlafreniere merged commit 0013dda into vors:master Nov 18, 2019
@corivera corivera deleted the useLocksForCommands branch November 18, 2019 19:22
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.

Comment in Powershell Notebook Code Cell breaks code execution Comment in the last line of Power Shell code block hangs execution
3 participants