diff --git a/package.json b/package.json index 69f22e8..992cbda 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "vscode-socket-security", "displayName": "Socket Security", "description": "Editor integration with Socket Security", - "version": "1.1.5", + "version": "2.0.0", "private": true, "preview": false, "categories": [ diff --git a/src/lifecycle/uninstall.mjs b/src/lifecycle/uninstall.mjs new file mode 100644 index 0000000..2cc0d2a --- /dev/null +++ b/src/lifecycle/uninstall.mjs @@ -0,0 +1,8 @@ +// if this is updated, update purl scripts +import fs from 'fs' +import os from 'os' +import path from 'path' +const cacheDir = path.resolve(os.homedir(), '.socket', 'vscode') +try { + fs.rmSync(cacheDir, { recursive: true, force: true }) +} catch {}