mirror of
https://github.com/godotengine/godot-vscode-plugin.git
synced 2025-12-31 13:48:24 +03:00
Local package installations should be favored over global installations to avoid conflicts when working on multiple projects on the same system. Only dependencies that did not cause the build to break were updated. - Add `package` npm script to run local vsce installation.
313 lines
7.6 KiB
JSON
313 lines
7.6 KiB
JSON
{
|
|
"name": "godot-tools",
|
|
"displayName": "godot-tools",
|
|
"icon": "icon.png",
|
|
"version": "1.1.3",
|
|
"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 ./",
|
|
"package": "vsce package"
|
|
},
|
|
"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"
|
|
}
|
|
},
|
|
{
|
|
"command": "godot-tool.set_scene_file",
|
|
"title": "Set as Scene File"
|
|
}
|
|
],
|
|
"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_tools.scene_file_config": {
|
|
"type": "string",
|
|
"default": "",
|
|
"description": "The scene file to run"
|
|
}
|
|
}
|
|
},
|
|
"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": "./syntaxes/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"
|
|
}
|
|
],
|
|
"explorer/context": [
|
|
{
|
|
"command": "godot-tool.set_scene_file",
|
|
"group": "2_workspace"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"devDependencies": {
|
|
"@types/marked": "^0.6.5",
|
|
"@types/mocha": "^9.1.0",
|
|
"@types/node": "^10.12.21",
|
|
"@types/prismjs": "^1.16.8",
|
|
"@types/vscode": "^1.33.0",
|
|
"@types/ws": "^8.2.2",
|
|
"tslint": "^5.20.1",
|
|
"typescript": "^3.5.1",
|
|
"vsce": "^2.6.4"
|
|
},
|
|
"dependencies": {
|
|
"await-notify": "^1.0.1",
|
|
"global": "^4.4.0",
|
|
"marked": "^4.0.11",
|
|
"net": "^1.0.2",
|
|
"terminate": "^2.5.0",
|
|
"vscode-debugadapter": "^1.38.0",
|
|
"vscode-languageclient": "^5.2.1",
|
|
"ws": "^8.4.2"
|
|
}
|
|
}
|