jj-plus 0.10.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (404) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/README.md +102 -0
  3. package/assets/jj-plus-icon.png +0 -0
  4. package/dist/_virtual/_rolldown/runtime.cjs +23 -0
  5. package/dist/bin.cjs +112 -0
  6. package/dist/bin.cjs.map +1 -0
  7. package/dist/cli/options.cjs +376 -0
  8. package/dist/cli/options.cjs.map +1 -0
  9. package/dist/cli/timeline-json.cjs +29 -0
  10. package/dist/cli/timeline-json.cjs.map +1 -0
  11. package/dist/extension/blame-codelens.cjs +228 -0
  12. package/dist/extension/blame-codelens.cjs.map +1 -0
  13. package/dist/extension/command-runner.cjs +99 -0
  14. package/dist/extension/command-runner.cjs.map +1 -0
  15. package/dist/extension/constants.cjs +56 -0
  16. package/dist/extension/constants.cjs.map +1 -0
  17. package/dist/extension/editor-extra-features.cjs +464 -0
  18. package/dist/extension/editor-extra-features.cjs.map +1 -0
  19. package/dist/extension/history-adapters.cjs +702 -0
  20. package/dist/extension/history-adapters.cjs.map +1 -0
  21. package/dist/extension/index.cjs +657 -0
  22. package/dist/extension/index.cjs.map +1 -0
  23. package/dist/extension/repo-timeline-panel.cjs +402 -0
  24. package/dist/extension/repo-timeline-panel.cjs.map +1 -0
  25. package/dist/extension/resolve-file-path.cjs +16 -0
  26. package/dist/extension/resolve-file-path.cjs.map +1 -0
  27. package/dist/extension/revision-diff-nav.cjs +169 -0
  28. package/dist/extension/revision-diff-nav.cjs.map +1 -0
  29. package/dist/extension/settings.cjs +41 -0
  30. package/dist/extension/settings.cjs.map +1 -0
  31. package/dist/extension/timeline-at-line.cjs +72 -0
  32. package/dist/extension/timeline-at-line.cjs.map +1 -0
  33. package/dist/extension/timeline-panel.cjs +1113 -0
  34. package/dist/extension/timeline-panel.cjs.map +1 -0
  35. package/dist/extension/timeline-service.cjs +1154 -0
  36. package/dist/extension/timeline-service.cjs.map +1 -0
  37. package/dist/extension/uri-utils.cjs +75 -0
  38. package/dist/extension/uri-utils.cjs.map +1 -0
  39. package/dist/package.cjs +11 -0
  40. package/dist/package.cjs.map +1 -0
  41. package/dist/shared/blame.cjs +211 -0
  42. package/dist/shared/blame.cjs.map +1 -0
  43. package/dist/shared/diff-content-search.cjs +23 -0
  44. package/dist/shared/diff-content-search.cjs.map +1 -0
  45. package/dist/shared/diff-helpers.cjs +12 -0
  46. package/dist/shared/diff-helpers.cjs.map +1 -0
  47. package/dist/shared/diff-stats.cjs +129 -0
  48. package/dist/shared/diff-stats.cjs.map +1 -0
  49. package/dist/shared/file-oplog.cjs +82 -0
  50. package/dist/shared/file-oplog.cjs.map +1 -0
  51. package/dist/shared/history-helpers.cjs +257 -0
  52. package/dist/shared/history-helpers.cjs.map +1 -0
  53. package/dist/shared/history-search.cjs +85 -0
  54. package/dist/shared/history-search.cjs.map +1 -0
  55. package/dist/shared/jj-revset-suggestions.cjs +41 -0
  56. package/dist/shared/jj-revset-suggestions.cjs.map +1 -0
  57. package/dist/shared/line-history.cjs +181 -0
  58. package/dist/shared/line-history.cjs.map +1 -0
  59. package/dist/shared/list-file-revisions.cjs +36 -0
  60. package/dist/shared/list-file-revisions.cjs.map +1 -0
  61. package/dist/shared/non-textual-details.cjs +43 -0
  62. package/dist/shared/non-textual-details.cjs.map +1 -0
  63. package/dist/shared/resolve-file-path.cjs +14 -0
  64. package/dist/shared/resolve-file-path.cjs.map +1 -0
  65. package/dist/shared/revision-diff-availability.cjs +18 -0
  66. package/dist/shared/revision-diff-availability.cjs.map +1 -0
  67. package/dist/shared/revision-diff-pair.cjs +42 -0
  68. package/dist/shared/revision-diff-pair.cjs.map +1 -0
  69. package/dist/shared/revset.cjs +16 -0
  70. package/dist/shared/revset.cjs.map +1 -0
  71. package/dist/shared/timeline-model.cjs +29 -0
  72. package/dist/shared/timeline-model.cjs.map +1 -0
  73. package/dist/standalone/server.cjs +1733 -0
  74. package/dist/standalone/server.cjs.map +1 -0
  75. package/dist/webview/timeline-template.cjs +214 -0
  76. package/dist/webview/timeline-template.cjs.map +1 -0
  77. package/package.json +320 -0
  78. package/webview-dist/assets/worker-DuV13XDT.js +161 -0
  79. package/webview-dist/chunks/abap-CLvhMVsD.js +1 -0
  80. package/webview-dist/chunks/actionscript-3-Cs6JJXT5.js +1 -0
  81. package/webview-dist/chunks/ada-C5qYipkI.js +1 -0
  82. package/webview-dist/chunks/ahk-CA9gdOdF.js +1 -0
  83. package/webview-dist/chunks/ahk2-_6rzW9BS.js +1 -0
  84. package/webview-dist/chunks/andromeeda-vGVdxbeo.js +1 -0
  85. package/webview-dist/chunks/angular-html-DTpR04n4.js +1 -0
  86. package/webview-dist/chunks/angular-ts-BCtbMvbl.js +1 -0
  87. package/webview-dist/chunks/apache-U0d_L8uA.js +1 -0
  88. package/webview-dist/chunks/apex-KFGFyKwG.js +1 -0
  89. package/webview-dist/chunks/apl-BMZuN1Ql.js +1 -0
  90. package/webview-dist/chunks/applescript-CCn79oCD.js +1 -0
  91. package/webview-dist/chunks/ara-4CJ0cIlV.js +1 -0
  92. package/webview-dist/chunks/asciidoc-SCjQUq34.js +1 -0
  93. package/webview-dist/chunks/asm-Cmm7eHzH.js +1 -0
  94. package/webview-dist/chunks/astro-DrbV4Z7r.js +1 -0
  95. package/webview-dist/chunks/aurora-x-CDeNXAV0.js +1 -0
  96. package/webview-dist/chunks/awk-BWXHIvNe.js +1 -0
  97. package/webview-dist/chunks/ayu-dark-DluEY0Gj.js +1 -0
  98. package/webview-dist/chunks/ayu-light-C3h-C4tm.js +1 -0
  99. package/webview-dist/chunks/ayu-mirage-Bqwy1Gya.js +1 -0
  100. package/webview-dist/chunks/ballerina-B7ZEbQpA.js +1 -0
  101. package/webview-dist/chunks/bat-qdxAdBWQ.js +1 -0
  102. package/webview-dist/chunks/beancount-D-usSTwE.js +1 -0
  103. package/webview-dist/chunks/berry-DKpUyyne.js +1 -0
  104. package/webview-dist/chunks/bibtex-Ci_nEsc7.js +1 -0
  105. package/webview-dist/chunks/bicep-CUHmPFLl.js +1 -0
  106. package/webview-dist/chunks/bird2-CYIUgYqB.js +1 -0
  107. package/webview-dist/chunks/blade-oPV8S6rR.js +1 -0
  108. package/webview-dist/chunks/bsl-_VjlB9mv.js +1 -0
  109. package/webview-dist/chunks/c-DYf-3tob.js +1 -0
  110. package/webview-dist/chunks/c3-D0apG41V.js +1 -0
  111. package/webview-dist/chunks/cadence-CQ2zXKGN.js +1 -0
  112. package/webview-dist/chunks/cairo-DLTphjLi.js +1 -0
  113. package/webview-dist/chunks/catppuccin-frappe-C9Q5zVZY.js +1 -0
  114. package/webview-dist/chunks/catppuccin-latte-CtsyrtPq.js +1 -0
  115. package/webview-dist/chunks/catppuccin-macchiato-R8nAf1vR.js +1 -0
  116. package/webview-dist/chunks/catppuccin-mocha-DjuaAJKi.js +1 -0
  117. package/webview-dist/chunks/chapel-DY-WYB1D.js +1 -0
  118. package/webview-dist/chunks/clarity-CtfBBspg.js +1 -0
  119. package/webview-dist/chunks/clojure-DqKBuwfJ.js +1 -0
  120. package/webview-dist/chunks/cmake-Bj61d0ZC.js +1 -0
  121. package/webview-dist/chunks/cobol-DvdX_6CO.js +1 -0
  122. package/webview-dist/chunks/codeowners-C8r90Shi.js +1 -0
  123. package/webview-dist/chunks/codeql-oeQT6MSM.js +1 -0
  124. package/webview-dist/chunks/coffee-C1kO7jr_.js +1 -0
  125. package/webview-dist/chunks/common-lisp-Cv5bFMCO.js +1 -0
  126. package/webview-dist/chunks/coq-DuBRPxYg.js +1 -0
  127. package/webview-dist/chunks/cpp-CoSarUrI.js +1 -0
  128. package/webview-dist/chunks/crystal-SLJeZ5EP.js +1 -0
  129. package/webview-dist/chunks/csharp-oqKa8noW.js +1 -0
  130. package/webview-dist/chunks/css-cfScyrSP.js +1 -0
  131. package/webview-dist/chunks/csv-Dx-8-gkx.js +1 -0
  132. package/webview-dist/chunks/cue-CE9AQfxI.js +1 -0
  133. package/webview-dist/chunks/cypher-ClKdZ_lG.js +1 -0
  134. package/webview-dist/chunks/d-qD-0Kul2.js +1 -0
  135. package/webview-dist/chunks/dark-plus-Cs2F2srj.js +1 -0
  136. package/webview-dist/chunks/dart-CnvKMtbv.js +1 -0
  137. package/webview-dist/chunks/dax-BkyTk9wS.js +1 -0
  138. package/webview-dist/chunks/desktop-Dlh5hvp9.js +1 -0
  139. package/webview-dist/chunks/diff-woXpYk--.js +1 -0
  140. package/webview-dist/chunks/docker-IyjqRm3v.js +1 -0
  141. package/webview-dist/chunks/dotenv-_5a1GRtc.js +1 -0
  142. package/webview-dist/chunks/dracula-BHWKrbxM.js +1 -0
  143. package/webview-dist/chunks/dracula-soft-5eyTD99u.js +1 -0
  144. package/webview-dist/chunks/dream-maker-DW3nJb8Q.js +1 -0
  145. package/webview-dist/chunks/edge-lvBr3t3s.js +1 -0
  146. package/webview-dist/chunks/elixir-BLoPe0KG.js +1 -0
  147. package/webview-dist/chunks/elm-BveBINBn.js +1 -0
  148. package/webview-dist/chunks/emacs-lisp-c_oH4hRZ.js +1 -0
  149. package/webview-dist/chunks/erb-Bmf8z4ph.js +1 -0
  150. package/webview-dist/chunks/erlang-Cphh6RMH.js +1 -0
  151. package/webview-dist/chunks/everforest-dark-sB-x3p7T.js +1 -0
  152. package/webview-dist/chunks/everforest-light-Df2xbC6M.js +1 -0
  153. package/webview-dist/chunks/fennel-DQxkIbk2.js +1 -0
  154. package/webview-dist/chunks/fish-BJitypiv.js +1 -0
  155. package/webview-dist/chunks/fluent-C03EYrpw.js +1 -0
  156. package/webview-dist/chunks/fortran-fixed-form-DEKoE2YW.js +1 -0
  157. package/webview-dist/chunks/fortran-free-form-CYNrtFtB.js +1 -0
  158. package/webview-dist/chunks/fsharp-D13ZGOAj.js +1 -0
  159. package/webview-dist/chunks/gdresource-xMC7jr7x.js +1 -0
  160. package/webview-dist/chunks/gdscript-DYvRD3hg.js +1 -0
  161. package/webview-dist/chunks/gdshader-CBce3t8t.js +1 -0
  162. package/webview-dist/chunks/genie-CV2tkWYe.js +1 -0
  163. package/webview-dist/chunks/gherkin-DExj1W_8.js +1 -0
  164. package/webview-dist/chunks/git-commit-BSykSTBG.js +1 -0
  165. package/webview-dist/chunks/git-rebase-BBii7GBM.js +1 -0
  166. package/webview-dist/chunks/github-dark-C-LZuMrd.js +1 -0
  167. package/webview-dist/chunks/github-dark-default-DXG-b-1a.js +1 -0
  168. package/webview-dist/chunks/github-dark-dimmed-Bx1FflLF.js +1 -0
  169. package/webview-dist/chunks/github-dark-high-contrast-B_tTalzw.js +1 -0
  170. package/webview-dist/chunks/github-light-EUqPIrTm.js +1 -0
  171. package/webview-dist/chunks/github-light-default-BXViO-2h.js +1 -0
  172. package/webview-dist/chunks/github-light-high-contrast-B68TUdTA.js +1 -0
  173. package/webview-dist/chunks/gleam-CSRkHgEL.js +1 -0
  174. package/webview-dist/chunks/glimmer-js-CuCPna-X.js +1 -0
  175. package/webview-dist/chunks/glimmer-ts-DNAjZNDK.js +1 -0
  176. package/webview-dist/chunks/glsl-COQvRxdz.js +1 -0
  177. package/webview-dist/chunks/gn-ilITqXS6.js +1 -0
  178. package/webview-dist/chunks/gnuplot-7GGW24-e.js +1 -0
  179. package/webview-dist/chunks/go-rLFTqkRN.js +1 -0
  180. package/webview-dist/chunks/graphql-1cKCVreZ.js +1 -0
  181. package/webview-dist/chunks/groovy-CacY0gHj.js +1 -0
  182. package/webview-dist/chunks/gruvbox-dark-hard-C820rvS2.js +1 -0
  183. package/webview-dist/chunks/gruvbox-dark-medium-BPjhmG05.js +1 -0
  184. package/webview-dist/chunks/gruvbox-dark-soft-MrdJrrXF.js +1 -0
  185. package/webview-dist/chunks/gruvbox-light-hard-BC_s9l72.js +1 -0
  186. package/webview-dist/chunks/gruvbox-light-medium-BAWPOn9u.js +1 -0
  187. package/webview-dist/chunks/gruvbox-light-soft-BSMLrYjP.js +1 -0
  188. package/webview-dist/chunks/hack-7CXYxWGO.js +1 -0
  189. package/webview-dist/chunks/haml-CeE16iG9.js +1 -0
  190. package/webview-dist/chunks/handlebars-CLm7Miue.js +1 -0
  191. package/webview-dist/chunks/haskell-D8IpX4py.js +1 -0
  192. package/webview-dist/chunks/haxe-C8oCnwJJ.js +1 -0
  193. package/webview-dist/chunks/hcl-Dh228itO.js +1 -0
  194. package/webview-dist/chunks/hjson-CxZEssPk.js +1 -0
  195. package/webview-dist/chunks/hlsl-Cvrh5tZx.js +1 -0
  196. package/webview-dist/chunks/horizon-CE9ld1lL.js +1 -0
  197. package/webview-dist/chunks/horizon-bright-DSNQnXHK.js +1 -0
  198. package/webview-dist/chunks/houston-CsvMBhTu.js +1 -0
  199. package/webview-dist/chunks/html-EbCri-_j.js +1 -0
  200. package/webview-dist/chunks/html-derivative-DGcE2kQi.js +1 -0
  201. package/webview-dist/chunks/http-DpnqgCg2.js +1 -0
  202. package/webview-dist/chunks/hurl-B6NGpamo.js +1 -0
  203. package/webview-dist/chunks/hxml-Dcm88srW.js +1 -0
  204. package/webview-dist/chunks/hy-CZbG8q4J.js +1 -0
  205. package/webview-dist/chunks/imba-DsUTQ-LC.js +1 -0
  206. package/webview-dist/chunks/ini-B5eOa1yu.js +1 -0
  207. package/webview-dist/chunks/java-ZkUoUSJy.js +1 -0
  208. package/webview-dist/chunks/javascript-DLd0EIw7.js +1 -0
  209. package/webview-dist/chunks/jinja-WhIqNp3q.js +1 -0
  210. package/webview-dist/chunks/jison-CIn1t7S8.js +1 -0
  211. package/webview-dist/chunks/json-AHG_JuKN.js +1 -0
  212. package/webview-dist/chunks/json5-BR5RXkoi.js +1 -0
  213. package/webview-dist/chunks/jsonc-CYpm1nAK.js +1 -0
  214. package/webview-dist/chunks/jsonl-CmCQp5Yx.js +1 -0
  215. package/webview-dist/chunks/jsonnet-CJTPZ8u_.js +1 -0
  216. package/webview-dist/chunks/jssm-DXw9l8Rf.js +1 -0
  217. package/webview-dist/chunks/jsx-BLy2KGb2.js +1 -0
  218. package/webview-dist/chunks/julia-XrhdGMY0.js +1 -0
  219. package/webview-dist/chunks/just-CiO9rOBq.js +1 -0
  220. package/webview-dist/chunks/kanagawa-dragon-Bozd7klA.js +1 -0
  221. package/webview-dist/chunks/kanagawa-lotus-BmuOG9ZW.js +1 -0
  222. package/webview-dist/chunks/kanagawa-wave-BML5mF2J.js +1 -0
  223. package/webview-dist/chunks/kdl-CsD5j6eV.js +1 -0
  224. package/webview-dist/chunks/kotlin-DhhofPvG.js +1 -0
  225. package/webview-dist/chunks/kusto-C7mF5XQf.js +1 -0
  226. package/webview-dist/chunks/laserwave-C_8bwKvT.js +1 -0
  227. package/webview-dist/chunks/latex-4tqdYtbu.js +1 -0
  228. package/webview-dist/chunks/lean-CewbzKMR.js +1 -0
  229. package/webview-dist/chunks/less-DVTAwKKz.js +1 -0
  230. package/webview-dist/chunks/light-plus-DVQuIRkW.js +1 -0
  231. package/webview-dist/chunks/liquid-BiiWRCLG.js +1 -0
  232. package/webview-dist/chunks/llvm-DqHOMS-s.js +1 -0
  233. package/webview-dist/chunks/log-BNLmms1o.js +1 -0
  234. package/webview-dist/chunks/logo-Cluzi2Zq.js +1 -0
  235. package/webview-dist/chunks/lua-BPFdS2Mc.js +1 -0
  236. package/webview-dist/chunks/luau-C2pBCSgt.js +1 -0
  237. package/webview-dist/chunks/make-Dixweg8N.js +1 -0
  238. package/webview-dist/chunks/markdown-BYOwaDjH.js +1 -0
  239. package/webview-dist/chunks/marko-BLi1Yy1V.js +1 -0
  240. package/webview-dist/chunks/material-theme-Bm3Qr25_.js +1 -0
  241. package/webview-dist/chunks/material-theme-darker-2IIEA8gg.js +1 -0
  242. package/webview-dist/chunks/material-theme-lighter-uhdI0v04.js +1 -0
  243. package/webview-dist/chunks/material-theme-ocean-CHQ94UKr.js +1 -0
  244. package/webview-dist/chunks/material-theme-palenight-B5W6OYN7.js +1 -0
  245. package/webview-dist/chunks/matlab-D7qyCx1q.js +1 -0
  246. package/webview-dist/chunks/mdc-Dx-qyM1x.js +1 -0
  247. package/webview-dist/chunks/mdx-DQZ5AkYe.js +1 -0
  248. package/webview-dist/chunks/mermaid-BxpfTIzt.js +1 -0
  249. package/webview-dist/chunks/min-dark-BSWPekZh.js +1 -0
  250. package/webview-dist/chunks/min-light-DDpmG2fV.js +1 -0
  251. package/webview-dist/chunks/mipsasm-BMqwQI7S.js +1 -0
  252. package/webview-dist/chunks/mojo-fg40_ntQ.js +1 -0
  253. package/webview-dist/chunks/monokai-B_bV9PQ9.js +1 -0
  254. package/webview-dist/chunks/moonbit-DgjMoLWr.js +1 -0
  255. package/webview-dist/chunks/move-BYnGhZoM.js +1 -0
  256. package/webview-dist/chunks/narrat-_X_XdTYD.js +1 -0
  257. package/webview-dist/chunks/nextflow-BJtWHP5T.js +1 -0
  258. package/webview-dist/chunks/nextflow-groovy-DJMQeKeT.js +1 -0
  259. package/webview-dist/chunks/nginx-rnpjAIVq.js +1 -0
  260. package/webview-dist/chunks/night-owl-DhmEMT88.js +1 -0
  261. package/webview-dist/chunks/night-owl-light-eJ-hLW7d.js +1 -0
  262. package/webview-dist/chunks/nim-kKTJ2fIs.js +1 -0
  263. package/webview-dist/chunks/nix-IvuFDN5E.js +1 -0
  264. package/webview-dist/chunks/nord-Cb4Vim4T.js +1 -0
  265. package/webview-dist/chunks/nsis-CjNLYCLg.js +1 -0
  266. package/webview-dist/chunks/nushell-DHYfO66s.js +1 -0
  267. package/webview-dist/chunks/objective-c-D1A_Heim.js +1 -0
  268. package/webview-dist/chunks/objective-cpp-BsSzOQcm.js +1 -0
  269. package/webview-dist/chunks/ocaml-O90oeIOV.js +1 -0
  270. package/webview-dist/chunks/odin-B1RWQWA5.js +1 -0
  271. package/webview-dist/chunks/one-dark-pro-CLwyXe_n.js +1 -0
  272. package/webview-dist/chunks/one-light-D7Lr4KcI.js +1 -0
  273. package/webview-dist/chunks/openscad-BUDT5pXO.js +1 -0
  274. package/webview-dist/chunks/org-BGWCjkJX.js +1 -0
  275. package/webview-dist/chunks/pascal-4ZHwLPI5.js +1 -0
  276. package/webview-dist/chunks/perl-DEimDILQ.js +1 -0
  277. package/webview-dist/chunks/php-QnaNN--1.js +1 -0
  278. package/webview-dist/chunks/pierre-dark-CpLgRqie.js +1 -0
  279. package/webview-dist/chunks/pierre-dark-protanopia-deuteranopia-B35FxJx-.js +1 -0
  280. package/webview-dist/chunks/pierre-dark-soft-kZQmAZld.js +1 -0
  281. package/webview-dist/chunks/pierre-dark-tritanopia-CpjhbsIL.js +1 -0
  282. package/webview-dist/chunks/pierre-dark-vibrant-CpQYzh95.js +1 -0
  283. package/webview-dist/chunks/pierre-light-CoaEpmwp.js +1 -0
  284. package/webview-dist/chunks/pierre-light-protanopia-deuteranopia-0fSaH845.js +1 -0
  285. package/webview-dist/chunks/pierre-light-soft-lWLdNTOI.js +1 -0
  286. package/webview-dist/chunks/pierre-light-tritanopia-CEbqgOJL.js +1 -0
  287. package/webview-dist/chunks/pierre-light-vibrant-D80Fkn33.js +1 -0
  288. package/webview-dist/chunks/pkl-ot-7Btpt.js +1 -0
  289. package/webview-dist/chunks/plastic-DQwYfKfQ.js +1 -0
  290. package/webview-dist/chunks/plsql-DGHpHOYJ.js +1 -0
  291. package/webview-dist/chunks/po-BiJDBrnU.js +1 -0
  292. package/webview-dist/chunks/poimandres-DRFjx7u4.js +1 -0
  293. package/webview-dist/chunks/polar-C7UOKdEL.js +1 -0
  294. package/webview-dist/chunks/postcss-BXeXVLqQ.js +1 -0
  295. package/webview-dist/chunks/powerquery-DNMTfnFr.js +1 -0
  296. package/webview-dist/chunks/powershell-CCSX75yM.js +1 -0
  297. package/webview-dist/chunks/prisma-DMgNhnYS.js +1 -0
  298. package/webview-dist/chunks/prolog-iXnhIJG7.js +1 -0
  299. package/webview-dist/chunks/proto-DB4EqR-F.js +1 -0
  300. package/webview-dist/chunks/pug-D5rsKmMX.js +1 -0
  301. package/webview-dist/chunks/puppet-CDv2pdJW.js +1 -0
  302. package/webview-dist/chunks/purescript-9MfHhQsQ.js +1 -0
  303. package/webview-dist/chunks/python-gzcpVVnB.js +1 -0
  304. package/webview-dist/chunks/qml-wvbZb8UE.js +1 -0
  305. package/webview-dist/chunks/qmldir-DCQb3MpD.js +1 -0
  306. package/webview-dist/chunks/qss-Fe1Jh2GI.js +1 -0
  307. package/webview-dist/chunks/r-BNyBFaU1.js +1 -0
  308. package/webview-dist/chunks/racket-DcIDlBhZ.js +1 -0
  309. package/webview-dist/chunks/raku-B3gFvitq.js +1 -0
  310. package/webview-dist/chunks/razor-bKaHS6Kz.js +1 -0
  311. package/webview-dist/chunks/rbs-C0MpOrj4.js +1 -0
  312. package/webview-dist/chunks/red-DX1BQOs8.js +1 -0
  313. package/webview-dist/chunks/reg-CRGYupPL.js +1 -0
  314. package/webview-dist/chunks/regexp-B-mZuWUh.js +1 -0
  315. package/webview-dist/chunks/rel-BtDbiS_P.js +1 -0
  316. package/webview-dist/chunks/riscv-Ckw8ddFX.js +1 -0
  317. package/webview-dist/chunks/ron-VUp2lXgN.js +1 -0
  318. package/webview-dist/chunks/rose-pine-aMsaMD1D.js +1 -0
  319. package/webview-dist/chunks/rose-pine-dawn-8PwUyIlP.js +1 -0
  320. package/webview-dist/chunks/rose-pine-moon-DO-qXg-I.js +1 -0
  321. package/webview-dist/chunks/rosmsg-CAekHB0j.js +1 -0
  322. package/webview-dist/chunks/rst-Qq8ybXHe.js +1 -0
  323. package/webview-dist/chunks/ruby-U659LEwU.js +1 -0
  324. package/webview-dist/chunks/rust-Cfkwpbl8.js +1 -0
  325. package/webview-dist/chunks/sas-C4NtLApe.js +1 -0
  326. package/webview-dist/chunks/sass-DXrisJhu.js +1 -0
  327. package/webview-dist/chunks/scala-BiFt_7mu.js +1 -0
  328. package/webview-dist/chunks/scheme-DQCgrYNe.js +1 -0
  329. package/webview-dist/chunks/scss-KAaA4sHk.js +1 -0
  330. package/webview-dist/chunks/sdbl-bTVj8UrX.js +1 -0
  331. package/webview-dist/chunks/shaderlab-TOUzSsQk.js +1 -0
  332. package/webview-dist/chunks/shellscript-_7bOVsRC.js +1 -0
  333. package/webview-dist/chunks/shellsession-Bs_5k0qk.js +1 -0
  334. package/webview-dist/chunks/slack-dark-DnToyrRv.js +1 -0
  335. package/webview-dist/chunks/slack-ochin-B2OO5cIa.js +1 -0
  336. package/webview-dist/chunks/smalltalk-BHpQb5nM.js +1 -0
  337. package/webview-dist/chunks/smithy-Dgaz7aur.js +1 -0
  338. package/webview-dist/chunks/snazzy-light-4G7pJPwS.js +1 -0
  339. package/webview-dist/chunks/solarized-dark-UdsmMDCL.js +1 -0
  340. package/webview-dist/chunks/solarized-light-C1IUL_tW.js +1 -0
  341. package/webview-dist/chunks/solidity-Bj7E1mRn.js +1 -0
  342. package/webview-dist/chunks/soy-C5iuoFCh.js +1 -0
  343. package/webview-dist/chunks/sparql-D_iOobhT.js +1 -0
  344. package/webview-dist/chunks/splunk-BC2Px7Mm.js +1 -0
  345. package/webview-dist/chunks/sql-JX305rZh.js +1 -0
  346. package/webview-dist/chunks/ssh-config-BgfXC-Er.js +1 -0
  347. package/webview-dist/chunks/stata-2Rtik3TV.js +1 -0
  348. package/webview-dist/chunks/stylus-B6D30XZt.js +1 -0
  349. package/webview-dist/chunks/surrealql-IvpiLAIH.js +1 -0
  350. package/webview-dist/chunks/svelte-DeZcV_1u.js +1 -0
  351. package/webview-dist/chunks/swift-CyEgAFGc.js +1 -0
  352. package/webview-dist/chunks/synthwave-84-nFMaYfgc.js +1 -0
  353. package/webview-dist/chunks/system-verilog-Dh5ihWbf.js +1 -0
  354. package/webview-dist/chunks/systemd-BxMlprV5.js +1 -0
  355. package/webview-dist/chunks/talonscript-CohzipZa.js +1 -0
  356. package/webview-dist/chunks/tasl-DMoTqEGO.js +1 -0
  357. package/webview-dist/chunks/tcl-CZd0xW_V.js +1 -0
  358. package/webview-dist/chunks/templ-CcwjPXJr.js +1 -0
  359. package/webview-dist/chunks/terraform-DswuEJGm.js +1 -0
  360. package/webview-dist/chunks/tex-CZYHgHl8.js +1 -0
  361. package/webview-dist/chunks/tokyo-night-oM2G3aXe.js +1 -0
  362. package/webview-dist/chunks/toml-CcmNWLt0.js +1 -0
  363. package/webview-dist/chunks/ts-tags-DPINfEO_.js +1 -0
  364. package/webview-dist/chunks/tsv-sltzmVWM.js +1 -0
  365. package/webview-dist/chunks/tsx-Dq7pSIyE.js +1 -0
  366. package/webview-dist/chunks/turtle-ByJddavk.js +1 -0
  367. package/webview-dist/chunks/twig-DFpC8yDL.js +1 -0
  368. package/webview-dist/chunks/typescript-CN-guYmK.js +1 -0
  369. package/webview-dist/chunks/typespec-BRdr0IET.js +1 -0
  370. package/webview-dist/chunks/typst-hgW4q6mN.js +1 -0
  371. package/webview-dist/chunks/v-DBj4K9d_.js +1 -0
  372. package/webview-dist/chunks/vala-zf12oZj6.js +1 -0
  373. package/webview-dist/chunks/vb-DOwzaHZ0.js +1 -0
  374. package/webview-dist/chunks/verilog-B2gwz-sJ.js +1 -0
  375. package/webview-dist/chunks/vesper-DdrHHSXu.js +1 -0
  376. package/webview-dist/chunks/vhdl-BroJfC0k.js +1 -0
  377. package/webview-dist/chunks/viml-DvXPmvsu.js +1 -0
  378. package/webview-dist/chunks/vitesse-black-fwtXNY1n.js +1 -0
  379. package/webview-dist/chunks/vitesse-dark-BZCL-v6S.js +1 -0
  380. package/webview-dist/chunks/vitesse-light-VbXTXTou.js +1 -0
  381. package/webview-dist/chunks/vue-Dkz9ntel.js +1 -0
  382. package/webview-dist/chunks/vue-html-Dg8LQ5v3.js +1 -0
  383. package/webview-dist/chunks/vue-vine-CIEXICEN.js +1 -0
  384. package/webview-dist/chunks/vyper-CgoNMtux.js +1 -0
  385. package/webview-dist/chunks/wasm-BnjxR4X6.js +1 -0
  386. package/webview-dist/chunks/wasm-ByWQv1Qj.js +1 -0
  387. package/webview-dist/chunks/wenyan-C8pVoKbM.js +1 -0
  388. package/webview-dist/chunks/wgsl-BsKzXJz4.js +1 -0
  389. package/webview-dist/chunks/wikitext-ClFFjSW2.js +1 -0
  390. package/webview-dist/chunks/wit-DdvCle-K.js +1 -0
  391. package/webview-dist/chunks/wolfram-DLL8P-h_.js +1 -0
  392. package/webview-dist/chunks/worker-D52zl71O.js +1 -0
  393. package/webview-dist/chunks/worker-pool-lOjh8Q2A.js +1543 -0
  394. package/webview-dist/chunks/xml-X7YOen_c.js +1 -0
  395. package/webview-dist/chunks/xsl-h4d_Px-X.js +1 -0
  396. package/webview-dist/chunks/yaml-BRDpsfaj.js +1 -0
  397. package/webview-dist/chunks/zenscript-BnlCZFoB.js +1 -0
  398. package/webview-dist/chunks/zig-CMLA9XwU.js +1 -0
  399. package/webview-dist/index.html +18 -0
  400. package/webview-dist/pierre-worker-portable.js +13633 -0
  401. package/webview-dist/repo-timeline-app.js +7 -0
  402. package/webview-dist/repo-timeline.html +14 -0
  403. package/webview-dist/timeline-app.css +2 -0
  404. package/webview-dist/timeline-app.js +85 -0
@@ -0,0 +1,464 @@
1
+ const require_runtime = require("../_virtual/_rolldown/runtime.cjs");
2
+ const require_constants = require("./constants.cjs");
3
+ const require_blame = require("../shared/blame.cjs");
4
+ const require_settings = require("./settings.cjs");
5
+ const require_resolve_file_path = require("./resolve-file-path.cjs");
6
+ const require_jj_revset_suggestions = require("../shared/jj-revset-suggestions.cjs");
7
+ let node_path = require("node:path");
8
+ node_path = require_runtime.__toESM(node_path, 1);
9
+ let vscode = require("vscode");
10
+ vscode = require_runtime.__toESM(vscode, 1);
11
+ //#region src/extension/editor-extra-features.ts
12
+ /**
13
+ * Remaining editor/workspace features, each gated by jjplus.* settings where they touch the editor.
14
+ */
15
+ function registerEditorExtraFeatures(args) {
16
+ const disposables = [];
17
+ disposables.push(vscode.commands.registerCommand("jj-plus.toggleLineBlame", async () => {
18
+ const config = vscode.workspace.getConfiguration(require_settings.SETTINGS_SECTION);
19
+ const current = config.get("inlineBlameGutter", false);
20
+ await config.update("inlineBlameGutter", !current, vscode.ConfigurationTarget.Global);
21
+ vscode.window.setStatusBarMessage(`JJ Plus: line blame ${current ? "off" : "on"}`, 2500);
22
+ }), vscode.commands.registerCommand("jj-plus.compareWithBookmark", async () => {
23
+ const absolutePath = require_resolve_file_path.resolveCommandFilePath();
24
+ if (!absolutePath) {
25
+ vscode.window.showErrorMessage("Open a workspace file first");
26
+ return;
27
+ }
28
+ const folder = vscode.workspace.getWorkspaceFolder(vscode.Uri.file(absolutePath));
29
+ if (!folder) {
30
+ vscode.window.showErrorMessage("File must belong to a workspace folder");
31
+ return;
32
+ }
33
+ const { backend } = await args.resolveBackend({ workspacePath: folder.uri.fsPath });
34
+ const picks = backend === "jj" ? await listJjBookmarks(args.runner, folder.uri.fsPath) : await listGitBranches(args.runner, folder.uri.fsPath);
35
+ const chosen = await vscode.window.showQuickPick(picks, { placeHolder: backend === "jj" ? "Compare with bookmark / revset" : "Compare with branch / ref" });
36
+ if (!chosen) return;
37
+ const relativePath = node_path.relative(folder.uri.fsPath, absolutePath).replace(/\\/g, "/");
38
+ const [originalContent, modifiedContent] = await Promise.all([args.showFileAtRevision({
39
+ workspacePath: folder.uri.fsPath,
40
+ revset: chosen,
41
+ filePath: relativePath
42
+ }), args.showFileAtRevision({
43
+ workspacePath: folder.uri.fsPath,
44
+ revset: backend === "jj" ? "@" : "HEAD",
45
+ filePath: relativePath
46
+ })]);
47
+ await vscode.commands.executeCommand("vscode.diff", args.createInlineContentUri({
48
+ workspacePath: folder.uri.fsPath,
49
+ revset: chosen,
50
+ relativePath,
51
+ content: originalContent
52
+ }), args.createInlineContentUri({
53
+ workspacePath: folder.uri.fsPath,
54
+ revset: backend === "jj" ? "@" : "HEAD",
55
+ relativePath,
56
+ content: modifiedContent
57
+ }), `${node_path.basename(absolutePath)}: ${chosen} → ${backend === "jj" ? "@" : "HEAD"}`, { preview: true });
58
+ }), vscode.commands.registerCommand("jj-plus.peekRevisionAtCursor", async () => {
59
+ const editor = vscode.window.activeTextEditor;
60
+ if (!editor || editor.document.uri.scheme !== "file") return;
61
+ const folder = vscode.workspace.getWorkspaceFolder(editor.document.uri);
62
+ if (!folder) return;
63
+ const relativePath = node_path.relative(folder.uri.fsPath, editor.document.uri.fsPath).replace(/\\/g, "/");
64
+ const line = editor.selection.active.line + 1;
65
+ const { backend } = await args.resolveBackend({ workspacePath: folder.uri.fsPath });
66
+ if (backend !== "jj") {
67
+ vscode.window.showInformationMessage("Peek revision currently supports jj workspaces");
68
+ return;
69
+ }
70
+ const { stdout } = await args.runner.runJj({
71
+ workspacePath: folder.uri.fsPath,
72
+ args: require_blame.buildJjAnnotateArgs({ relativePath })
73
+ });
74
+ const blame = require_blame.findBlameForLine(require_blame.parseJjFileAnnotate(stdout), line);
75
+ if (!blame?.revision) {
76
+ vscode.window.showInformationMessage("No revision found for this line");
77
+ return;
78
+ }
79
+ const content = await args.showFileAtRevision({
80
+ workspacePath: folder.uri.fsPath,
81
+ revset: blame.revision,
82
+ filePath: relativePath
83
+ });
84
+ const uri = args.createInlineContentUri({
85
+ workspacePath: folder.uri.fsPath,
86
+ revset: blame.revision,
87
+ relativePath,
88
+ content
89
+ });
90
+ await vscode.commands.executeCommand("editor.action.peekLocations", editor.document.uri, editor.selection.active, [new vscode.Location(uri, new vscode.Position(Math.max(0, line - 1), 0))]);
91
+ }), vscode.commands.registerCommand("jj-plus.openFileAtRevision", async () => {
92
+ const absolutePath = require_resolve_file_path.resolveCommandFilePath();
93
+ if (!absolutePath) {
94
+ vscode.window.showErrorMessage("Open a workspace file first");
95
+ return;
96
+ }
97
+ const folder = vscode.workspace.getWorkspaceFolder(vscode.Uri.file(absolutePath));
98
+ if (!folder) return;
99
+ const revset = await vscode.window.showInputBox({
100
+ prompt: "Revision / revset / bookmark",
101
+ placeHolder: "@-"
102
+ });
103
+ if (!revset) return;
104
+ const relativePath = node_path.relative(folder.uri.fsPath, absolutePath).replace(/\\/g, "/");
105
+ const content = await args.showFileAtRevision({
106
+ workspacePath: folder.uri.fsPath,
107
+ revset,
108
+ filePath: relativePath
109
+ });
110
+ const uri = args.createInlineContentUri({
111
+ workspacePath: folder.uri.fsPath,
112
+ revset,
113
+ relativePath,
114
+ content
115
+ });
116
+ const doc = await vscode.workspace.openTextDocument(uri);
117
+ await vscode.window.showTextDocument(doc, { preview: true });
118
+ }), vscode.commands.registerCommand("jj-plus.copyBlameRevision", async (raw) => {
119
+ const revision = raw?.revision?.trim();
120
+ if (!revision) return;
121
+ await vscode.env.clipboard.writeText(revision);
122
+ vscode.window.setStatusBarMessage("JJ Plus: revision copied", 1800);
123
+ }), vscode.commands.registerCommand("jj-plus.openBlameSnapshot", async (raw) => {
124
+ const absolutePath = raw?.absolutePath;
125
+ const revision = raw?.revision?.trim();
126
+ if (!absolutePath || !revision) return;
127
+ const folder = vscode.workspace.getWorkspaceFolder(vscode.Uri.file(absolutePath));
128
+ if (!folder) return;
129
+ const relativePath = node_path.relative(folder.uri.fsPath, absolutePath).replace(/\\/g, "/");
130
+ if (!relativePath || relativePath.startsWith("..") || node_path.isAbsolute(relativePath)) return;
131
+ const content = await args.showFileAtRevision({
132
+ workspacePath: folder.uri.fsPath,
133
+ revset: revision,
134
+ filePath: relativePath
135
+ });
136
+ const uri = args.createInlineContentUri({
137
+ workspacePath: folder.uri.fsPath,
138
+ revset: revision,
139
+ relativePath,
140
+ content
141
+ });
142
+ const document = await vscode.workspace.openTextDocument(uri);
143
+ const editor = await vscode.window.showTextDocument(document, { preview: true });
144
+ const line = Math.max(1, Number(raw?.line) || 1);
145
+ const position = new vscode.Position(Math.min(line - 1, Math.max(0, document.lineCount - 1)), 0);
146
+ editor.revealRange(new vscode.Range(position, position), vscode.TextEditorRevealType.InCenter);
147
+ }), vscode.commands.registerCommand("jj-plus.openBlameRemote", async (raw) => {
148
+ const revision = raw?.revision?.trim();
149
+ const absolutePath = raw?.absolutePath;
150
+ if (!revision || !absolutePath) return;
151
+ const folder = vscode.workspace.getWorkspaceFolder(vscode.Uri.file(absolutePath));
152
+ const baseUrl = folder ? await args.getRemoteBaseUrl({ workspacePath: folder.uri.fsPath }) : void 0;
153
+ if (baseUrl) await vscode.env.openExternal(vscode.Uri.parse(`${baseUrl}/commit/${revision}`));
154
+ }), vscode.commands.registerCommand("jj-plus.openBlameRevisionDiff", async (raw) => {
155
+ const revision = raw?.revision?.trim();
156
+ const absolutePath = raw?.absolutePath;
157
+ if (!revision || !absolutePath) return;
158
+ const folder = vscode.workspace.getWorkspaceFolder(vscode.Uri.file(absolutePath));
159
+ if (folder) await args.openRevisionMultiDiff({
160
+ workspacePath: folder.uri.fsPath,
161
+ revision
162
+ });
163
+ }), vscode.commands.registerCommand("jj-plus.openWorkingCopyChangesMulti", async () => {
164
+ const folder = vscode.workspace.workspaceFolders?.[0];
165
+ if (!folder) {
166
+ vscode.window.showErrorMessage("No workspace folder");
167
+ return;
168
+ }
169
+ const { backend } = await args.resolveBackend({ workspacePath: folder.uri.fsPath });
170
+ if (backend !== "jj") {
171
+ vscode.window.showInformationMessage("Multi-file previous diff currently supports jj");
172
+ return;
173
+ }
174
+ const { stdout } = await args.runner.runJj({
175
+ workspacePath: folder.uri.fsPath,
176
+ args: [
177
+ "diff",
178
+ "-r",
179
+ "@-",
180
+ "--name-only"
181
+ ]
182
+ });
183
+ const files = stdout.split(/\r?\n/u).map((line) => line.trim()).filter(Boolean);
184
+ if (!files.length) {
185
+ vscode.window.showInformationMessage("No working-copy file changes vs @-");
186
+ return;
187
+ }
188
+ const resources = await Promise.all(files.slice(0, 40).map(async (relativePath) => {
189
+ const [original, modified] = await Promise.all([args.showFileAtRevision({
190
+ workspacePath: folder.uri.fsPath,
191
+ revset: "@-",
192
+ filePath: relativePath
193
+ }), args.showFileAtRevision({
194
+ workspacePath: folder.uri.fsPath,
195
+ revset: "@",
196
+ filePath: relativePath
197
+ })]);
198
+ return {
199
+ originalUri: args.createInlineContentUri({
200
+ workspacePath: folder.uri.fsPath,
201
+ revset: "@-",
202
+ relativePath,
203
+ content: original
204
+ }),
205
+ modifiedUri: args.createInlineContentUri({
206
+ workspacePath: folder.uri.fsPath,
207
+ revset: "@",
208
+ relativePath,
209
+ content: modified
210
+ }),
211
+ goToFileUri: vscode.Uri.file(node_path.join(folder.uri.fsPath, relativePath))
212
+ };
213
+ }));
214
+ await vscode.commands.executeCommand("_workbench.openMultiDiffEditor", {
215
+ title: "Working copy vs @-",
216
+ resources
217
+ });
218
+ }));
219
+ disposables.push(createStatusBarChangeChip(args));
220
+ disposables.push(createOpLogWatcher(args));
221
+ disposables.push(createConflictHelper());
222
+ disposables.push(createWhyCodeActions());
223
+ disposables.push(createScmChangedLineDecorations(args));
224
+ return vscode.Disposable.from(...disposables);
225
+ }
226
+ function createStatusBarChangeChip(args) {
227
+ const item = vscode.window.createStatusBarItem(vscode.StatusBarAlignment.Left, 100);
228
+ item.command = require_constants.OPEN_FILE_TIMELINE_COMMAND;
229
+ let timer;
230
+ const refresh = async () => {
231
+ if (!require_settings.readJjplusSettings().statusBarChangeChip) {
232
+ item.hide();
233
+ return;
234
+ }
235
+ const editor = vscode.window.activeTextEditor;
236
+ if (!editor || editor.document.uri.scheme !== "file") {
237
+ item.hide();
238
+ return;
239
+ }
240
+ const folder = vscode.workspace.getWorkspaceFolder(editor.document.uri);
241
+ if (!folder) {
242
+ item.hide();
243
+ return;
244
+ }
245
+ try {
246
+ const { backend } = await args.resolveBackend({ workspacePath: folder.uri.fsPath });
247
+ if (backend !== "jj") {
248
+ item.hide();
249
+ return;
250
+ }
251
+ const { stdout } = await args.runner.runJj({
252
+ workspacePath: folder.uri.fsPath,
253
+ args: [
254
+ "log",
255
+ "-r",
256
+ "@",
257
+ "--no-graph",
258
+ "-T",
259
+ "change_id.shortest(8) ++ \" \" ++ description.first_line() ++ \"\\n\"",
260
+ "-n",
261
+ "1"
262
+ ]
263
+ });
264
+ const line = stdout.trim().split(/\r?\n/u)[0] || "";
265
+ if (!line) {
266
+ item.hide();
267
+ return;
268
+ }
269
+ item.text = `$(git-commit) ${line.slice(0, 48)}`;
270
+ item.tooltip = "JJ Plus: working-copy change — click to open revision timeline";
271
+ item.show();
272
+ } catch {
273
+ item.hide();
274
+ }
275
+ };
276
+ const schedule = () => {
277
+ if (timer) clearTimeout(timer);
278
+ timer = setTimeout(() => {
279
+ refresh();
280
+ }, 200);
281
+ };
282
+ schedule();
283
+ return vscode.Disposable.from(item, vscode.window.onDidChangeActiveTextEditor(schedule), require_settings.onJjplusSettingsChange(schedule), { dispose: () => timer && clearTimeout(timer) });
284
+ }
285
+ function createOpLogWatcher(args) {
286
+ let lastOp = "";
287
+ let timer;
288
+ const tick = async () => {
289
+ if (!require_settings.readJjplusSettings().opLogWatch) return;
290
+ const folder = vscode.workspace.workspaceFolders?.[0];
291
+ if (!folder) return;
292
+ try {
293
+ const { backend } = await args.resolveBackend({ workspacePath: folder.uri.fsPath });
294
+ if (backend !== "jj") return;
295
+ const { stdout } = await args.runner.runJj({
296
+ workspacePath: folder.uri.fsPath,
297
+ args: [
298
+ "op",
299
+ "log",
300
+ "-n",
301
+ "1",
302
+ "--no-graph",
303
+ "-T",
304
+ "self.id().short() ++ \" \" ++ description.first_line()"
305
+ ]
306
+ });
307
+ const tip = stdout.trim();
308
+ if (!tip) return;
309
+ if (lastOp && tip !== lastOp) {
310
+ vscode.window.setStatusBarMessage(`JJ Plus: op log advanced — ${tip}`, 5e3);
311
+ vscode.window.showInformationMessage(`jj repository changed: ${tip}`);
312
+ }
313
+ lastOp = tip;
314
+ } catch {}
315
+ };
316
+ const restart = () => {
317
+ if (timer) {
318
+ clearInterval(timer);
319
+ timer = void 0;
320
+ }
321
+ if (require_settings.readJjplusSettings().opLogWatch) {
322
+ timer = setInterval(() => {
323
+ tick();
324
+ }, 8e3);
325
+ tick();
326
+ }
327
+ };
328
+ restart();
329
+ return vscode.Disposable.from(require_settings.onJjplusSettingsChange(restart), { dispose() {
330
+ if (timer) clearInterval(timer);
331
+ } });
332
+ }
333
+ function createConflictHelper() {
334
+ const decoration = vscode.window.createTextEditorDecorationType({
335
+ overviewRulerColor: new vscode.ThemeColor("editorOverviewRuler.errorForeground"),
336
+ overviewRulerLane: vscode.OverviewRulerLane.Right,
337
+ isWholeLine: true,
338
+ backgroundColor: new vscode.ThemeColor("diffEditor.diagonalFill")
339
+ });
340
+ const refresh = (editor) => {
341
+ if (!require_settings.readJjplusSettings().conflictHelper || !editor || editor.document.uri.scheme !== "file") return;
342
+ const ranges = [];
343
+ for (let line = 0; line < editor.document.lineCount; line += 1) {
344
+ const text = editor.document.lineAt(line).text;
345
+ if (text.startsWith("<<<<<<<") || text.startsWith(">>>>>>>") || text.startsWith("%%%%%%%")) ranges.push({
346
+ range: editor.document.lineAt(line).range,
347
+ hoverMessage: "JJ Plus: conflict marker — use Jump to Next Conflict"
348
+ });
349
+ }
350
+ editor.setDecorations(decoration, ranges);
351
+ };
352
+ return vscode.Disposable.from(decoration, vscode.commands.registerCommand("jj-plus.jumpNextConflict", async () => {
353
+ const editor = vscode.window.activeTextEditor;
354
+ if (!editor) return;
355
+ const start = editor.selection.active.line + 1;
356
+ for (let line = start; line < editor.document.lineCount; line += 1) {
357
+ const text = editor.document.lineAt(line).text;
358
+ if (text.startsWith("<<<<<<<") || text.startsWith("%%%%%%%")) {
359
+ const pos = new vscode.Position(line, 0);
360
+ editor.selection = new vscode.Selection(pos, pos);
361
+ editor.revealRange(editor.document.lineAt(line).range);
362
+ return;
363
+ }
364
+ }
365
+ vscode.window.showInformationMessage("No further conflict markers");
366
+ }), vscode.window.onDidChangeActiveTextEditor((editor) => refresh(editor)), vscode.workspace.onDidChangeTextDocument((event) => {
367
+ if (event.document === vscode.window.activeTextEditor?.document) refresh(vscode.window.activeTextEditor);
368
+ }), require_settings.onJjplusSettingsChange(() => refresh(vscode.window.activeTextEditor)), { dispose: () => refresh(void 0) });
369
+ }
370
+ function createWhyCodeActions() {
371
+ return vscode.languages.registerCodeActionsProvider({ scheme: "file" }, { async provideCodeActions(document, range) {
372
+ if (!require_settings.readJjplusSettings().codeActions) return [];
373
+ const line = range.start.line + 1;
374
+ const action = new vscode.CodeAction(`JJ Plus: Why is line ${line} here?`, vscode.CodeActionKind.QuickFix);
375
+ action.command = {
376
+ command: require_constants.OPEN_TIMELINE_AT_LINE_COMMAND,
377
+ title: "Open timeline at line",
378
+ arguments: [{
379
+ absolutePath: document.uri.fsPath,
380
+ line
381
+ }]
382
+ };
383
+ return [action];
384
+ } }, { providedCodeActionKinds: [vscode.CodeActionKind.QuickFix] });
385
+ }
386
+ function createScmChangedLineDecorations(args) {
387
+ const decoration = vscode.window.createTextEditorDecorationType({
388
+ overviewRulerColor: new vscode.ThemeColor("editorOverviewRuler.modifiedForeground"),
389
+ overviewRulerLane: vscode.OverviewRulerLane.Left,
390
+ isWholeLine: true,
391
+ backgroundColor: new vscode.ThemeColor("diffEditor.insertedLineBackground")
392
+ });
393
+ let timer;
394
+ const refresh = async (editor) => {
395
+ if (!require_settings.readJjplusSettings().scmChangedLines || !editor || editor.document.uri.scheme !== "file") {
396
+ editor?.setDecorations(decoration, []);
397
+ return;
398
+ }
399
+ const folder = vscode.workspace.getWorkspaceFolder(editor.document.uri);
400
+ if (!folder) return;
401
+ try {
402
+ const { backend } = await args.resolveBackend({ workspacePath: folder.uri.fsPath });
403
+ if (backend !== "jj") {
404
+ editor.setDecorations(decoration, []);
405
+ return;
406
+ }
407
+ const relativePath = node_path.relative(folder.uri.fsPath, editor.document.uri.fsPath).replace(/\\/g, "/");
408
+ const beforeLines = (await args.showFileAtRevision({
409
+ workspacePath: folder.uri.fsPath,
410
+ revset: "@-",
411
+ filePath: relativePath
412
+ })).split(/\r?\n/u);
413
+ const afterLines = editor.document.getText().split(/\r?\n/u);
414
+ const ranges = [];
415
+ const max = Math.max(beforeLines.length, afterLines.length);
416
+ for (let index = 0; index < max && index < editor.document.lineCount; index += 1) if ((beforeLines[index] ?? "") !== (afterLines[index] ?? "")) ranges.push(editor.document.lineAt(index).range);
417
+ editor.setDecorations(decoration, ranges.map((range) => ({
418
+ range,
419
+ hoverMessage: "Changed vs @-"
420
+ })));
421
+ } catch {
422
+ editor.setDecorations(decoration, []);
423
+ }
424
+ };
425
+ const schedule = () => {
426
+ if (timer) clearTimeout(timer);
427
+ timer = setTimeout(() => {
428
+ refresh(vscode.window.activeTextEditor);
429
+ }, 250);
430
+ };
431
+ schedule();
432
+ return vscode.Disposable.from(decoration, vscode.window.onDidChangeActiveTextEditor(schedule), vscode.workspace.onDidChangeTextDocument((event) => {
433
+ if (event.document === vscode.window.activeTextEditor?.document) schedule();
434
+ }), require_settings.onJjplusSettingsChange(schedule), { dispose: () => timer && clearTimeout(timer) });
435
+ }
436
+ async function listJjBookmarks(runner, workspacePath) {
437
+ const { stdout } = await runner.runJj({
438
+ workspacePath,
439
+ args: [
440
+ "bookmark",
441
+ "list",
442
+ "-T",
443
+ "name ++ \"\\n\""
444
+ ]
445
+ });
446
+ const names = stdout.split(/\r?\n/u).map((line) => line.trim()).filter(Boolean);
447
+ return require_jj_revset_suggestions.mergeCompareQuickPickValues(names);
448
+ }
449
+ async function listGitBranches(runner, workspacePath) {
450
+ const { stdout } = await runner.runGit({
451
+ workspacePath,
452
+ args: [
453
+ "for-each-ref",
454
+ "--format=%(refname:short)",
455
+ "refs/heads",
456
+ "refs/remotes"
457
+ ]
458
+ });
459
+ return stdout.split(/\r?\n/u).map((line) => line.trim()).filter(Boolean);
460
+ }
461
+ //#endregion
462
+ exports.registerEditorExtraFeatures = registerEditorExtraFeatures;
463
+
464
+ //# sourceMappingURL=editor-extra-features.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"editor-extra-features.cjs","names":["SETTINGS_SECTION","resolveCommandFilePath","path","buildJjAnnotateArgs","findBlameForLine","parseJjFileAnnotate","OPEN_FILE_TIMELINE_COMMAND","readJjplusSettings","onJjplusSettingsChange","OPEN_TIMELINE_AT_LINE_COMMAND","mergeCompareQuickPickValues"],"sources":["../../src/extension/editor-extra-features.ts"],"sourcesContent":["import { OPEN_FILE_TIMELINE_COMMAND, OPEN_TIMELINE_AT_LINE_COMMAND } from './constants.ts';\nimport { resolveCommandFilePath } from './resolve-file-path.ts';\nimport { onJjplusSettingsChange, readJjplusSettings, SETTINGS_SECTION } from './settings.ts';\nimport { mergeCompareQuickPickValues } from '../shared/jj-revset-suggestions.ts';\nimport { buildJjAnnotateArgs, findBlameForLine, parseJjFileAnnotate } from '../shared/blame.ts';\nimport * as path from 'node:path';\nimport * as vscode from 'vscode';\n\ntype Runner = {\n\trunJj: (args: { workspacePath: string; args: string[] }) => Promise<{ stdout: string }>;\n\trunGit: (args: { workspacePath: string; args: string[] }) => Promise<{ stdout: string }>;\n};\n\ntype ResolveBackend = (args: { workspacePath: string }) => Promise<{ backend: 'git' | 'jj' }>;\n\n/**\n * Remaining editor/workspace features, each gated by jjplus.* settings where they touch the editor.\n */\nexport function registerEditorExtraFeatures(args: {\n\tcontext: vscode.ExtensionContext;\n\trunner: Runner;\n\tresolveBackend: ResolveBackend;\n\tcreateInlineContentUri: (args: {\n\t\tworkspacePath: string;\n\t\trevset: string;\n\t\trelativePath: string;\n\t\tcontent: string;\n\t}) => vscode.Uri;\n\tshowFileAtRevision: (args: { workspacePath: string; revset: string; filePath: string }) => Promise<string>;\n\tgetRemoteBaseUrl: (args: { workspacePath: string }) => Promise<string | undefined>;\n\topenRevisionMultiDiff: (args: { workspacePath: string; revision: string }) => Promise<void>;\n}): vscode.Disposable {\n\tconst disposables: vscode.Disposable[] = [];\n\n\tdisposables.push(\n\t\tvscode.commands.registerCommand('jj-plus.toggleLineBlame', async () => {\n\t\t\tconst config = vscode.workspace.getConfiguration(SETTINGS_SECTION);\n\t\t\tconst current = config.get<boolean>('inlineBlameGutter', false);\n\t\t\tawait config.update('inlineBlameGutter', !current, vscode.ConfigurationTarget.Global);\n\t\t\tvoid vscode.window.setStatusBarMessage(`JJ Plus: line blame ${current ? 'off' : 'on'}`, 2500);\n\t\t}),\n\t\tvscode.commands.registerCommand('jj-plus.compareWithBookmark', async () => {\n\t\t\tconst absolutePath = resolveCommandFilePath();\n\t\t\tif (!absolutePath) {\n\t\t\t\tvoid vscode.window.showErrorMessage('Open a workspace file first');\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tconst folder = vscode.workspace.getWorkspaceFolder(vscode.Uri.file(absolutePath));\n\t\t\tif (!folder) {\n\t\t\t\tvoid vscode.window.showErrorMessage('File must belong to a workspace folder');\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tconst { backend } = await args.resolveBackend({ workspacePath: folder.uri.fsPath });\n\t\t\tconst picks =\n\t\t\t\tbackend === 'jj'\n\t\t\t\t\t? await listJjBookmarks(args.runner, folder.uri.fsPath)\n\t\t\t\t\t: await listGitBranches(args.runner, folder.uri.fsPath);\n\t\t\tconst chosen = await vscode.window.showQuickPick(picks, {\n\t\t\t\tplaceHolder: backend === 'jj' ? 'Compare with bookmark / revset' : 'Compare with branch / ref',\n\t\t\t});\n\t\t\tif (!chosen) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tconst relativePath = path.relative(folder.uri.fsPath, absolutePath).replace(/\\\\/g, '/');\n\t\t\tconst [originalContent, modifiedContent] = await Promise.all([\n\t\t\t\targs.showFileAtRevision({\n\t\t\t\t\tworkspacePath: folder.uri.fsPath,\n\t\t\t\t\trevset: chosen,\n\t\t\t\t\tfilePath: relativePath,\n\t\t\t\t}),\n\t\t\t\targs.showFileAtRevision({\n\t\t\t\t\tworkspacePath: folder.uri.fsPath,\n\t\t\t\t\trevset: backend === 'jj' ? '@' : 'HEAD',\n\t\t\t\t\tfilePath: relativePath,\n\t\t\t\t}),\n\t\t\t]);\n\t\t\tawait vscode.commands.executeCommand(\n\t\t\t\t'vscode.diff',\n\t\t\t\targs.createInlineContentUri({\n\t\t\t\t\tworkspacePath: folder.uri.fsPath,\n\t\t\t\t\trevset: chosen,\n\t\t\t\t\trelativePath,\n\t\t\t\t\tcontent: originalContent,\n\t\t\t\t}),\n\t\t\t\targs.createInlineContentUri({\n\t\t\t\t\tworkspacePath: folder.uri.fsPath,\n\t\t\t\t\trevset: backend === 'jj' ? '@' : 'HEAD',\n\t\t\t\t\trelativePath,\n\t\t\t\t\tcontent: modifiedContent,\n\t\t\t\t}),\n\t\t\t\t`${path.basename(absolutePath)}: ${chosen} → ${backend === 'jj' ? '@' : 'HEAD'}`,\n\t\t\t\t{ preview: true },\n\t\t\t);\n\t\t}),\n\t\tvscode.commands.registerCommand('jj-plus.peekRevisionAtCursor', async () => {\n\t\t\tconst editor = vscode.window.activeTextEditor;\n\t\t\tif (!editor || editor.document.uri.scheme !== 'file') {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tconst folder = vscode.workspace.getWorkspaceFolder(editor.document.uri);\n\t\t\tif (!folder) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tconst relativePath = path.relative(folder.uri.fsPath, editor.document.uri.fsPath).replace(/\\\\/g, '/');\n\t\t\tconst line = editor.selection.active.line + 1;\n\t\t\tconst { backend } = await args.resolveBackend({ workspacePath: folder.uri.fsPath });\n\t\t\tif (backend !== 'jj') {\n\t\t\t\tvoid vscode.window.showInformationMessage('Peek revision currently supports jj workspaces');\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tconst { stdout } = await args.runner.runJj({\n\t\t\t\tworkspacePath: folder.uri.fsPath,\n\t\t\t\targs: buildJjAnnotateArgs({ relativePath }),\n\t\t\t});\n\t\t\tconst blame = findBlameForLine(parseJjFileAnnotate(stdout), line);\n\t\t\tif (!blame?.revision) {\n\t\t\t\tvoid vscode.window.showInformationMessage('No revision found for this line');\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tconst content = await args.showFileAtRevision({\n\t\t\t\tworkspacePath: folder.uri.fsPath,\n\t\t\t\trevset: blame.revision,\n\t\t\t\tfilePath: relativePath,\n\t\t\t});\n\t\t\tconst uri = args.createInlineContentUri({\n\t\t\t\tworkspacePath: folder.uri.fsPath,\n\t\t\t\trevset: blame.revision,\n\t\t\t\trelativePath,\n\t\t\t\tcontent,\n\t\t\t});\n\t\t\tawait vscode.commands.executeCommand(\n\t\t\t\t'editor.action.peekLocations',\n\t\t\t\teditor.document.uri,\n\t\t\t\teditor.selection.active,\n\t\t\t\t[new vscode.Location(uri, new vscode.Position(Math.max(0, line - 1), 0))],\n\t\t\t);\n\t\t}),\n\t\tvscode.commands.registerCommand('jj-plus.openFileAtRevision', async () => {\n\t\t\tconst absolutePath = resolveCommandFilePath();\n\t\t\tif (!absolutePath) {\n\t\t\t\tvoid vscode.window.showErrorMessage('Open a workspace file first');\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tconst folder = vscode.workspace.getWorkspaceFolder(vscode.Uri.file(absolutePath));\n\t\t\tif (!folder) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tconst revset = await vscode.window.showInputBox({\n\t\t\t\tprompt: 'Revision / revset / bookmark',\n\t\t\t\tplaceHolder: '@-',\n\t\t\t});\n\t\t\tif (!revset) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tconst relativePath = path.relative(folder.uri.fsPath, absolutePath).replace(/\\\\/g, '/');\n\t\t\tconst content = await args.showFileAtRevision({\n\t\t\t\tworkspacePath: folder.uri.fsPath,\n\t\t\t\trevset,\n\t\t\t\tfilePath: relativePath,\n\t\t\t});\n\t\t\tconst uri = args.createInlineContentUri({\n\t\t\t\tworkspacePath: folder.uri.fsPath,\n\t\t\t\trevset,\n\t\t\t\trelativePath,\n\t\t\t\tcontent,\n\t\t\t});\n\t\t\tconst doc = await vscode.workspace.openTextDocument(uri);\n\t\t\tawait vscode.window.showTextDocument(doc, { preview: true });\n\t\t}),\n\t\tvscode.commands.registerCommand('jj-plus.copyBlameRevision', async (raw?: { revision?: string }) => {\n\t\t\tconst revision = raw?.revision?.trim();\n\t\t\tif (!revision) return;\n\t\t\tawait vscode.env.clipboard.writeText(revision);\n\t\t\tvoid vscode.window.setStatusBarMessage('JJ Plus: revision copied', 1800);\n\t\t}),\n\t\tvscode.commands.registerCommand(\n\t\t\t'jj-plus.openBlameSnapshot',\n\t\t\tasync (raw?: { absolutePath?: string; revision?: string; line?: number }) => {\n\t\t\t\tconst absolutePath = raw?.absolutePath;\n\t\t\t\tconst revision = raw?.revision?.trim();\n\t\t\t\tif (!absolutePath || !revision) return;\n\t\t\t\tconst folder = vscode.workspace.getWorkspaceFolder(vscode.Uri.file(absolutePath));\n\t\t\t\tif (!folder) return;\n\t\t\t\tconst relativePath = path.relative(folder.uri.fsPath, absolutePath).replace(/\\\\/g, '/');\n\t\t\t\tif (!relativePath || relativePath.startsWith('..') || path.isAbsolute(relativePath)) return;\n\t\t\t\tconst content = await args.showFileAtRevision({\n\t\t\t\t\tworkspacePath: folder.uri.fsPath,\n\t\t\t\t\trevset: revision,\n\t\t\t\t\tfilePath: relativePath,\n\t\t\t\t});\n\t\t\t\tconst uri = args.createInlineContentUri({\n\t\t\t\t\tworkspacePath: folder.uri.fsPath,\n\t\t\t\t\trevset: revision,\n\t\t\t\t\trelativePath,\n\t\t\t\t\tcontent,\n\t\t\t\t});\n\t\t\t\tconst document = await vscode.workspace.openTextDocument(uri);\n\t\t\t\tconst editor = await vscode.window.showTextDocument(document, { preview: true });\n\t\t\t\tconst line = Math.max(1, Number(raw?.line) || 1);\n\t\t\t\tconst position = new vscode.Position(Math.min(line - 1, Math.max(0, document.lineCount - 1)), 0);\n\t\t\t\teditor.revealRange(new vscode.Range(position, position), vscode.TextEditorRevealType.InCenter);\n\t\t\t},\n\t\t),\n\t\tvscode.commands.registerCommand(\n\t\t\t'jj-plus.openBlameRemote',\n\t\t\tasync (raw?: { absolutePath?: string; revision?: string }) => {\n\t\t\t\tconst revision = raw?.revision?.trim();\n\t\t\t\tconst absolutePath = raw?.absolutePath;\n\t\t\t\tif (!revision || !absolutePath) return;\n\t\t\t\tconst folder = vscode.workspace.getWorkspaceFolder(vscode.Uri.file(absolutePath));\n\t\t\t\tconst baseUrl = folder ? await args.getRemoteBaseUrl({ workspacePath: folder.uri.fsPath }) : undefined;\n\t\t\t\tif (baseUrl) await vscode.env.openExternal(vscode.Uri.parse(`${baseUrl}/commit/${revision}`));\n\t\t\t},\n\t\t),\n\t\tvscode.commands.registerCommand(\n\t\t\t'jj-plus.openBlameRevisionDiff',\n\t\t\tasync (raw?: { absolutePath?: string; revision?: string }) => {\n\t\t\t\tconst revision = raw?.revision?.trim();\n\t\t\t\tconst absolutePath = raw?.absolutePath;\n\t\t\t\tif (!revision || !absolutePath) return;\n\t\t\t\tconst folder = vscode.workspace.getWorkspaceFolder(vscode.Uri.file(absolutePath));\n\t\t\t\tif (folder) await args.openRevisionMultiDiff({ workspacePath: folder.uri.fsPath, revision });\n\t\t\t},\n\t\t),\n\t\tvscode.commands.registerCommand('jj-plus.openWorkingCopyChangesMulti', async () => {\n\t\t\tconst folder = vscode.workspace.workspaceFolders?.[0];\n\t\t\tif (!folder) {\n\t\t\t\tvoid vscode.window.showErrorMessage('No workspace folder');\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tconst { backend } = await args.resolveBackend({ workspacePath: folder.uri.fsPath });\n\t\t\tif (backend !== 'jj') {\n\t\t\t\tvoid vscode.window.showInformationMessage('Multi-file previous diff currently supports jj');\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tconst { stdout } = await args.runner.runJj({\n\t\t\t\tworkspacePath: folder.uri.fsPath,\n\t\t\t\targs: ['diff', '-r', '@-', '--name-only'],\n\t\t\t});\n\t\t\tconst files = stdout\n\t\t\t\t.split(/\\r?\\n/u)\n\t\t\t\t.map((line) => line.trim())\n\t\t\t\t.filter(Boolean);\n\t\t\tif (!files.length) {\n\t\t\t\tvoid vscode.window.showInformationMessage('No working-copy file changes vs @-');\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tconst resources = await Promise.all(\n\t\t\t\tfiles.slice(0, 40).map(async (relativePath) => {\n\t\t\t\t\tconst [original, modified] = await Promise.all([\n\t\t\t\t\t\targs.showFileAtRevision({\n\t\t\t\t\t\t\tworkspacePath: folder.uri.fsPath,\n\t\t\t\t\t\t\trevset: '@-',\n\t\t\t\t\t\t\tfilePath: relativePath,\n\t\t\t\t\t\t}),\n\t\t\t\t\t\targs.showFileAtRevision({\n\t\t\t\t\t\t\tworkspacePath: folder.uri.fsPath,\n\t\t\t\t\t\t\trevset: '@',\n\t\t\t\t\t\t\tfilePath: relativePath,\n\t\t\t\t\t\t}),\n\t\t\t\t\t]);\n\t\t\t\t\treturn {\n\t\t\t\t\t\toriginalUri: args.createInlineContentUri({\n\t\t\t\t\t\t\tworkspacePath: folder.uri.fsPath,\n\t\t\t\t\t\t\trevset: '@-',\n\t\t\t\t\t\t\trelativePath,\n\t\t\t\t\t\t\tcontent: original,\n\t\t\t\t\t\t}),\n\t\t\t\t\t\tmodifiedUri: args.createInlineContentUri({\n\t\t\t\t\t\t\tworkspacePath: folder.uri.fsPath,\n\t\t\t\t\t\t\trevset: '@',\n\t\t\t\t\t\t\trelativePath,\n\t\t\t\t\t\t\tcontent: modified,\n\t\t\t\t\t\t}),\n\t\t\t\t\t\tgoToFileUri: vscode.Uri.file(path.join(folder.uri.fsPath, relativePath)),\n\t\t\t\t\t};\n\t\t\t\t}),\n\t\t\t);\n\t\t\tawait vscode.commands.executeCommand('_workbench.openMultiDiffEditor', {\n\t\t\t\ttitle: 'Working copy vs @-',\n\t\t\t\tresources,\n\t\t\t});\n\t\t}),\n\t);\n\n\tdisposables.push(createStatusBarChangeChip(args));\n\tdisposables.push(createOpLogWatcher(args));\n\tdisposables.push(createConflictHelper());\n\tdisposables.push(createWhyCodeActions());\n\tdisposables.push(createScmChangedLineDecorations(args));\n\n\treturn vscode.Disposable.from(...disposables);\n}\n\nfunction createStatusBarChangeChip(args: { runner: Runner; resolveBackend: ResolveBackend }): vscode.Disposable {\n\tconst item = vscode.window.createStatusBarItem(vscode.StatusBarAlignment.Left, 100);\n\titem.command = OPEN_FILE_TIMELINE_COMMAND;\n\tlet timer: ReturnType<typeof setTimeout> | undefined;\n\n\tconst refresh = async () => {\n\t\tconst settings = readJjplusSettings();\n\t\tif (!settings.statusBarChangeChip) {\n\t\t\titem.hide();\n\t\t\treturn;\n\t\t}\n\t\tconst editor = vscode.window.activeTextEditor;\n\t\tif (!editor || editor.document.uri.scheme !== 'file') {\n\t\t\titem.hide();\n\t\t\treturn;\n\t\t}\n\t\tconst folder = vscode.workspace.getWorkspaceFolder(editor.document.uri);\n\t\tif (!folder) {\n\t\t\titem.hide();\n\t\t\treturn;\n\t\t}\n\t\ttry {\n\t\t\tconst { backend } = await args.resolveBackend({ workspacePath: folder.uri.fsPath });\n\t\t\tif (backend !== 'jj') {\n\t\t\t\titem.hide();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tconst { stdout } = await args.runner.runJj({\n\t\t\t\tworkspacePath: folder.uri.fsPath,\n\t\t\t\targs: [\n\t\t\t\t\t'log',\n\t\t\t\t\t'-r',\n\t\t\t\t\t'@',\n\t\t\t\t\t'--no-graph',\n\t\t\t\t\t'-T',\n\t\t\t\t\t'change_id.shortest(8) ++ \" \" ++ description.first_line() ++ \"\\\\n\"',\n\t\t\t\t\t'-n',\n\t\t\t\t\t'1',\n\t\t\t\t],\n\t\t\t});\n\t\t\tconst line = stdout.trim().split(/\\r?\\n/u)[0] || '';\n\t\t\tif (!line) {\n\t\t\t\titem.hide();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\titem.text = `$(git-commit) ${line.slice(0, 48)}`;\n\t\t\titem.tooltip = 'JJ Plus: working-copy change — click to open revision timeline';\n\t\t\titem.show();\n\t\t} catch {\n\t\t\titem.hide();\n\t\t}\n\t};\n\n\tconst schedule = () => {\n\t\tif (timer) {\n\t\t\tclearTimeout(timer);\n\t\t}\n\t\ttimer = setTimeout(() => {\n\t\t\tvoid refresh();\n\t\t}, 200);\n\t};\n\n\tschedule();\n\treturn vscode.Disposable.from(\n\t\titem,\n\t\tvscode.window.onDidChangeActiveTextEditor(schedule),\n\t\tonJjplusSettingsChange(schedule),\n\t\t{ dispose: () => timer && clearTimeout(timer) },\n\t);\n}\n\nfunction createOpLogWatcher(args: { runner: Runner; resolveBackend: ResolveBackend }): vscode.Disposable {\n\tlet lastOp = '';\n\tlet timer: ReturnType<typeof setInterval> | undefined;\n\n\tconst tick = async () => {\n\t\tif (!readJjplusSettings().opLogWatch) {\n\t\t\treturn;\n\t\t}\n\t\tconst folder = vscode.workspace.workspaceFolders?.[0];\n\t\tif (!folder) {\n\t\t\treturn;\n\t\t}\n\t\ttry {\n\t\t\tconst { backend } = await args.resolveBackend({ workspacePath: folder.uri.fsPath });\n\t\t\tif (backend !== 'jj') {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tconst { stdout } = await args.runner.runJj({\n\t\t\t\tworkspacePath: folder.uri.fsPath,\n\t\t\t\targs: ['op', 'log', '-n', '1', '--no-graph', '-T', 'self.id().short() ++ \" \" ++ description.first_line()'],\n\t\t\t});\n\t\t\tconst tip = stdout.trim();\n\t\t\tif (!tip) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (lastOp && tip !== lastOp) {\n\t\t\t\tvoid vscode.window.setStatusBarMessage(`JJ Plus: op log advanced — ${tip}`, 5000);\n\t\t\t\tvoid vscode.window.showInformationMessage(`jj repository changed: ${tip}`);\n\t\t\t}\n\t\t\tlastOp = tip;\n\t\t} catch {\n\t\t\t// ignore\n\t\t}\n\t};\n\n\tconst restart = () => {\n\t\tif (timer) {\n\t\t\tclearInterval(timer);\n\t\t\ttimer = undefined;\n\t\t}\n\t\tif (readJjplusSettings().opLogWatch) {\n\t\t\ttimer = setInterval(() => {\n\t\t\t\tvoid tick();\n\t\t\t}, 8000);\n\t\t\tvoid tick();\n\t\t}\n\t};\n\n\trestart();\n\treturn vscode.Disposable.from(onJjplusSettingsChange(restart), {\n\t\tdispose() {\n\t\t\tif (timer) {\n\t\t\t\tclearInterval(timer);\n\t\t\t}\n\t\t},\n\t});\n}\n\nfunction createConflictHelper(): vscode.Disposable {\n\tconst decoration = vscode.window.createTextEditorDecorationType({\n\t\toverviewRulerColor: new vscode.ThemeColor('editorOverviewRuler.errorForeground'),\n\t\toverviewRulerLane: vscode.OverviewRulerLane.Right,\n\t\tisWholeLine: true,\n\t\tbackgroundColor: new vscode.ThemeColor('diffEditor.diagonalFill'),\n\t});\n\n\tconst refresh = (editor: vscode.TextEditor | undefined) => {\n\t\tif (!readJjplusSettings().conflictHelper || !editor || editor.document.uri.scheme !== 'file') {\n\t\t\treturn;\n\t\t}\n\t\tconst ranges: vscode.DecorationOptions[] = [];\n\t\tfor (let line = 0; line < editor.document.lineCount; line += 1) {\n\t\t\tconst text = editor.document.lineAt(line).text;\n\t\t\tif (text.startsWith('<<<<<<<') || text.startsWith('>>>>>>>') || text.startsWith('%%%%%%%')) {\n\t\t\t\tranges.push({\n\t\t\t\t\trange: editor.document.lineAt(line).range,\n\t\t\t\t\thoverMessage: 'JJ Plus: conflict marker — use Jump to Next Conflict',\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\t\teditor.setDecorations(decoration, ranges);\n\t};\n\n\treturn vscode.Disposable.from(\n\t\tdecoration,\n\t\tvscode.commands.registerCommand('jj-plus.jumpNextConflict', async () => {\n\t\t\tconst editor = vscode.window.activeTextEditor;\n\t\t\tif (!editor) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tconst start = editor.selection.active.line + 1;\n\t\t\tfor (let line = start; line < editor.document.lineCount; line += 1) {\n\t\t\t\tconst text = editor.document.lineAt(line).text;\n\t\t\t\tif (text.startsWith('<<<<<<<') || text.startsWith('%%%%%%%')) {\n\t\t\t\t\tconst pos = new vscode.Position(line, 0);\n\t\t\t\t\teditor.selection = new vscode.Selection(pos, pos);\n\t\t\t\t\teditor.revealRange(editor.document.lineAt(line).range);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t\tvoid vscode.window.showInformationMessage('No further conflict markers');\n\t\t}),\n\t\tvscode.window.onDidChangeActiveTextEditor((editor) => refresh(editor)),\n\t\tvscode.workspace.onDidChangeTextDocument((event) => {\n\t\t\tif (event.document === vscode.window.activeTextEditor?.document) {\n\t\t\t\trefresh(vscode.window.activeTextEditor);\n\t\t\t}\n\t\t}),\n\t\tonJjplusSettingsChange(() => refresh(vscode.window.activeTextEditor)),\n\t\t{ dispose: () => refresh(undefined) },\n\t);\n}\n\nfunction createWhyCodeActions(): vscode.Disposable {\n\treturn vscode.languages.registerCodeActionsProvider(\n\t\t{ scheme: 'file' },\n\t\t{\n\t\t\tasync provideCodeActions(document, range) {\n\t\t\t\tif (!readJjplusSettings().codeActions) {\n\t\t\t\t\treturn [];\n\t\t\t\t}\n\t\t\t\tconst line = range.start.line + 1;\n\t\t\t\tconst action = new vscode.CodeAction(`JJ Plus: Why is line ${line} here?`, vscode.CodeActionKind.QuickFix);\n\t\t\t\taction.command = {\n\t\t\t\t\tcommand: OPEN_TIMELINE_AT_LINE_COMMAND,\n\t\t\t\t\ttitle: 'Open timeline at line',\n\t\t\t\t\targuments: [{ absolutePath: document.uri.fsPath, line }],\n\t\t\t\t};\n\t\t\t\treturn [action];\n\t\t\t},\n\t\t},\n\t\t{ providedCodeActionKinds: [vscode.CodeActionKind.QuickFix] },\n\t);\n}\n\nfunction createScmChangedLineDecorations(args: {\n\trunner: Runner;\n\tresolveBackend: ResolveBackend;\n\tshowFileAtRevision: (args: { workspacePath: string; revset: string; filePath: string }) => Promise<string>;\n}): vscode.Disposable {\n\tconst decoration = vscode.window.createTextEditorDecorationType({\n\t\toverviewRulerColor: new vscode.ThemeColor('editorOverviewRuler.modifiedForeground'),\n\t\toverviewRulerLane: vscode.OverviewRulerLane.Left,\n\t\tisWholeLine: true,\n\t\tbackgroundColor: new vscode.ThemeColor('diffEditor.insertedLineBackground'),\n\t});\n\tlet timer: ReturnType<typeof setTimeout> | undefined;\n\n\tconst refresh = async (editor: vscode.TextEditor | undefined) => {\n\t\tif (!readJjplusSettings().scmChangedLines || !editor || editor.document.uri.scheme !== 'file') {\n\t\t\teditor?.setDecorations(decoration, []);\n\t\t\treturn;\n\t\t}\n\t\tconst folder = vscode.workspace.getWorkspaceFolder(editor.document.uri);\n\t\tif (!folder) {\n\t\t\treturn;\n\t\t}\n\t\ttry {\n\t\t\tconst { backend } = await args.resolveBackend({ workspacePath: folder.uri.fsPath });\n\t\t\tif (backend !== 'jj') {\n\t\t\t\teditor.setDecorations(decoration, []);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tconst relativePath = path.relative(folder.uri.fsPath, editor.document.uri.fsPath).replace(/\\\\/g, '/');\n\t\t\tconst before = await args.showFileAtRevision({\n\t\t\t\tworkspacePath: folder.uri.fsPath,\n\t\t\t\trevset: '@-',\n\t\t\t\tfilePath: relativePath,\n\t\t\t});\n\t\t\tconst beforeLines = before.split(/\\r?\\n/u);\n\t\t\tconst afterLines = editor.document.getText().split(/\\r?\\n/u);\n\t\t\tconst ranges: vscode.Range[] = [];\n\t\t\tconst max = Math.max(beforeLines.length, afterLines.length);\n\t\t\tfor (let index = 0; index < max && index < editor.document.lineCount; index += 1) {\n\t\t\t\tif ((beforeLines[index] ?? '') !== (afterLines[index] ?? '')) {\n\t\t\t\t\tranges.push(editor.document.lineAt(index).range);\n\t\t\t\t}\n\t\t\t}\n\t\t\teditor.setDecorations(\n\t\t\t\tdecoration,\n\t\t\t\tranges.map((range) => ({ range, hoverMessage: 'Changed vs @-' })),\n\t\t\t);\n\t\t} catch {\n\t\t\teditor.setDecorations(decoration, []);\n\t\t}\n\t};\n\n\tconst schedule = () => {\n\t\tif (timer) {\n\t\t\tclearTimeout(timer);\n\t\t}\n\t\ttimer = setTimeout(() => {\n\t\t\tvoid refresh(vscode.window.activeTextEditor);\n\t\t}, 250);\n\t};\n\n\tschedule();\n\treturn vscode.Disposable.from(\n\t\tdecoration,\n\t\tvscode.window.onDidChangeActiveTextEditor(schedule),\n\t\tvscode.workspace.onDidChangeTextDocument((event) => {\n\t\t\tif (event.document === vscode.window.activeTextEditor?.document) {\n\t\t\t\tschedule();\n\t\t\t}\n\t\t}),\n\t\tonJjplusSettingsChange(schedule),\n\t\t{ dispose: () => timer && clearTimeout(timer) },\n\t);\n}\n\nasync function listJjBookmarks(runner: Runner, workspacePath: string): Promise<string[]> {\n\tconst { stdout } = await runner.runJj({\n\t\tworkspacePath,\n\t\targs: ['bookmark', 'list', '-T', 'name ++ \"\\\\n\"'],\n\t});\n\tconst names = stdout\n\t\t.split(/\\r?\\n/u)\n\t\t.map((line) => line.trim())\n\t\t.filter(Boolean);\n\treturn mergeCompareQuickPickValues(names);\n}\n\nasync function listGitBranches(runner: Runner, workspacePath: string): Promise<string[]> {\n\tconst { stdout } = await runner.runGit({\n\t\tworkspacePath,\n\t\targs: ['for-each-ref', '--format=%(refname:short)', 'refs/heads', 'refs/remotes'],\n\t});\n\treturn stdout\n\t\t.split(/\\r?\\n/u)\n\t\t.map((line) => line.trim())\n\t\t.filter(Boolean);\n}\n"],"mappings":";;;;;;;;;;;;;;AAkBA,SAAgB,4BAA4B,MAatB;CACrB,MAAM,cAAmC,CAAC;CAE1C,YAAY,KACX,OAAO,SAAS,gBAAgB,2BAA2B,YAAY;EACtE,MAAM,SAAS,OAAO,UAAU,iBAAiBA,iBAAAA,gBAAgB;EACjE,MAAM,UAAU,OAAO,IAAa,qBAAqB,KAAK;EAC9D,MAAM,OAAO,OAAO,qBAAqB,CAAC,SAAS,OAAO,oBAAoB,MAAM;EACpF,OAAY,OAAO,oBAAoB,uBAAuB,UAAU,QAAQ,QAAQ,IAAI;CAC7F,CAAC,GACD,OAAO,SAAS,gBAAgB,+BAA+B,YAAY;EAC1E,MAAM,eAAeC,0BAAAA,uBAAuB;EAC5C,IAAI,CAAC,cAAc;GAClB,OAAY,OAAO,iBAAiB,6BAA6B;GACjE;EACD;EACA,MAAM,SAAS,OAAO,UAAU,mBAAmB,OAAO,IAAI,KAAK,YAAY,CAAC;EAChF,IAAI,CAAC,QAAQ;GACZ,OAAY,OAAO,iBAAiB,wCAAwC;GAC5E;EACD;EACA,MAAM,EAAE,YAAY,MAAM,KAAK,eAAe,EAAE,eAAe,OAAO,IAAI,OAAO,CAAC;EAClF,MAAM,QACL,YAAY,OACT,MAAM,gBAAgB,KAAK,QAAQ,OAAO,IAAI,MAAM,IACpD,MAAM,gBAAgB,KAAK,QAAQ,OAAO,IAAI,MAAM;EACxD,MAAM,SAAS,MAAM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