diff options
author | 2023-08-29 23:44:39 -0700 | |
---|---|---|
committer | 2023-08-29 23:44:39 -0700 | |
commit | f2553d24543d72a777ba60213473332809866cb2 (patch) | |
tree | 61faac4292dbdf1b4d0543e33d3f5d2c792825c5 /packages/bun-debug-adapter-protocol/src/debugger/signal.ts | |
parent | c028b206bce3f9b5c3cba7899c6bf34856efe43f (diff) | |
download | bun-f2553d24543d72a777ba60213473332809866cb2.tar.gz bun-f2553d24543d72a777ba60213473332809866cb2.tar.zst bun-f2553d24543d72a777ba60213473332809866cb2.zip |
More support for DAP (#4380)
* Fix reconnect with --watch
* Support setVariable
* Support setExpression
* Support watch variables
* Conditional and hit breakpoints
* Support exceptionInfo
* Support goto and gotoTargets
* Support completions
* Support both a URL and UNIX inspector at the same time
* Fix url
* WIP, add timeouts to figure out issue
* Fix messages being dropped from debugger.ts
* Progress
* Fix breakpoints and ref-event-loop
* More fixes
* Fix exit
* Make hovers better
* Fix --hot
Diffstat (limited to 'packages/bun-debug-adapter-protocol/src/debugger/signal.ts')
-rw-r--r-- | packages/bun-debug-adapter-protocol/src/debugger/signal.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/bun-debug-adapter-protocol/src/debugger/signal.ts b/packages/bun-debug-adapter-protocol/src/debugger/signal.ts index 3c635fb4a..d7c52d448 100644 --- a/packages/bun-debug-adapter-protocol/src/debugger/signal.ts +++ b/packages/bun-debug-adapter-protocol/src/debugger/signal.ts @@ -21,7 +21,7 @@ export class UnixSignal extends EventEmitter<UnixSignalEventMap> { #server: Server; #ready: Promise<void>; - constructor(path?: string) { + constructor(path?: string | URL) { super(); this.#path = path ? parseUnixPath(path) : randomUnixPath(); this.#server = createServer(); @@ -74,8 +74,8 @@ export function randomUnixPath(): string { return join(tmpdir(), `${Math.random().toString(36).slice(2)}.sock`); } -function parseUnixPath(path: string): string { - if (path.startsWith("/")) { +function parseUnixPath(path: string | URL): string { + if (typeof path === "string" && path.startsWith("/")) { return path; } try { |