Releases: Sarrus1/sourcepawn-vscode
Releases · Sarrus1/sourcepawn-vscode
v2.1.0
Added
- Added
this
support inside enum structs. - Added GoToDefinition support inside enum structs' methods.
Fixed
- Fixed parsing error for
<keyword>[] <variablename>
variable declarations. - Fixed parsing of enum struct methods, where the last one would be considered like a global function.
v2.0.3
Fixed
- Fixed parsing error for
<keyword>[] <variablename>
variable declarations. - Fixed parsing of enum struct methods, where the last one would be considered like a global function.
v2.0.2
Fixed
- Improved functions parsing.
- Fixed
//
in doc comments. - Fixed defines and enum members being highlighted in comments.
v2.0.1
Added
- Added proper highlighting support for
undef
,function
,typedef
andtypeset
. - Added highlighting support for
FormatTime
placeholders.
Fixed
- Fixed an issue where global methodmap variables wouldn't get method/property autocompletion.
- Method/Property completions won't suggest the constructor if the
new
keyword isn't detected. - Fixed incorrect parsing for function descriptions containing < and >.
- Improved support for Intellisense for projects containing multiple .sp files. If MainPath is properly configured, Intellisens will work correctly.
v2.0.0
Added
- Completion now only suggest methods and properties that belong to the methodmap or the enum struct of the variable.
- MethodMap completions now suggest inherited properties and methods.
- MethodMap and enum structs' completions are now suggested even for arrays elements and function calls.
- Added support for autocompletion for nested enum structs' properties and methods.
- Added support for the
new
keyword. Suggestions will only suggest constructors and the extension will provide signatures accordingly. - Function and method signatures now work even if there is no JSDoc comment right above.
- Added an option to specify a path relative to the workspace when creating a new project.
- Implemented scopped completions for variables. A variable won't be suggested if the user is typing outside of the variable's scope.
- Extension is now bundled, this will improve performances.
- Complete refactoring of the GoToDefinition system, which now updates the location of an item every parsing.
- Added support for signatures help in multi-line function calls.
- Added escaped characters highlighting.
- Added dynamic syntax highlighting for defines and enum Members.
Fixed
- Improved overall performances by over 50% in some cases (completions were sometimes iterated over twice, which caused delays in large files).
- Made
#include
,#pragma
, etc statements highlighting closer to C/C++ highlighting. - Fixed an issue for include files not inside an
include
folder. - Fixed an error where function signatures would get confused if a
,
was in a string or an array. - Fixed unprompted autocompletion when typing misc characters like
\
or"
. - Fixed an issue where signatures helpers wouldn't work properly on secondary .sp files.
- Improved syntax highlighting for function return types.
- GoToDefinition, Hover, and Signatures are now less random.
v1.12.7
Added
- Added support for .ini files syntax highlighting. Thanks to HolyHender for suggesting this.
- Added a setting for choosing whether to always compile the MainPath file (if it's set) or to always compile the currently opened file.
- Added support for .kv files.
Fixed
- Fixed issue #54 where a compiled folder would be generated even if the output directory was configured to something else. Thanks to DRAN1X for reporting this.
- Compile button is now more persistent in the menu.
- Fixed issue #58 regarding syntax highlighting for .cfg files.
- Fixed issue #56 regarding syntax highlighting for multiline strings and
'
inside double quoted strings and vice-versa.
v1.12.6
Fixed
- Fixed a bug where the installer wouldn't add paths to the settings after installing sourcemod.
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.