Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More debugger improvements #528

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 3 additions & 2 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": [
"${workspaceFolder}/workspace.code-workspace",
"--extensionDevelopmentPath=${workspaceFolder}"
"--profile=temp",
"--extensionDevelopmentPath=${workspaceFolder}",
"${workspaceFolder}/workspace.code-workspace"
],
"outFiles": [
"${workspaceFolder}/out/**/*.js"
Expand Down
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,16 @@ To install from GitHub Releases or a development build,
see [Install from a VSIX](https://code.visualstudio.com/docs/editor/extension-marketplace#_install-from-a-vsix)
in the Visual Studio Code documentation.

## Available commands
## Commands

The extension adds a few entries to the VS Code Command Palette under "Godot Tools":

- Open workspace with Godot editor
- Run the workspace as a Godot project
- List Godot's native classes
- Debug the current `.tscn`/`.gd` file
- Debug the pinned `.tscn`/`.gd` file
- Pin/Unpin the current `.tscn`/`.gd` file for debugging
- Open the pinned file

## Configuration

Expand Down
59 changes: 46 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
{
"category": "Godot Tools",
"command": "godotTools.listNativeClasses",
"title": "List native classes of godot"
"title": "List Godot's native classes"
},
{
"category": "Godot Tools",
Expand All @@ -72,48 +72,54 @@
"command": "godotTools.debugger.inspectNode",
"title": "Inspect Remote Node",
"icon": {
"light": "resources/light/icon_GUI_visibility_visible.svg",
"dark": "resources/dark/icon_GUI_visibility_visible.svg"
"light": "resources/godot_icons/light/GuiVisibilityVisible.svg",
"dark": "resources/godot_icons/dark/GuiVisibilityVisible.svg"
}
},
{
"category": "Godot Tools",
"command": "godotTools.debugger.refreshSceneTree",
"title": "Refresh",
"icon": {
"light": "resources/light/icon_refresh.svg",
"dark": "resources/dark/icon_refresh.svg"
"light": "resources/godot_icons/light/Reload.svg",
"dark": "resources/godot_icons/dark/Reload.svg"
}
},
{
"category": "Godot Tools",
"command": "godotTools.debugger.refreshInspector",
"title": "Refresh",
"icon": {
"light": "resources/light/icon_refresh.svg",
"dark": "resources/dark/icon_refresh.svg"
"light": "resources/godot_icons/light/Reload.svg",
"dark": "resources/godot_icons/dark/Reload.svg"
}
},
{
"category": "Godot Tools",
"command": "godotTools.debugger.editValue",
"title": "Edit value",
"icon": {
"light": "resources/light/icon_edit.svg",
"dark": "resources/dark/icon_edit.svg"
"light": "resources/godot_icons/light/Edit.svg",
"dark": "resources/godot_icons/dark/Edit.svg"
}
},
{
"category": "Godot Tools",
"command": "godotTools.debugger.debugCurrentFile",
"title": "Debug Current File",
"icon": "$(play)"
"icon": {
"light": "resources/godot_icons/light/PlayScene.svg",
"dark": "resources/godot_icons/dark/PlayScene.svg"
}
},
{
"category": "Godot Tools",
"command": "godotTools.debugger.debugPinnedFile",
"title": "Debug Pinned File",
"icon": "$(play)"
"icon": {
"light": "resources/godot_icons/light/Play.svg",
"dark": "resources/godot_icons/dark/Play.svg"
}
},
{
"category": "Godot Tools",
Expand Down Expand Up @@ -167,12 +173,20 @@
{
"category": "Godot Tools",
"command": "godotTools.scenePreview.openScene",
"title": "Open Scene"
"title": "Open Scene",
"icon": {
"light": "resources/InstanceOptions.svg",
"dark": "resources/InstanceOptions.svg"
}
},
{
"category": "Godot Tools",
"command": "godotTools.scenePreview.openScript",
"title": "Open Script"
"title": "Open Script",
"icon": {
"light": "resources/godot_icons/light/Script.svg",
"dark": "resources/godot_icons/dark/Script.svg"
}
},
{
"category": "Godot Tools",
Expand Down Expand Up @@ -349,6 +363,11 @@
"scopeName": "source.gdresource",
"path": "./syntaxes/GDResource.tmLanguage.json"
},
{
"language": "gdscene",
"scopeName": "source.gdresource",
"path": "./syntaxes/GDResource.tmLanguage.json"
},
{
"language": "gdshader",
"scopeName": "source.gdshader",
Expand Down Expand Up @@ -534,6 +553,10 @@
],
"menus": {
"commandPalette": [
{
"command": "godotTools.listNativeClasses",
"when": "godotTools.context.connectedToLSP"
},
{
"command": "godotTools.scenePreview.refresh",
"when": "false"
Expand Down Expand Up @@ -643,6 +666,16 @@
"command": "godotTools.scenePreview.openScript",
"when": "view == scenePreview && viewItem =~ /hasScript/",
"group": "1@2"
},
{
"command": "godotTools.scenePreview.openScene",
"when": "view == scenePreview && viewItem =~ /openable/",
"group": "inline"
},
{
"command": "godotTools.scenePreview.openScript",
"when": "view == scenePreview && viewItem =~ /hasScript/",
"group": "inline"
}
],
"explorer/context": [
Expand Down
3 changes: 0 additions & 3 deletions resources/dark/icon_GUI_visibility_visible.svg

This file was deleted.

3 changes: 0 additions & 3 deletions resources/dark/icon_a_r_v_r_anchor.svg

This file was deleted.

3 changes: 0 additions & 3 deletions resources/dark/icon_a_r_v_r_camera.svg

This file was deleted.

3 changes: 0 additions & 3 deletions resources/dark/icon_a_r_v_r_controller.svg

This file was deleted.

3 changes: 0 additions & 3 deletions resources/dark/icon_a_r_v_r_origin.svg

This file was deleted.

3 changes: 0 additions & 3 deletions resources/dark/icon_accept_dialog.svg

This file was deleted.

7 changes: 0 additions & 7 deletions resources/dark/icon_animated_sprite.svg

This file was deleted.

7 changes: 0 additions & 7 deletions resources/dark/icon_animated_sprite_3d.svg

This file was deleted.

3 changes: 0 additions & 3 deletions resources/dark/icon_animation_player.svg

This file was deleted.

3 changes: 0 additions & 3 deletions resources/dark/icon_animation_tree.svg

This file was deleted.

3 changes: 0 additions & 3 deletions resources/dark/icon_animation_tree_player.svg

This file was deleted.

3 changes: 0 additions & 3 deletions resources/dark/icon_area.svg

This file was deleted.

3 changes: 0 additions & 3 deletions resources/dark/icon_area_2d.svg

This file was deleted.

11 changes: 0 additions & 11 deletions resources/dark/icon_audio_stream_player.svg

This file was deleted.

11 changes: 0 additions & 11 deletions resources/dark/icon_audio_stream_player_2_d.svg

This file was deleted.

11 changes: 0 additions & 11 deletions resources/dark/icon_audio_stream_player_3_d.svg

This file was deleted.

3 changes: 0 additions & 3 deletions resources/dark/icon_back_buffer_copy.svg

This file was deleted.

3 changes: 0 additions & 3 deletions resources/dark/icon_baked_lightmap.svg

This file was deleted.

3 changes: 0 additions & 3 deletions resources/dark/icon_bone_2_d.svg

This file was deleted.

3 changes: 0 additions & 3 deletions resources/dark/icon_bone_attachment.svg

This file was deleted.

3 changes: 0 additions & 3 deletions resources/dark/icon_button.svg

This file was deleted.

3 changes: 0 additions & 3 deletions resources/dark/icon_c_p_u_particles.svg

This file was deleted.

Loading