Skip to content

Commit 36e7647

Browse files
authored
Added build debug to prelaunch task in tests (#1332)
1 parent 786d6ee commit 36e7647

File tree

2 files changed

+37
-45
lines changed

2 files changed

+37
-45
lines changed

.vscode/launch.json

Lines changed: 11 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,12 @@
99
"type": "coreclr",
1010
"request": "launch",
1111
"program": "${workspaceFolder}/src/FsAutoComplete/bin/Debug/net6.0/fsautocomplete.dll",
12-
"args": [
13-
"--mode",
14-
"lsp"
15-
],
12+
"args": ["--mode", "lsp"],
1613
"cwd": "${workspaceFolder}",
1714
"console": "internalConsole",
1815
"stopAtEntry": false,
19-
"internalConsoleOptions": "openOnSessionStart"
16+
"internalConsoleOptions": "openOnSessionStart",
17+
"preLaunchTask": "build debug"
2018
},
2119
{
2220
"name": ".NET Core Attach",
@@ -49,11 +47,8 @@
4947
}
5048
},
5149
"enableStepFiltering": false,
52-
"args": [
53-
"--debug",
54-
"--filter",
55-
"FSAC.lsp.${input:loader}.${input:compiler}.${input:testName}"
56-
]
50+
"args": ["--debug", "--filter", "FSAC.lsp.${input:loader}.${input:compiler}.${input:testName}"],
51+
"preLaunchTask": "build debug"
5752
},
5853
{
5954
"name": "Pick General tests",
@@ -74,43 +69,31 @@
7469
}
7570
},
7671
"enableStepFiltering": false,
77-
"args": [
78-
"--debug",
79-
"--filter",
80-
"FSAC.general.${input:testName}"
81-
]
72+
"args": ["--debug", "--filter", "FSAC.general.${input:testName}"],
73+
"preLaunchTask": "build debug"
8274
}
8375
],
8476
"inputs": [
8577
{
8678
"id": "tfm",
8779
"description": "The TFM of the test to run",
88-
"options": [
89-
"net6.0",
90-
"net7.0"
91-
],
80+
"options": ["net6.0", "net7.0"],
9281
"default": "net7.0",
9382
"type": "pickString"
9483
},
9584
{
9685
"id": "loader",
9786
"description": "The loader to use for the test",
98-
"options": [
99-
"Ionide WorkspaceLoader",
100-
"MSBuild Project Graph WorkspaceLoader"
101-
],
87+
"options": ["Ionide WorkspaceLoader", "MSBuild Project Graph WorkspaceLoader"],
10288
"default": "WorkspaceLoader",
10389
"type": "pickString"
10490
},
10591
{
10692
"id": "compiler",
10793
"description": "The compiler to use",
108-
"options": [
109-
"BackgroundCompiler",
110-
"TransparentCompiler"
111-
],
94+
"options": ["BackgroundCompiler", "TransparentCompiler"],
11295
"default": "BackgroundCompiler",
113-
"type": "pickString",
96+
"type": "pickString"
11497
},
11598
{
11699
"id": "testName",

.vscode/tasks.json

Lines changed: 26 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,28 @@
11
{
2-
// See https://go.microsoft.com/fwlink/?LinkId=733558
3-
// for the documentation about the tasks.json format
4-
"version": "2.0.0",
5-
"tasks": [
6-
{
7-
"label": "format codebase",
8-
"command": "dotnet",
9-
"args": [
10-
"build",
11-
"-t",
12-
"Format"
13-
],
14-
"detail": "Format all source code using Fantomas",
15-
"type": "shell",
16-
"problemMatcher": []
17-
}
18-
]
2+
// See https://go.microsoft.com/fwlink/?LinkId=733558
3+
// for the documentation about the tasks.json format
4+
"version": "2.0.0",
5+
"tasks": [
6+
{
7+
"label": "format codebase",
8+
"command": "dotnet",
9+
"args": ["build", "-t", "Format"],
10+
"detail": "Format all source code using Fantomas",
11+
"type": "shell",
12+
"problemMatcher": []
13+
},
14+
{
15+
"label": "build debug",
16+
"type": "process",
17+
"command": "dotnet",
18+
"args": [
19+
"build",
20+
"-c",
21+
"Debug",
22+
"${workspaceFolder}/FsAutoComplete.sln",
23+
"/property:GenerateFullPaths=true",
24+
"/consoleloggerparameters:NoSummary"
25+
]
26+
}
27+
]
1928
}

0 commit comments

Comments
 (0)