Skip to content

Generating workspace.id #50

Discussion options

You must be logged in to vote

The magic happens here:

https://github.com/microsoft/vscode/blob/71b996eff4cef4405d1d1cc4fe308545dac0b255/src/vs/platform/workspaces/electron-main/workspaces.ts#L42

Path: C:\\Users\\rb\\projects\\vscode\\extensions\\workspace-id
Converted: c:\Users\rb\projects\vscode\extensions\workspace-id
In Windows, birthtime of folder is retrieved and used as a salt: c:\Users\rb\projects\vscode\extensions\workspace-id1656581976108
MD5 hash with HEX digest generates: bf238cd8055d465451f20fcd7fd5b983

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by rbrisita
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant