You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When prompted by "yo code" for a name for your extension, enter your own extension name instead of just using the name of the folder you are creating the extension in (which is the default option)
This will create the extension in a subfolder of the workspace root, where the subfolder will have the name you set for your extension.
This is a problem because the "Run Extension" dialog will not come up, and this will make debugging impossible.
Some potential ways to fix this, sorted by feasibility/ease of fixing:
A) Warn people that changing the name of your extension will NOT rename the folder, it will create the extension in a subfolder of your workspace root
B) Remove the option in yo code to rename your extension and just force extension authors to use the folder name as the name for their extension
C) Change how extensions are detected so that extensions in a subfolder of a workspace root are detected as such and the "Run Extension" popup is spawned
D) Rename the workspace root so it matches the new name, instead of creating a subfolder (which VSCode then will not detect as an extension) [this would probably be quite destructive, e.g. if someone has a particular folder name and then it is changed and they try to find it again they won't be able to find it because the name changed)
When googling for results to this issue, this microsoft/vscode#58470 comes up, but nowhere is it mentioned to make sure the name of the extension matches the folder name (or to just leave the name to default, which will name it after the directory anyways)
The text was updated successfully, but these errors were encountered:
Does this issue occur when all extensions are disabled?: Yes
Steps to Reproduce:
Some potential ways to fix this, sorted by feasibility/ease of fixing:
A) Warn people that changing the name of your extension will NOT rename the folder, it will create the extension in a subfolder of your workspace root
B) Remove the option in yo code to rename your extension and just force extension authors to use the folder name as the name for their extension
C) Change how extensions are detected so that extensions in a subfolder of a workspace root are detected as such and the "Run Extension" popup is spawned
D) Rename the workspace root so it matches the new name, instead of creating a subfolder (which VSCode then will not detect as an extension) [this would probably be quite destructive, e.g. if someone has a particular folder name and then it is changed and they try to find it again they won't be able to find it because the name changed)
When googling for results to this issue, this microsoft/vscode#58470 comes up, but nowhere is it mentioned to make sure the name of the extension matches the folder name (or to just leave the name to default, which will name it after the directory anyways)
The text was updated successfully, but these errors were encountered: