diff --git a/CHANGELOG.md b/CHANGELOG.md index 3cee0b2..301ff08 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -55,4 +55,9 @@ Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how (Experimental feature, please report any issue.) ### Changed -- Change default return display to file to take advantage of syntax highlight. \ No newline at end of file +- 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. \ No newline at end of file diff --git a/README.md b/README.md index 6123943..4947ca2 100644 --- a/README.md +++ b/README.md @@ -10,13 +10,11 @@ Allows for quick development and debugging of running scripted missions directly ![Demo2-2](docs/img/demo2-2.png) ## Features - -- Send Lua code to run on local DCS or remote DCS server. -- Run in mission or GUI scripting environment. -- Right click and run only selected part of code. -- Display return value from DCS. -- Fully compatible with existing DCS Fiddle hooks script. -- Optional basic web auth for better public server security (see requirements). +- Send whole Lua file or just selected portion of code. +- Execute on local DCS instance or remote DCS server (more details below). +- Execute in mission or GUI scripting environment. +- Display return value in output panel or as a file (for syntax highlight) + - in either JSON or Lua table format. ## 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: -- `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`. Default is `false`. -- `dcsLuaRunner.webAuthUsername`: Specifies the username for authentication. +- `webAuthUsername`: Specifies the username for authentication. **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.** -- `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. -- `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. **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 diff --git a/package.json b/package.json index 9d19098..e70d20b 100644 --- a/package.json +++ b/package.json @@ -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.", "license": "MIT", "publisher": "omltcat", - "version": "1.1.1", + "version": "1.1.2", "icon": "docs/img/icon.png", "repository": { "type": "git", diff --git a/src/extension.ts b/src/extension.ts index e09afea..abd0504 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -76,7 +76,6 @@ async function runLua(lua: string, outputChannel: vscode.OutputChannel, filename timeout: 3000 }); - outputChannel.show(true); if (response.data.hasOwnProperty('result')) { displayOutput(response.data.result); } else {