Skip to content
This repository was archived by the owner on Jan 10, 2019. It is now read-only.

Commit b1ffc16

Browse files
committed
added $output variable for 'quick execution'
1 parent b0e7e8e commit b1ffc16

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

CHANGELOG.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
# Change Log (vs-script-commands)
22

3-
# 4.2.0 (April 29th, 2017; quick JavaScript execution)
3+
# 4.3.0 (May 1st, 2017; quick JavaScript execution - $output)
4+
5+
* added `$output` variable for [Quick execution](https://github.com/mkloubert/vs-script-commands#quick-execution-) command
6+
7+
# 4.2.0 (April 29th, 2017; quick JavaScript execution - $global)
48

59
* added `$globals` variable for [Quick execution](https://github.com/mkloubert/vs-script-commands#quick-execution-) command
610

7-
# 4.1.0 (April 29th, 2017; quick JavaScript execution)
11+
# 4.1.0 (April 29th, 2017; quick JavaScript execution - $mkdir)
812

913
* added `$mkdir` function for [Quick execution](https://github.com/mkloubert/vs-script-commands#quick-execution-) command
1014

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "vs-script-commands",
33
"displayName": "Script Commands",
44
"description": "Adds additional commands to Visual Studio Code that uses scripts (JavaScript) for execution.",
5-
"version": "4.2.0",
5+
"version": "4.3.0",
66
"publisher": "mkloubert",
77
"engines": {
88
"vscode": "^1.6.0"

src/quick.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,7 @@ function _generateHelpHTML(): string {
231231
markdown += "| ---- | --------- |\n";
232232
markdown += "| `$extension: vscode.ExtensionContext` | Stores the [context](https://code.visualstudio.com/docs/extensionAPI/vscode-api#_a-nameextensioncontextaspan-classcodeitem-id1016extensioncontextspan) of that extension. |\n";
233233
markdown += "| `$globals: any` | Stores the global data from the settings. |\n";
234+
markdown += "| `$output: vscode.OutputChannel` | Stores the [output channel](https://code.visualstudio.com/docs/extensionAPI/vscode-api#OutputChannel) of that extension. |\n";
234235
markdown += "| `$state: any` | Stores a value that should be available for next executions. |\n";
235236
markdown += "| `$workspace: string` | Stores the path of the current workspace. |\n";
236237
markdown += "\n";
@@ -501,6 +502,7 @@ export function quickExecution() {
501502
const $openHtml = function(html: string, title?: string) {
502503
return $me.openHtml(html, title);
503504
};
505+
const $output = $me.outputChannel;
504506
const $readFile = function(file: string) {
505507
file = sc_helpers.toStringSafe(file);
506508
if (!Path.isAbsolute(file)) {

0 commit comments

Comments
 (0)