mirror of
https://github.com/omltcat/dcs-lua-runner.git
synced 2025-11-10 15:49:49 +00:00
Release 1.1.2
This commit is contained in:
parent
1f56eadcdf
commit
1352034afd
@ -55,4 +55,9 @@ Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how
|
|||||||
(Experimental feature, please report any issue.)
|
(Experimental feature, please report any issue.)
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
- Change default return display to file to take advantage of syntax highlight.
|
- Change default return display to file to take advantage of syntax highlight.
|
||||||
|
|
||||||
|
## [1.1.2] - 2024-02-03
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
- Fix output panel still opening when return display is set to file.
|
||||||
30
README.md
30
README.md
@ -10,13 +10,11 @@ Allows for quick development and debugging of running scripted missions directly
|
|||||||

|

|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
- Send whole Lua file or just selected portion of code.
|
||||||
- Send Lua code to run on local DCS or remote DCS server.
|
- Execute on local DCS instance or remote DCS server (more details below).
|
||||||
- Run in mission or GUI scripting environment.
|
- Execute in mission or GUI scripting environment.
|
||||||
- Right click and run only selected part of code.
|
- Display return value in output panel or as a file (for syntax highlight)
|
||||||
- Display return value from DCS.
|
- in either JSON or Lua table format.
|
||||||
- Fully compatible with existing DCS Fiddle hooks script.
|
|
||||||
- Optional basic web auth for better public server security (see requirements).
|
|
||||||
|
|
||||||
## Requirements
|
## Requirements
|
||||||
|
|
||||||
@ -37,30 +35,30 @@ For even better security, put the Fiddle port behind a reverse proxy with HTTPS.
|
|||||||
|
|
||||||
This extension has the following settings:
|
This extension has the following settings:
|
||||||
|
|
||||||
- `dcsLuaRunner.serverAddress`: Remote DCS server address. It can be an IP address or a domain.
|
- `serverAddress`: Remote DCS server address. It can be an IP address or a domain.
|
||||||
|
|
||||||
- `dcsLuaRunner.serverPort`: Port of the remote DCS Fiddle. Default is `12080`.
|
- `serverPort`: Port of the remote DCS Fiddle. Default is `12080`.
|
||||||
|
|
||||||
- `dcsLuaRunner.useHttps`: Specifies whether the server is behind a HTTPS reverse proxy.
|
- `useHttps`: Specifies whether the server is behind a HTTPS reverse proxy.
|
||||||
If this is set to `true`, you should also change the `dcsLuaRunner.serverPort` to `443`.
|
If this is set to `true`, you should also change the `dcsLuaRunner.serverPort` to `443`.
|
||||||
Default is `false`.
|
Default is `false`.
|
||||||
|
|
||||||
- `dcsLuaRunner.webAuthUsername`: Specifies the username for authentication.
|
- `webAuthUsername`: Specifies the username for authentication.
|
||||||
**Requires the modified DCS Fiddle script.**
|
**Requires the modified DCS Fiddle script.**
|
||||||
|
|
||||||
- `dcsLuaRunner.webAuthPassword`: Specifies the password for authentication.
|
- `webAuthPassword`: Specifies the password for authentication.
|
||||||
**Requires the modified DCS Fiddle script.**
|
**Requires the modified DCS Fiddle script.**
|
||||||
|
|
||||||
- `dcsLuaRunner.runCodeLocally`: Whether to send code to `127.0.0.1:12080` or to the remote server set in `dcsLuaRunner.serverAddress` and `dcsLuaRunner.serverPort`.
|
- `runCodeLocally`: Whether to send code to `127.0.0.1:12080` or to the remote server set in `dcsLuaRunner.serverAddress` and `dcsLuaRunner.serverPort`.
|
||||||
This setting can be quickly changed with the buttons on the upper-right of a lua file.
|
This setting can be quickly changed with the buttons on the upper-right of a lua file.
|
||||||
|
|
||||||
- `dcsLuaRunner.runInMissionEnv`: Specifies whether to execute in mission or GUI Scripting Environment.
|
- `runInMissionEnv`: Specifies whether to execute in mission or GUI Scripting Environment.
|
||||||
This setting can be quickly changed with the buttons on the upper-right of a lua file.
|
This setting can be quickly changed with the buttons on the upper-right of a lua file.
|
||||||
|
|
||||||
**NEW:**
|
**NEW:**
|
||||||
- `dcsLuaRunner.returnDisplay`: Wether to use output panel or file (which supports syntax highlight) to display return value.
|
- `returnDisplay`: Wether to use output panel or file (which supports syntax highlight) to display return value.
|
||||||
|
|
||||||
- `dcsLuaRunner.returnDisplayFormat`: Display return value as JSON or Lua table. (Experimental feature, please report any issue.)
|
- `returnDisplayFormat`: Display return value as JSON or Lua table. (Experimental feature, please report any issue.)
|
||||||
|
|
||||||
## Release Notes
|
## Release Notes
|
||||||
|
|
||||||
|
|||||||
@ -4,7 +4,7 @@
|
|||||||
"description": "Quickly run lua code in DCS World (local or remote server). A reimplementation of the DCS Fiddle lua console in VS Code.",
|
"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",
|
"license": "MIT",
|
||||||
"publisher": "omltcat",
|
"publisher": "omltcat",
|
||||||
"version": "1.1.1",
|
"version": "1.1.2",
|
||||||
"icon": "docs/img/icon.png",
|
"icon": "docs/img/icon.png",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|||||||
@ -76,7 +76,6 @@ async function runLua(lua: string, outputChannel: vscode.OutputChannel, filename
|
|||||||
timeout: 3000
|
timeout: 3000
|
||||||
});
|
});
|
||||||
|
|
||||||
outputChannel.show(true);
|
|
||||||
if (response.data.hasOwnProperty('result')) {
|
if (response.data.hasOwnProperty('result')) {
|
||||||
displayOutput(response.data.result);
|
displayOutput(response.data.result);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user