Dev Finds VS Code Stored Plain-Text Path After Its Own Hash Algo Stumped Everyone
A developer working on a VS Code extension discovered that the editor's complex hashing algorithm — used to generate unique workspace folder names — was so convoluted that neither human engineers nor seven AI models could reverse-engineer it. The workaround, apparently devised by VS Code's own team, was a simple plain-text JSON file called workspace.json that stores the workspace folder path in readable form. By sorting folders by modification date and cross-referencing the plain-text workspace name, the developer was able to reliably locate the correct workspace database and gain full read/write access. Inside the hashing algorithm's source file, an emphatic warning repeated four times across 102 lines urged future developers never to alter the code, suggesting the original author anticipated the confusion it would cause. The episode highlights how a poorly documented internal system can outlast its creator and force unconventional workarounds even years later.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in