Raised This Month: $12 Target: $400
 3% 

[RELEASE | EDITOR] SourcePawn for Visual Studio Code


Post New Thread Reply   
 
Thread Tools Display Modes
Sarrus
Member
Join Date: May 2020
Location: France
Old 03-25-2021 , 19:48   Re: [VSCODE EXTENSION] Improved version of Dreae's vscode extension
Reply With Quote #11

Version 1.9.1

HotFix

CHANGELOG:
  • Hotfix for relative includes not working if they are .sp files(Pointed out by Bara).

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 04-01-2021 , 18:26   Re: [VSCODE EXTENSION] Improved version of Dreae's vscode extension
Reply With Quote #12

Version 1.10.0

More features

CHANGELOG:
  • Added Hover description and help for functions.
  • Added a formatter based on clang-format, which the user can (almost) fully customize.
  • Added a setting for specifying the main.sp file in a project with multiple .sp files. Please note that all files have to be saved in order for the linter to work if that setting is configured.
  • Added a way to disable the linter per documents : add //linter=false at the top of the document you want to block (Suggested by Kyle).
  • Fixed nested includes not parsing.
  • Fixed a bug where files would not get parsed properly sometimes.


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

Taking paid requests (add me on Discord)
Sarrus is offline
Desktop
AlliedModders Donor
Join Date: Sep 2009
Location: C:\Users\Default\
Old 04-08-2021 , 03:17   Re: [VSCODE EXTENSION] Improved version of Dreae's vscode extension
Reply With Quote #13

This is REALLY nice for people like me that are not a SR programmer and still didn't find the best IDE to code sourcemod.

Tried to use other extensions but those didn't show a compile button, which is very needed for me as i never scripted anything for VS Code.

Thanks!!

PS: Is in any way possible to open the compiler output folder by clicking somewhere? Since is more practical to me to open the directory from the IDE
__________________
Massive Infection:: Piu-Games

Last edited by Desktop; 04-08-2021 at 03:27.
Desktop is offline
Sarrus
Member
Join Date: May 2020
Location: France
Old 04-08-2021 , 04:35   Re: [VSCODE EXTENSION] Improved version of Dreae's vscode extension
Reply With Quote #14

Quote:
Originally Posted by Desktop View Post
This is REALLY nice for people like me that are not a SR programmer and still didn't find the best IDE to code sourcemod.

Tried to use other extensions but those didn't show a compile button, which is very needed for me as i never scripted anything for VS Code.

Thanks!!
Glad you like it!


Quote:
PS: Is in any way possible to open the compiler output folder by clicking somewhere? Since is more practical to me to open the directory from the IDE
You can right click on the output file and click on "Reveal in explorer" I believe.
__________________
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 04-21-2021 , 15:14   Re: [VSCODE EXTENSION] Improved version of Dreae's vscode extension
Reply With Quote #15

Version 1.11.0

Performance improvements and new features

CHANGELOG:
  • Added automatic documentation generation for functions.
  • Added a command to refresh plugins on a Source server.
  • Added a command to upload plugins to an FTP/SFTP server.
  • Added a setting to automatically deploy the plugin to an FTP/SFTP server after a successful compile.
  • Added a setting to automatically refresh the Source server's plugins list after a successful upload.
  • Added basic support for properties autocompletion.
  • Added support for functions without a public/stock/static/native prefix.
  • Added support for enum's member documentation on hover.
  • Fixed wrong name parsing or old syntax functions.
  • Methods will now show their parent Methodmap as detail in the autocompletion prompt.
  • Improved the parsing of already parsed includes.
  • Changed the name of the settings prefix for better consistency.
  • The sourcepawn.MainPath setting can now be relative or absolute.
  • Fixed the linter on Windows.
  • Sub .sp files now inherit from MainPath's completions.

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 06-14-2021 , 19:02   Re: [RELEASE | EDITOR] SourcePawn for Visual Studio Code
Reply With Quote #16

Version 1.12.4

This version provides many changes on top of the previous versions. The full changelog can be found here. There will no longer be updates on this blog post.
__________________
Discord Coding Server | Steam Profile | Community Website | Github Profile

Taking paid requests (add me on Discord)
Sarrus is offline
ebna
New Member
Join Date: Jun 2021
Old 06-16-2021 , 01:48   Re: [RELEASE | EDITOR] SourcePawn for Visual Studio Code
Reply With Quote #17

After installing this plugin I created a .sp file and the plugin asked me if I wanted to install SourcMod. I let the plugin install SourceMod but now when I right click on the .sp file and choose "SM Compile File" I get an error saying "SourceMod compiler not found in the project. You need to set the SpcompPath for the Linter to work.". Where is the compiler installed?
ebna is offline
Sarrus
Member
Join Date: May 2020
Location: France
Old 06-16-2021 , 04:34   Re: [RELEASE | EDITOR] SourcePawn for Visual Studio Code
Reply With Quote #18

Quote:
Originally Posted by ebna View Post
After installing this plugin I created a .sp file and the plugin asked me if I wanted to install SourcMod. I let the plugin install SourceMod but now when I right click on the .sp file and choose "SM Compile File" I get an error saying "SourceMod compiler not found in the project. You need to set the SpcompPath for the Linter to work.". Where is the compiler installed?
This was a bug, sorry about that. It has now been fixed. Next time you open VSCode, a new version of the extension should download and you'll be able to install Sourcemod as intended.

P.S: The new version will be live in approx 10mins
__________________
Discord Coding Server | Steam Profile | Community Website | Github Profile

Taking paid requests (add me on Discord)
Sarrus is offline
ebna
New Member
Join Date: Jun 2021
Old 06-17-2021 , 13:02   Re: [RELEASE | EDITOR] SourcePawn for Visual Studio Code
Reply With Quote #19

Quote:
Originally Posted by Sarrus View Post
This was a bug, sorry about that. It has now been fixed. Next time you open VSCode, a new version of the extension should download and you'll be able to install Sourcemod as intended.

P.S: The new version will be live in approx 10mins
It's working now. Thanks!
ebna is offline
xtance
Junior Member
Join Date: Feb 2018
Old 08-16-2021 , 12:45   Re: [RELEASE | EDITOR] SourcePawn for Visual Studio Code
Reply With Quote #20

Hello, please help with
"Not a .sp file, aborting"
When trying to compile .sp file

Code:
    "sourcepawn.MainPath": "D:\\Server\\scripting\\",
    "sourcepawn.outputDirectoryPath": "D:\\Server\\scripting\\compiled\\",
    "sourcepawn.SourcemodHome": "D:\\Server\\scripting\\include\\",
    "sourcepawn.SpcompPath": "D:\\Server\\scripting\\spcomp.exe",
UPD:
Turns out I needed to right-click in editor and choose "SM Set current file as main", then it works
But I have a question
Can I compile a file without setting as main?
I have tons of .sp in my /scripting folder, and I used to that setup, since most plugins are one-file anyway

Last edited by xtance; 08-16-2021 at 12:48.
xtance 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 14:30.


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