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

Keep the last used cover profile path #3119

Merged

Conversation

alexandrevilain
Copy link
Contributor

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

Fixes #3118

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

msftclas commented Mar 22, 2020

CLA assistant check
All CLA requirements met.

src/goMain.ts Outdated
})
.then((coverProfilePath) => {
if (!coverProfilePath) {
return;
}
updateWorkspaceState(lastCoverProfilePathKey, coverProfilePath);
Copy link
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

Copy link
Contributor

@ramya-rao-a ramya-rao-a left a comment

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.

Copy link
Contributor

@ramya-rao-a ramya-rao-a left a comment

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

Copy link
Contributor

@ramya-rao-a ramya-rao-a left a comment

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-a merged commit 5394548 into microsoft:master Mar 26, 2020
@ramya-rao-a
Copy link
Contributor

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

@alexandrevilain
Copy link
Contributor Author

Hi @ramya-rao-a ! Thanks :)

@ramya-rao-a
Copy link
Contributor

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

Thanks @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