3 Commits

Author SHA1 Message Date
boxqkrtm
8c1a4ac3e0 docs: update package.json
- Update version to 2.0.26
- Update changelog for workspace support
2025-11-02 13:06:17 +09:00
yahui.han
84578b3b24 code-workspace 2025-11-02 13:06:17 +09:00
boxqkrtm
38fecf55e4 Update README.md 2025-05-19 19:04:34 +09:00
4 changed files with 34 additions and 10 deletions

View File

@@ -1,4 +1,10 @@
# Code Editor Package for Visual Studio
# Code Editor Package for Cursor
## [2.0.26] - 2025-11-02
Integration:
- Add workspace support
## [2.0.22] - 2023-10-03

View File

@@ -507,6 +507,15 @@ namespace Microsoft.Unity.VisualStudio.Editor {
return null;
}
private static string TryFindWorkspace(string directory)
{
var files = Directory.GetFiles(directory, "*.code-workspace", SearchOption.TopDirectoryOnly);
if (files.Length == 0 || files.Length > 1)
return null;
return files[0];
}
public override bool Open(string path, int line, int column, string solution) {
line = Math.Max(1, line);
column = Math.Max(0, column);
@@ -514,6 +523,10 @@ namespace Microsoft.Unity.VisualStudio.Editor {
var directory = IOPath.GetDirectoryName(solution);
var application = Path;
var workspace = TryFindWorkspace(directory);
workspace ??= directory;
directory = workspace;
var existingProcess = FindRunningCursorWithSolution(directory);
if (existingProcess != null) {
try {

View File

@@ -1,8 +1,13 @@
# How to install
<br>
- Unity->Window->Package Manager<br>
- Click "+" left corner<br>
- Add package from git URL<br>
- Insert <code>https://github.com/boxqkrtm/com.unity.ide.cursor.git</code><br>
- Add<br>
## How to install
- Unity -> Window -> Package Manager
- Click "+" at the top left corner
- Add package from git URL
- Insert `https://github.com/boxqkrtm/com.unity.ide.cursor.git`
- Add
- Done
> **Important Notice for Users Updating from Older Versions**
> Starting from version **v2.0.24**, the package name has been changed from
> `com.unity.ide.cursor` to `com.boxqkrtm.ide.cursor` to prevent potential issues with Unity regarding attribution.
> Violating these attribution rules may trigger warnings in Unity.
> If you experience errors during the update, please remove the existing package before reinstalling the new one to avoid conflicts.

View File

@@ -2,13 +2,13 @@
"name": "com.boxqkrtm.ide.cursor",
"displayName": "Cursor Editor",
"description": "Cursor editor integration for supporting Cursor as code editor for unity. Adds support for generating csproj files for intellisense purposes, auto discovery of installations, etc.",
"version": "2.0.25",
"version": "2.0.26",
"unity": "2019.4",
"unityRelease": "25f1",
"dependencies": {
"com.unity.test-framework": "1.1.9"
},
"_upm": {
"changelog": "Integration:\n\n- Add support for Cursor"
"changelog": "Integration:\n\n- Add workspace support"
}
}