Skip to content

Commit 8123694

Browse files
yaaaxantfu
andauthored
fix: broader the dev environment detection (#748)
Co-authored-by: Anthony Fu <github@antfu.me>
1 parent a84768c commit 8123694

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/utils.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ export function isInEditorEnv(): boolean {
140140
return !!(false
141141
|| process.env.VSCODE_PID
142142
|| process.env.VSCODE_CWD
143+
|| process.env.TERM_PROGRAM === "vscode"
143144
|| process.env.JETBRAINS_IDE
144145
|| process.env.VIM
145146
|| process.env.NVIM

0 commit comments

Comments
 (0)