-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix bug in runner fail test * Add info about JavaScript scripts in README + some tests * Update README.md
- Loading branch information
Showing
5 changed files
with
169 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
vscode-test-runner/workspace-1/.joyride/scripts/example/write-a-file.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
const fs = require("fs"); | ||
const path = require("path"); | ||
const vscode = require("vscode"); | ||
|
||
function info(...xs) { | ||
vscode.window.showInformationMessage(xs.join(" ")); | ||
} | ||
|
||
const rootPath = vscode.workspace.workspaceFolders[0].uri.fsPath; | ||
info("The root path of this workspace:", rootPath); | ||
fs.writeFileSync( | ||
path.resolve(rootPath, "test-from-js-script.txt"), | ||
"Written from a Workspace JavaScript Script!" | ||
); |
13 changes: 13 additions & 0 deletions
13
vscode-test-runner/workspace-1/.joyride/scripts/example/write_a_file.cljs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
(ns example.write-a-file | ||
(:require ["fs" :as fs] | ||
["path" :as path] | ||
["vscode" :as vscode] | ||
[clojure.string :as str])) | ||
|
||
(defn info [& xs] | ||
(vscode/window.showInformationMessage (str/join " " xs))) | ||
|
||
(def root-path (-> (first vscode/workspace.workspaceFolders) .-uri .-fsPath)) | ||
(info "The root path of this workspace:" root-path) | ||
(fs/writeFileSync (path/resolve root-path "test-from-cljs-script.txt") | ||
"Written from a Workspace ClojureScript Script!") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters