From d0cfe518b8fee41242156af450ebf0a1c4904d1c Mon Sep 17 00:00:00 2001 From: Caven Date: Tue, 14 Jan 2025 22:39:44 +0800 Subject: [PATCH] Add support cursor (#248) --- src/extension.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/extension.js b/src/extension.js index 99c7de1..0f4697c 100644 --- a/src/extension.js +++ b/src/extension.js @@ -17,6 +17,10 @@ function activate(context) { const base = path.join(appDir, "vs", "code"); let htmlFile = path.join(base, "electron-sandbox", "workbench", "workbench.html"); + // support Cursor IDE + if (!fs.existsSync(htmlFile)) { + htmlFile = path.join(base, "electron-sandbox", "workbench", "workbench-apc-extension.html"); + } if (!fs.existsSync(htmlFile)) { htmlFile = path.join(base, "electron-sandbox", "workbench", "workbench.esm.html"); }