Use this extension along with "AutoHotKey2 Language Support" by thqby for syntax error highlighting #75
-
So theres this other extension: https://gitee.com/orz707/vscode-autohotkey2-lsp which offers some really nice syntax highlighting, however its all in Chinese or something in that direction and I havent quite found a way of changing the language. However when having both the vscode ahk language server extension from mark wiemer and this other extension it seems that when hovering some text its this other extension that displays. Does VS Code have some functionality that lets me choose which language server is responsible for what functionalities (or can I prioritize this extension somehow?). Essentially what I wanna do is get the error syntax highlighting of this other extension, but use all the other features of Mark Wiemers ahk extension. Thanks for reading :) |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 10 replies
-
Don't know if this helps, but you can enable/disable similar extensions depending on which one you want to be in use. This can be done globally or per workspace. |
Beta Was this translation helpful? Give feedback.
-
Hiya, sorry I never replied to this one. Thanks for calling out an extension with good syntax highlighting, I'll at it to my to-do list for May. As FuPeiJiang has mentioned, should be easy to add an option to disable AHK++ syntax highlighting so that it doesn't interfere with other syntax highlighting providers. No promises, but it's on the list :) See Add option to disable syntax highlighting · Issue #84 · mark-wiemer/vscode-autohotkey-plus-plus |
Beta Was this translation helpful? Give feedback.
-
And yes, this other extension is in Chinese, according to a quick search |
Beta Was this translation helpful? Give feedback.
-
I just installed the extension directly from VS Code by searching For example, the demo for AHK v2 code in the repo shows this: class Cls
{
str := "string"
num := 123
static obj := { str: "string", num: 123 }
propertyName[] { ; syntax error here
set {
this.propertyName_ := value
}
get {
return this.propertyName_
}
}
method() {
}
static staticMethod() {
}
}
I know you still want my code's hover to take precedence, and I will look into that. I'm not sure how VS Code handles multiple hover providers, so it'll take some time. |
Beta Was this translation helpful? Give feedback.
Hiya, sorry I never replied to this one. Thanks for calling out an extension with good syntax highlighting, I'll at it to my to-do list for May. As FuPeiJiang has mentioned, should be easy to add an option to disable AHK++ syntax highlighting so that it doesn't interfere with other syntax highlighting providers. No promises, but it's on the list :)
See Add option to disable syntax highlighting · Issue #84 · mark-wiemer/vscode-autohotkey-plus-plus