We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7fa167f commit dffade0Copy full SHA for dffade0
src/detect.ts
@@ -135,9 +135,14 @@ async function isRuntimeSupportsTsx() {
135
) {
136
return false
137
}
138
- // Disable in Electron
+
139
+ // not supported in vscode < 1.96: https://github.com/microsoft/vscode/issues/224426
140
+ // magic number 10629634 is from
141
+ // https://github.com/microsoft/vscode/blob/bee3e32d012157a94cbc431080b743775fe713c5/.npmrc
142
143
// eslint-disable-next-line node/prefer-global/process
- if (typeof process !== 'undefined' && typeof process.versions.electron === 'string') {
144
+ const msBuildVersion = typeof process !== 'undefined' && process.versions['microsoft-build']
145
+ if (msBuildVersion && Number(msBuildVersion) < 10629634) {
146
147
148
return true
0 commit comments