AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   General (https://forums.alliedmods.net/forumdisplay.php?f=7)
-   -   [Editor] AMXXPawn for Visual Studio Code (https://forums.alliedmods.net/showthread.php?t=300661)

klippy 08-27-2017 10:30

Re: [Editor] AMXXPawn for Visual Studio Code
 
Alright, there's a new update.

amxxpawn.compiler.executablePath, amxxpawn.compiler.includePaths and amxxpawn.compiler.outputPath now support variable substitution. You can use the same ones that are defined HERE except ${cwd} and ${lineNumber}. Is that what you needed?

Here's a full changelog:
Code:

## [Version 0.3.0] - 2017-08-27
## Added
- Substitution variables are now allowed in settings containing paths
- More diagnostics to the **#include** statement parser

## Fixed
- **#include** statements parser now provides links and diagnostics with a correct character range


Hedgehog Fog 08-27-2017 14:56

Re: [Editor] AMXXPawn for Visual Studio Code
 
1 Attachment(s)
KliPPy
Works for compiler, but doesn't work for include.

PHP Code:

{
    
"amxxpawn.compiler.includePaths": [
        
"${workspaceRoot}/compiler/include",
        
"${workspaceRoot}/src/include"
    
],
    
"amxxpawn.compiler.executablePath""${workspaceRoot}/compiler/amxxpc.exe"



klippy 08-27-2017 15:50

Re: [Editor] AMXXPawn for Visual Studio Code
 
Aye, totally forgot about the parser. I've pushed an update, should be good now. Keep in mind that includePaths will only support ${workspaceRoot} and ${workspaceRootFolderName} (and any future workspace variables), as the language server has no knowledge of what file is currently open/focused.

Code:

## [Version 0.3.1] - 2017-08-27
### Added
- Reparses open documents when configuration changes

### Fixed
- The parser now substitutes variables in `amxxpawn.compiler.includePaths` too


Hedgehog Fog 08-27-2017 17:30

Re: [Editor] AMXXPawn for Visual Studio Code
 
KliPPy
It works, thanks.
I use "Ctrl + Mouse Click" to go to definition, but it opens documentation after click, can you add option to disable this?

klippy 08-27-2017 17:49

Re: [Editor] AMXXPawn for Visual Studio Code
 
You can use F12 to go to or Alt+F12 to peek definition too. But yeah, I don't like that links and definitions are "clashing" either, I've been thinking a about a solution to that.
I guess I can add a setting in the next update, but I won't be pushing an update for that feature only. I hope you can live with it for a day or two.

Anyway, what are your overall thoughts? You've provided a great deal of feedback already and thank you for that. :^)

Hedgehog Fog 08-27-2017 18:00

Re: [Editor] AMXXPawn for Visual Studio Code
 
Quote:

You can use F12 to go to or Alt+F12 to peek definition too.
I know. :)

Quote:

I guess I can add a setting in the next update, but I won't be pushing an update for that feature only. I hope you can live with it for a day or two.
Sure. :wink:

Quote:

Anyway, what are your overall thoughts? You've provided a great deal of feedback already and thank you for that. :^)
Thank you for this great extension. I tried to do it myself, but I didn't have enough time and I abandoned it.

Also I wrote simple plugin for gulp to compile sma and I using it in my project, so now I need only autocompletion. :)
https://www.npmjs.com/package/gulp-sma

P.S

voed 08-28-2017 18:36

Re: [Editor] AMXXPawn for Visual Studio Code
 
Can we disable this messages? Its using so much space. Thank you.
http://i.imgur.com/s9DhHvs.png

klippy 08-29-2017 06:02

Re: [Editor] AMXXPawn for Visual Studio Code
 
Quote:

Originally Posted by voed (Post 2545000)
Can we disable this messages? Its using so much space. Thank you.
...

I'm really failing to see how they take too much space, but sure, I'll add a setting for that.

voed 08-29-2017 09:44

Re: [Editor] AMXXPawn for Visual Studio Code
 
Quote:

Originally Posted by KliPPy (Post 2545052)
I'm really failing to see how they take too much space

Like this:
http://i.imgur.com/fArRHWS.png

Also, is that possible to highlight warnings/errors right in code window? Like in sublime text:
http://i.imgur.com/1WE6pXw.png

klippy 08-29-2017 09:58

Re: [Editor] AMXXPawn for Visual Studio Code
 
Quote:

Originally Posted by voed (Post 2545078)

I am fully aware of what messages you are talking about, but what I said is that I'm failing to see how they take "so much space". What's more, I find them quite useful so you can easily spot mistakes in the compiler configuration (the printed process arguments) and tell when the compiler exited or perhaps if the process hanged.

Quote:

Originally Posted by voed (Post 2545078)
Also, is that possible to highlight warnings/errors right in code window? Like in sublime text:
http://i.imgur.com/1WE6pXw.png

I don't quite remember ST3 having that functionality. Is that a plugin? Link me to whatever it is so I can inspect it and see what you are precisely talking about.


All times are GMT -4. The time now is 23:28.

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