Skip to content

A Swiss Army knife for developers.

improved VS Code experience

Etienne Baudouxb6465f384dae
diff --git a/.vscode/extensions.json b/.vscode/extensions.json
index 8035529a8..b6d5b59e0 100644
--- a/.vscode/extensions.json
+++ b/.vscode/extensions.json
@@ -2,7 +2,20 @@
"recommendations": [
"ms-dotnettools.csharp",
"visualstudioexptteam.vscodeintellicode",
- "ms-dotnettools.blazorwasm-companion",
- "eamodio.gitlens"
+ "visualstudioexptteam.intellicode-api-usage-examples",
+ "eamodio.gitlens",
+ "formulahendry.dotnet-test-explorer",
+ "formulahendry.dotnet",
+ "ms-dotnettools.vscode-dotnet-runtime",
+ "fudge.auto-using",
+ "kreativ-software.csharpextensions",
+ "adrianwilczynski.namespace",
+ "k--kato.docomment",
+ "editorconfig.editorconfig",
+ "github.copilot",
+ "github.vscode-pull-request-github",
+ "christian-kohler.path-intellisense",
+ "kevin-chatham.aspnetcorerazor-html-css-class-completion",
+ "vscode-icons-team.vscode-icons"
]
}
\ No newline at end of file
diff --git a/.vscode/launch.json b/.vscode/launch.json
index d5b9dedd4..e9b7bb86b 100644
--- a/.vscode/launch.json
+++ b/.vscode/launch.json
@@ -5,11 +5,37 @@
"version": "0.2.0",
"configurations": [
{
- "name": "Debug (MAUI Blazor desktop app)",
+ "name": "Debug (MacOS)",
"type": "coreclr",
- "request": "attach",
- "processName": "DevToys.MacOS",
- "preLaunchTask": "Run",
+ "request": "launch",
+ "program": "${workspaceRoot}/bin/Debug/AnyCPU/DevToys.MacOS/net7.0-maccatalyst/DevToys.MacOS.app",
+ "args": [],
+ "cwd": "${workspaceRoot}",
+ "stopAtEntry": false,
+ "console": "internalConsole",
+ "preLaunchTask": "BuildMacOS"
+ },
+ {
+ "name": "Debug (Windows)",
+ "type": "coreclr",
+ "request": "launch",
+ "program": "${workspaceRoot}/bin/Debug/AnyCPU/DevToys.Windows/net7.0-windows/DevToys.Windows.exe",
+ "args": [],
+ "cwd": "${workspaceRoot}",
+ "stopAtEntry": false,
+ "console": "internalConsole",
+ "preLaunchTask": "BuildWindows"
+ },
+ {
+ "name": "Debug (CLI)",
+ "type": "coreclr",
+ "request": "launch",
+ "program": "${workspaceRoot}/bin/Debug/AnyCPU/DevToys.CLI/net7.0/DevToys.CLI.exe",
+ "args": [],
+ "cwd": "${workspaceRoot}",
+ "stopAtEntry": false,
+ "console": "internalConsole",
+ "preLaunchTask": "BuildCLI"
}
]
}
\ No newline at end of file
diff --git a/.vscode/settings.json b/.vscode/settings.json
new file mode 100644
index 000000000..57415ed7a
--- /dev/null
+++ b/.vscode/settings.json
@@ -0,0 +1,3 @@
+{
+ "dotnet-test-explorer.testProjectPath": "src\\app\\tests\\DevToys.UnitTests\\DevToys.UnitTests.csproj"
+}
\ No newline at end of file
diff --git a/.vscode/tasks.json b/.vscode/tasks.json
index f85eea719..62556951c 100644
--- a/.vscode/tasks.json
+++ b/.vscode/tasks.json
@@ -1,29 +1,6 @@
{
"version": "2.0.0",
"inputs": [
- {
- // Add additional projects here. They will be available in the drop down
- // in vscode.
- "id": "project",
- "type": "pickString",
- "default": "${workspaceFolder}/src/app/dev/platforms/desktop/DevToys.MacOS/DevToys.MacOS.csproj",
- "description": "Pick the Project you want to build.",
- "options": [
- "${workspaceFolder}/src/app/dev/platforms/desktop/DevToys.MacOS/DevToys.MacOS.csproj",
- ]
- },
- {
- // Add additional projects here. They will be available in the drop down
- // in vscode.
- "id": "framework",
- "type": "pickString",
- "default": "net7.0-maccatalyst",
- "description": "Pick the framework you want to target.",
- "options": [
- "net7.0-maccatalyst",
- "net7.0-windows",
- ]
- },
{
"id": "configuration",
"type": "pickString",
@@ -37,13 +14,12 @@
],
"tasks": [
{
- "label": "Build",
+ "label": "BuildMacOS",
"type": "shell",
"command": "dotnet",
"args": [
"build",
- "${input:project}",
- "-f:${input:framework}",
+ "src/app/dev/platforms/desktop/DevToys.MacOS/DevToys.MacOS.csproj",
"-c:${input:configuration}",
// Do not generate summary otherwise it leads to duplicate errors in Problems panel
"/consoleloggerparameters:NoSummary"
@@ -56,25 +32,37 @@
"problemMatcher": ["$msCompile"]
},
{
- "label": "Run",
+ "label": "BuildWindows",
"type": "shell",
"command": "dotnet",
"args": [
"build",
- "${input:project}",
- "-t:Run",
- "-f:${input:framework}",
+ "src/app/dev/platforms/desktop/DevToys.Windows/DevToys.Windows.csproj",
"-c:${input:configuration}",
// Do not generate summary otherwise it leads to duplicate errors in Problems panel
"/consoleloggerparameters:NoSummary"
],
- "presentation": {
- // Reveal the output only if unrecognized errors occur.
- "reveal": "silent"
+ "group": {
+ "kind": "build",
+ "isDefault": true
},
+ // Use the standard MS compiler pattern to detect errors, warnings and infos
+ "problemMatcher": ["$msCompile"]
+ },
+ {
+ "label": "BuildCLI",
+ "type": "shell",
+ "command": "dotnet",
+ "args": [
+ "build",
+ "src/app/dev/platforms/desktop/DevToys.CLI/DevToys.CLI.csproj",
+ "-c:${input:configuration}",
+ // Do not generate summary otherwise it leads to duplicate errors in Problems panel
+ "/consoleloggerparameters:NoSummary"
+ ],
"group": {
- "kind": "none",
- "isDefault": false
+ "kind": "build",
+ "isDefault": true
},
// Use the standard MS compiler pattern to detect errors, warnings and infos
"problemMatcher": ["$msCompile"]