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

CRC setup is reseted after closing its window #4411 #4437

Conversation

vrubezhny
Copy link
Contributor

Fixes: #4411

@vrubezhny vrubezhny requested a review from lgrossma September 6, 2024 18:40
@vrubezhny
Copy link
Contributor Author

vrubezhny commented Sep 6, 2024

@lgrossma Could you please verify if this PR solves #4437 problem of having settings.json created like this:

{ 
  ...
  "openshiftToolkit.crcBinaryLocation": "~/projects/vscode-openshift-tools/crc/crc-linux-amd64/crc-linux-2.41.0-amd64/crc",   
  "openshiftToolkit": {
    ...
    "crcBinaryLocation": null,
    ...
  },
  ...
} 

Also I'm expecting this to solve #4413 and #4414

@vrubezhny vrubezhny requested a review from datho7561 September 6, 2024 18:43
@codecov-commenter
Copy link

codecov-commenter commented Sep 6, 2024

Codecov Report

Attention: Patch coverage is 0% with 10 lines in your changes missing coverage. Please review.

Project coverage is 43.50%. Comparing base (da60441) to head (5f2bcd7).
Report is 493 commits behind head on main.

Files with missing lines Patch % Lines
src/webview/cluster/clusterViewLoader.ts 0.00% 10 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##             main    #4437       +/-   ##
===========================================
+ Coverage   32.37%   43.50%   +11.12%     
===========================================
  Files          85       98       +13     
  Lines        6505     8000     +1495     
  Branches     1349     1686      +337     
===========================================
+ Hits         2106     3480     +1374     
- Misses       4399     4520      +121     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@vrubezhny vrubezhny force-pushed the fix-preference-object-names-overlapping branch 2 times, most recently from 6e0f83c to a639b78 Compare September 6, 2024 19:11
@vrubezhny vrubezhny force-pushed the fix-preference-object-names-overlapping branch from a639b78 to 5f2bcd7 Compare September 6, 2024 19:14
@vrubezhny
Copy link
Contributor Author

vrubezhny commented Sep 6, 2024

Also, I've changed the crcNameServer setting to vscode.ConfigurationTarget.Global to align it to the rest of the CRC settings... I don't see any reason for it to be saved as a Workspace setting rather than a Global one.
Please open an issue if this setting is still to be saved as a Workspace setting

Copy link
Contributor

@datho7561 datho7561 left a comment

Choose a reason for hiding this comment

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

From my testing, this works, and the code changes look good. I would be interested to see if it solves Lukas' problem

Copy link
Contributor

@lgrossma lgrossma left a comment

Choose a reason for hiding this comment

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

Works great now! thx

@vrubezhny vrubezhny merged commit 5ff9e8e into redhat-developer:main Sep 10, 2024
4 checks passed
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.

CRC setup is reseted after closing its window
4 participants