Skip to content

Commit ba68340

Browse files
committed
fix cursor terminal links
1 parent 22e9dc1 commit ba68340

File tree

3 files changed

+25
-4
lines changed

3 files changed

+25
-4
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@
7474
"@changesets/[email protected]": "patches/@[email protected]",
7575
7676
77-
77+
78+
7879
}
7980
}
8081
}

patches/[email protected]

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
diff --git a/index.js b/index.js
2+
index 89f1b2cb86fad204b0493da3b8a3d5ed28937260..945f4cff27ed501fca75e269dfd7172e74c9c955 100644
3+
--- a/index.js
4+
+++ b/index.js
5+
@@ -62,6 +62,11 @@ function supportsHyperlink(stream) {
6+
return false;
7+
}
8+
9+
+ // Cursor supports hyperlinks
10+
+ if ("CURSOR_TRACE_ID" in env) {
11+
+ return true;
12+
+ }
13+
+
14+
if ('TERM_PROGRAM' in env) {
15+
const version = parseVersion(env.TERM_PROGRAM_VERSION);
16+

pnpm-lock.yaml

Lines changed: 7 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)