Skip to content

Conversation

DonJayamanne
Copy link

For #

  • 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 and others added 13 commits January 23, 2020 15:29
* Setup usage of the new API

* Partial ideas

* Idea for splitting

* Idea in place

* Get all of the tests to build

* Enable proposed api

* Still not working but setting more options.

* Get web views to load

* Fix save and save as to use VS code commands

* Fix unit tests

* Fix a number of functional tests

* REmove autoSave tests as not needed anymore

* Add news entry

* Review comments

* Code review comments

* Update PR validation list

* Fix nyc compiler problems.

* Try fixing the toggle markdown test
* ids of new cells must be provided to actions
* Comments
* Oops
* Run tests against insiders
* Disable noisy logging
* Restore changes
For #9340

Ensures all actions have a base type, to pass information such whether the action was invoked to sync state for multiple editors (pointing to same file) in same session or across sessions.
This PR only adds the ability to pass such new information to all actions.
For #9340
To be merged after #9840

Basically I got rid of the root level state info that keeps track of the cell that's selected and focused.
This required us to keep the two in sync along with the state at the cell level.
When syncing information between multiple editors this got messy. removing this removes the issues where things could go out of sync, i.e. two ways to storing the same thing. Now we get selected information from the cells directly - single source of truth.
For #9340
Note

This PR adds the infrastructure necessary to sync edits & the like across editors for the same file
Code has been commented out to ensure some remaining bits work properly
Waiting on some of the new changes from @rchiodo from his undo PR.
Remaining changes

Ensuring we do not end up in a crazy loop that will cause one editor to propagate changes to the other, then that one back to this & so on
Sync cell execution (currently creation of new cells isn't sync'ed across)
Find a bullet proof solution for syncing focused states (this messes up everything - we don't need this in syncing editors, but if required for live share, then we need to ensure focus states work correctly - depending on whether liveshare even needs such a feature?)

* Address code review comments
* Fix test
* Fix linter
* Remove unused property
* More changes
* We have code in extension that displays a dialog (preventing extension from loading) in insiders version of VSC.
* Run tests against insiders
* Restore env variable
@sonarqubecloud
Copy link

sonarqubecloud bot commented Feb 6, 2020

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 4 Code Smells

No Coverage information No Coverage information
0.1% 0.1% Duplication

@lock lock bot locked as resolved and limited conversation to collaborators Feb 13, 2020
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.

3 participants