Skip to content

Copy back to code insert#6399

Merged
rchiodo merged 4 commits intomasterfrom
rchiodo/cursor_insert
Jul 1, 2019
Merged

Copy back to code insert#6399
rchiodo merged 4 commits intomasterfrom
rchiodo/cursor_insert

Conversation

@rchiodo
Copy link
Copy Markdown

@rchiodo rchiodo commented Jul 1, 2019

For #6350

  • Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR)
  • Title summarizes what is changing
  • Has a news entry file (remember to thank yourself!)
  • Appropriate comments and documentation strings in the code
  • Has sufficient logging.
  • Has telemetry for enhancements.
  • Unit tests & system/integration tests are added/updated
  • Test plan is updated as appropriate
  • package-lock.json has been regenerated by running npm install (if dependencies have changed)
  • The wiki is updated with any design decisions/details.

@rchiodo rchiodo self-assigned this Jul 1, 2019
if (editor && (editor.document.languageId === PYTHON_LANGUAGE || editor.document.isUntitled)) {
// Figure out if any cells in this document already.
const ranges = generateCellRanges(editor.document, this.generateDataScienceExtraSettings());
const hasCellsAlready = ranges.length > 0;
Copy link
Copy Markdown
Member

@IanMatthewHuff IanMatthewHuff Jul 1, 2019

Choose a reason for hiding this comment

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

I was going to suggest that this chunk kinda feels like is should be part of CodeWatcher functionality. But I don't think that works for untitled files. #ByDesign

Copy link
Copy Markdown
Member

@IanMatthewHuff IanMatthewHuff left a comment

Choose a reason for hiding this comment

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

:shipit:

@rchiodo rchiodo merged commit e07a062 into master Jul 1, 2019
@rchiodo rchiodo deleted the rchiodo/cursor_insert branch July 1, 2019 21:22
@lock lock Bot locked as resolved and limited conversation to collaborators Jul 29, 2019
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.

2 participants