package.json 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300
  1. {
  2. "name": "godot-tools",
  3. "displayName": "godot-tools",
  4. "icon": "icon.png",
  5. "version": "1.1.1",
  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. "configuration": {
  80. "type": "object",
  81. "title": "Godot Tools configuration",
  82. "properties": {
  83. "godot_tools.gdscript_lsp_server_protocol": {
  84. "type": [
  85. "string"
  86. ],
  87. "enum": [
  88. "ws",
  89. "tcp"
  90. ],
  91. "default": "tcp",
  92. "enumDescriptions": [
  93. "Using WebSocket protocol to connect to Godot 3.2 and Godot 3.2.1",
  94. "Using TCP protocol to connect to Godot 3.2.2 and newer versions"
  95. ],
  96. "description": "The server protocol of the GDScript language server.\nYou have restart VSCode editor after change this value."
  97. },
  98. "godot_tools.gdscript_lsp_server_port": {
  99. "type": "number",
  100. "default": 6008,
  101. "description": "The server port of the GDScript language server"
  102. },
  103. "godot_tools.editor_path": {
  104. "type": "string",
  105. "default": "",
  106. "description": "The absolute path to the Godot editor executable"
  107. },
  108. "godot-tool.check_status": {
  109. "type": "string",
  110. "default": "",
  111. "description": "Check the gdscript language server connection status"
  112. }
  113. }
  114. },
  115. "languages": [
  116. {
  117. "id": "gdscript",
  118. "aliases": [
  119. "GDScript",
  120. "gdscript"
  121. ],
  122. "extensions": [
  123. ".gd"
  124. ],
  125. "configuration": "./configurations/gdscript-configuration.json"
  126. },
  127. {
  128. "id": "properties",
  129. "extensions": [
  130. "cfg",
  131. "tres",
  132. "tscn",
  133. "godot",
  134. "gdns",
  135. "gdnlib",
  136. "import"
  137. ]
  138. }
  139. ],
  140. "grammars": [
  141. {
  142. "language": "gdscript",
  143. "scopeName": "source.gdscript",
  144. "path": "./configurations/GDScript.tmLanguage.json"
  145. }
  146. ],
  147. "snippets": [
  148. {
  149. "language": "gdscript",
  150. "path": "./configurations/snippets.json"
  151. }
  152. ],
  153. "debuggers": [
  154. {
  155. "type": "godot",
  156. "label": "GDScript Godot Debug",
  157. "program": "./out/debugger/debug_adapter.js",
  158. "runtime": "node",
  159. "configurationAttributes": {
  160. "launch": {
  161. "required": [
  162. "project",
  163. "port",
  164. "address"
  165. ],
  166. "properties": {
  167. "project": {
  168. "type": "string",
  169. "description": "Absolute path to a directory with a project.godot file.",
  170. "default": "${workspaceFolder}"
  171. },
  172. "port": {
  173. "type": "number",
  174. "description": "The port number for the Godot remote debugger to use.",
  175. "default": 6007
  176. },
  177. "address": {
  178. "type": "string",
  179. "description": "The IP address for the Godot remote debugger to use.",
  180. "default": "127.0.0.1"
  181. },
  182. "launch_game_instance": {
  183. "type": "boolean",
  184. "description": "Whether to launch an instance of the workspace's game, or wait for a debug session to connect.",
  185. "default": true
  186. },
  187. "launch_scene": {
  188. "type": "boolean",
  189. "description": "Whether to launch an instance the currently opened TSCN file, or launch the game project. Only works with launch_game_instance being true.",
  190. "default": false
  191. },
  192. "scene_file": {
  193. "type": "string",
  194. "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.",
  195. "default": ""
  196. }
  197. }
  198. }
  199. },
  200. "initialConfigurations": [
  201. {
  202. "name": "GDScript Godot",
  203. "type": "godot",
  204. "request": "launch",
  205. "project": "${workspaceFolder}",
  206. "port": 6007,
  207. "address": "127.0.0.1",
  208. "launch_game_instance": true,
  209. "launch_scene": false
  210. }
  211. ],
  212. "configurationSnippets": [
  213. {
  214. "label": "GDScript Godot Debug: Launch",
  215. "description": "A new configuration for debugging a Godot project.",
  216. "body": {
  217. "type": "godot",
  218. "request": "launch",
  219. "project": "${workspaceFolder}",
  220. "port": 6007,
  221. "address": "127.0.0.1",
  222. "launch_game_instance": true,
  223. "launch_scene": false
  224. }
  225. }
  226. ]
  227. }
  228. ],
  229. "breakpoints": [
  230. {
  231. "language": "gdscript"
  232. }
  233. ],
  234. "views": {
  235. "debug": [
  236. {
  237. "id": "active-scene-tree",
  238. "name": "Active Scene Tree",
  239. "when": "inDebugMode && debugType == 'godot'"
  240. },
  241. {
  242. "id": "inspect-node",
  243. "name": "Inspector",
  244. "when": "inDebugMode && debugType == 'godot'"
  245. }
  246. ]
  247. },
  248. "menus": {
  249. "view/title": [
  250. {
  251. "command": "godot-tool.debugger.refresh_scene_tree",
  252. "when": "view == active-scene-tree",
  253. "group": "navigation"
  254. },
  255. {
  256. "command": "godot-tool.debugger.refresh_inspector",
  257. "when": "view == inspect-node",
  258. "group": "navigation"
  259. }
  260. ],
  261. "view/item/context": [
  262. {
  263. "command": "godot-tool.debugger.inspect_node",
  264. "when": "view == active-scene-tree",
  265. "group": "inline"
  266. },
  267. {
  268. "command": "godot-tool.debugger.inspect_node",
  269. "when": "view == inspect-node && viewItem == remote_object",
  270. "group": "inline"
  271. },
  272. {
  273. "command": "godot-tool.debugger.edit_value",
  274. "when": "view == inspect-node && viewItem == editable_value",
  275. "group": "inline"
  276. }
  277. ]
  278. }
  279. },
  280. "devDependencies": {
  281. "@types/marked": "^0.6.5",
  282. "@types/mocha": "^2.2.42",
  283. "@types/node": "^10.12.21",
  284. "@types/prismjs": "^1.16.0",
  285. "@types/vscode": "^1.33.0",
  286. "@types/ws": "^6.0.1",
  287. "tslint": "^5.16.0",
  288. "typescript": "^3.5.1"
  289. },
  290. "dependencies": {
  291. "await-notify": "^1.0.1",
  292. "global": "^4.4.0",
  293. "marked": "^0.7.0",
  294. "net": "^1.0.2",
  295. "terminate": "^2.1.2",
  296. "vscode-debugadapter": "^1.38.0",
  297. "vscode-languageclient": "^5.2.1",
  298. "ws": "^7.0.0"
  299. }
  300. }