Skip to content

Commit

Permalink
Add support cursor (#248)
Browse files Browse the repository at this point in the history
  • Loading branch information
keyding authored Jan 14, 2025
1 parent a64b13c commit d0cfe51
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand Down

0 comments on commit d0cfe51

Please sign in to comment.