Skip to content
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

Jupyter editor types fix for ipywidget build #7942

Merged
merged 2 commits into from
Oct 15, 2021

Conversation

IanMatthewHuff
Copy link
Member

@IanMatthewHuff IanMatthewHuff commented Oct 15, 2021

For #7935

  • 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).

@IanMatthewHuff IanMatthewHuff requested a review from a team as a code owner October 15, 2021 18:18
@codecov-commenter
Copy link

codecov-commenter commented Oct 15, 2021

Codecov Report

Merging #7942 (e20eec3) into main (ef6ed38) will not change coverage.
The diff coverage is n/a.

@@          Coverage Diff          @@
##            main   #7942   +/-   ##
=====================================
  Coverage     70%     70%           
=====================================
  Files        364     364           
  Lines      22427   22427           
  Branches    3416    3416           
=====================================
  Hits       15882   15882           
+ Misses      5171    5160   -11     
- Partials    1374    1385   +11     
Impacted Files Coverage Δ
src/client/datascience/jupyter/kernelVariables.ts 57% <0%> (-2%) ⬇️
src/client/datascience/jupyter/jupyterNotebook.ts 66% <0%> (-1%) ⬇️
src/client/common/errors/types.ts 52% <0%> (ø)
src/client/datascience/telemetry/telemetry.ts 81% <0%> (ø)
src/client/datascience/jupyter/kernels/kernel.ts 77% <0%> (ø)
...client/datascience/raw-kernel/rawJupyterSession.ts 72% <0%> (ø)
...ient/datascience/raw-kernel/rawNotebookProvider.ts 67% <0%> (ø)
...ce/raw-kernel/liveshare/hostRawNotebookProvider.ts 77% <0%> (ø)
...datascience/jupyter/liveshare/hostJupyterServer.ts 68% <0%> (+<1%) ⬆️
src/client/common/errors/index.ts 72% <0%> (+3%) ⬆️

@@ -19,8 +19,10 @@ function ignoreTypescript4File(relativePath, searchString) {
while (fileContents[searchIndex] != '\n') {
searchIndex--;
}
const newFileContents = `${fileContents.substr(0, searchIndex+1)}\n// @ts-ignore\n${fileContents.substr(searchIndex+1)}`;
fs.writeFileSync(filePath, newFileContents, {encoding: 'utf-8'});
const newFileContents = `${fileContents.substr(0, searchIndex + 1)}\n// @ts-ignore\n${fileContents.substr(
Copy link
Contributor

Choose a reason for hiding this comment

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

This change seems unnecessary? It's just spacing?

Copy link
Contributor

Choose a reason for hiding this comment

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

Probably via the linter/formatter

Copy link
Member Author

Choose a reason for hiding this comment

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

@rchiodo that was just prettier formatting the file. Figured that I should keep it formatted in the PR.

@IanMatthewHuff IanMatthewHuff merged commit 9954607 into main Oct 15, 2021
@IanMatthewHuff IanMatthewHuff deleted the dev/ianhu/jupyterEditorFix branch October 15, 2021 20:04
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.

4 participants