Raised This Month: $299 Target: $400
 74% 

[RELEASE | EDITOR] SourcePawn for Visual Studio Code


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Sarrus
Member
Join Date: May 2020
Location: France
Old 03-02-2021 , 14:28   [RELEASE | EDITOR] SourcePawn for Visual Studio Code
Reply With Quote #1

SourcePawn for VSCode


An extension that enables helpful features for the SourcePawn programming language in Visual Studio Code






Features


Syntax highlighting for .sp and .inc files

Highlight different elements of the SourcePawn syntax.



Syntax highlighting for .cfg and .txt files

Highlight different elements of the .cfg and .txt file format (for translations files for instance).



Code auto-completion

Provide suggestions of code completion based on included files and previously declared functions, variables, enums, etc.



Events auto-completion

Provide suggestions of events name when calling HookEvent and HookEventEx.



Include's path auto-completion

Provide suggestions of includes path when adding the #include statement.



Signature help

Provide signature help when calling functions and entering their parameters.



Hover help

Provide JSDoc like informations when hovering a function, enum, etc.



Go to definition

Go to the definition of the function, enum, etc, when doing ctrl+click on them. This now supports scopped variables within a function.



Linter

Provide live debugging informations while coding, based on the compiler's errors. Tips on how to solve the errors are also provided accordingly.

[/u]

Additional features
  • Compile from VSCode with a simple button.
  • Automatically install Sourcemod includes and compiler
  • Custom icons for .sp, .inc and .smx files.
  • Useful snippets.
  • Automatically generate JSDoc like comments by typing /* above a function.
  • Generate a new project automatically.
  • Upload to an FTP/SFTP server on successful compile.
  • Automatically run sm plugins refresh on a successful upload.

To do
  • Incrementally Format Code as the User Types
  • Automatic callback generation.
  • Automatic convert to new syntax (partially).


Credits
  • Dreae's extension which is not supported anymore, and on which this extension is based on.
  • Deathreus' extension which helped me to implement the linting feature.

MarketPlace Download
| Source | Beta builds
__________________
Discord Coding Server | Steam Profile | Community Website | Github Profile

Taking paid requests (add me on Discord)

Last edited by Sarrus; 06-15-2021 at 06:32. Reason: Improved the first post
Sarrus is offline
Sarrus
Member
Join Date: May 2020
Location: France
Old 03-03-2021 , 16:08   Re: [VSCODE EXTENSION] Improved version of Dreae's vscode extension
Reply With Quote #2

Version 0.1.5

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.

Latest release
__________________
Discord Coding Server | Steam Profile | Community Website | Github Profile

Taking paid requests (add me on Discord)

Last edited by Sarrus; 03-03-2021 at 16:12. Reason: Added link to release
Sarrus is offline
Sarrus
Member
Join Date: May 2020
Location: France
Old 03-04-2021 , 16:13   Re: [VSCODE EXTENSION] Improved version of Dreae's vscode extension
Reply With Quote #3

Version 0.1.6

MarketPlace release

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:
  • Added support for variables autocompletion.
  • Fixed parsing error for some functions.
  • Added new icons.
  • Improved performances and cleaned up the code.

MarketPlace Download Link
__________________
Discord Coding Server | Steam Profile | Community Website | Github Profile

Taking paid requests (add me on Discord)

Last edited by Sarrus; 03-04-2021 at 16:13. Reason: Formatting error
Sarrus is offline
notMe2
Member
Join Date: Feb 2014
Old 03-08-2021 , 11:41   Re: [VSCODE EXTENSION] Improved version of Dreae's vscode extension
Reply With Quote #4

Thanks!
notMe2 is offline
Stefanx
Member
Join Date: Feb 2018
Location: Romania
Old 03-10-2021 , 09:04   Re: [VSCODE EXTENSION] Improved version of Dreae's vscode extension
Reply With Quote #5

Good work!
Stefanx is offline
Sarrus
Member
Join Date: May 2020
Location: France
Old 03-11-2021 , 16:37   Re: [VSCODE EXTENSION] Improved version of Dreae's vscode extension
Reply With Quote #6

Version 0.1.7

Parsing improvements

What was fixed/improved from the last version:
  • Added multiline function parsing.
  • Improved snippets and added new ones.
  • Added support for simple // descriptions above functions.
  • Fixed internal sourcemod functions being parsed.
  • Added beginner friendly include parsing.
  • Fixed descriptions not showing.

MarketPlace Download Link
__________________
Discord Coding Server | Steam Profile | Community Website | Github Profile

Taking paid requests (add me on Discord)
Sarrus is offline
Sarrus
Member
Join Date: May 2020
Location: France
Old 03-17-2021 , 16:59   Re: [VSCODE EXTENSION] Improved version of Dreae's vscode extension
Reply With Quote #7

Version 1.7.1

HotFix

What was fixed/improved from the last version:
  • Fixed a potential missing dependencies crash.
  • Improved the icons.

MarketPlace Download Link
__________________
Discord Coding Server | Steam Profile | Community Website | Github Profile

Taking paid requests (add me on Discord)
Sarrus is offline
Sarrus
Member
Join Date: May 2020
Location: France
Old 03-20-2021 , 18:39   Re: [VSCODE EXTENSION] Improved version of Dreae's vscode extension
Reply With Quote #8

Version 0.8.3

New features

What was fixed/improved from the last version:
  • Added multiline function parsing.
  • Added support for for loops variable completion.
  • Added support for enums parsing.
  • Added a command for tasks.json generation from a template.
  • Added a command for .sp file generation from a template.
  • Added a command for README.md file generation from a template.
  • Added a command for github Actions file generation from a template.
  • Added a command to generate a Project from a template.
  • Added a linter based on spcomp.
  • Added a command and a button to compile the current .sp file.
  • Added more settings to support the above features.



MarketPlace Download Link
__________________
Discord Coding Server | Steam Profile | Community Website | Github Profile

Taking paid requests (add me on Discord)
Sarrus is offline
Sarrus
Member
Join Date: May 2020
Location: France
Old 03-25-2021 , 10:39   Re: [VSCODE EXTENSION] Improved version of Dreae's vscode extension
Reply With Quote #9

Version 1.8.4

Performance improvements and new features

CHANGELOG:
  • Switched to a client-based extension, removing support for LSP.
  • Switched to an iterative parser, instead of a recursive one, thus fixing Call Stack Overflow errors when parsing large files.
  • Added an option to hide the compile button (Suggested by NullifidianSF).
  • Added an option to add additional include folders location (Suggested by Bara).
  • Fixed an error where the compiler would not resolve the path correctly (Fixed by Natanel-Shitrit).

MarketPlace Download Link
__________________
Discord Coding Server | Steam Profile | Community Website | Github Profile

Taking paid requests (add me on Discord)

Last edited by Sarrus; 03-25-2021 at 10:40. Reason: Removed image
Sarrus is offline
Sarrus
Member
Join Date: May 2020
Location: France
Old 03-25-2021 , 17:29   Re: [VSCODE EXTENSION] Improved version of Dreae's vscode extension
Reply With Quote #10

Version 1.9.0

Performance improvements and Go To Definition

CHANGELOG:
  • Added Go-To-Definition for functions and for global variables (in the same file).
  • Added forward parsing.
  • Added better description support.
  • Added better iterative parsing, it is no longer required to save the document for completions to take effect.
  • Improved the overall quality and readability of the code.

MarketPlace Download Link
__________________
Discord Coding Server | Steam Profile | Community Website | Github Profile

Taking paid requests (add me on Discord)
Sarrus is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:06.


Powered by vBulletin®
Copyright ©2000 - 2022, vBulletin Solutions, Inc.
Theme made by Freecode