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

Not all extensnsions are removed #15

Open
esdmr opened this issue Aug 28, 2019 · 2 comments
Open

Not all extensnsions are removed #15

esdmr opened this issue Aug 28, 2019 · 2 comments

Comments

@esdmr
Copy link

esdmr commented Aug 28, 2019

Problem

Some extensions have pascal case publisher name, which is not the same as their folder name which is lowercase. Not converting the extension id (publisherName.extensionName) to lowercase will make the extensions unaffected by the change of profile. Not that this issue is specifically for case sensitive systems. (Windows OS is unaffected)

Error Message

Profile Switcher: Extension VisualStudioExptTeam.vscodeintellicode-1.1.9 didn't exist at path ~/.vscode/extensions/VisualStudioExptTeam.vscodeintellicode-1.1.9. Skipping removal.

Configurations

The above extension is stored like:

{
    "id": "876e8f93-74d0-4f4f-91b7-34a09f19f444",
    "publisherId": "VisualStudioExptTeam.vscodeintellicode",
    "publisherName": "VisualStudioExptTeam",
    "version": "1.1.9",
    "name": "vscodeintellicode"
}

And the extension is stored at ~/.vscode/extensions/visualstudioexptteam.vscodeintellicode-1.1.9/.

How to reproduce

  1. Install ProfileSwitcher in a case sensitive system. (i. e. linux)
  2. Create two profiles. One with a pascal-case-publisher-named extension and one without it. (e. g. Intellicode, or PEG.js language)
  3. Switch from the profile with the extension, to one without.
  4. The extension still remains.
@aaronpowell
Copy link
Owner

Damn case sensitive file systems! 😝

I'll have to look to see if there's a way to find the exact case used on the file system for the extension, that'll be the only option to resolve.

@codeunifier
Copy link

+1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants