diff --git a/scripts/get_default_keybindings/main.js b/scripts/get_default_keybindings/main.js index 6fb226f..3c1ba29 100644 --- a/scripts/get_default_keybindings/main.js +++ b/scripts/get_default_keybindings/main.js @@ -6,8 +6,10 @@ const { runTests } = require('@vscode/test-electron'); async function main() { try { // Make two empty directories to use to launch VS Code with the cleanest possible profile. - const emptyDir1 = path.resolve(__dirname, 'empty1'); - const emptyDir2 = path.resolve(__dirname, 'empty2'); + // The '../../' part is intended to shorten the path and was needed as a workaround. + // See: https://github.com/codebling/vs-code-default-keybindings/pull/222 + const emptyDir1 = path.resolve(__dirname, '../../empty1'); + const emptyDir2 = path.resolve(__dirname, '../../empty2'); await fsPromises.mkdir(emptyDir1, { recursive: true }); await fsPromises.mkdir(emptyDir2, { recursive: true });