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

Commit db174c0

Browse files
committed
minor fixes
1 parent 229f32a commit db174c0

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

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.1.0",
5+
"version": "4.1.1",
66
"publisher": "mkloubert",
77
"engines": {
88
"vscode": "^1.6.0"

src/quick.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -212,13 +212,13 @@ function _generateHelpHTML(): string {
212212
markdown += "| `$info(msg: string): vscode.Thenable<any>` | Shows an info popup. |\n";
213213
markdown += "| `$lstat(path: string): fs.Stats` | Gets information about a path. |\n";
214214
markdown += "| `$mkdir(dir: string): void` | Creates a directory (with all its sub directories). |\n";
215-
markdown += "| `$noResultInfo(flag?: boolean = true, permanent?: boolean = false): boolean` | Gets or sets if result should be displayed or not. |\n";
215+
markdown += "| `$noResultInfo(flag?: boolean, permanent?: boolean = false): boolean` | Gets or sets if result should be displayed or not. |\n";
216216
markdown += "| `$now(): Moment.Moment` | Returns the current [time](https://momentjs.com/docs/). |\n";
217217
markdown += "| `$openHtml(html: string, tabTitle?: string): vscode.Thenable<any>` | Opens a HTML document in a new tab. |\n";
218218
markdown += "| `$readFile(path: string): Buffer` | Reads the data of a file. |\n";
219219
markdown += "| `$require(id: string): any` | Loads a module from execution / extension context. |\n";
220220
markdown += "| `$setState(newValue: any): any` | Sets the value of `$state` variable and returns the new value. |\n";
221-
markdown += "| `$showResultInTab(flag?: boolean = true, permanent?: boolean = false): boolean` | Gets or sets if result should be shown in a tab window or a popup. |\n";
221+
markdown += "| `$showResultInTab(flag?: boolean, permanent?: boolean = false): boolean` | Gets or sets if result should be shown in a tab window or a popup. |\n";
222222
markdown += "| `$unlink(path: string): boolean` | Removes a file or folder. |\n";
223223
markdown += "| `$warn(msg: string): vscode.Thenable<any>` | Shows a warning popup. |\n";
224224
markdown += "| `$writeFile(path: string, data: any): void` | Writes data to a file. |\n";
@@ -482,7 +482,7 @@ export function quickExecution() {
482482
FSExtra.mkdirsSync(dir);
483483
};
484484
let $maxDepth = 64;
485-
const $noResultInfo = function(flag = true, permanent = false): boolean {
485+
const $noResultInfo = function(flag?: boolean, permanent = false): boolean {
486486
if (arguments.length > 0) {
487487
_noResultInfo = sc_helpers.toBooleanSafe(flag);
488488

@@ -513,7 +513,7 @@ export function quickExecution() {
513513
const $setState = function(val: any): any {
514514
return $state = val;
515515
};
516-
const $showResultInTab = function(flag = true, permanent = false): boolean {
516+
const $showResultInTab = function(flag?: boolean, permanent = false): boolean {
517517
if (arguments.length > 0) {
518518
_showResultInTab = sc_helpers.toBooleanSafe(flag);
519519

0 commit comments

Comments
 (0)