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

Commit

Permalink
Make the type of buildArgs executed by Codelens consistent with Launc…
Browse files Browse the repository at this point in the history
…hRequestArguments

This fix the problem that `go.buildTags` is ignored by `debug test`.
  • Loading branch information
ka2n committed Sep 27, 2017
1 parent e2175a3 commit 280e790
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/goRunTestCodelens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export class GoRunTestCodeLensProvider extends GoBaseCodeLensProvider {
buildFlags.push(`"${vsConfig['buildTags']}"`);
}

let config = Object.assign({}, this.debugConfig, { args, program, env, envFile, buildFlags });
let config = Object.assign({}, this.debugConfig, { args, program, env, envFile, buildFlags: buildFlags.join(' ') });
let debugTestCmd: Command = {
title: 'debug test',
command: 'vscode.startDebug',
Expand Down

0 comments on commit 280e790

Please sign in to comment.