BowlerHatLLC / vscode-as3mxml

ActionScript & MXML language extension for Visual Studio Code. Develop apps for Adobe AIR, Adobe Flash Player, or Apache Royale.
https://as3mxml.com/
Apache License 2.0
256 stars 39 forks source link

Using LSP with Sublime Text: MXML not recognized as source #704

Closed blackjyn closed 11 months ago

blackjyn commented 11 months ago

I try to use the LSP with Sublime Text and follow the step here: https://github.com/BowlerHatLLC/vscode-as3mxml/wiki/How-to-use-the-ActionScript-and-MXML-language-server-with-Sublime-Text

with slight modification I create an LSP entry :

"as3mxml": {
    "enabled": true,
    "command": [
        "java",
        "-Droyalelib=D:/DEVSDK/ApacheFlexSDK4161AIR55.1.2/frameworks",
        "-Dfile.encoding=UTF8",
        "-cp",
        "D:/VSCodeEPortable/data/extensions/bowlerhatllc.vscode-as3mxml-1.18.0/bundled-compiler/*;D:/VSCodeEPortable/data/extensions/bowlerhatllc.vscode-as3mxml-1.18.0/bin/*",
        "com.as3mxml.vscode.Main"
    ],
    "selector": "source.actionscript.2"
}

The LSP triggered ONLY on ActionScript files and NOT MXML file. What is the selector for MXML files?

ENV:

joshtynjala commented 11 months ago

I have updated the Sublime Text page with the necessary configuration changes to enable MXML code intelligence too.

https://github.com/BowlerHatLLC/vscode-as3mxml/wiki/How-to-use-the-ActionScript-and-MXML-language-server-with-Sublime-Text

blackjyn commented 11 months ago

Thanks Josh. Works nicely!