Files
godot-csharp-vscode/package.json
2022-04-02 13:15:50 +02:00

233 lines
5.4 KiB
JSON

{
"name": "godot-csharp-vscode",
"displayName": "C# Tools for Godot",
"description": "Debugger and utilities for working with Godot C# projects",
"icon": "icon.png",
"version": "0.2.1",
"publisher": "neikeq",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/godotengine/godot-csharp-vscode"
},
"engines": {
"vscode": "^1.62.0"
},
"categories": [
"Debuggers",
"Other"
],
"activationEvents": [
"workspaceContains:**/project.godot",
"onDebugResolve:godot",
"onCommand:godot.csharp.selectProject",
"onCommand:godot.csharp.generateAssets",
"onCommand:godot.csharp.getLaunchScene"
],
"main": "./dist/extension.bundled.js",
"scripts": {
"vscode:prepublish": "make build",
"compile": "make build",
"compile-tsc": "make tsc",
"compile-tsc-debug": "make tsc-debug",
"watch": "tsc -watch -p ./",
"webpack": "webpack --mode production",
"webpack-debug": "webpack --mode development",
"webpack-watch": "webpack --mode development --watch"
},
"dependencies": {
"async-file": "^2.0.2",
"chokidar": "^3.4.0",
"fs-extra": "^10.0.0",
"jsonc-parser": "^3.0.0",
"lookpath": "^1.2.1",
"promise-socket": "^6.0.3",
"vscode-debugprotocol": "^1.40.0"
},
"extensionDependencies": [
"ms-dotnettools.csharp",
"ms-vscode.mono-debug"
],
"devDependencies": {
"@types/fs-extra": "^9.0.12",
"@types/glob": "^7.1.1",
"@types/mocha": "^5.2.6",
"@types/node": "^16.4.1",
"@types/vscode": "^1.62.0",
"glob": "^7.1.4",
"mocha": "^6.1.4",
"ts-loader": "^7.0.5",
"tslint": "^5.12.1",
"typescript": "^3.3.1",
"vsce": "^1.20.0",
"webpack": "^5.70.0",
"webpack-cli": "^4.9.2"
},
"breakpoints": [
{
"language": "csharp"
},
{
"language": "fsharp"
}
],
"contributes": {
"configuration": {
"title": "Godot Mono",
"properties": {
"godot.csharp.executablePath": {
"type": "string",
"default": null,
"description": "Path to the Godot engine executable."
}
}
},
"commands": [
{
"command": "godot.csharp.generateAssets",
"title": "Generate Assets for Build and Debug",
"category": "C# Godot"
},
{
"command": "godot.csharp.selectProject",
"title": "Select Project",
"category": "C# Godot"
}
],
"breakpoints": [
{
"language": "csharp"
},
{
"language": "fsharp"
}
],
"debuggers": [
{
"type": "godot-mono",
"label": "C# Godot",
"languages": [
"csharp",
"fsharp"
],
"program": "./dist/GodotDebugSession/GodotDebugSession.exe",
"osx": {
"runtime": "mono"
},
"linux": {
"runtime": "mono"
},
"variables": {
"SelectLaunchScene": "godot.csharp.getLaunchScene"
},
"configurationSnippets": [
{
"label": "C# Godot: Play in Editor Configuration",
"description": "Launch a C# Godot App from the open editor with a debugger.",
"body": {
"name": "Play in Editor",
"type": "godot-mono",
"mode": "playInEditor",
"request": "launch"
}
},
{
"label": "C# Godot: Launch Configuration",
"description": "Launch a C# Godot App with a debugger.",
"body": {
"name": "Launch",
"type": "godot-mono",
"request": "launch",
"mode": "executable",
"preLaunchTask": "build",
"executable": "${1:<insert-godot-executable-path-here>}",
"executableArguments": [
"--path",
"${workspaceRoot}"
]
}
},
{
"label": "C# Godot: Launch Configuration (Select Scene)",
"description": "Launch a C# Godot App with a debugger.",
"body": {
"name": "Launch (Select Scene)",
"type": "godot-mono",
"request": "launch",
"mode": "executable",
"preLaunchTask": "build",
"executable": "${1:<insert-godot-executable-path-here>}",
"executableArguments": [
"--path",
"${workspaceRoot}",
"${command:SelectLaunchScene}"
]
}
},
{
"label": "C# Godot: Attach Configuration",
"description": "Attach a debugger to a C# Godot App.",
"body": {
"name": "Attach",
"type": "godot-mono",
"request": "attach",
"address": "localhost",
"port": 23685
}
}
],
"configurationAttributes": {
"playInEditor": {},
"launch": {
"properties": {
"executable": {
"type": "string",
"description": "Path to the Godot executable"
},
"mode": {
"type": "string",
"enum": [
"playInEditor",
"executable"
],
"enumDescriptions": [
"Launches the project in the Godot editor for debugging",
"Launches the project with the specified executable for debugging"
],
"description": "Launch mode"
},
"executableArguments": {
"type": "array",
"description": "Arguments to append after the executable"
},
"env": {
"type": "object",
"description": "Environment variables",
"default": null
}
}
},
"attach": {
"required": [
"address",
"port"
],
"properties": {
"address": {
"type": "string",
"description": "Debugger address to attach to.",
"default": "localhost"
},
"port": {
"type": "number",
"description": "Debugger port to attach to.",
"default": 23685
}
}
}
}
}
]
}
}