From 854c09551bed1400894000bddaae530ea3dfe64e Mon Sep 17 00:00:00 2001 From: tshino Date: Thu, 11 Jun 2026 01:02:22 +0900 Subject: [PATCH 1/2] Make empty directory paths shorter --- scripts/get_default_keybindings/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/get_default_keybindings/main.js b/scripts/get_default_keybindings/main.js index 6fb226f..149a536 100644 --- a/scripts/get_default_keybindings/main.js +++ b/scripts/get_default_keybindings/main.js @@ -6,8 +6,8 @@ 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'); + const emptyDir1 = path.resolve(__dirname, '../../empty1'); + const emptyDir2 = path.resolve(__dirname, '../../empty2'); await fsPromises.mkdir(emptyDir1, { recursive: true }); await fsPromises.mkdir(emptyDir2, { recursive: true }); From 7081253aee1735fd76845d5ebcc285feab9312d4 Mon Sep 17 00:00:00 2001 From: tshino Date: Sat, 13 Jun 2026 05:51:42 +0900 Subject: [PATCH 2/2] Add comment --- scripts/get_default_keybindings/main.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/get_default_keybindings/main.js b/scripts/get_default_keybindings/main.js index 149a536..3c1ba29 100644 --- a/scripts/get_default_keybindings/main.js +++ b/scripts/get_default_keybindings/main.js @@ -6,6 +6,8 @@ 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. + // 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 });