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

[Editor] AMXXPawn for Visual Studio Code


Post New Thread Reply   
 
Thread Tools Display Modes
Mistrick
Senior Member
Join Date: Aug 2012
Location: Russia
Old 02-23-2018 , 01:38   Re: [Editor] AMXXPawn for Visual Studio Code
Reply With Quote #91

What about autosave before compilation?
Mistrick is offline
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 02-23-2018 , 01:49   Re: [Editor] AMXXPawn for Visual Studio Code
Reply With Quote #92

To be honest it should have never been a command, but a build system instead. I'll see what I can do.
__________________
klippy is offline
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 02-23-2018 , 04:55   Re: [Editor] AMXXPawn for Visual Studio Code
Reply With Quote #93

Published 0.6.3, but forgot to update the changelog, will do it for the next version.
  • Added an icon to the extension, thanks to Adam Richard. You can check it out HERE. If you think you can do a better one send it and I'll take a look. Another customizable element is the dark purple background ("banner") on that page, so suggestions for that are welcome as well.
  • Will now automatically switch to AMXXPawn syntax if there's #include <amxmodx> on the first line, in case you open some unknown file format (say .inl).
  • Added code regions - code between //#region and //#endregion can be folded.

You can also propose any changes (be it the marketplace icon, banner, or anything else) by making a pull request on GitHub
__________________

Last edited by klippy; 02-23-2018 at 04:58.
klippy is offline
voed
Junior Member
Join Date: Aug 2017
Location: Ukraine
Old 02-23-2018 , 11:32   Re: [Editor] AMXXPawn for Visual Studio Code
Reply With Quote #94

Great! What about variables autocomplete and hints?
voed is offline
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 02-28-2018 , 09:04   Re: [Editor] AMXXPawn for Visual Studio Code
Reply With Quote #95

Quote:
Originally Posted by voed View Post
Great! What about variables autocomplete and hints?
If you mean for local variables then most likely never, or in far far future. That would require a complete rewrite (or else be extremely slow and ugly). To be honest if you keep your functions small and clean you can't really lose track of local variables.

By the way, I've been working hard on creating a regex to match tags properly.
Now it works well in ternary operator expressions, ignores "case" and "default" and works for any tag (not just predefined ones):


Also works properly for tag lists:


I also plan to bring doc-comments on hover and completions, Go to/Peek Definition (already done) and possibly #define completions in the next release.
__________________
klippy is offline
voed
Junior Member
Join Date: Aug 2017
Location: Ukraine
Old 02-28-2018 , 13:07   Re: [Editor] AMXXPawn for Visual Studio Code
Reply With Quote #96

Quote:
Originally Posted by KliPPy View Post
If you mean for local variables
No, i'm about global constants, #define declarations and maybe variables:

VSCode already have constants hover, but without its value
voed is offline
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 02-28-2018 , 14:17   Re: [Editor] AMXXPawn for Visual Studio Code
Reply With Quote #97

Quote:
Originally Posted by voed View Post
No, i'm about global constants, #define declarations and maybe variables:

VSCode already have constants hover, but without its value
It's not actually VSCode's, it's extension's hover. I may be able to do it. It's rather easy for a single declaration on the line, but when there's more than 1 declaration per line it can get difficult to parse (at least with my current parser).
__________________
klippy is offline
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 03-01-2018 , 10:09   Re: [Editor] AMXXPawn for Visual Studio Code
Reply With Quote #98

Update 0.7.0 has been published.
Code:
## [Version 0.7.0] - 2018-03-01
### Added
- Go to Definition/Peek Definition for functions and global variables
- All tags are now highlighted, not just predefined ones
- Tag lists are now highlighted
- Tag highlighting works properly in ternary operators
- Doc-comments are now displayed on signature help/hover/completions
- Pawndoc grammar - doc-comments are highlighted separately
New sexy doc-comment syntax:


@deprecated is an exception and has its own highlight to stick out:


Doc-comment showing up on hover and Peek Definition:
__________________
klippy is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 03-02-2018 , 17:14   Re: [Editor] AMXXPawn for Visual Studio Code
Reply With Quote #99

Can you make it that before the plugin is compiled the sma file is automatically saved? I'm used with that from Arkshine's NP++ and it gets annoying because I have to save manually or I get an amxx file that does not contain the changes I made.
__________________
HamletEagle is offline
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 03-03-2018 , 07:13   Re: [Editor] AMXXPawn for Visual Studio Code
Reply With Quote #100

Quote:
Originally Posted by HamletEagle View Post
Can you make it that before the plugin is compiled the sma file is automatically saved? I'm used with that from Arkshine's NP++ and it gets annoying because I have to save manually or I get an amxx file that does not contain the changes I made.
Done, just update. Would've done it last night but Windows update goofed on me hard. Duplicated start menu shortcuts, and even worse, changed some paths in the %PATH% environment variable. Micro$oft please fix.
__________________

Last edited by klippy; 03-03-2018 at 07:13.
klippy is offline
Reply



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:04.


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