Skip to content
This repository was archived by the owner on Jul 15, 2023. It is now read-only.

Keep the last used cover profile path - #3119

Merged
Ramya Rao (ramya-rao-a) merged 2 commits into
microsoft:masterfrom
alexandrevilain:keep-last-used-coverprofile
Mar 26, 2020
Merged

Keep the last used cover profile path#3119
Ramya Rao (ramya-rao-a) merged 2 commits into
microsoft:masterfrom
alexandrevilain:keep-last-used-coverprofile

Conversation

@alexandrevilain

Copy link
Copy Markdown
Contributor

Signed-off-by: Alexandre Vilain alexandre.vilain@me.com

Fixes #3118

Signed-off-by: Alexandre Vilain <alexandre.vilain@me.com>
@msftclas

Microsoft Contribution License Agreements (msftclas) commented Mar 22, 2020

Copy link
Copy Markdown

CLA assistant check
All CLA requirements met.

Comment thread src/goMain.ts Outdated
if (!coverProfilePath) {
return;
}
updateWorkspaceState(lastCoverProfilePathKey, coverProfilePath);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We can skip updating the state if the same value was used

@ramya-rao-a Ramya Rao (ramya-rao-a) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks like this is your first PR contribution to this project, Thanks & Welcome!

I have just one suggested change, please do take a look.

@ramya-rao-a Ramya Rao (ramya-rao-a) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Changing review state to wait on suggested change

@ramya-rao-a Ramya Rao (ramya-rao-a) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pushed a change to update the workspace state only if the provided value is different from the last used path and if the provided path is valid

@ramya-rao-a
Ramya Rao (ramya-rao-a) merged commit 5394548 into microsoft:master Mar 26, 2020
@ramya-rao-a

Copy link
Copy Markdown
Contributor

The changes here are available in the latest beta version of this extension.

@alexandrevilain

Copy link
Copy Markdown
Contributor Author

Hi Ramya Rao (@ramya-rao-a) ! Thanks :)

@ramya-rao-a

Copy link
Copy Markdown
Contributor

This change is now available in the latest version of this extension.

Thanks Alexandre Vilain (@alexandrevilain)!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Keep last used path when using coverprofile

3 participants