Skip to content

Commit

Permalink
fix: change activity icon logic to support cursor
Browse files Browse the repository at this point in the history
  • Loading branch information
Safee-ullah1 committed Sep 1, 2024
1 parent d629605 commit 765a624
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/activity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -376,9 +376,14 @@ export const replaceAppInfo = (text: string): string => {

const isInsider = appName.includes("Insiders");
const isCodium = appName.startsWith("VSCodium") || appName.startsWith("codium");

const isCursor = appName.startsWith("Cursor");

const insiderAppName = isCodium ? "vscodium-insiders" : "vscode-insiders";
const normalAppName = isCodium ? "vscodium" : "vscode";
const normalAppName = isCursor
? "cursor"
: isCodium
? "vscodium"
: "vscode";

const replaceMap = new Map([
["{app_name}", appName],
Expand Down

0 comments on commit 765a624

Please sign in to comment.