Releases: Sarrus1/sourcepawn-studio
Releases · Sarrus1/sourcepawn-studio
v1.12.5
Added
- Added highlighting in strings for chat color placeholders such as
{green}
.
Fixed
- Fixed
%5.2f
highlighting in strings. Thanks to zer0.k for letting me know. - Fixed escaped characters not being highlighted in single quoted strings.
- Fixed keys not being highlighted if the value was empty in .cfg files.
- Fixed an error where files wouldn't get linted properly if
MainPath
wasn't defined. - Allow multiple instances of "${TabSize}" and "${UseTab}" in formatter settings. Thanks to llamasking for implementing this.
- Fixed incorrect formatting of the
myinfo
array.
v1.12.4
Added
- Added auto-closing
>
to include completions. - Added autocompletion for Source Generic Events and CS:GO Events (triggered when calling
EventHook
andEventHookEx
). Huge thanks to HolyHender for the webscraping. - Added a setting to change the path of the output directory as suggested by Pheubel.
Fixed
- Partially fixed a highlighting issue where the bitwise operator
&
would be interpreted as a pointer derefencement. - Fixed a parsing bug for array declarations separated by a
,
. - Fixed incomplete JSDoc completions.
- Fixed a bug with old-style function declarations parsing.
- Fixed a bug where the linter would return the wrong path when a MainPath was not null.
Removed
- Removed linter support for .inc files.
v1.12.3
Fixed
- Fixed scopped variables not being parsed correctly if below a
for
loop. - Fixed newly added includes not being parsed automatically.
- Fixed formatter overwritting unsaved changes (#44). Thanks to Adrianilloo for reporting.
v1.12.2
Added
- Added autocompletion for
#include
.
Fixed
- Fixed issue #34 thanks to BoomShotKapow.
- Fixed issue #35 related to highlighting glitches.
- Switched default keybind for
smInsertParameters
fromtab
toctrl+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
Fixed
- Fixed a missing dependency.
v1.12.0
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
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
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 inscripting/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.