godotengine / godot-vscode-plugin

Godot development tools for VSCode
MIT License
1.47k stars 148 forks source link

Update scene view to show actual `class_name` of scene if defined, add context menu for getting variable definition #622

Closed HoganSlender closed 2 months ago

HoganSlender commented 3 months ago

added copy variable definition to context menu on scene view added code to get actual class_name if defined in code

HoganSlender commented 3 months ago

I just ran the test locally (I am on a Mac) and it was successful...

godot-vscode-plugin git:(master) npm test

godot-tools@2.0.0 test vscode-test

Downloading VS Code 1.87.2 from https://update.code.visualstudio.com/1.87.2/darwin-arm64/stable Downloading VS Code [==============================] 100% Downloaded VS Code into /Users/geraldhenson/development/visual studio code/godot-vscode-plugin/.vscode-test/vscode-darwin-arm64-1.87.2

Downloaded VS Code into /Users/geraldhenson/development/visual studio code/godot-vscode-plugin/.vscode-test/vscode-darwin-arm64-1.87.2 2024-03-20 14:24:37.907 Electron[91757:7047058] WARNING: Secure coding is not enabled for restorable state! Enable secure coding by implementing NSApplicationDelegate.applicationSupportsSecureRestorableState: and returning YES. WARNING: IPC handle "/Users/geraldhenson/development/visual studio code/godot-vscode-plugin/.vscode-test/user-data/1.87-main.sock" is longer than 103 chars, try a shorter --user-data-dir [main 2024-03-20T19:24:38.046Z] update#setState disabled [main 2024-03-20T19:24:38.046Z] update#ctor - updates are disabled by the environment 2024-03-20 14:24:38.597 Code Helper (Renderer)[91764:7047305] CoreText note: Client requested name ".NewYork-Regular", it will get TimesNewRomanPSMT rather than the intended font. All system UI font access should be through proper APIs such as CTFontCreateUIFontForLanguage() or +[NSFont systemFontOfSize:]. 2024-03-20 14:24:38.597 Code Helper (Renderer)[91764:7047305] CoreText note: Set a breakpoint on CTFontLogSystemFontNameRequest to debug. Started initializing default profile extensions in extensions installation folder. file:///Users/geraldhenson/development/visual%20studio%20code/godot-vscode-plugin/.vscode-test/extensions Started local extension host with pid 92056. Completed initializing default profile extensions in extensions installation folder. file:///Users/geraldhenson/development/visual%20studio%20code/godot-vscode-plugin/.vscode-test/extensions Loading development extension at /Users/geraldhenson/development/visual studio code/godot-vscode-plugin

GDScript Formatter Tests ✔ Snapshot Test: arithmetic (91ms) ✔ Snapshot Test: arrays ✔ Snapshot Test: assert ✔ Snapshot Test: await ✔ Snapshot Test: boolean-operators ✔ Snapshot Test: consecutive-empty-lines-are-removed ✔ Snapshot Test: enums ✔ Snapshot Test: indentation-style-is-preserved ✔ Snapshot Test: initialization ✔ Snapshot Test: lambda-functions ✔ Snapshot Test: line-breaks ✔ Snapshot Test: nodepaths ✔ Snapshot Test: reserved-words ✔ Snapshot Test: return-expression ✔ Snapshot Test: return-type ✔ Snapshot Test: semicolon ✔ Snapshot Test: strings 17 passing (207ms) [main 2024-03-20T19:24:39.378Z] Extension host with pid 92056 exited with code: 0, signal: unknown. Exit code: 0 Done

HoganSlender commented 2 months ago

code does not work with nested objects