Skip to content
This repository was archived by the owner on Jul 15, 2023. It is now read-only.

Commit 1f14d37

Browse files
committed
Add the output option to the delve
1 parent 64104a1 commit 1f14d37

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/debugAdapter/goDebug.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ interface LaunchRequestArguments extends DebugProtocol.LaunchRequestArguments {
140140
/** Optional path to .env file. */
141141
envFile?: string;
142142
backend?: string;
143+
output?: string;
143144
}
144145

145146
process.on('uncaughtException', (err: any) => {
@@ -301,6 +302,9 @@ class Delve {
301302
if (launchArgs.backend) {
302303
dlvArgs = dlvArgs.concat(['--backend=' + launchArgs.backend]);
303304
}
305+
if (launchArgs.output && mode === 'debug') {
306+
dlvArgs = dlvArgs.concat(['--output=' + launchArgs.output]);
307+
}
304308
if (launchArgs.args) {
305309
dlvArgs = dlvArgs.concat(['--', ...launchArgs.args]);
306310
}

0 commit comments

Comments
 (0)