Skip to content

Commit

Permalink
Try without open
Browse files Browse the repository at this point in the history
  • Loading branch information
PEZ committed Nov 2, 2024
1 parent 54f8a41 commit fb1cc1f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 208 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
- name: Build VSIX
run: |
set -x
npx vsce package --allow-star-activation --githubBranch master
npx run package --githubBranch master
- name: Make VSIX available
run: |
Expand Down
200 changes: 1 addition & 199 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,7 @@
"vscode:prepublish": "npm run clean && npm run release"
},
"dependencies": {
"@vscode/codicons": "^0.0.36",
"open": "^10.1.0"
"@vscode/codicons": "^0.0.36"
},
"devDependencies": {
"rimraf": "^6.0.1",
Expand Down
11 changes: 5 additions & 6 deletions src/paste_replaced/replacer.cljs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
(ns paste-replaced.replacer
(:require ["vscode" :as vscode]
["open" :as open]
[paste-replaced.db :as db]
[paste-replaced.quick-pick :as qp]
[paste-replaced.utils :as utils :refer [cljify jsify]]
Expand Down Expand Up @@ -80,10 +79,10 @@

(defn- compile-regex
[r]
(if (and
(if (and
(vector? r)
(<= 2 (count r))
(every? string? r))
(every? string? r))
[(js/RegExp. (r 0) (get r 2 "")) (r 1)]
(throw (js/Error. "Replacers regex should be a tuple of strings: [`search`, `replace`, `flags?`]"))))

Expand Down Expand Up @@ -170,7 +169,7 @@
(.then
(fn [button]
(when button
(open "https://github.com/PEZ/paste-replaced#paste-replaced"))))))
(println "https://github.com/PEZ/paste-replaced#paste-replaced"))))))

(defn- named-from-picker!+ [all-replacers]
(p/let [named-replacers (filter #(and (map? %)
Expand Down Expand Up @@ -303,8 +302,8 @@
(p/catch (fn [e]
(throw (js/Error "Error reading texts file" e)))))
(show-readme-message+ (str "Canned texts file not found: " texts-file)))
choice (when texts
(show-texts-picker!+ texts))]
choice (when texts
(show-texts-picker!+ texts))]
(when choice
(paste-replaced-text-impl!+ (:text choice) provided-replacer)))))

Expand Down

0 comments on commit fb1cc1f

Please sign in to comment.