| Engine-version test matrix with fgvm + dev debug server (#1026) * Add engine-version test matrix with fgvm + dev debug server - tools/resolve_godot.ts: resolve fgvm-managed Godot binaries by version - tools/run_tests.ts: test runner that resolves binary, writes editorPath config, compiles, runs vscode-test - npm run test:engine -- <version> [--godot3] - src/dev/debug_server.ts: dev-only HTTP server for inspecting extension state (eval, reload, state endpoints), gated by VSCODE_DEBUG_MODE - .github/workflows/ci.yml: matrix on godot_version (4.7, 4.5.1), uses fgvm instead of hardcoded download URLs - gitignore generated test settings.json * Exclude src/dev/ from biome linting The debug server is a dev tool that intentionally accesses private fields via bracket notation. Biome's useLiteralKeys rule flags this, but the bracket notation is necessary to reach private state. * Fix CI: actions cache for fgvm, fix Windows fgvm install, exclude dev/ from lint - Cache fgvm Godot installations by os+version using actions/cache - Use FGVM_HOME env var for consistent cross-platform install path - Fix Windows fgvm install (use call operator for exe) - Exclude src/dev/ from biome linting (intentional private field access) * Fix CI: move FGVM_HOME to step-level env (runner.temp not available at job level) * Fix FGVM_HOME resolution: fgvm creates a 'fgvm' subdirectory inside FGVM_HOME - resolve_godot.ts: look in /fgvm/installations (not /installations) - ci.yml: update cache path to match * Skip macOS in test matrix (fgvm fails to fetch versions on macOS CI) * Add typed dictionary expansion test + test grep support - New test: expand typed dicts (Dictionary[Vector2i, Array], Dictionary[StringName, StringName]) and untyped nested dict, verifying keys/values decode correctly through the variant codec - run_tests.ts: accept optional grep pattern as second positional arg Usage: npm run test:engine -- 4.7 " typed dict\ * Expand CONTRIBUTING.md with testing and dev server docs - Engine-in-the-loop testing with fgvm (install, run, grep filter, Godot 3) - CI matrix documentation - Development debug server endpoints and usage | 4 months ago |
| Debugger QOL improvements and small fixes (#944) * Stale variables fix * Introduced by #848 * Fixes #935 * Debugger QOL improvements and fixes * Property rename to match expected behavior: ** members now do not have a prefix in object instances: Member/Foo -> Foo ** Inherited properties now do have a prefix: Parent1/Foo, ParentOfParent1/Boo ** Categories are properly treated and not displayed as property * __repr__ support ** If the class contains __repr__ member, value of it will be used as a display name for it's instances representations. That works for Dictionary keys too. Smaller changes and fixes: * Arrays to display actual values for more complex types in preview (Vectors/Rects/etc) * Strings are 'quoted' (similar to other DAPs) * Rect2i fix (parse as int, not float) * StrnigName better representation in values and dict keys: &'StringName' * tasks discoverabilty: Added tasks for test and package to tasks.json. * code cleanup & array support * fix * missed vscode_id for ObjectId * some linter fixes * CI: Godot version bump to 4.5.1 Test project: update test proj * handling unset Godot Objects * make sure to stop prev client * test project to 4.6 update | 7 months ago |
| Statically type all function snippets (#958) This also updates snippet names of the type "[name] method of [class]" to correctly reference the class that defines them. For example, _draw() was labelled as "of Node" before, but it's actually CanvasItem which defines this function. | 8 months ago |
| Various QoL Improvements (#529) * Updated Godot icons (and removed old ones) * Improve "Debug Pinned Scene" command by making the pinned scene persist between VSCode sessions * Fix scene file highlighting not working * Fix ScenePreview not working in Godot 3 * Add buttons for relevant actions to ScenePreview items * Add internal document links for SubResource() and ExtResource() statements in scene files * Add hover for SubResource() and ExtResource() statements in scene files * Improve ability to right click -> open docs for methods of builtin types (doesn't always work) * Add a file decorator to show the pinned debug file in the filesystem view/editor tabs * Add item decorators to the Scene Preview to show Node attributes more clearly * Updated readme * Overhauled documentation viewer * Added GDScript formatter * Add (disabled) experimental providers for custom completions, semantic tokens, and tasks * Lots of internal refactoring | 2 years ago |
| Add setting to enable/disable documentation minimap (#786) | 1 year ago |
| Update icons (#711) | 2 years ago |
| textmate rules: reclassify true/false/null as literal constants (#914) * textmate: add true/false/null to language keywords scope * reclassify true/false/null as literal constants - add formatter support | 4 months ago |
| textmate rules: reclassify true/false/null as literal constants (#914) * textmate: add true/false/null to language keywords scope * reclassify true/false/null as literal constants - add formatter support | 4 months ago |
| Strict null checks (#986) * initial cleanup * strict nulls checks on and corresponding fixes * linter fixes * eol fix * assert the variable in variables manager * more simplifications EOL fixes * cleanup esm migration leftover * updating typescript to better handle strictNullCheck * eslint & decoder type log * parse_variable fix * bad merge fix * fix expanding variable & add corresponding missing testcase * fixing the issue with array elements --------- Co-authored-by: David Kincaid <daelonsuzuka@gmail.com> | 6 months ago |
| Engine-version test matrix with fgvm + dev debug server (#1026) * Add engine-version test matrix with fgvm + dev debug server - tools/resolve_godot.ts: resolve fgvm-managed Godot binaries by version - tools/run_tests.ts: test runner that resolves binary, writes editorPath config, compiles, runs vscode-test - npm run test:engine -- <version> [--godot3] - src/dev/debug_server.ts: dev-only HTTP server for inspecting extension state (eval, reload, state endpoints), gated by VSCODE_DEBUG_MODE - .github/workflows/ci.yml: matrix on godot_version (4.7, 4.5.1), uses fgvm instead of hardcoded download URLs - gitignore generated test settings.json * Exclude src/dev/ from biome linting The debug server is a dev tool that intentionally accesses private fields via bracket notation. Biome's useLiteralKeys rule flags this, but the bracket notation is necessary to reach private state. * Fix CI: actions cache for fgvm, fix Windows fgvm install, exclude dev/ from lint - Cache fgvm Godot installations by os+version using actions/cache - Use FGVM_HOME env var for consistent cross-platform install path - Fix Windows fgvm install (use call operator for exe) - Exclude src/dev/ from biome linting (intentional private field access) * Fix CI: move FGVM_HOME to step-level env (runner.temp not available at job level) * Fix FGVM_HOME resolution: fgvm creates a 'fgvm' subdirectory inside FGVM_HOME - resolve_godot.ts: look in /fgvm/installations (not /installations) - ci.yml: update cache path to match * Skip macOS in test matrix (fgvm fails to fetch versions on macOS CI) * Add typed dictionary expansion test + test grep support - New test: expand typed dicts (Dictionary[Vector2i, Array], Dictionary[StringName, StringName]) and untyped nested dict, verifying keys/values decode correctly through the variant codec - run_tests.ts: accept optional grep pattern as second positional arg Usage: npm run test:engine -- 4.7 " typed dict\ * Expand CONTRIBUTING.md with testing and dev server docs - Engine-in-the-loop testing with fgvm (install, run, grep filter, Godot 3) - CI matrix documentation - Development debug server endpoints and usage | 4 months ago |
| Checkout new GDScriptLanguageClient branch | 7 years ago |
| Strict null checks (#986) * initial cleanup * strict nulls checks on and corresponding fixes * linter fixes * eol fix * assert the variable in variables manager * more simplifications EOL fixes * cleanup esm migration leftover * updating typescript to better handle strictNullCheck * eslint & decoder type log * parse_variable fix * bad merge fix * fix expanding variable & add corresponding missing testcase * fixing the issue with array elements --------- Co-authored-by: David Kincaid <daelonsuzuka@gmail.com> | 6 months ago |
| Engine-version test matrix with fgvm + dev debug server (#1026) * Add engine-version test matrix with fgvm + dev debug server - tools/resolve_godot.ts: resolve fgvm-managed Godot binaries by version - tools/run_tests.ts: test runner that resolves binary, writes editorPath config, compiles, runs vscode-test - npm run test:engine -- <version> [--godot3] - src/dev/debug_server.ts: dev-only HTTP server for inspecting extension state (eval, reload, state endpoints), gated by VSCODE_DEBUG_MODE - .github/workflows/ci.yml: matrix on godot_version (4.7, 4.5.1), uses fgvm instead of hardcoded download URLs - gitignore generated test settings.json * Exclude src/dev/ from biome linting The debug server is a dev tool that intentionally accesses private fields via bracket notation. Biome's useLiteralKeys rule flags this, but the bracket notation is necessary to reach private state. * Fix CI: actions cache for fgvm, fix Windows fgvm install, exclude dev/ from lint - Cache fgvm Godot installations by os+version using actions/cache - Use FGVM_HOME env var for consistent cross-platform install path - Fix Windows fgvm install (use call operator for exe) - Exclude src/dev/ from biome linting (intentional private field access) * Fix CI: move FGVM_HOME to step-level env (runner.temp not available at job level) * Fix FGVM_HOME resolution: fgvm creates a 'fgvm' subdirectory inside FGVM_HOME - resolve_godot.ts: look in /fgvm/installations (not /installations) - ci.yml: update cache path to match * Skip macOS in test matrix (fgvm fails to fetch versions on macOS CI) * Add typed dictionary expansion test + test grep support - New test: expand typed dicts (Dictionary[Vector2i, Array], Dictionary[StringName, StringName]) and untyped nested dict, verifying keys/values decode correctly through the variant codec - run_tests.ts: accept optional grep pattern as second positional arg Usage: npm run test:engine -- 4.7 " typed dict\ * Expand CONTRIBUTING.md with testing and dev server docs - Engine-in-the-loop testing with fgvm (install, run, grep filter, Godot 3) - CI matrix documentation - Development debug server endpoints and usage | 4 months ago |
| Fix formatter bugs and consolidate snapshot tests (#1012) * Fix strict null check errors from recent merge Add non-null assertions for RegExpMatchArray.index and use type predicates in filter() calls to satisfy strictNullChecks. * Fix unary minus adding space before multi-char identifiers When '-' followed an '=' token, the formatter treated it as a binary subtraction and added a space before the next identifier. Now checks for '=' before the operator to correctly identify unary negation. Fixes #865. * Add regression snapshot tests for fixed formatter bugs Tests for #889 (negative indices), #976 (self keyword spacing), and #984 (@abstract + is). These bugs are already fixed in current code — tests prevent regressions. * Convert formatter snapshot tests from pair dirs to inline format Replace in.gd/out.gd directory pairs with single-file inline format using # --- IN --- / # --- OUT --- / # --- END --- markers. This makes tests easier to read and edit, and consistent with existing inline snapshot tests. * Remove legacy pair-test runner from formatter test harness All snapshot tests are now in the inline single-file format. Remove the directory-based pair test runner, the get_options() helper, and the in.gd/out.gd file filter that are no longer needed. * Allow any positive integer for maxEmptyLines setting (#1004) Change maxEmptyLines from a dropdown of 1/2 to a numeric input allowing any non-negative integer. Sanitize configured values to clamp negatives to 0 and round to integers, defaulting to 2. * Fix grammar tokenization for nested match and function calls with spaces (#858, #1002) - match_keyword pattern: change from ^\s* anchor to (?:^|:) so 'match' is recognized after ':', fixing 'if true: match x:' being tokenized as 'matchx' by the formatter - function_call begin pattern: add \s* between name and \( so 'func_name (args)' is scoped as a function call, not a variable followed by a grouped expression - statement_keyword: same (?:^|:) change for case/match consistency - Add nested_match.gd snapshot test covering the #858 fix * Expand and reorganize formatter snapshot tests New test files for previously uncovered features: - annotations.gd: @export, @onready, @rpc, @warning_ignore, @abstract - control_flow.gd: if/elif/else, for..in, while, ternary if, pass/break/continue - declarations.gd: return types, class_name, extends, signal, static, const - dense_params.gd: denseFunctionParameters config option - dictionaries.gd: dict literals, nested/typed dicts, subscript access - is_as_operator.gd: is/is not and as operators - method_calls.gd: function call spacing, method chains - trailing_newlines.gd: strictTrailingNewlines config (renamed from test.gd) Reorganized existing tests: - Merge scientific_notation.gd into float_notation.gd - Merge self_keyword_spacing.gd into keywords.gd (expanded with super, const, class_name, signal, self) - Expand match.gd with more pattern types (string, array, dict, wildcard, comma-separated) - Rename test.gd to trailing_newlines.gd Discovered formatter gaps (marked as idempotency tests for now): - class_name/extends ARE now formatted (was unknown) - signal with args IS formatted (was unknown) - static func/var IS formatted (was unknown) - const inside functions IS formatted (was unknown) - denseFunctionParameters does not affect := spacing * Fix yield/signal formatting and add Godot 3 compat tests - Add yield to no-space-before-paren list (alongside func, assert, export) so yield(expr) stays compact instead of becoming yield (expr) - Make signal tokenization scope-aware: keyword in declarations (signal my_signal) but variable in expression context (yield(signal, ...)) so it doesn't get extra keyword spacing inside function calls - Add godot3_compat.gd test covering: tool, export, onready, remote/ master/puppet sync keywords, setget syntax, and yield() * Replace non-null assertions with proper undefined checks The biome linter on CI (newer version) treats noNonNullAssertion as an error. Replace match.index! assertions with early-continue guards that handle the undefined case explicitly. * Add headless test script and force X11 for VS Code test runner Add 'npm run test:headless' that runs tests under xvfb-run with WAYLAND_DISPLAY unset. Add --ozone-platform=x11 to test launchArgs so VS Code's Electron uses X11 instead of crashing on Wayland systems. This prevents the test runner from stealing window focus on Linux desktops running Wayland. * Fix formatter corrupting merge conflict markers and stripping spaces in lambda bodies (#850, #938) - Skip lines starting with <<<<<<<, =======, >>>>>>> to prevent mangling git merge conflict markers into separated operators (#850) - Track inLambdaBody flag across tokens to prevent denseFunctionParameters from stripping spaces around assignments inside lambda bodies that are function call arguments, e.g. connect(func(): x = false) (#938) - Add merge_conflict.gd snapshot test - Add dense_params.gd test cases for lambda body spacing | 4 months ago |
| Various QoL Improvements (#529) * Updated Godot icons (and removed old ones) * Improve "Debug Pinned Scene" command by making the pinned scene persist between VSCode sessions * Fix scene file highlighting not working * Fix ScenePreview not working in Godot 3 * Add buttons for relevant actions to ScenePreview items * Add internal document links for SubResource() and ExtResource() statements in scene files * Add hover for SubResource() and ExtResource() statements in scene files * Improve ability to right click -> open docs for methods of builtin types (doesn't always work) * Add a file decorator to show the pinned debug file in the filesystem view/editor tabs * Add item decorators to the Scene Preview to show Node attributes more clearly * Updated readme * Overhauled documentation viewer * Added GDScript formatter * Add (disabled) experimental providers for custom completions, semantic tokens, and tasks * Lots of internal refactoring | 2 years ago |
| Bump to version 2.7.1 | 4 months ago |
| Engine-version test matrix with fgvm + dev debug server (#1026) * Add engine-version test matrix with fgvm + dev debug server - tools/resolve_godot.ts: resolve fgvm-managed Godot binaries by version - tools/run_tests.ts: test runner that resolves binary, writes editorPath config, compiles, runs vscode-test - npm run test:engine -- <version> [--godot3] - src/dev/debug_server.ts: dev-only HTTP server for inspecting extension state (eval, reload, state endpoints), gated by VSCODE_DEBUG_MODE - .github/workflows/ci.yml: matrix on godot_version (4.7, 4.5.1), uses fgvm instead of hardcoded download URLs - gitignore generated test settings.json * Exclude src/dev/ from biome linting The debug server is a dev tool that intentionally accesses private fields via bracket notation. Biome's useLiteralKeys rule flags this, but the bracket notation is necessary to reach private state. * Fix CI: actions cache for fgvm, fix Windows fgvm install, exclude dev/ from lint - Cache fgvm Godot installations by os+version using actions/cache - Use FGVM_HOME env var for consistent cross-platform install path - Fix Windows fgvm install (use call operator for exe) - Exclude src/dev/ from biome linting (intentional private field access) * Fix CI: move FGVM_HOME to step-level env (runner.temp not available at job level) * Fix FGVM_HOME resolution: fgvm creates a 'fgvm' subdirectory inside FGVM_HOME - resolve_godot.ts: look in /fgvm/installations (not /installations) - ci.yml: update cache path to match * Skip macOS in test matrix (fgvm fails to fetch versions on macOS CI) * Add typed dictionary expansion test + test grep support - New test: expand typed dicts (Dictionary[Vector2i, Array], Dictionary[StringName, StringName]) and untyped nested dict, verifying keys/values decode correctly through the variant codec - run_tests.ts: accept optional grep pattern as second positional arg Usage: npm run test:engine -- 4.7 " typed dict\ * Expand CONTRIBUTING.md with testing and dev server docs - Engine-in-the-loop testing with fgvm (install, run, grep filter, Godot 3) - CI matrix documentation - Development debug server endpoints and usage | 4 months ago |
| Update extension metadata for better presentation on VS Marketplace This also updates copyright statements to 2022. | 4 years ago |
| Update README.md to add instructions for XWayland workaround (#995) * Added new information to the README about the issue of drag + shift drop now working in Linux systems with Wayland * Apply suggestions from code review * Apply suggestions from code review * Modified the info about running VS Code through XWayland, by editing the exec flags instead of having to run through terminal --------- Co-authored-by: Andrey Ribeiro <aribeiro7@lenovo.com> Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro> | 7 months ago |
| Engine-version test matrix with fgvm + dev debug server (#1026) * Add engine-version test matrix with fgvm + dev debug server - tools/resolve_godot.ts: resolve fgvm-managed Godot binaries by version - tools/run_tests.ts: test runner that resolves binary, writes editorPath config, compiles, runs vscode-test - npm run test:engine -- <version> [--godot3] - src/dev/debug_server.ts: dev-only HTTP server for inspecting extension state (eval, reload, state endpoints), gated by VSCODE_DEBUG_MODE - .github/workflows/ci.yml: matrix on godot_version (4.7, 4.5.1), uses fgvm instead of hardcoded download URLs - gitignore generated test settings.json * Exclude src/dev/ from biome linting The debug server is a dev tool that intentionally accesses private fields via bracket notation. Biome's useLiteralKeys rule flags this, but the bracket notation is necessary to reach private state. * Fix CI: actions cache for fgvm, fix Windows fgvm install, exclude dev/ from lint - Cache fgvm Godot installations by os+version using actions/cache - Use FGVM_HOME env var for consistent cross-platform install path - Fix Windows fgvm install (use call operator for exe) - Exclude src/dev/ from biome linting (intentional private field access) * Fix CI: move FGVM_HOME to step-level env (runner.temp not available at job level) * Fix FGVM_HOME resolution: fgvm creates a 'fgvm' subdirectory inside FGVM_HOME - resolve_godot.ts: look in /fgvm/installations (not /installations) - ci.yml: update cache path to match * Skip macOS in test matrix (fgvm fails to fetch versions on macOS CI) * Add typed dictionary expansion test + test grep support - New test: expand typed dicts (Dictionary[Vector2i, Array], Dictionary[StringName, StringName]) and untyped nested dict, verifying keys/values decode correctly through the variant codec - run_tests.ts: accept optional grep pattern as second positional arg Usage: npm run test:engine -- 4.7 " typed dict\ * Expand CONTRIBUTING.md with testing and dev server docs - Engine-in-the-loop testing with fgvm (install, run, grep filter, Godot 3) - CI matrix documentation - Development debug server endpoints and usage | 4 months ago |
| Update extension metadata for better presentation on VS Marketplace This also updates copyright statements to 2022. | 4 years ago |
| Bump qs from 6.14.1 to 6.14.2 (#974) Bumps [qs](https://github.com/ljharb/qs) from 6.14.1 to 6.14.2. - [Changelog](https://github.com/ljharb/qs/blob/main/CHANGELOG.md) - [Commits](https://github.com/ljharb/qs/compare/v6.14.1...v6.14.2) --- updated-dependencies: - dependency-name: qs dependency-version: 6.14.2 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> | 4 months ago |
| Engine-version test matrix with fgvm + dev debug server (#1026) * Add engine-version test matrix with fgvm + dev debug server - tools/resolve_godot.ts: resolve fgvm-managed Godot binaries by version - tools/run_tests.ts: test runner that resolves binary, writes editorPath config, compiles, runs vscode-test - npm run test:engine -- <version> [--godot3] - src/dev/debug_server.ts: dev-only HTTP server for inspecting extension state (eval, reload, state endpoints), gated by VSCODE_DEBUG_MODE - .github/workflows/ci.yml: matrix on godot_version (4.7, 4.5.1), uses fgvm instead of hardcoded download URLs - gitignore generated test settings.json * Exclude src/dev/ from biome linting The debug server is a dev tool that intentionally accesses private fields via bracket notation. Biome's useLiteralKeys rule flags this, but the bracket notation is necessary to reach private state. * Fix CI: actions cache for fgvm, fix Windows fgvm install, exclude dev/ from lint - Cache fgvm Godot installations by os+version using actions/cache - Use FGVM_HOME env var for consistent cross-platform install path - Fix Windows fgvm install (use call operator for exe) - Exclude src/dev/ from biome linting (intentional private field access) * Fix CI: move FGVM_HOME to step-level env (runner.temp not available at job level) * Fix FGVM_HOME resolution: fgvm creates a 'fgvm' subdirectory inside FGVM_HOME - resolve_godot.ts: look in /fgvm/installations (not /installations) - ci.yml: update cache path to match * Skip macOS in test matrix (fgvm fails to fetch versions on macOS CI) * Add typed dictionary expansion test + test grep support - New test: expand typed dicts (Dictionary[Vector2i, Array], Dictionary[StringName, StringName]) and untyped nested dict, verifying keys/values decode correctly through the variant codec - run_tests.ts: accept optional grep pattern as second positional arg Usage: npm run test:engine -- 4.7 " typed dict\ * Expand CONTRIBUTING.md with testing and dev server docs - Engine-in-the-loop testing with fgvm (install, run, grep filter, Godot 3) - CI matrix documentation - Development debug server endpoints and usage | 4 months ago |
| Strict null checks (#986) * initial cleanup * strict nulls checks on and corresponding fixes * linter fixes * eol fix * assert the variable in variables manager * more simplifications EOL fixes * cleanup esm migration leftover * updating typescript to better handle strictNullCheck * eslint & decoder type log * parse_variable fix * bad merge fix * fix expanding variable & add corresponding missing testcase * fixing the issue with array elements --------- Co-authored-by: David Kincaid <daelonsuzuka@gmail.com> | 6 months ago |
| Set up continuous integration using GitHub Actions (#197) The extension will be built and uploaded to artifacts so it can be tested easily by users. This also fixes warnings reported by TSLint. | 6 years ago |