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

[Editor] AMXXPawn for Visual Studio Code


Post New Thread Reply   
 
Thread Tools Display Modes
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 09-03-2017 , 18:01   Re: [Editor] AMXXPawn for Visual Studio Code
Reply With Quote #71

I honestly don't know what's worse. The fact that AMXX uses '^' as an escape character by default, or that you can change it whenever you feel like it in your plugin. I personally use '\' as an escape character in my plugins. I guess just setting '^' will do, but I'll try to figure out if I can somehow do it dynamically, that would be awesome.
klippy is offline
Timocop
AlliedModders Donor
Join Date: Mar 2013
Location: Germany
Old 09-03-2017 , 21:40   Re: [Editor] AMXXPawn for Visual Studio Code
Reply With Quote #72

You should put it on low priority, noone seems to use the ctrlchar pragma anyways tbh. And yes, changing the escsape char mid code is way more horrible
Timocop is offline
voed
Junior Member
Join Date: Aug 2017
Location: Ukraine
Old 09-04-2017 , 08:54   Re: [Editor] AMXXPawn for Visual Studio Code
Reply With Quote #73

Can you add version auto-incrementing? Like it was in sublime text plugin: detect #define/const VERSION value and increment it with each build

And one more thing, can path in "output" tab be clickable and open folder with compiled file on click?

Last edited by voed; 09-04-2017 at 08:59.
voed is offline
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 09-04-2017 , 09:51   Re: [Editor] AMXXPawn for Visual Studio Code
Reply With Quote #74

Quote:
Originally Posted by voed View Post
Can you add version auto-incrementing? Like it was in sublime text plugin: detect #define/const VERSION value and increment it with each build
Sure, but this will be on the low priority list.

Quote:
Originally Posted by voed View Post
And one more thing, can path in "output" tab be clickable and open folder with compiled file on click?
Looks like there's a way to put links, but I'm not sure if directory links will work too. I'll do it if it's possible.

Last edited by klippy; 09-04-2017 at 09:51.
klippy is offline
Depresie
Veteran Member
Join Date: Nov 2013
Old 09-06-2017 , 12:26   Re: [Editor] AMXXPawn for Visual Studio Code
Reply With Quote #75

Auto completion for custom includes ? when ?
__________________
Depresie is offline
wopox3
Junior Member
Join Date: Dec 2013
Location: Russia
Old 09-06-2017 , 12:35   Re: [Editor] AMXXPawn for Visual Studio Code
Reply With Quote #76

Will the constant value be displayed in the following updates? type m_pActiveItem = 373 in the tooltip
wopox3 is offline
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 09-06-2017 , 12:36   Re: [Editor] AMXXPawn for Visual Studio Code
Reply With Quote #77

Quote:
Originally Posted by Depresie View Post
Auto completion for custom includes ? when ?
It's always been there.


Quote:
Originally Posted by wopox3 View Post
Will the constant value be displayed in the following updates? type m_pActiveItem = 373 in the tooltip
Yeah I was thinking about it, but it's really difficult to properly do it for multiple definitions one a single line without a real lexer, like:
PHP Code:
new const first 69second 1337
because it wouldn't be enough to just split them at ',' as there are cases where that would produce false results. Doing it for single definition on a line wouldn't be a problem.

Last edited by klippy; 09-06-2017 at 12:40.
klippy is offline
Depresie
Veteran Member
Join Date: Nov 2013
Old 09-06-2017 , 12:46   Re: [Editor] AMXXPawn for Visual Studio Code
Reply With Quote #78

What do you mean it always been here ?

I get no auto completion for my custom native includes..
I also have no auto completion for the regular constants of cstrike/fakemeta/engine etc..
__________________
Depresie is offline
kristi
Senior Member
Join Date: Nov 2016
Old 09-06-2017 , 12:51   Re: [Editor] AMXXPawn for Visual Studio Code
Reply With Quote #79

I think it doesn't work on includes inside includes. eg: cstrike_const.inc
kristi is offline
Send a message via Skype™ to kristi
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 09-06-2017 , 13:10   Re: [Editor] AMXXPawn for Visual Studio Code
Reply With Quote #80

Quote:
Originally Posted by Depresie View Post
I get no auto completion for my custom native includes..
No idea, all good for me with whatever I throw at it. I posted a picture of Orpheu working.

Quote:
Originally Posted by kristi View Post
I think it doesn't work on includes inside includes. eg: cstrike_const.inc
It does, the file parser is recursive and builds a dependency tree between included files. If you have 1.8.3-dev include files, MaxClients from amxconst.inc (which is included by amxmodx.inc) will show up.

As I've said already, enumerations and #define statements are not yet parsed so a good portion of constants are not presented in completions. It's high priority and I know that's one of missing key features.

Last edited by klippy; 09-06-2017 at 13:11.
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 12:11.


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