Raised This Month: $32 Target: $400
 8% 

amxx support in vscode?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
loki_himself
Member
Join Date: Nov 2021
Old 09-07-2022 , 11:08   amxx support in vscode?
Reply With Quote #1

...

Last edited by loki_himself; 11-23-2022 at 12:11.
loki_himself is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 09-07-2022 , 20:45   Re: amxx support in vscode?
Reply With Quote #2

I use "AMXXPawn Language" by Klippy. I just tested and auto-completion for functions defined in the same plugin works just fine. The "Go to Definition" does not work.
__________________
fysiks is offline
loki_himself
Member
Join Date: Nov 2021
Old 09-08-2022 , 05:56   Re: amxx support in vscode?
Reply With Quote #3

...

Last edited by loki_himself; 11-23-2022 at 13:23.
loki_himself is offline
kww
Senior Member
Join Date: Feb 2021
Location: Russia
Old 09-10-2022 , 13:22   Re: amxx support in vscode?
Reply With Quote #4

Do you script new game mode (like zp)?
__________________
Now working on: Side Weapons (Very lazy, tbh)
Avatar source: https://bit.ly/3BAk19g
Discord: kww#9951

Last edited by kww; 09-10-2022 at 13:23.
kww is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 09-10-2022 , 17:14   Re: amxx support in vscode?
Reply With Quote #5

Quote:
Originally Posted by loki_himself View Post
yeah thats what i mean, does not work. i got used to quick searching "c myfunc" but man i do miss those convenient things
So, I was looking into this today and the "Go to Definition" and "Peek Definition" functions do work for most functions. The only functions it doesn't seem to work for are local functions (functions without a "public " or "stock " in front of it). Ironically, it will also work for a function defined with "asdf ":

Code:
asdf myFunction(arg1, arg2)
{
    // Do stuff
}
I wonder if I only tested it on a local function when I said it didn't work.

EDIT: I think I found the fix for this issue. The regex pattern used to detect the function names had a minor mistake in it. You can test the fix by installing a version that I created to fix the issue. You'll need to install the VSIX file that I've published here.
__________________

Last edited by fysiks; 09-10-2022 at 22:43.
fysiks is offline
loki_himself
Member
Join Date: Nov 2021
Old 09-11-2022 , 07:00   Re: amxx support in vscode?
Reply With Quote #6

...

Last edited by loki_himself; 11-23-2022 at 12:49.
loki_himself is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 09-11-2022 , 15:50   Re: amxx support in vscode?
Reply With Quote #7

For me, it works if it's defined above or below the function call.Maybe send me the plugin that you're editing where this issue occurs so I can test to see if there is some other bug related to your specific code.
__________________

Last edited by fysiks; 09-11-2022 at 15:51.
fysiks is offline
deprale
Senior Member
Join Date: Oct 2018
Location: Leeds
Old 09-12-2022 , 06:24   Re: amxx support in vscode?
Reply With Quote #8

Quote:
Originally Posted by fysiks View Post
For me, it works if it's defined above or below the function call.Maybe send me the plugin that you're editing where this issue occurs so I can test to see if there is some other bug related to your specific code.
It also works for me, but there's another weird issue with the syntax highlighting with this extension.

https://i.imgur.com/2LRbzw2.png

->>

https://i.imgur.com/ts5xLuz.png

a semicolon fixes that but still... I hate using them.

I tried to manually edit the amxxpawn.tmLanguage file but to be honest I'm no regex expert or enjoyer so I failed miserably.
__________________

Last edited by deprale; 09-12-2022 at 06:28.
deprale is offline
loki_himself
Member
Join Date: Nov 2021
Old 09-12-2022 , 13:35   Re: amxx support in vscode?
Reply With Quote #9

...

Last edited by loki_himself; 11-23-2022 at 13:22.
loki_himself is offline
LiZou Mapper
Member
Join Date: Oct 2018
Location: Morocco
Old 09-12-2022 , 15:32   Re: amxx support in vscode?
Reply With Quote #10

Quote:
Originally Posted by loki_himself View Post
yes there are some problems with the highlighting, seems with ^" and so. i am going back to c#
Try AMXX on Sublime Text 3.2.2 Build 3211
__________________

-------------
My Maps !
Zombie Escape Mod !
-------------

LiZou Mapper 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 21:24.


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