AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   General (https://forums.alliedmods.net/forumdisplay.php?f=58)
-   -   [RELEASE | EDITOR] SourcePawn for Visual Studio Code (https://forums.alliedmods.net/showthread.php?t=331017)

Sarrus 03-02-2021 14:28

[RELEASE | EDITOR] SourcePawn for Visual Studio Code
 


Features


Syntax highlighting for .sp and .inc files

Highlight different elements of the SourcePawn syntax.

https://raw.githubusercontent.com/Sa...-example-1.png

Syntax highlighting for .cfg and .txt files

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

https://raw.githubusercontent.com/Sa...-example-2.png

Code auto-completion

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

https://raw.githubusercontent.com/Sa...-example-1.png

Events auto-completion

Provide suggestions of events name when calling HookEvent and HookEventEx.

https://raw.githubusercontent.com/Sa...-example-2.png

Include's path auto-completion

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

https://raw.githubusercontent.com/Sa...-example-3.png

Signature help

Provide signature help when calling functions and entering their parameters.

https://raw.githubusercontent.com/Sa...-example-1.png

Hover help

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

https://raw.githubusercontent.com/Sa...-example-1.png

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.

https://raw.githubusercontent.com/Sa...-example-1.png

Linter

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

https://raw.githubusercontent.com/Sa...-example-1.png[/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

Sarrus 03-03-2021 16:08

Re: [VSCODE EXTENSION] Improved version of Dreae's vscode extension
 
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

Sarrus 03-04-2021 16:13

Re: [VSCODE EXTENSION] Improved version of Dreae's vscode extension
 
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

notMe2 03-08-2021 11:41

Re: [VSCODE EXTENSION] Improved version of Dreae's vscode extension
 
Thanks!

Stefanx 03-10-2021 09:04

Re: [VSCODE EXTENSION] Improved version of Dreae's vscode extension
 
Good work!

Sarrus 03-11-2021 16:37

Re: [VSCODE EXTENSION] Improved version of Dreae's vscode extension
 
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

Sarrus 03-17-2021 16:59

Re: [VSCODE EXTENSION] Improved version of Dreae's vscode extension
 
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

Sarrus 03-20-2021 18:39

Re: [VSCODE EXTENSION] Improved version of Dreae's vscode extension
 
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.

https://github.com/Sarrus1/sourcepaw...e.gif?raw=true

MarketPlace Download Link

Sarrus 03-25-2021 10:39

Re: [VSCODE EXTENSION] Improved version of Dreae's vscode extension
 
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

Sarrus 03-25-2021 17:29

Re: [VSCODE EXTENSION] Improved version of Dreae's vscode extension
 
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


All times are GMT -4. The time now is 23:27.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.