VSCode has a dedicated API to persist data: https://code.visualstudio.com/api/references/vscode-api#Memento Using that would solve the caveats with `persistent.file` described in https://marketplace.visualstudio.com/items?itemName=rioj7.command-variable#settings such as working with a remote workspace