Commit Graph

388 Commits

Author SHA1 Message Date
Hugo Locurcio
5ea22968fb Bump to version 2.0.0
Thanks to all contributors involved in the making of this release,
in particular DaelonSuzuka who has been central in this effort of
updating this extension for Godot 4.x!
2.0.0
2024-02-24 18:17:58 +01:00
David Kincaid
c129098bfa Merge pull request #596 from DaelonSuzuka:fix-goto-docs
Fix definition provider not working because of accessing a Map as an Object
2024-02-23 17:15:54 -05:00
David Kincaid
93e49e4273 Fix definition provider not working because of accessing a Map as an Object 2024-02-23 17:14:31 -05:00
David Kincaid
a8a852bf66 Fix negative numbers in params not being formatted correctly (#595) 2024-02-23 11:22:54 -08:00
David Kincaid
51c89a6c35 Add image previews in hovers and fix various errors (#594)
* Fix weak comparisons
* Fix errors when converting resource paths
* Fix type error in register_capabilities
* Add image previews on document link hover
* Add image previews to ExtResource hovers
2024-02-21 14:16:25 -08:00
David Kincaid
0c9c2554fb Syntax highlighting fixes (#593) 2024-02-21 12:07:05 -08:00
David Kincaid
436ff64d07 Fix version check of Godot binary (#592)
* Change default value for godotTools.editorPath.godot4 to "godot"

* Switch godot version check back to using --version
2024-02-21 11:31:32 -08:00
Tristan F
b0f7220f41 Add basic inlay hint support for GDScript (#589)
* Add support for inlay hints in GDScript files
* Add "godotTools.inlayHints.gdscript" and "godotTools.inlayHints.gdresource" settings
* GDScript inlay hints are disabled by default, and marked as experimental
2024-02-21 11:20:36 -08:00
Butch Wesley
0058ffa870 Expose Godot path as getGodotPath command (#586)
adds new command: "godotTools.getGodotPath"

---------

Co-authored-by: David Kincaid <daelonsuzuka@gmail.com>
2024-02-21 10:21:35 -08:00
dependabot[bot]
bf1d739d07 Bump actions/setup-node from 4.0.1 to 4.0.2 (#587)
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 4.0.1 to 4.0.2.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v4.0.1...v4.0.2)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-07 09:00:11 -08:00
dependabot[bot]
13e9b71d44 Bump actions/upload-artifact from 4.3.0 to 4.3.1 (#584)
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4.3.0 to 4.3.1.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v4.3.0...v4.3.1)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-06 12:05:24 -08:00
Daelon Suzuka
e2f2dc4b93 Improve path handling when starting processes (#575)
`editorPath.godot3/4` setting and `editor_path` debug configuration now correctly handle paths with spaces or surrounded with quotes.
2024-01-24 21:14:39 -05:00
dependabot[bot]
ccfd30755e Bump actions/upload-artifact from 4.2.0 to 4.3.0 (#576)
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4.2.0 to 4.3.0.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v4.2.0...v4.3.0)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-24 08:44:23 -08:00
dependabot[bot]
3b018f115c Bump actions/upload-artifact from 4.0.0 to 4.2.0 (#572)
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4.0.0 to 4.2.0.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v4.0.0...v4.2.0)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-23 13:21:57 -08:00
kaluluosi111
605fe7fa1c fix Godot4.x debug console print multiple logs into one line. (#571) 2024-01-23 13:13:56 -08:00
Daelon Suzuka
4ae31bf99d Launching the editor opens a new custom terminal (#561) 2024-01-06 13:37:59 -08:00
Daelon Suzuka
c5bbd27b04 Clean up project and version detection (#553)
* Fixes #548 
* Add Open Settings button to "select godot exe" prompt
* Cleans up and standardizes Godot binary version detection
* Fix startup dependency order for project dir/file/version checks
* Improve handling of multiple project files
* Create runtime output channel for LSP logging
2024-01-02 02:05:48 -08:00
Daelon Suzuka
34916becd6 Various highlighting/formatting fixes (#559)
* Fix constant attribute access highlighting
* Fix line endings breaking the snapshot tests
* Fix nodepath shorthand formatting
2024-01-02 00:02:30 -08:00
Norbert Ormándi
7462f88848 Fix BBCode [br] not rendering in hover (#557)
Fix BBCode [br] not rendering in hover. This is a workaround to the LSP's incorrect concatenation of doc-comments.
2023-12-28 18:54:03 -08:00
dependabot[bot]
98aa85ed1f Bump actions/setup-node from 4.0.0 to 4.0.1 (#556)
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 4.0.0 to 4.0.1.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v4...v4.0.1)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-22 08:08:55 -08:00
Sandy Gutierrez
0a794ebc1b Add snapshot tests to formatter (#545)
* Add snapshot tests for formatter
* Add test runner to CI

---------

Co-authored-by: David Kincaid <daelonsuzuka@gmail.com>
2023-12-22 03:04:02 -08:00
dependabot[bot]
ec1d9c3ae6 Bump actions/setup-node from 4.0.0 to 4.0.1 (#550)
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 4.0.0 to 4.0.1.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v4.0.0...v4.0.1)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-18 19:48:42 +01:00
dependabot[bot]
d6d211bc00 Bump actions/upload-artifact from 3.1.3 to 4.0.0 (#549)
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 3.1.3 to 4.0.0.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v3.1.3...v4.0.0)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-18 19:48:35 +01:00
Daelon Suzuka
e7e2d0439d 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
2023-12-06 06:53:10 -08:00
mlsvrts
f65033c626 Adjust Godot version detection regex (#526)
* Adjust Godot version detection regex

Signed-off-by: mlsvrts <mlsvrts@protonmail.com>
2023-11-12 11:44:52 -08:00
Daelon Suzuka
a4c1181894 Rewrite debugger for Godot 4 support + improved maintainability (#452)
* Significantly rework the debugger to add Godot 4 support.

* Simplify debugger internal message handling and shorten code paths, to enable easier maintenance in the future.

* Streamline debugger configs: almost all fields are now optional, and the debugger should work out-of-the-box in a wider set of situations.

* Add guardrails, error handling, and input prompts to help guide the user to correct usage/configuration.

* Add the following commands:
  *  godotTools.debugger.debugCurrentFile
  *  godotTools.debugger.debugPinnedFile
  *  godotTools.debugger.pinFile
  *  godotTools.debugger.unpinFile
  *  godotTools.debugger.openPinnedFile

---------

Co-authored-by: RedMser <redmser.jj2@gmail.com>
Co-authored-by: Zachary Gardner <30502195+ZachIsAGardner@users.noreply.github.com>
2023-11-12 07:46:44 -08:00
Daelon Suzuka
55617fdd39 Improve LSP connection behavior (fixes Godot3/4 port issue) (#511)
* Add port auto-fallback when attempting to connect to open editor's LSP

* Improve status widget tooltips

* Fix issue with configuration changes requiring a reload

* Upgraded logger utility
2023-10-28 17:20:19 -07:00
dependabot[bot]
55fd8964a6 Bump actions/setup-node from 3.8.1 to 4.0.0 (#519)
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 3.8.1 to 4.0.0.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v3.8.1...v4.0.0)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-23 10:08:17 -07:00
Ryan Brue
dcbfcb4b4b Syntax highlighting changes (#515)
Better syntax highlighting for properties. Class variables used to be unhighlighted and are now highlighted properly as `variable.other.gdscript`, properties are still highlighted as `variable.other.property.gdscript`
2023-10-21 21:59:20 -04:00
Daelon Suzuka
d8700eaca1 Fix Headless LSP not starting (#513) 2023-10-14 17:11:08 -07:00
Daelon Suzuka
d3b2c5227c Reorganize extension entrypoint (#505)
* Combine godot-tools.ts into extension.ts to put the extension's major components at the same level
2023-10-13 11:33:26 -07:00
dependabot[bot]
1054053a03 Bump actions/setup-node from 3.5.1 to 3.8.1 (#509)
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 3.5.1 to 3.8.1.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v3.5.1...v3.8.1)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-13 08:28:55 -07:00
dependabot[bot]
53c3419be3 Bump actions/checkout from 3 to 4 (#507)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-13 08:28:37 -07:00
dependabot[bot]
97f5f4d18c Bump actions/upload-artifact from 3.1.1 to 3.1.3 (#508)
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 3.1.1 to 3.1.3.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v3.1.1...v3.1.3)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-13 08:28:30 -07:00
Daelon Suzuka
5bfe853f8c Multiple highlighting improvements (#506)
* binary int notation
* `_` spacers in numeric literals
* fixed several instances of incorrect case insensitivity
* @"a", &"b", ^"c", and r"d" style string literals
2023-10-13 01:06:25 -04:00
Daelon Suzuka
37ea21272a Add additional launch profile (#503) 2023-10-11 11:50:10 -07:00
Ryan Brue
f4e4b9c422 Implement headless LSP mode (#488)
* adds new Headless LSP mode
* refactor and simplify LSP client control flow into new `ClientConnectionManager` class
* adds new setting: `godotTools.lsp.headless`, disabled by default
* split `godotTools.editorPath` into `godotTools.editorPath.godot3` and `.godot4`
* fix #373, broken formatting in hovers
* improve right click -> open docs to work on type-annotated variables

---------

Co-authored-by: David Kincaid <daelonsuzuka@gmail.com>
2023-10-10 23:05:22 -04:00
Moritz Tim W
6a9f408d4e Improve debugger setup instructions (#491)
* update config instructions

* clarify config instructions
2023-09-15 09:07:22 -07:00
EJ
acfcfdbdab feat(snippets): add match statement (#476) 2023-08-27 22:06:41 +02:00
s
4e486e353c Add warning and instructions for using Godot 4 to README (#479)
* add warning and instructions to README.md for godot 4

- add warning at top of README.md about manual configuration required for use with Godot 4
- add instructions in VS Code configuration setting about what value to use for Godot 4
- lightly reformat VS Code configuration section to better allow for multi-line setting descriptions and anchor linking (so the warning at the top of the readme can directly link to the relevant section)
- remove `checkStatus` setting which appears to no longer exist

* amend README faq section to add info about Godot 4
2023-06-20 05:30:55 -07:00
sequpt
931ec50614 Fix wrong section-identifier used to retrieve configuration (#475)
Fix #474
2023-05-06 13:11:51 -07:00
Ryan
41f40ee38f Fix spelling mistake when getting port and host from configuration (#465)
This fixes an issue where port isn't respected after being changed.
2023-04-22 23:55:37 +02:00
oidro
cdc550a412 Restructure and rename settings
Co-authored-by: David Kincaid <daelonsuzuka@gmail.com>
2023-03-26 13:32:36 -07:00
Daelon Suzuka
a561c523ee Fix errors left after cleaning up plugin initialization process (#459) 2023-03-16 00:26:19 +01:00
Daelon Suzuka
df386efa54 Add Godot 4 support to the Scene preview panel (#451) 2023-03-14 18:13:32 +01:00
Daelon Suzuka
3ce256379f Fix various syntax highlighting problems (#441) 2023-03-14 18:10:54 +01:00
Daelon Suzuka
f76a8f2937 Clean up plugin initialization process (#439) 2023-03-14 18:10:26 +01:00
Daelon Suzuka
0636797c22 Add scene preview panel (#413) 2022-10-26 16:20:28 +02:00
Daelon Suzuka
5a67e4c78d Fix errors in grammar syntax (#416) 2022-10-26 01:47:31 +02:00
dependabot[bot]
8cef9532a7 Bump actions/upload-artifact from 3.1.0 to 3.1.1 (#433)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-25 11:09:02 -07:00