Skip to content

Ensure we do not switch kernel if already the same #13297

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

Merged
merged 2 commits into from
Aug 6, 2020

Conversation

DonJayamanne
Copy link

For #13266
For #12189

@@ -57,6 +57,7 @@ export interface IKernelSelectionUsage {
export interface IKernel extends IAsyncDisposable {
readonly uri: Uri;
readonly kernelSpec?: IJupyterKernelSpec | LiveKernelModel;
readonly metadata: Readonly<KernelSelection>;
Copy link
Author

Choose a reason for hiding this comment

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

This is what i'd like to solve with the meeting I have booked.
I need the metadata property as well as the kernelSpec property.
Ideally we should have just one property that describes all of this and use that everywhere.
One type to rule them all 😄

Leaving for now, as i need to solve this issue, but will address this once we have a type or approach to generalize this into a single entity.

@@ -3,6 +3,7 @@

'use strict';

import * as fastDeepEqual from 'fast-deep-equal';
Copy link
Author

Choose a reason for hiding this comment

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

Using this instead of using JSON.stringify as all i'm after is equality of data.

@codecov-commenter
Copy link

codecov-commenter commented Aug 6, 2020

Codecov Report

Merging #13297 into master will decrease coverage by 0.02%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #13297      +/-   ##
==========================================
- Coverage   59.73%   59.71%   -0.03%     
==========================================
  Files         670      670              
  Lines       37289    37289              
  Branches     5292     5292              
==========================================
- Hits        22276    22267       -9     
- Misses      13879    13885       +6     
- Partials     1134     1137       +3     
Impacted Files Coverage Δ
src/client/common/utils/platform.ts 64.70% <0.00%> (-11.77%) ⬇️
src/client/datascience/crossProcessLock.ts 79.41% <0.00%> (-11.77%) ⬇️
src/client/linters/pydocstyle.ts 86.66% <0.00%> (-2.23%) ⬇️
src/client/datascience/debugLocationTracker.ts 76.56% <0.00%> (-1.57%) ⬇️
src/client/common/process/proc.ts 14.49% <0.00%> (-0.73%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d7c9348...ac1eb0e. Read the comment docs.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Aug 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 0 Code Smells

No Coverage information No Coverage information
0.1% 0.1% Duplication

@DonJayamanne DonJayamanne merged commit 48797c5 into microsoft:master Aug 6, 2020
@DonJayamanne DonJayamanne deleted the reselectKernel branch August 6, 2020 18:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-changelog No news entry required
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants