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

Fix regression preventing command palette from opening #5888

Merged
merged 1 commit into from
Aug 8, 2019

Conversation

vince-fugnitto
Copy link
Member

What it does

Fixes #5887

  • fixes issue where the command palette can not be opened when
    there is no workspace set. (caused by changes made in the 'cpp-build-configuration#getActiveConfig')
  • if no workspace is present, return undefined instead of attempting to get the activeConfig
    for the workspace root.

How to test

  1. with a closed workspace, check if the command palette can be opened (ex: F1)
  2. with an opened workspace, check if the command palette can be opened (ex: F1)

Review checklist

Reminder for reviewers

Signed-off-by: Vincent Fugnitto vincent.fugnitto@ericsson.com

@vince-fugnitto vince-fugnitto added bug bugs found in the application cpp issues related to the C/C++ language labels Aug 8, 2019
Copy link
Member

@azatsarynnyy azatsarynnyy left a comment

Choose a reason for hiding this comment

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

the issue is fixed
Thanks!

Copy link
Contributor

@RomanNikitenko RomanNikitenko left a comment

Choose a reason for hiding this comment

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

I tested with opened and closed workspace - it works well for me!

Copy link
Member

@akosyakov akosyakov left a comment

Choose a reason for hiding this comment

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

code looks good now

@paul-marechal paul-marechal force-pushed the vf/GH-5887 branch 2 times, most recently from 2375d8e to 58f7b1c Compare August 8, 2019 12:27
@paul-marechal
Copy link
Member

paul-marechal commented Aug 8, 2019

I fixed the other places where something like .tryGetRoots()[0].uri was done.

Sorry for changing an already approved change...

Fixes #5887

- fixes issue where the command palette can not be opened when
there is no workspace set. (caused by changes made in the 'cpp-build-configuration#getActiveConfig')
- if no workspace is present, return `undefined` instead of attempting to get the activeConfig
for the workspace root.
- fix frozen object access by working on a deep-cloned copy.

Signed-off-by: Vincent Fugnitto <vincent.fugnitto@ericsson.com>
@paul-marechal
Copy link
Member

paul-marechal commented Aug 8, 2019

Fixed a last issue where code would throw -but not stop any process/logic- on each workspace opening.

@akosyakov @vince-fugnitto @RomanNikitenko @azatsarynnyy sorry for the trouble.

Copy link
Member

@akosyakov akosyakov left a comment

Choose a reason for hiding this comment

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

code looks even better now :)

@vince-fugnitto vince-fugnitto merged commit 5f8d1bc into master Aug 8, 2019
@vince-fugnitto vince-fugnitto deleted the vf/GH-5887 branch August 8, 2019 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug bugs found in the application cpp issues related to the C/C++ language
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Command Palette isn't opened after closing a workspace
5 participants