-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Fix tests in ds/custom_editor branch #10512
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
Fix tests in ds/custom_editor branch #10512
Conversation
This reverts commit e93f77a.
customEditorService | ||
.setup(c => c.openEditor(typemoq.It.isAny())) | ||
.returns(async f => { | ||
return registeredProvider.resolveCustomEditor(f, panel.object); | ||
const doc = typemoq.Mock.ofType<CustomDocument>(); |
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.
This was broken
@@ -8,7 +8,9 @@ | |||
"request": "launch", | |||
"runtimeExecutable": "${execPath}", | |||
"args": [ | |||
"--extensionDevelopmentPath=${workspaceFolder}" | |||
"--extensionDevelopmentPath=${workspaceFolder}", |
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.
Restored running tests against insiders.
@@ -24,4 +24,4 @@ export function getOSType() { | |||
} | |||
} | |||
|
|||
export const UseCustomEditor = true; | |||
export const UseCustomEditor = { enabled: true }; |
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.
Are we're supporting both custom and old editors. We need tests for both.
This object allows us to toggle from tests.
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.
Do we need to support both? Once this ships we're not using the old way anymore.
Kudos, SonarCloud Quality Gate passed!
|
Codecov Report
@@ Coverage Diff @@
## ds/custom_editor #10512 +/- ##
====================================================
+ Coverage 60.8% 60.83% +0.03%
====================================================
Files 579 579
Lines 31301 31303 +2
Branches 4454 4455 +1
====================================================
+ Hits 19032 19043 +11
+ Misses 11308 11293 -15
- Partials 961 967 +6
Continue to review full report at Codecov.
|
* master: Fix merge issue Move redux logging to a different file (#10605) Disable custom editor API (#10604) Ensure local host only if connection not available (#10600) Delegate management of notebooks (creation and disposing) to I… (#10568) Refactor to accommodate upstream VSCode API changes (#10569) Use a single notebook beetween multiple native editors (#10514) Add support for synchronising edits between two nb editors of… (#10189) Fix tests in ds/custom_editor branch (#10512) Fix linter Reimplement custom editor using new API
For #10510