-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Add native command palette cell commands and recontext IW cell commands #7807
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
Add native command palette cell commands and recontext IW cell commands #7807
Conversation
this.submitInput(concatMultilineString(selectedCell.cell.data.source), selectedCell); | ||
} | ||
} | ||
this.resumeUpdates(); |
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.
resumeUpdates [](start = 13, length = 13)
I don't think we need this around submission of input. This is really just suspend state updates. Doesn't seem necessary here. #Resolved
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.
Would it not be needed in the existing runAll code? Or do we need it there because we might be doing it for multiple cells?
In reply to: 332283022 [](ancestors = 332283022)
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.
Yeah it's for multiple cells. It basically postpones any state updates until resumeUpdates get called, meaning no renders happen. It doesn't really hurt here though. You could just leave it to be consistent.
In reply to: 332284555 [](ancestors = 332284555,332283022)
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.
Nah, if it's not needed it's not needed. I was just copying the "only one" case from run all. I'll remove it.
In reply to: 332285496 [](ancestors = 332285496,332284555,332283022)
"when": "python.datascience.havenative && python.datascience.featureenabled" | ||
}, | ||
{ | ||
"command": "python.datascience.notebookeditor.runselectedcell", |
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.
runselectedcell [](start = 66, length = 15)
Does this need a check to see if there is a selected cell? #Resolved
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.
Yeah, it doesn't really do anything without that. I'll add it into the send info and have a context for it.
In reply to: 332283220 [](ancestors = 332283220)
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.
Codecov Report
@@ Coverage Diff @@
## master #7807 +/- ##
==========================================
- Coverage 59.16% 59.16% -0.01%
==========================================
Files 498 498
Lines 22254 22266 +12
Branches 3578 3580 +2
==========================================
+ Hits 13166 13173 +7
- Misses 8264 8269 +5
Partials 824 824
Continue to review full report at Codecov.
|
For #7800
package-lock.json
has been regenerated by runningnpm install
(if dependencies have changed)