diff --git a/.gitignore b/.gitignore index eb34be2de75e..f7812b6dd260 100644 --- a/.gitignore +++ b/.gitignore @@ -263,6 +263,8 @@ __pycache__/ # Visual Studio Code workspace settings. .vscode/* !.vscode/extensions.json +!.vscode/launch.json +!.vscode/tasks.json # Release package files go here: release/ diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 000000000000..4d7ba6748e02 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,46 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "name": "Client", + "type": "coreclr", + "request": "launch", + "program": "${workspaceFolder}/bin/Content.Client/Content.Client.dll", + "args": [], + "console": "internalConsole", + "stopAtEntry": false + }, + { + "name": "Server", + "type": "coreclr", + "request": "launch", + "program": "${workspaceFolder}/bin/Content.Server/Content.Server.dll", + "args": [], + "console": "integratedTerminal", + "stopAtEntry": false + }, + { + "name": "YAML Linter", + "type": "coreclr", + "request": "launch", + "preLaunchTask": "build-yaml-linter", + "program": "${workspaceFolder}/bin/Content.YAMLLinter/Content.YAMLLinter.dll", + "cwd": "${workspaceFolder}/Content.YAMLLinter", + "console": "internalConsole", + "stopAtEntry": false + } + ], + "compounds": [ + { + "name": "Server/Client", + "configurations": [ + "Server", + "Client" + ], + "preLaunchTask": "build" + } + ] +} \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 000000000000..2865cc0fbfa4 --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,37 @@ +{ + // See https://go.microsoft.com/fwlink/?LinkId=733558 + // for the documentation about the tasks.json format + "version": "2.0.0", + "tasks": [ + { + "label": "build", + "command": "dotnet", + "type": "shell", + "args": [ + "build", + "/property:GenerateFullPaths=true", // Ask dotnet build to generate full paths for file names. + "/consoleloggerparameters:NoSummary" // Do not generate summary otherwise it leads to duplicate errors in Problems panel + ], + "group": { + "kind": "build", + "isDefault": true + }, + "presentation": { + "reveal": "silent" + }, + "problemMatcher": "$msCompile" + }, + { + "label": "build-yaml-linter", + "command": "dotnet", + "type": "process", + "args": [ + "build", + "${workspaceFolder}/Content.YAMLLinter/Content.YAMLLinter.csproj", + "/property:GenerateFullPaths=true", + "/consoleloggerparameters:NoSummary" + ], + "problemMatcher": "$msCompile" + } + ] +} \ No newline at end of file