supports-hyperlinks 4.0.0 → 4.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +6 -0
- package/package.json +1 -1
package/index.js
CHANGED
@@ -25,6 +25,7 @@ function parseVersion(versionString = '') {
|
|
25
25
|
export function createSupportsHyperlinks(stream) {
|
26
26
|
const {
|
27
27
|
CI,
|
28
|
+
CURSOR_TRACE_ID,
|
28
29
|
FORCE_HYPERLINK,
|
29
30
|
NETLIFY,
|
30
31
|
TEAMCITY_VERSION,
|
@@ -94,6 +95,11 @@ export function createSupportsHyperlinks(stream) {
|
|
94
95
|
}
|
95
96
|
|
96
97
|
case 'vscode': {
|
98
|
+
// Cursor forked VS Code and supports hyperlinks in 0.x.x
|
99
|
+
if (CURSOR_TRACE_ID) {
|
100
|
+
return true;
|
101
|
+
}
|
102
|
+
|
97
103
|
// eslint-disable-next-line no-mixed-operators
|
98
104
|
return version.major > 1 || version.major === 1 && version.minor >= 72;
|
99
105
|
}
|