{ "name": "dcs-lua-runner", "displayName": "DCS Lua Runner", "description": "Quickly run lua code in DCS World (local or remote server). A reimplementation of the DCS Fiddle lua console in VS Code.", "license": "MIT", "publisher": "omltcat", "version": "1.1.7", "icon": "docs/img/icon.png", "repository": { "type": "git", "url": "https://github.com/omltcat/dcs-lua-runner"}, "engines": { "vscode": "^1.85.0" }, "categories": [ "Programming Languages", "Debuggers" ], "activationEvents": [ "onLanguage:lua" ], "main": "./out/extension.js", "contributes": { "configuration": { "title": "DCS Lua Runner", "properties": { "dcsLuaRunner.serverAddress": { "type": "string", "default": "", "description": "Remote DCS server address (IP or domain)." }, "dcsLuaRunner.serverPort": { "type": "number", "default": 12080, "description": "Remote DCS Fiddle port for mission env. GUI env will automatically be on the next port (12081 by default)." }, "dcsLuaRunner.useHttps": { "type": "boolean", "default": false, "description": "Set if server is behind a HTTPS reverse proxy. You should also change server port accordingly (443)." }, "dcsLuaRunner.webAuthUsername": { "type": "string", "default": "username", "description": "The username for authentication. Requires the modified DCS Fiddle script." }, "dcsLuaRunner.webAuthPassword": { "type": "string", "default": "password", "description": "The password for authentication. Requires the modified DCS Fiddle script." }, "dcsLuaRunner.runCodeLocally": { "type": "boolean", "default": true, "description": "Send code to 127.0.0.1:12080 or remote server set below." }, "dcsLuaRunner.runInMissionEnv": { "type": "boolean", "default": true, "description": "Execute in mission or GUI Scripting Environment." }, "dcsLuaRunner.returnDisplay": { "type": "string", "enum": ["Output Panel (Scrolling Plain Text)", "Show File (Syntax Highlight)"], "default": "Show File (Syntax Highlight)", "description": "How data returned from DCS is displayed." }, "dcsLuaRunner.returnDisplayFormat": { "type": "string", "enum": ["Lua Table", "JSON"], "default": "Lua Table", "description": "Note: Experimental feature! Original returned data is in JSON. Conversion to Lua table is done after receiving data and may not be 100% accurate. Please report any issues." }, "dcsLuaRunner.quickButtons": { "type": "boolean", "default": false, "description": "Show buttons to quickly switch settings beside the run button." } } }, "menus": { "editor/title": [ { "command": "dcs-lua-runner.run-file", "group": "navigation@-3", "when": "editorLangId == lua" }, { "command": "dcs-lua-runner.set-local-button", "when": "editorLangId == lua && config.dcsLuaRunner.runCodeLocally == false && config.dcsLuaRunner.showQuickButtons == true", "group": "navigation@-5" }, { "command": "dcs-lua-runner.set-remote-button", "when": "editorLangId == lua && config.dcsLuaRunner.runCodeLocally == true && config.dcsLuaRunner.showQuickButtons == true", "group": "navigation@-5" }, { "command": "dcs-lua-runner.set-missionEnv-button", "when": "editorLangId == lua && config.dcsLuaRunner.runInMissionEnv == false && config.dcsLuaRunner.showQuickButtons == true", "group": "navigation@-4" }, { "command": "dcs-lua-runner.set-guiEnv-button", "when": "editorLangId == lua && config.dcsLuaRunner.runInMissionEnv == true && config.dcsLuaRunner.showQuickButtons == true", "group": "navigation@-4" } ], "editor/context": [ { "command": "dcs-lua-runner.run-selected", "group": "navigation", "when": "editorLangId == lua && editorHasSelection" } ], "commandPalette": [ { "command": "dcs-lua-runner.run-file", "when": "editorLangId == lua" }, { "command": "dcs-lua-runner.run-selected", "when": "editorLangId == lua && editorHasSelection" }, { "command": "dcs-lua-runner.set-local-button", "when": "false" }, { "command": "dcs-lua-runner.set-remote-button", "when": "false" }, { "command": "dcs-lua-runner.set-missionEnv-button", "when": "false" }, { "command": "dcs-lua-runner.set-guiEnv-button", "when": "false" } ] }, "commands": [ { "command": "dcs-lua-runner.open-settings", "title": "DCS Lua: Open Runner Settings" }, { "command": "dcs-lua-runner.get-theatre", "group": "navigation@0", "title": "DCS Lua: Get Mission Theatre" }, { "command": "dcs-lua-runner.run-file", "group": "navigation@1", "title": "DCS Lua: Run Current File", "icon": "$(run)" }, { "command": "dcs-lua-runner.run-selected", "title": "DCS Lua: Run Selected Code" }, { "command": "dcs-lua-runner.set-local", "title": "DCS Lua: Set Run Code on Local Machine" }, { "command": "dcs-lua-runner.set-local-button", "title": "DCS: Remote" }, { "command": "dcs-lua-runner.set-remote", "title": "DCS Lua: Set Run Code on Remote Server" }, { "command": "dcs-lua-runner.set-remote-button", "title": "DCS: Local" }, { "command": "dcs-lua-runner.set-missionEnv", "title": "DCS Lua: Set Run Code in Mission Environment" }, { "command": "dcs-lua-runner.set-missionEnv-button", "title": "Env: GUI" }, { "command": "dcs-lua-runner.set-guiEnv", "title": "DCS Lua: Set Run Code in GUI Environment" }, { "command": "dcs-lua-runner.set-guiEnv-button", "title": "Env: Mission" }, { "command": "dcs-lua-runner.show-setup-guide", "title": "DCS Lua: Show Setup Guide" } ] }, "scripts": { "vscode:prepublish": "npm run compile", "compile": "tsc -p ./", "watch": "tsc -watch -p ./", "pretest": "npm run compile && npm run lint", "lint": "eslint src --ext ts", "test": "vscode-test" }, "devDependencies": { "@types/mocha": "^10.0.6", "@types/node": "18.x", "@types/vscode": "^1.85.0", "@typescript-eslint/eslint-plugin": "^6.15.0", "@typescript-eslint/parser": "^6.15.0", "@vscode/test-cli": "^0.0.4", "@vscode/test-electron": "^2.3.8", "eslint": "^8.56.0", "typescript": "^5.3.3" }, "dependencies": { "axios": "^1.6.5" } }