From 9897827972e69f5bc920075942c63122b0c6a48f Mon Sep 17 00:00:00 2001 From: pelikhan Date: Sun, 5 Nov 2023 19:15:36 -0800 Subject: [PATCH] don't prompt in vscode mode --- cli/src/devtools.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cli/src/devtools.ts b/cli/src/devtools.ts index 37c986e620..c5535c473e 100644 --- a/cli/src/devtools.ts +++ b/cli/src/devtools.ts @@ -3,7 +3,7 @@ const WebSocket = require("faye-websocket") import http from "http" import url from "url" import net from "net" -import { error, log } from "./command" +import { error, isInteractive, log, setInteractive } from "./command" import { watch } from "fs-extra" import { resolveBuildConfig, SrcFile } from "@devicescript/compiler" import { @@ -100,6 +100,7 @@ export async function devtools( const tcpPort = 8082 const dbgPort = 8083 + if (options.vscode) setInteractive(false) // don't prompt for anything if (options.diagnostics) Flags.diagnostics = true overrideConsoleDebug()