Skip to content

Releases: Sarrus1/sourcepawn-vscode

v1.12.2

30 May 20:07
6e5e65a
Compare
Choose a tag to compare

Added

  • Added autocompletion for #include.

Fixed

  • Fixed issue #34 thanks to BoomShotKapow.
  • Fixed issue #35 related to highlighting glitches.
  • Switched default keybind for smInsertParameters from tab to ctrl+shift+i.
  • Fixed a bug causing control statements to be interpreted as functions by the go-to-definition function parser.
  • Fixed an error when parsing arrays in enum struct.

v1.12.1

26 May 20:29
f85faae
Compare
Choose a tag to compare

Fixed

  • Fixed a missing dependency.

v1.12.0

25 May 23:21
4a92de6
Compare
Choose a tag to compare

Added

  • More detailed error messages for the linter, thanks to ShufflexDD's post.
  • Support for go-to-definition for scopped variable.
  • More #pragma snippets.
  • Support for range in enum (struct), enum members, variable and define definitions.
  • New command to set the current file as main.
  • Dev builds are now released automatically.
  • Support for variables completion across multiple .sp files
  • Command to download sourcemod automatically.

Fixed

  • SM Compile will now always point to the current file.
  • The linter now runs asynchronously, thanks to CirnoV.
  • Fixed an issue where the signature of a function would not reappear when typing a comma.
  • Fixed an issue where function definitions could collide with other definitions.
  • Fixed the linter's regex.
  • Fixed enum parsing regex.
  • Fixed a bug that occured when parsing arrays.
  • Fixed a highlighting bug for numeric constants in arrays' size declarations.
  • Fixed a highlighting bug for turnary operators, thanks to Холя for reporting this.
  • Fixed crashes on extension startup when no folder were opened.

Fixed parsing on launch

03 Mar 21:07
Compare
Choose a tag to compare
Pre-release

New beta release for testing and suggestions

This version is meant for testing purposes only, I'm planning on making more changes in the coming days.

What was fixed/improved from the last version:

  • Sourcemod parsing on boot is back. You can now use your sourcemod include directory for autocompletion.
  • Added new icons.
  • Added the #define snippet.
  • Improved performances and cleaned up the code.

Beta release for testing and suggestions

02 Mar 19:15
Compare
Choose a tag to compare

Beta release for testing and suggestions

This version is meant for testing purposes only, I'm planning on making more changes in the coming days.

What was fixed/improved from Dreae's extension`:

  • Added snippets, list below.
  • Auto completion now include the .sp file itself, not just the includes.
  • Auto completion now looks for functions without descriptions.
  • Auto completion works reliably-ish on old and new style declarations.
  • Include autocompletion now works properly (make sure to use #include "colorvariables" instead of #include <colorvariables> for relative include files. Also, make sur to add the path to the directory relative to the .sp file you're editing, like so : #include "include/colorvariables" for a file located in scripting/include.

Snippets list

  • for, while, do while
  • if, else if, else
  • #include, #pragma
  • myinfo for adding plugin info easily

Known issues

  • This version breaks sourcemod directory autocompletion. For now, if you want to have auto completion from your sourcemod directory, you have to move it to your project include folder. I'm having a hard time fixing this.
  • The icons are not accurate to all files.

Credits

I didn't code most of this extension, (almost ?) all credits should go to Dreae, which seems to have abandonned the project unfortunately.