2022-04-07 20:54:39 +03:00
|
|
|
{
|
|
|
|
// See https://go.microsoft.com/fwlink/?LinkId=733558
|
|
|
|
// for the documentation about the tasks.json format
|
|
|
|
"version": "2.0.0",
|
2023-12-11 17:38:11 +03:00
|
|
|
"inputs": [
|
|
|
|
{
|
|
|
|
"id": "fscArgsPrompt",
|
|
|
|
"description": "Enter arguments for fsc",
|
|
|
|
"default": "",
|
|
|
|
"type": "promptString",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "fsiArgsPrompt",
|
|
|
|
"description": "Enter arguments for fsi",
|
|
|
|
"default": "",
|
|
|
|
"type": "promptString",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "PickProcess",
|
|
|
|
"description": "Enter process id",
|
|
|
|
"type": "promptString"
|
|
|
|
}
|
|
|
|
],
|
2022-04-07 20:54:39 +03:00
|
|
|
"windows": {
|
|
|
|
"options": {
|
|
|
|
"shell": {
|
|
|
|
"executable": "cmd.exe",
|
|
|
|
"args": [
|
|
|
|
"/d",
|
|
|
|
"/c"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tasks": [
|
|
|
|
{
|
2023-03-29 12:06:42 +03:00
|
|
|
"label": "Build (Debug)",
|
|
|
|
"command": "dotnet",
|
2022-04-07 20:54:39 +03:00
|
|
|
"type": "shell",
|
|
|
|
"args": [
|
2023-03-29 12:06:42 +03:00
|
|
|
"build",
|
2023-10-07 18:42:38 +03:00
|
|
|
"-c",
|
|
|
|
"Debug",
|
2023-03-29 12:06:42 +03:00
|
|
|
"FSharp.Compiler.Service.sln"
|
2022-04-07 20:54:39 +03:00
|
|
|
],
|
|
|
|
"windows": {
|
2023-03-29 12:06:42 +03:00
|
|
|
"command": "dotnet",
|
2022-12-02 19:01:14 +03:00
|
|
|
"args": [
|
2023-03-29 12:06:42 +03:00
|
|
|
"build",
|
2023-10-07 18:42:38 +03:00
|
|
|
"-c",
|
|
|
|
"Debug",
|
2023-03-29 12:06:42 +03:00
|
|
|
"FSharp.Compiler.Service.sln"
|
2023-11-10 14:04:25 +03:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"options": {
|
|
|
|
"env": {
|
|
|
|
"UpdateXlfOnBuild": "true"
|
|
|
|
}
|
2022-04-07 20:54:39 +03:00
|
|
|
},
|
|
|
|
"problemMatcher": "$msCompile",
|
2023-11-10 14:04:25 +03:00
|
|
|
"group": {
|
|
|
|
"kind": "build",
|
|
|
|
"isDefault": true
|
|
|
|
}
|
2022-04-07 20:54:39 +03:00
|
|
|
},
|
|
|
|
{
|
2023-03-29 12:06:42 +03:00
|
|
|
"label": "Build (Release)",
|
|
|
|
"command": "dotnet",
|
2022-04-07 20:54:39 +03:00
|
|
|
"type": "shell",
|
|
|
|
"args": [
|
2023-03-29 12:06:42 +03:00
|
|
|
"build",
|
2023-10-07 18:42:38 +03:00
|
|
|
"-c",
|
|
|
|
"Release",
|
2023-03-29 12:06:42 +03:00
|
|
|
"FSharp.Compiler.Service.sln"
|
2022-04-07 20:54:39 +03:00
|
|
|
],
|
|
|
|
"windows": {
|
2023-03-29 12:06:42 +03:00
|
|
|
"command": "dotnet",
|
2022-12-02 19:01:14 +03:00
|
|
|
"args": [
|
2023-03-29 12:06:42 +03:00
|
|
|
"build",
|
2023-10-07 18:42:38 +03:00
|
|
|
"-c",
|
|
|
|
"Release",
|
2023-03-29 12:06:42 +03:00
|
|
|
"FSharp.Compiler.Service.sln"
|
2023-11-10 14:04:25 +03:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"options": {
|
|
|
|
"env": {
|
|
|
|
"UpdateXlfOnBuild": "true"
|
|
|
|
}
|
2022-04-07 20:54:39 +03:00
|
|
|
},
|
|
|
|
"problemMatcher": "$msCompile",
|
2023-11-10 14:04:25 +03:00
|
|
|
"group": "build"
|
2022-04-07 20:54:39 +03:00
|
|
|
},
|
2023-12-11 17:38:11 +03:00
|
|
|
{
|
|
|
|
"label": "Run FSI with dotnet-trace",
|
|
|
|
"command": "dotnet",
|
|
|
|
"type": "shell",
|
|
|
|
"args": [
|
|
|
|
"dotnet-trace",
|
|
|
|
"collect",
|
|
|
|
"--format",
|
|
|
|
"Speedscope",
|
|
|
|
"--",
|
|
|
|
"dotnet",
|
2024-07-23 13:40:03 +03:00
|
|
|
"${workspaceFolder}/artifacts/bin/fsi/Debug/net9.0/fsi.dll",
|
2023-12-11 17:38:11 +03:00
|
|
|
"${input:fsiArgsPrompt}"
|
|
|
|
],
|
|
|
|
"problemMatcher": "$msCompile",
|
|
|
|
"group": "none"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"label": "Run FSC with dotnet-trace",
|
|
|
|
"command": "dotnet",
|
|
|
|
"type": "shell",
|
|
|
|
"args": [
|
|
|
|
"dotnet-trace",
|
|
|
|
"collect",
|
|
|
|
"--format",
|
|
|
|
"Speedscope",
|
|
|
|
"--",
|
|
|
|
"dotnet",
|
2024-07-23 13:40:03 +03:00
|
|
|
"${workspaceFolder}/artifacts/bin/fsc/Debug/net9.0/fsc.dll",
|
2023-12-11 17:38:11 +03:00
|
|
|
"--targetprofile:netstandard",
|
|
|
|
"--simpleresolution",
|
|
|
|
"${input:fscArgsPrompt}"
|
|
|
|
],
|
|
|
|
"problemMatcher": "$msCompile",
|
|
|
|
"group": "none"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"label": "Create a process dump with dotnet-dump",
|
|
|
|
"command": "dotnet",
|
|
|
|
"type": "shell",
|
|
|
|
"args": [
|
|
|
|
"dotnet-dump",
|
|
|
|
"collect",
|
|
|
|
"--diag",
|
|
|
|
"--crashreport",
|
|
|
|
"--type",
|
|
|
|
"Full",
|
|
|
|
"--process-id",
|
|
|
|
"${input:PickProcess}",
|
|
|
|
],
|
|
|
|
"problemMatcher": "$msCompile",
|
|
|
|
"group": "none"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"label": "Create a process GC dump with dotnet-gcdump",
|
|
|
|
"command": "dotnet",
|
|
|
|
"type": "shell",
|
|
|
|
"args": [
|
|
|
|
"dotnet-gcdump",
|
|
|
|
"collect",
|
|
|
|
"--process-id",
|
|
|
|
"${input:PickProcess}",
|
|
|
|
],
|
|
|
|
"problemMatcher": "$msCompile",
|
|
|
|
"group": "none"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"label": "Collect process counters with dotnet-counters",
|
|
|
|
"command": "dotnet",
|
|
|
|
"type": "shell",
|
|
|
|
"args": [
|
|
|
|
"dotnet-counters",
|
|
|
|
"collect",
|
|
|
|
"--process-id",
|
|
|
|
"${input:PickProcess}",
|
|
|
|
],
|
|
|
|
"problemMatcher": "$msCompile",
|
|
|
|
"group": "none"
|
|
|
|
},
|
2022-04-07 20:54:39 +03:00
|
|
|
{
|
|
|
|
"label": "Update xlf files",
|
2023-12-11 17:38:11 +03:00
|
|
|
"command": "dotnet",
|
|
|
|
"type": "shell",
|
|
|
|
"args": ["build", "-t:UpdateXlf", "src/Compiler/FSharp.Compiler.Service.fsproj"],
|
|
|
|
"problemMatcher": "$msCompile",
|
|
|
|
"group": "build"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"label": "Run Fantomas",
|
|
|
|
"command": "dotnet",
|
|
|
|
"args": ["fantomas", "."],
|
2022-04-07 20:54:39 +03:00
|
|
|
"type": "shell",
|
|
|
|
"problemMatcher": "$msCompile",
|
|
|
|
"group": "build"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|