Skip to content

Commit

Permalink
release 3.3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
nonoroazoro committed Sep 12, 2024
2 parents 004e3bb + 18f3e62 commit 946c19d
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelogs

## 3.3.8 - September 12, 2024

- Fixed: Add support for [Cursor](https://www.cursor.com).


## 3.3.7 - November 17, 2023

- Fixed: Code-server configs ([@qinyang912](https://github.com/qinyang912)).
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "syncing",
"displayName": "%displayName%",
"description": "%description%",
"version": "3.3.7",
"version": "3.3.8",
"publisher": "nonoroazoro",
"author": {
"email": "[email protected]",
Expand Down
4 changes: 4 additions & 0 deletions src/constants/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,9 @@ export const VSCODE_BUILTIN_ENVIRONMENTS: Record<VSCodeEdition, {
[VSCodeEdition.CODESERVER]: {
dataDirectoryName: "../.local/share/code-server",
extensionsDirectoryName: ".local/share/code-server"
},
[VSCodeEdition.CURSOR]: {
dataDirectoryName: "Cursor",
extensionsDirectoryName: ".cursor"
}
};
7 changes: 6 additions & 1 deletion src/types/VSCodeEdition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,10 @@ export enum VSCodeEdition
/**
* The OSS VSCode server provided by [Coder](https://coder.com), which is running on a remote or self-hosted server.
*/
CODESERVER
CODESERVER,

/**
* Cursor AI Code Editor, see [Cursor](https://www.cursor.com/).
*/
CURSOR
}
3 changes: 3 additions & 0 deletions src/utils/vscodeAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@ export function getVSCodeEdition()
case "code-server":
return VSCodeEdition.CODESERVER;

case "Cursor":
return VSCodeEdition.CURSOR;

default:
throw new Error(localize("error.env.unknown.vscode"));
}
Expand Down

0 comments on commit 946c19d

Please sign in to comment.