mirror of
https://github.com/godotengine/godot-vscode-plugin.git
synced 2026-01-05 14:10:13 +03:00
The extension will be built and uploaded to artifacts so it can be tested easily by users. This also fixes warnings reported by TSLint.
302 lines
7.4 KiB
JSON
302 lines
7.4 KiB
JSON
{
|
|
"name": "godot-tools",
|
|
"displayName": "godot-tools",
|
|
"icon": "icon.png",
|
|
"version": "1.1.1",
|
|
"description": "Tools for game development with godot game engine",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/godotengine/godot-vscode-plugin"
|
|
},
|
|
"author": "The Godot Engine community",
|
|
"publisher": "geequlim",
|
|
"engines": {
|
|
"vscode": "^1.33.0"
|
|
},
|
|
"categories": [
|
|
"Other",
|
|
"Debuggers"
|
|
],
|
|
"activationEvents": [
|
|
"workspaceContains:project.godot",
|
|
"onLanguage:gdscript",
|
|
"onDebugResolve:godot"
|
|
],
|
|
"main": "./out/extension.js",
|
|
"scripts": {
|
|
"vscode:prepublish": "npm run compile",
|
|
"compile": "tsc -p ./",
|
|
"lint": "tslint -p ./",
|
|
"watch": "tsc -watch -p ./"
|
|
},
|
|
"contributes": {
|
|
"commands": [
|
|
{
|
|
"command": "godot-tool.open_editor",
|
|
"title": "Godot Tools: Open workspace with Godot editor"
|
|
},
|
|
{
|
|
"command": "godot-tool.run_project",
|
|
"title": "Godot Tools: Run workspace as Godot project"
|
|
},
|
|
{
|
|
"command": "godot-tool.list_native_classes",
|
|
"title": "Godot Tools: List native classes of godot"
|
|
},
|
|
{
|
|
"command": "godot-tool.debugger.inspect_node",
|
|
"title": "Inspect Remote Node",
|
|
"icon": {
|
|
"light": "resources/light/icon_GUI_visibility_visible.svg",
|
|
"dark": "resources/dark/icon_GUI_visibility_visible.svg"
|
|
}
|
|
},
|
|
{
|
|
"command": "godot-tool.debugger.refresh_scene_tree",
|
|
"title": "Refresh",
|
|
"icon": {
|
|
"light": "resources/light/icon_refresh.svg",
|
|
"dark": "resources/dark/icon_refresh.svg"
|
|
}
|
|
},
|
|
{
|
|
"command": "godot-tool.debugger.refresh_inspector",
|
|
"title": "Refresh",
|
|
"icon": {
|
|
"light": "resources/light/icon_refresh.svg",
|
|
"dark": "resources/dark/icon_refresh.svg"
|
|
}
|
|
},
|
|
{
|
|
"command": "godot-tool.debugger.edit_value",
|
|
"title": "Edit value",
|
|
"icon": {
|
|
"light": "resources/light/icon_edit.svg",
|
|
"dark": "resources/dark/icon_edit.svg"
|
|
}
|
|
}
|
|
],
|
|
"configuration": {
|
|
"type": "object",
|
|
"title": "Godot Tools configuration",
|
|
"properties": {
|
|
"godot_tools.gdscript_lsp_server_protocol": {
|
|
"type": [
|
|
"string"
|
|
],
|
|
"enum": [
|
|
"ws",
|
|
"tcp"
|
|
],
|
|
"default": "tcp",
|
|
"enumDescriptions": [
|
|
"Using WebSocket protocol to connect to Godot 3.2 and Godot 3.2.1",
|
|
"Using TCP protocol to connect to Godot 3.2.2 and newer versions"
|
|
],
|
|
"description": "The server protocol of the GDScript language server.\nYou have restart VSCode editor after change this value."
|
|
},
|
|
"godot_tools.gdscript_lsp_server_port": {
|
|
"type": "number",
|
|
"default": 6008,
|
|
"description": "The server port of the GDScript language server"
|
|
},
|
|
"godot_tools.editor_path": {
|
|
"type": "string",
|
|
"default": "",
|
|
"description": "The absolute path to the Godot editor executable"
|
|
},
|
|
"godot-tool.check_status": {
|
|
"type": "string",
|
|
"default": "",
|
|
"description": "Check the gdscript language server connection status"
|
|
}
|
|
}
|
|
},
|
|
"languages": [
|
|
{
|
|
"id": "gdscript",
|
|
"aliases": [
|
|
"GDScript",
|
|
"gdscript"
|
|
],
|
|
"extensions": [
|
|
".gd"
|
|
],
|
|
"configuration": "./configurations/gdscript-configuration.json"
|
|
},
|
|
{
|
|
"id": "properties",
|
|
"extensions": [
|
|
"cfg",
|
|
"tres",
|
|
"tscn",
|
|
"godot",
|
|
"gdns",
|
|
"gdnlib",
|
|
"import"
|
|
]
|
|
}
|
|
],
|
|
"grammars": [
|
|
{
|
|
"language": "gdscript",
|
|
"scopeName": "source.gdscript",
|
|
"path": "./configurations/GDScript.tmLanguage.json"
|
|
}
|
|
],
|
|
"snippets": [
|
|
{
|
|
"language": "gdscript",
|
|
"path": "./configurations/snippets.json"
|
|
}
|
|
],
|
|
"debuggers": [
|
|
{
|
|
"type": "godot",
|
|
"label": "GDScript Godot Debug",
|
|
"program": "./out/debugger/debug_adapter.js",
|
|
"runtime": "node",
|
|
"configurationAttributes": {
|
|
"launch": {
|
|
"required": [
|
|
"project",
|
|
"port",
|
|
"address"
|
|
],
|
|
"properties": {
|
|
"project": {
|
|
"type": "string",
|
|
"description": "Absolute path to a directory with a project.godot file.",
|
|
"default": "${workspaceFolder}"
|
|
},
|
|
"port": {
|
|
"type": "number",
|
|
"description": "The port number for the Godot remote debugger to use.",
|
|
"default": 6007
|
|
},
|
|
"address": {
|
|
"type": "string",
|
|
"description": "The IP address for the Godot remote debugger to use.",
|
|
"default": "127.0.0.1"
|
|
},
|
|
"launch_game_instance": {
|
|
"type": "boolean",
|
|
"description": "Whether to launch an instance of the workspace's game, or wait for a debug session to connect.",
|
|
"default": true
|
|
},
|
|
"launch_scene": {
|
|
"type": "boolean",
|
|
"description": "Whether to launch an instance the currently opened TSCN file, or launch the game project. Only works with launch_game_instance being true.",
|
|
"default": false
|
|
},
|
|
"scene_file": {
|
|
"type": "string",
|
|
"description": "Relative path from the godot.project file to a TSCN file. If launch_scene and launch_game_instance are true, and this file is defined, will launch the specified file instead of looking for an active TSCN file.",
|
|
"default": ""
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"initialConfigurations": [
|
|
{
|
|
"name": "GDScript Godot",
|
|
"type": "godot",
|
|
"request": "launch",
|
|
"project": "${workspaceFolder}",
|
|
"port": 6007,
|
|
"address": "127.0.0.1",
|
|
"launch_game_instance": true,
|
|
"launch_scene": false
|
|
}
|
|
],
|
|
"configurationSnippets": [
|
|
{
|
|
"label": "GDScript Godot Debug: Launch",
|
|
"description": "A new configuration for debugging a Godot project.",
|
|
"body": {
|
|
"type": "godot",
|
|
"request": "launch",
|
|
"project": "${workspaceFolder}",
|
|
"port": 6007,
|
|
"address": "127.0.0.1",
|
|
"launch_game_instance": true,
|
|
"launch_scene": false
|
|
}
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"breakpoints": [
|
|
{
|
|
"language": "gdscript"
|
|
}
|
|
],
|
|
"views": {
|
|
"debug": [
|
|
{
|
|
"id": "active-scene-tree",
|
|
"name": "Active Scene Tree",
|
|
"when": "inDebugMode && debugType == 'godot'"
|
|
},
|
|
{
|
|
"id": "inspect-node",
|
|
"name": "Inspector",
|
|
"when": "inDebugMode && debugType == 'godot'"
|
|
}
|
|
]
|
|
},
|
|
"menus": {
|
|
"view/title": [
|
|
{
|
|
"command": "godot-tool.debugger.refresh_scene_tree",
|
|
"when": "view == active-scene-tree",
|
|
"group": "navigation"
|
|
},
|
|
{
|
|
"command": "godot-tool.debugger.refresh_inspector",
|
|
"when": "view == inspect-node",
|
|
"group": "navigation"
|
|
}
|
|
],
|
|
"view/item/context": [
|
|
{
|
|
"command": "godot-tool.debugger.inspect_node",
|
|
"when": "view == active-scene-tree",
|
|
"group": "inline"
|
|
},
|
|
{
|
|
"command": "godot-tool.debugger.inspect_node",
|
|
"when": "view == inspect-node && viewItem == remote_object",
|
|
"group": "inline"
|
|
},
|
|
{
|
|
"command": "godot-tool.debugger.edit_value",
|
|
"when": "view == inspect-node && viewItem == editable_value",
|
|
"group": "inline"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"devDependencies": {
|
|
"@types/marked": "^0.6.5",
|
|
"@types/mocha": "^2.2.42",
|
|
"@types/node": "^10.12.21",
|
|
"@types/prismjs": "^1.16.0",
|
|
"@types/vscode": "^1.33.0",
|
|
"@types/ws": "^6.0.1",
|
|
"tslint": "^5.16.0",
|
|
"typescript": "^3.5.1",
|
|
"vsce": "^1.76.1"
|
|
},
|
|
"dependencies": {
|
|
"await-notify": "^1.0.1",
|
|
"global": "^4.4.0",
|
|
"marked": "^0.7.0",
|
|
"net": "^1.0.2",
|
|
"terminate": "^2.1.2",
|
|
"vscode-debugadapter": "^1.38.0",
|
|
"vscode-languageclient": "^5.2.1",
|
|
"ws": "^7.0.0"
|
|
}
|
|
}
|