pnp / vscode-viva

With the SharePoint Framework Toolkit extension, you can create and manage your SharePoint Framework solutions on your tenant. All actions you need to perform during the development flow are at your fingertips.
https://marketplace.visualstudio.com/items?itemName=m365pnp.viva-connections-toolkit
MIT License
40 stars 17 forks source link

🐞 Bug report: Reset Extension Defaults #338

Closed DonKirkham closed 2 weeks ago

DonKirkham commented 2 weeks ago

⭐ Priority

(Low)☹️ Something is a little off

πŸ“ Describe the bug

I somehow managed to delete the Account and App Catalog sections from the Toolkit Side bar. I can't figure out how to reset the extension to the default setting, I have uninstalled and reinstalled the extension and deleted the extension folder in %home%/.vscode/extensions

πŸ‘£ Steps To Reproduce

When I open VS Code now, the SPFx Toolkit only has sections for Tasks, Actions and Help

πŸ“œ Expected behavior

When I uninstall and re-install, the defaults would be reset. Or have an option to reset all settings.

πŸ“· Screenshots

image

❓SharePoint Framework Toolkit version

4.2.0

❓Node.js version

18.18.2

πŸ€” Additional context

No response

DonKirkham commented 2 weeks ago

This isn't really a bug. Probably operator error.

Adam-it commented 2 weeks ago

hi, So what might have happened is that you accidentally moved those views outside of the activity bar. VS Code supports different anchors for views so it is possible to move some view outside of the extension in a different place of the IDE. In that case it won't show up in the show/hide action menu like you have. this is an example when I move those vies outside as well.

image

The are several ways to reset the extension state and I think the easiest is to disable, restart and enable it again. To do that:

after I did that the view went back to their initial anchors

image

Let me know if it helped. I am a bit afraid it might not work as also re-installing the extension (so something what you did) should reset its state as well πŸ€”. That is why I am a bit lost why you have this problem.

Alternatively you may also run the sign out command to check if this will reset the account view

image

or check the extension output for any error information image

DonKirkham commented 2 weeks ago

Through a combination of Disabling and Uninstalling, I was able to get everything reset in the Windows Environment. In WSL. I can Sign In/Out using the menus. When I signed back in, the App Catalog section showed back up, so it's just the Account section that is missing. I can live without that, but will continue to try and reset everything.

I have searched to find the file VS Code uses to configure the UI, but haven't stumbled across it yet. If I come up with a complete solution, I'll let you know. Thanks Adam.

DonKirkham commented 2 weeks ago

For context, I am giving a full-day workshop on SPFx development tomorrow at TechCon365-Dallas. After teaching how to create, manage and deploy SPFx solutions using the original command line way, I will demo the SPFx toolkit and use it for the rest of the day. I am also doing 3 other sessions this week where I will use toolkit as part of my demos. By chance, are you attending Ignite in Chicago? If so, let's meet up. If not, I'll contact you after Ignite. I have a few ideas for the toolkit and have been looking to get more involved with some of the PnP initiatives. Maybe I can plug in to help with toolkit work.

Adam-it commented 2 weeks ago

@DonKirkham glad to hear you managed to resolve your problem and it got you unblocked πŸ‘ You Rock 🀩

As for your other post, I am speechless 🀯SPFx Toolkit in TechCon365-Dallas and other sessions as well 😍. Thank you so much for putting trust in this tool, promoting it, and help others do their SPFx stuff easier and faster πŸš€. SPFx Toolkit has a looooot of functionalities and it may be overwhelming to use at start so this kind of sessions are extremely valuable, and to me rewarding as an Open Source maintainer and a dev πŸ™‚ Thank you!

If during your session you will have some feed regarding any of SPFx related things (not only SPFx Toolkit related) that may be improved from you or any of your attendees then I created this discussion to have a safe space to just drop a comment with any kind of feed or idea, does not have to be anything clarified an fully described, a single sentence is good enough to spark a bigger brainstorm 🀩

If you want any ideas from my side about what might be shown or some inspiration then not so long ago I did demos on PnP Community calls presenting this tool from zero to hero

those are a bit outdated but since than what changes is the first time login experience https://www.youtube.com/watch?v=nuCF_pTtIfI

and we added some pretty awesome enhancements in

You may read more about it here πŸ‘‰ https://pnp.github.io/blog/post/spfx-toolkit-vscode-v-4-2-release/#fine-tuned-spfx-github-copilot-chat-participant

as for MS Ignite, unfortunately, I won't attend this conference. I am rather shy and typical, simple dev. Attending events and meeting people is something I am not good at πŸ˜…

if I forgot to say it then I will say it again, You Rock 🀩 Happy Coding πŸ‘‹