[RELEASE | EDITOR] SourcePawn for Visual Studio Code
SourcePawn for VSCode An extension that enables helpful features for the SourcePawn programming language in Visual Studio Code https://vsmarketplacebadge.apphb.com...awn-vscode.svghttps://vsmarketplacebadge.apphb.com...de.svgInstalls https://img.shields.io/github/last-c...rcepawn-vscode https://img.shields.io/github/issues...rcepawn-vscode https://img.shields.io/github/issues...rcepawn-vscode https://img.shields.io/github/repo-s...rcepawn-vscode https://img.shields.io/github/workfl...ge%20Extension https://raw.githubusercontent.com/Sa...es/example.gif 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
To do
Credits
MarketPlace Download | Source | Beta builds |
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:
Latest release |
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:
MarketPlace Download Link |
Re: [VSCODE EXTENSION] Improved version of Dreae's vscode extension
Thanks!
|
Re: [VSCODE EXTENSION] Improved version of Dreae's vscode extension
Good work!
|
Re: [VSCODE EXTENSION] Improved version of Dreae's vscode extension
Version 0.1.7
Parsing improvements What was fixed/improved from the last version:
MarketPlace Download Link |
Re: [VSCODE EXTENSION] Improved version of Dreae's vscode extension
Version 1.7.1
HotFix What was fixed/improved from the last version:
MarketPlace Download Link |
Re: [VSCODE EXTENSION] Improved version of Dreae's vscode extension
Version 0.8.3
New features What was fixed/improved from the last version:
https://github.com/Sarrus1/sourcepaw...e.gif?raw=true MarketPlace Download Link |
Re: [VSCODE EXTENSION] Improved version of Dreae's vscode extension
Version 1.8.4
Performance improvements and new features CHANGELOG:
MarketPlace Download Link |
Re: [VSCODE EXTENSION] Improved version of Dreae's vscode extension
Version 1.9.0
Performance improvements and Go To Definition CHANGELOG:
MarketPlace Download Link |
Re: [VSCODE EXTENSION] Improved version of Dreae's vscode extension
Version 1.9.1
HotFix CHANGELOG:
MarketPlace Download Link |
Re: [VSCODE EXTENSION] Improved version of Dreae's vscode extension
Version 1.10.0
More features CHANGELOG:
MarketPlace Download Link |
Re: [VSCODE EXTENSION] Improved version of Dreae's vscode extension
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 |
Re: [VSCODE EXTENSION] Improved version of Dreae's vscode extension
Quote:
Quote:
|
Re: [VSCODE EXTENSION] Improved version of Dreae's vscode extension
Version 1.11.0
Performance improvements and new features CHANGELOG:
MarketPlace Download Link |
Re: [RELEASE | EDITOR] SourcePawn for Visual Studio Code
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. |
Re: [RELEASE | EDITOR] SourcePawn for Visual Studio Code
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?
|
Re: [RELEASE | EDITOR] SourcePawn for Visual Studio Code
Quote:
P.S: The new version will be live in approx 10mins |
Re: [RELEASE | EDITOR] SourcePawn for Visual Studio Code
Quote:
|
Re: [RELEASE | EDITOR] SourcePawn for Visual Studio Code
Hello, please help with
"Not a .sp file, aborting" When trying to compile .sp file Code:
"sourcepawn.MainPath": "D:\\Server\\scripting\\", 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 |
Re: [RELEASE | EDITOR] SourcePawn for Visual Studio Code
Quote:
If set to false, the current .sp file will be compiled, ignoring the MainPath file. |
Re: [RELEASE | EDITOR] SourcePawn for Visual Studio Code
Love this extension; use it exclusively for large multi-file plugins. However...
Some documentation into the options / configuration settings would be helpful. Some examples.. 1) What does "encoding" affect? Why would there be an option for that in the FTP settings? Code:
Sourcepawn: Source Server Options a) If I have my plugins compiled to the desktop, I assume it only syncs the compiled plugin file and not all my desktop files? b) What are the deleteRemote and forcePasv used for? c) Why is there a "host", "port", and "password" option in these settings, when the "SourceServerOptions" options had those two settings as well? (I assume it's duplicate info for refreshing plugins / uploading plugins). Code:
Sourcepawn: Upload Options Code:
Sourcepawn: Spcomp Path |
Re: [RELEASE | EDITOR] SourcePawn for Visual Studio Code
Thanks you for your interest :D
1) I will be honest, I don't know what the encoding is for in the rcon options. It's used in the node.js package I use, not sure why. Link to the docs. 2) Here is the doc to the FTP uploader: ftp deploy a) It will upload everything in the Desktop yes, except for scripting, .vscode, etc You can change that in the include settings b)Details in the docs above c)RCON passwords/hosts and SFTP passwords/hosts are usually not the same, so it's useful to be able to separate the two. This can be redundant if you use the same credentials. I have started writing some proper documentation, it is available here. |
Re: [RELEASE | EDITOR] SourcePawn for Visual Studio Code
Is it possible to add this option which is in SP Code?
https://i.imgur.com/LpAq0lr.png |
Re: [RELEASE | EDITOR] SourcePawn for Visual Studio Code
Quote:
|
Re: [RELEASE | EDITOR] SourcePawn for Visual Studio Code
For some reason highlighting works but no autocompletion
It worked in past but not now (IDK why) Paths set up correctly I guess (plugins are compiling) Also this on extension page https://i.imgur.com/3Ad0QFn.png IDK why UPD: reinstalling windows fixed it (I did that because of other problems aswell but yes it does fix that, now using ltsc 1809) |
All times are GMT -4. The time now is 02:06. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.