Skip to content

Commit

Permalink
don't prompt in vscode mode
Browse files Browse the repository at this point in the history
  • Loading branch information
pelikhan committed Nov 6, 2023
1 parent 270207a commit 9897827
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cli/src/devtools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 9897827

Please sign in to comment.