Skip to content

Commit bded07b

Browse files
committed
src/goDebugConfiguration.ts: clean up launch.json quickpick
The many options for default launch configs when creating a new launch.json made it seem cluttered and difficult to know which was best to choose. Change to using 3 options (launch, attach local, and attach remote) to simplify setup. Change-Id: Ief173197dab2b5da0792b7be4f2df820bebbfea9 Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/308490 Trust: Suzy Mueller <[email protected]> Run-TryBot: Suzy Mueller <[email protected]> Reviewed-by: Hyang-Ah Hana Kim <[email protected]>
1 parent c189ec0 commit bded07b

File tree

1 file changed

+0
-32
lines changed

1 file changed

+0
-32
lines changed

src/goDebugConfiguration.ts

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -44,38 +44,6 @@ export class GoDebugConfigurationProvider implements vscode.DebugConfigurationPr
4444
program: '${fileDirname}'
4545
}
4646
},
47-
{
48-
label: 'Go: Launch File',
49-
description: 'Debug the file in the program attribute',
50-
config: {
51-
name: 'Launch file',
52-
type: 'go',
53-
request: 'launch',
54-
mode: 'debug',
55-
program: '${file}'
56-
}
57-
},
58-
{
59-
label: 'Go: Launch test function',
60-
description: 'Debug the test function in the args, ensure program attributes points to right package',
61-
config: {
62-
name: 'Launch test function',
63-
type: 'go',
64-
request: 'launch',
65-
mode: 'test',
66-
program: '${fileDirname}',
67-
args: ['-test.run', 'MyTestFunction']
68-
},
69-
fill: async (config: vscode.DebugConfiguration) => {
70-
const testFunc = await vscode.window.showInputBox({
71-
placeHolder: 'MyTestFunction',
72-
prompt: 'Name of the function to test'
73-
});
74-
if (testFunc) {
75-
config.args = ['-test.run', testFunc];
76-
}
77-
}
78-
},
7947
{
8048
label: 'Go: Attach to local process',
8149
description: 'Attach to an existing process by process ID',

0 commit comments

Comments
 (0)