robole / vscode-profile-status

Know which your profile you're using, no doubt!

Home Page:https://marketplace.visualstudio.com/items?itemName=robole.profile-status

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool




Profile Status

Know which your profile you're using, no doubt!

Made for VSCode Visual Studio Marketplace Version Extension file size in bytes Visual Studio Marketplace Rating downloads installs Built with flava in ya ear and javascript Buy Rob OLeary a coffee

The profile name appears as an item on the left-hand side of the status bar, baby baby. πŸ‘Š

screenshot of markdown open with the profile status item in the status bar saying "Profile: Default"

You can change the profile by clicking the item, as demonstrated below .

demo of clicking the status bar item and changing the profile from Default to Teaching

Activation

The extension is loaded after VS Code has fully loaded. It is non-blocking, so does not affect the startup time.

To be more specific, the activation event is onStartupFinished.

Settings

Name Type Default Description
Profile Status: Alignment String (enum) "Left" Set the position on the status bar. Values are : "Left" and "Right".

Current Limitations

The VS Code Extension API does not have an event to indicate that the profile of the workspace has changed. Most but not all scenarios are covered by this extension because typically when you switch to another profile, the workspace is reloaded which triggers the extension to update the status bar item. The scenarios that are not covered are:

  • If you create a new, empty profile when running the command Profiles: Create Profile with the default settings, the profiles changes but VS Code is not reloaded;
  • If you have the same workspace open in 2 VS Code instances and switch profile in one. The profile is not updated in the other instance.

If you would like the VS Code team to provide API support for this feature, you can give a πŸ‘ (thumbs up) on the feature request for adding a profile change event.

Contribute

Contributions are welcome. If you find a bug, please raise an issue. You can consult the FAQ section for some common issues that you may encounter.

My time is limited for PRs, please raise an issue to discuss first please.

Appreciate

You can show your appreciation by:

  1. Buying me a coffee or sponsoring me. This will offer me encouragement to continue with this project and others. It can provide a path to dedicating more time to open-source in the future.
  2. Starring the repo 🌟, and leaving a review. This will help other people find this.

Thank you! πŸ™

FAQ

Why isn't it appearing in the Status Bar?

Perhaps, this extension is not included in your current profile. Run the command Profiles: Show contents... to check.

The item may have been forced out (not enough room), or it is hidden/disabled! Right-clicking on the status bar shows a complete list of status bar items, and shows if they are enabled or not. You can disable other items if the status bar is crowded.

Does this extension support multi-root workspaces?

No, I do not use them!

If you would like support added, raise an issue to request the feature.

Does this support remote or Windows Subsystem for Linux (WSL)?

This extension looks in the local file system for the global state in a file called storage.json. This may not be available when you are working remotely, or in WSL. I do not use VS Code in this way, so I do not know how it is exactly! If you have a suggestion to support these environments, let me know.

About

Know which your profile you're using, no doubt!

https://marketplace.visualstudio.com/items?itemName=robole.profile-status

License:Apache License 2.0


Languages

Language:JavaScript 100.0%