package.json 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311
  1. {
  2. "name": "godot-tools",
  3. "displayName": "godot-tools",
  4. "icon": "icon.png",
  5. "version": "1.1.3",
  6. "description": "Tools for game development with godot game engine",
  7. "repository": {
  8. "type": "git",
  9. "url": "https://github.com/godotengine/godot-vscode-plugin"
  10. },
  11. "author": "The Godot Engine community",
  12. "publisher": "geequlim",
  13. "engines": {
  14. "vscode": "^1.33.0"
  15. },
  16. "categories": [
  17. "Other",
  18. "Debuggers"
  19. ],
  20. "activationEvents": [
  21. "workspaceContains:project.godot",
  22. "onLanguage:gdscript",
  23. "onDebugResolve:godot"
  24. ],
  25. "main": "./out/extension.js",
  26. "scripts": {
  27. "vscode:prepublish": "npm run compile",
  28. "compile": "tsc -p ./",
  29. "lint": "tslint -p ./",
  30. "watch": "tsc -watch -p ./"
  31. },
  32. "contributes": {
  33. "commands": [
  34. {
  35. "command": "godot-tool.open_editor",
  36. "title": "Godot Tools: Open workspace with Godot editor"
  37. },
  38. {
  39. "command": "godot-tool.run_project",
  40. "title": "Godot Tools: Run workspace as Godot project"
  41. },
  42. {
  43. "command": "godot-tool.list_native_classes",
  44. "title": "Godot Tools: List native classes of godot"
  45. },
  46. {
  47. "command": "godot-tool.debugger.inspect_node",
  48. "title": "Inspect Remote Node",
  49. "icon": {
  50. "light": "resources/light/icon_GUI_visibility_visible.svg",
  51. "dark": "resources/dark/icon_GUI_visibility_visible.svg"
  52. }
  53. },
  54. {
  55. "command": "godot-tool.debugger.refresh_scene_tree",
  56. "title": "Refresh",
  57. "icon": {
  58. "light": "resources/light/icon_refresh.svg",
  59. "dark": "resources/dark/icon_refresh.svg"
  60. }
  61. },
  62. {
  63. "command": "godot-tool.debugger.refresh_inspector",
  64. "title": "Refresh",
  65. "icon": {
  66. "light": "resources/light/icon_refresh.svg",
  67. "dark": "resources/dark/icon_refresh.svg"
  68. }
  69. },
  70. {
  71. "command": "godot-tool.debugger.edit_value",
  72. "title": "Edit value",
  73. "icon": {
  74. "light": "resources/light/icon_edit.svg",
  75. "dark": "resources/dark/icon_edit.svg"
  76. }
  77. },
  78. {
  79. "command": "godot-tool.set_scene_file",
  80. "title": "Set as Scene File"
  81. }
  82. ],
  83. "configuration": {
  84. "type": "object",
  85. "title": "Godot Tools configuration",
  86. "properties": {
  87. "godot_tools.gdscript_lsp_server_protocol": {
  88. "type": [
  89. "string"
  90. ],
  91. "enum": [
  92. "ws",
  93. "tcp"
  94. ],
  95. "default": "tcp",
  96. "enumDescriptions": [
  97. "Using WebSocket protocol to connect to Godot 3.2 and Godot 3.2.1",
  98. "Using TCP protocol to connect to Godot 3.2.2 and newer versions"
  99. ],
  100. "description": "The server protocol of the GDScript language server.\nYou have restart VSCode editor after change this value."
  101. },
  102. "godot_tools.gdscript_lsp_server_port": {
  103. "type": "number",
  104. "default": 6008,
  105. "description": "The server port of the GDScript language server"
  106. },
  107. "godot_tools.editor_path": {
  108. "type": "string",
  109. "default": "",
  110. "description": "The absolute path to the Godot editor executable"
  111. },
  112. "godot_tools.scene_file_config": {
  113. "type": "string",
  114. "default": "",
  115. "description": "The scene file to run"
  116. }
  117. }
  118. },
  119. "languages": [
  120. {
  121. "id": "gdscript",
  122. "aliases": [
  123. "GDScript",
  124. "gdscript"
  125. ],
  126. "extensions": [
  127. ".gd"
  128. ],
  129. "configuration": "./configurations/gdscript-configuration.json"
  130. },
  131. {
  132. "id": "properties",
  133. "extensions": [
  134. "cfg",
  135. "tres",
  136. "tscn",
  137. "godot",
  138. "gdns",
  139. "gdnlib",
  140. "import"
  141. ]
  142. }
  143. ],
  144. "grammars": [
  145. {
  146. "language": "gdscript",
  147. "scopeName": "source.gdscript",
  148. "path": "./syntaxes/GDScript.tmLanguage.json"
  149. }
  150. ],
  151. "snippets": [
  152. {
  153. "language": "gdscript",
  154. "path": "./configurations/snippets.json"
  155. }
  156. ],
  157. "debuggers": [
  158. {
  159. "type": "godot",
  160. "label": "GDScript Godot Debug",
  161. "program": "./out/debugger/debug_adapter.js",
  162. "runtime": "node",
  163. "configurationAttributes": {
  164. "launch": {
  165. "required": [
  166. "project",
  167. "port",
  168. "address"
  169. ],
  170. "properties": {
  171. "project": {
  172. "type": "string",
  173. "description": "Absolute path to a directory with a project.godot file.",
  174. "default": "${workspaceFolder}"
  175. },
  176. "port": {
  177. "type": "number",
  178. "description": "The port number for the Godot remote debugger to use.",
  179. "default": 6007
  180. },
  181. "address": {
  182. "type": "string",
  183. "description": "The IP address for the Godot remote debugger to use.",
  184. "default": "127.0.0.1"
  185. },
  186. "launch_game_instance": {
  187. "type": "boolean",
  188. "description": "Whether to launch an instance of the workspace's game, or wait for a debug session to connect.",
  189. "default": true
  190. },
  191. "launch_scene": {
  192. "type": "boolean",
  193. "description": "Whether to launch an instance the currently opened TSCN file, or launch the game project. Only works with launch_game_instance being true.",
  194. "default": false
  195. },
  196. "scene_file": {
  197. "type": "string",
  198. "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.",
  199. "default": ""
  200. }
  201. }
  202. }
  203. },
  204. "initialConfigurations": [
  205. {
  206. "name": "GDScript Godot",
  207. "type": "godot",
  208. "request": "launch",
  209. "project": "${workspaceFolder}",
  210. "port": 6007,
  211. "address": "127.0.0.1",
  212. "launch_game_instance": true,
  213. "launch_scene": false
  214. }
  215. ],
  216. "configurationSnippets": [
  217. {
  218. "label": "GDScript Godot Debug: Launch",
  219. "description": "A new configuration for debugging a Godot project.",
  220. "body": {
  221. "type": "godot",
  222. "request": "launch",
  223. "project": "${workspaceFolder}",
  224. "port": 6007,
  225. "address": "127.0.0.1",
  226. "launch_game_instance": true,
  227. "launch_scene": false
  228. }
  229. }
  230. ]
  231. }
  232. ],
  233. "breakpoints": [
  234. {
  235. "language": "gdscript"
  236. }
  237. ],
  238. "views": {
  239. "debug": [
  240. {
  241. "id": "active-scene-tree",
  242. "name": "Active Scene Tree",
  243. "when": "inDebugMode && debugType == 'godot'"
  244. },
  245. {
  246. "id": "inspect-node",
  247. "name": "Inspector",
  248. "when": "inDebugMode && debugType == 'godot'"
  249. }
  250. ]
  251. },
  252. "menus": {
  253. "view/title": [
  254. {
  255. "command": "godot-tool.debugger.refresh_scene_tree",
  256. "when": "view == active-scene-tree",
  257. "group": "navigation"
  258. },
  259. {
  260. "command": "godot-tool.debugger.refresh_inspector",
  261. "when": "view == inspect-node",
  262. "group": "navigation"
  263. }
  264. ],
  265. "view/item/context": [
  266. {
  267. "command": "godot-tool.debugger.inspect_node",
  268. "when": "view == active-scene-tree",
  269. "group": "inline"
  270. },
  271. {
  272. "command": "godot-tool.debugger.inspect_node",
  273. "when": "view == inspect-node && viewItem == remote_object",
  274. "group": "inline"
  275. },
  276. {
  277. "command": "godot-tool.debugger.edit_value",
  278. "when": "view == inspect-node && viewItem == editable_value",
  279. "group": "inline"
  280. }
  281. ],
  282. "explorer/context": [
  283. {
  284. "command": "godot-tool.set_scene_file",
  285. "group": "2_workspace"
  286. }
  287. ]
  288. }
  289. },
  290. "devDependencies": {
  291. "@types/marked": "^0.6.5",
  292. "@types/mocha": "^2.2.42",
  293. "@types/node": "^10.12.21",
  294. "@types/prismjs": "^1.16.0",
  295. "@types/vscode": "^1.33.0",
  296. "@types/ws": "^6.0.1",
  297. "tslint": "^5.16.0",
  298. "typescript": "^3.5.1",
  299. "vsce": "^1.76.1"
  300. },
  301. "dependencies": {
  302. "await-notify": "^1.0.1",
  303. "global": "^4.4.0",
  304. "marked": "^4.0.10",
  305. "net": "^1.0.2",
  306. "terminate": "^2.1.2",
  307. "vscode-debugadapter": "^1.38.0",
  308. "vscode-languageclient": "^5.2.1",
  309. "ws": "^7.4.6"
  310. }
  311. }