Skip to content

Commit

Permalink
Added build debug to prelaunch task in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
1eyewonder committed Dec 21, 2024
1 parent 466fcfc commit 2017f1a
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 45 deletions.
39 changes: 11 additions & 28 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,12 @@
"type": "coreclr",
"request": "launch",
"program": "${workspaceFolder}/src/FsAutoComplete/bin/Debug/net6.0/fsautocomplete.dll",
"args": [
"--mode",
"lsp"
],
"args": ["--mode", "lsp"],
"cwd": "${workspaceFolder}",
"console": "internalConsole",
"stopAtEntry": false,
"internalConsoleOptions": "openOnSessionStart"
"internalConsoleOptions": "openOnSessionStart",
"preLaunchTask": "build debug"
},
{
"name": ".NET Core Attach",
Expand Down Expand Up @@ -49,11 +47,8 @@
}
},
"enableStepFiltering": false,
"args": [
"--debug",
"--filter",
"FSAC.lsp.${input:loader}.${input:compiler}.${input:testName}"
]
"args": ["--debug", "--filter", "FSAC.lsp.${input:loader}.${input:compiler}.${input:testName}"],
"preLaunchTask": "build debug"
},
{
"name": "Pick General tests",
Expand All @@ -74,43 +69,31 @@
}
},
"enableStepFiltering": false,
"args": [
"--debug",
"--filter",
"FSAC.general.${input:testName}"
]
"args": ["--debug", "--filter", "FSAC.general.${input:testName}"],
"preLaunchTask": "build debug"
}
],
"inputs": [
{
"id": "tfm",
"description": "The TFM of the test to run",
"options": [
"net6.0",
"net7.0"
],
"options": ["net6.0", "net7.0"],
"default": "net7.0",
"type": "pickString"
},
{
"id": "loader",
"description": "The loader to use for the test",
"options": [
"Ionide WorkspaceLoader",
"MSBuild Project Graph WorkspaceLoader"
],
"options": ["Ionide WorkspaceLoader", "MSBuild Project Graph WorkspaceLoader"],
"default": "WorkspaceLoader",
"type": "pickString"
},
{
"id": "compiler",
"description": "The compiler to use",
"options": [
"BackgroundCompiler",
"TransparentCompiler"
],
"options": ["BackgroundCompiler", "TransparentCompiler"],
"default": "BackgroundCompiler",
"type": "pickString",
"type": "pickString"
},
{
"id": "testName",
Expand Down
43 changes: 26 additions & 17 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,28 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "format codebase",
"command": "dotnet",
"args": [
"build",
"-t",
"Format"
],
"detail": "Format all source code using Fantomas",
"type": "shell",
"problemMatcher": []
}
]
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "format codebase",
"command": "dotnet",
"args": ["build", "-t", "Format"],
"detail": "Format all source code using Fantomas",
"type": "shell",
"problemMatcher": []
},
{
"label": "build debug",
"type": "process",
"command": "dotnet",
"args": [
"build",
"-c",
"Debug",
"${workspaceFolder}/FsAutoComplete.sln",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary"
]
}
]
}

0 comments on commit 2017f1a

Please sign in to comment.