You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 10, 2019. It is now read-only.
markdown+="| `$help(): vscode.Thenable<any>` | Shows this help document. |\n";
218
221
markdown+="| `$htmlEncode(str: string): string` | Encodes the HTML entities in a string. |\n";
219
222
markdown+="| `$info(msg: string): vscode.Thenable<any>` | Shows an info popup. |\n";
220
223
markdown+="| `$log(msg: any): void` | Logs a message. |\n";
221
224
markdown+="| `$lstat(path: string): fs.Stats` | Gets information about a path. |\n";
225
+
markdown+="| `$md5(data: any, asBuffer: boolean = false): string` | Hashes data by MD5. |\n";
222
226
markdown+="| `$mkdir(dir: string): void` | Creates a directory (with all its sub directories). |\n";
223
227
markdown+="| `$noResultInfo(flag?: boolean, permanent?: boolean = false): boolean` | Gets or sets if result should be displayed or not. |\n";
224
228
markdown+="| `$now(): Moment.Moment` | Returns the current [time](https://momentjs.com/docs/). |\n";
225
229
markdown+="| `$openHtml(html: string, tabTitle?: string): vscode.Thenable<any>` | Opens a HTML document in a new tab. |\n";
226
230
markdown+="| `$readFile(path: string): Buffer` | Reads the data of a file. |\n";
227
231
markdown+="| `$require(id: string): any` | Loads a module from execution / extension context. |\n";
228
232
markdown+="| `$setState(newValue: any): any` | Sets the value of `$state` variable and returns the new value. |\n";
233
+
markdown+="| `$sha1(data: any, asBuffer: boolean = false): string` | Hashes data by SHA-1. |\n";
234
+
markdown+="| `$sha256(data: any, asBuffer: boolean = false): string` | Hashes data by SHA-256. |\n";
229
235
markdown+="| `$showResultInTab(flag?: boolean, permanent?: boolean = false): boolean` | Gets or sets if result should be shown in a tab window or a popup. |\n";
230
236
markdown+="| `$toHexView(val: any): string` | Converts a value, like a buffer or string, to 'hex view'. |\n";
231
237
markdown+="| `$unlink(path: string): boolean` | Removes a file or folder. |\n";
238
+
markdown+="| `$uuid(v4: boolean = true): string` | Generates a new unique ID. |\n";
232
239
markdown+="| `$warn(msg: string): vscode.Thenable<any>` | Shows a warning popup. |\n";
233
240
markdown+="| `$writeFile(path: string, data: any): void` | Writes data to a file. |\n";
234
241
markdown+="\n";
@@ -521,6 +528,12 @@ export function quickExecution() {
0 commit comments