/MQL-Compiler-VScode

MQL Compiler extension for Visual Studio Code

Primary LanguageJavaScriptMIT LicenseMIT

MQL Compiler (VSCode)

This is VS Code extension to add support for MQL files.

Build

Steps to install extension from the source code:

npm install
npm run package

This will generate a .vsix file which can be install from the editor.

Debug

To debug this extension, open repository location in editor, then from Run menu select Start Debugging. This will open a new editor window with extension being enabled where you can open another folder with MQL files to compile. To see debug messages, go to Help menu and select Toggle Developer Tools.

Install from file

In VS Code editor, open extension pane and choose "Install from VSIX...", then select previously generated .vsix file.

This can also be achieved by dragging and dropping the file into the editor's extension pane.

Alternatively to install extension from the command-line, run:

code --install-extension mql-compiler-vscode-0.1.0.vsix

Localization

Localization is handled by microsoft/vscode-l10n extension.

To create new translation, you can create a package.nls.{locale}.json file.

VS Code will automatically load the correct file based on the locale of the user.