Open lnxpgn opened 6 months ago
Why do you think this is an extension issue? Seems like deleting extensions is entirely in the purview of VSCode.
I downloaded the CodeLLDB .vsix
zip file from Github, the package.json
within it hasn't a __metadta
field, and didn't find any post-install scripts.
After installing the extension, but before Acquiring CodeLLDB platform package
was completed, ~/.vscode/extensions/vadimcn.vscode-lldb-1.10.0/package.json
has a __metadata
field, I guess VS Code added the __metadta
field as a internal state during installation. We can't find any documents about this field in the official VS Code documentation.
After Acquiring CodeLLDB platform package
, the __metadata
field in ~/.vscode/extensions/vadimcn.vscode-lldb-1.10.0/package.json
was gone.
Checking ~/.vscode/extensions
, every installed extension except CodeLLDB has the field.
It looks like the package.json
from the CodeLLDB platform package overwrote the bootstrap version that VS Code had added the __metadta
field.
By exiting VS Code during downloading the platform package to cancel Acquiring CodeLLDB platform package
, I can uninstall CodeLLDB completely and VS Code deleted ~/.vscode/extensions/vadimcn.vscode-lldb-1.10.0
successfully.
Missing __metadata
, especially the installedTimestamp
field, in CodeLLDB's package.json
leads to the issue. For this reason, I think this is a CodeLLDB issue.
OS: Debian Linux 12 VSCode version: 1.85.0 CodeLLDB version: 1.10.0 Compiler: rustc Debuggee:
After upgrading CodeLLDB
The folders of old versions still exist and have a file
~/.vscode/extensions/.obsolete
, the content of.obsolete
:According to the issue, I added
__metadata
in~/.vscode/extensions/vadimcn.vscode-lldb-1.9.0/package.json
and
~/.vscode/extensions/vadimcn.vscode-lldb-1.9.2/package.json
,like this:
After rebooting VS Code, the folders of old versions were deleted and
.obsolete
was gone.After uninstalling CodeLLDB
The content of
~/.vscode/extensions/.obsolete
:I compared the two
package.json
before and afterAcquiring CodeLLDB platform package
, the only difference:The newer
package.json
hasn't__metadata
, I guess the filepackage.json
from the CodeLLDB platform package overwrote the bootstrap version.I copied back the bootstrap version
package.json
that I have backed up and it has__metadata
. After rebooting VS Code, it deleted the extension folder and.obsolete
was gone.I don't have any VS Code extension development experience, hoping this information is helpful.