monaco-editor 0.54.0 → 0.55.0-dev-20251007

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 (507) hide show
  1. package/dev/vs/assets/{css.worker-UBouhlx6.js → css.worker-BPWFUJr8.js} +21 -13
  2. package/dev/vs/assets/{editor.worker-Dt-rrJKL.js → editor.worker-BNmK7__C.js} +21 -13
  3. package/dev/vs/assets/{html.worker-z9P_0-Yg.js → html.worker-DArI7VaB.js} +21 -13
  4. package/dev/vs/assets/{json.worker-DL8PoUrj.js → json.worker-CWecjvZJ.js} +21 -13
  5. package/dev/vs/assets/{ts.worker-CcnreaRY.js → ts.worker-OSpMT55a.js} +21 -13
  6. package/dev/vs/basic-languages/monaco.contribution.js +18 -18
  7. package/dev/vs/{cssMode-YNsTpAl9.js → cssMode-iRwIbB8J.js} +1 -1
  8. package/dev/vs/editor/editor.main.css +18 -14
  9. package/dev/vs/editor/editor.main.js +6 -6
  10. package/dev/vs/{editor.api-BhD7pWdi.js → editor.api-BgcxwOJR.js} +619 -331
  11. package/dev/vs/{freemarker2-Ci5s7p-k.js → freemarker2-BcA-FoEq.js} +1 -1
  12. package/dev/vs/{handlebars-Cpd6mzVL.js → handlebars-CFCe3CTT.js} +1 -1
  13. package/dev/vs/{html-L3fuhF-c.js → html-C2k_b3vV.js} +1 -1
  14. package/dev/vs/{htmlMode-BL74tky3.js → htmlMode-B6H3nvmZ.js} +1 -1
  15. package/dev/vs/{javascript-DtYAOqDf.js → javascript-Ci3a-NjL.js} +1 -1
  16. package/dev/vs/{jsonMode-KHMzkiG2.js → jsonMode-PBs-6YJq.js} +1 -1
  17. package/dev/vs/language/css/monaco.contribution.js +2 -2
  18. package/dev/vs/language/html/monaco.contribution.js +2 -2
  19. package/dev/vs/language/json/monaco.contribution.js +2 -2
  20. package/dev/vs/language/typescript/monaco.contribution.js +2 -2
  21. package/dev/vs/{liquid-CDz0dGHZ.js → liquid-xiAvFKY7.js} +1 -1
  22. package/dev/vs/{lspLanguageFeatures-C8J-56s2.js → lspLanguageFeatures-Bn27dcIU.js} +1 -1
  23. package/dev/vs/{mdx-CRukMuk2.js → mdx-DI_S5KNw.js} +1 -1
  24. package/dev/vs/nls.messages.de.js +1 -1
  25. package/dev/vs/nls.messages.es.js +1 -1
  26. package/dev/vs/nls.messages.fr.js +1 -1
  27. package/dev/vs/nls.messages.it.js +1 -1
  28. package/dev/vs/nls.messages.ja.js +1 -1
  29. package/dev/vs/nls.messages.ko.js +1 -1
  30. package/dev/vs/nls.messages.ru.js +1 -1
  31. package/dev/vs/nls.messages.zh-cn.js +1 -1
  32. package/dev/vs/nls.messages.zh-tw.js +1 -1
  33. package/dev/vs/{python-CSlobbnO.js → python-Dygfp6S4.js} +1 -1
  34. package/dev/vs/{razor-CcKFJPeA.js → razor-DRuwtGaR.js} +1 -1
  35. package/dev/vs/{tsMode-DOj38qML.js → tsMode-Blwumg5f.js} +1 -1
  36. package/dev/vs/{typescript-qRP7tyf4.js → typescript-Bn0Trwe9.js} +1 -1
  37. package/dev/vs/{workers-CJWv4CcA.js → workers-Blx_hD2K.js} +1 -1
  38. package/dev/vs/{xml-CSLddLaW.js → xml-BfLQO-V6.js} +1 -1
  39. package/dev/vs/{yaml-TB97xlnI.js → yaml-DdSHCspc.js} +1 -1
  40. package/esm/nls.messages.de.js +1 -1
  41. package/esm/nls.messages.es.js +1 -1
  42. package/esm/nls.messages.fr.js +1 -1
  43. package/esm/nls.messages.it.js +1 -1
  44. package/esm/nls.messages.ja.js +1 -1
  45. package/esm/nls.messages.ko.js +1 -1
  46. package/esm/nls.messages.ru.js +1 -1
  47. package/esm/nls.messages.zh-cn.js +1 -1
  48. package/esm/nls.messages.zh-tw.js +1 -1
  49. package/esm/vs/base/browser/canIUse.js +1 -0
  50. package/esm/vs/base/browser/canIUse.js.map +1 -1
  51. package/esm/vs/base/browser/dom.js +9 -0
  52. package/esm/vs/base/browser/dom.js.map +1 -1
  53. package/esm/vs/base/browser/fastDomNode.js.map +1 -1
  54. package/esm/vs/base/browser/mouseEvent.js +3 -0
  55. package/esm/vs/base/browser/mouseEvent.js.map +1 -1
  56. package/esm/vs/base/browser/trustedTypes.js +2 -0
  57. package/esm/vs/base/browser/trustedTypes.js.map +1 -1
  58. package/esm/vs/base/browser/ui/list/listWidget.js +5 -5
  59. package/esm/vs/base/browser/ui/list/listWidget.js.map +1 -1
  60. package/esm/vs/base/browser/ui/sash/sash.css +1 -1
  61. package/esm/vs/base/browser/ui/sash/sash.js +4 -0
  62. package/esm/vs/base/browser/ui/sash/sash.js.map +1 -1
  63. package/esm/vs/base/browser/ui/scrollbar/scrollableElement.js +1 -1
  64. package/esm/vs/base/browser/ui/scrollbar/scrollableElement.js.map +1 -1
  65. package/esm/vs/base/browser/ui/table/table.css +2 -2
  66. package/esm/vs/base/browser/ui/tree/abstractTree.js +7 -3
  67. package/esm/vs/base/browser/ui/tree/abstractTree.js.map +1 -1
  68. package/esm/vs/base/browser/ui/tree/asyncDataTree.js +4 -0
  69. package/esm/vs/base/browser/ui/tree/asyncDataTree.js.map +1 -1
  70. package/esm/vs/base/browser/ui/tree/indexTreeModel.js +1 -0
  71. package/esm/vs/base/browser/ui/tree/indexTreeModel.js.map +1 -1
  72. package/esm/vs/base/browser/ui/tree/media/tree.css +2 -2
  73. package/esm/vs/base/browser/webWorkerFactory.js +3 -0
  74. package/esm/vs/base/browser/webWorkerFactory.js.map +1 -1
  75. package/esm/vs/base/common/buffer.js.map +1 -1
  76. package/esm/vs/base/common/decorators.js +1 -0
  77. package/esm/vs/base/common/decorators.js.map +1 -1
  78. package/esm/vs/base/common/errors.js +1 -0
  79. package/esm/vs/base/common/errors.js.map +1 -1
  80. package/esm/vs/base/common/glob.js +1 -1
  81. package/esm/vs/base/common/glob.js.map +1 -1
  82. package/esm/vs/base/common/hash.js.map +1 -1
  83. package/esm/vs/base/common/hotReload.js +2 -0
  84. package/esm/vs/base/common/hotReload.js.map +1 -1
  85. package/esm/vs/base/common/hotReloadHelpers.js +1 -0
  86. package/esm/vs/base/common/hotReloadHelpers.js.map +1 -1
  87. package/esm/vs/base/common/lifecycle.js +19 -0
  88. package/esm/vs/base/common/lifecycle.js.map +1 -1
  89. package/esm/vs/base/common/map.js.map +1 -1
  90. package/esm/vs/base/common/marshalling.js +4 -0
  91. package/esm/vs/base/common/marshalling.js.map +1 -1
  92. package/esm/vs/base/common/network.js +1 -0
  93. package/esm/vs/base/common/network.js.map +1 -1
  94. package/esm/vs/base/common/objects.js +1 -0
  95. package/esm/vs/base/common/objects.js.map +1 -1
  96. package/esm/vs/base/common/observableInternal/changeTracker.js +4 -0
  97. package/esm/vs/base/common/observableInternal/changeTracker.js.map +1 -1
  98. package/esm/vs/base/common/observableInternal/debugLocation.js +1 -0
  99. package/esm/vs/base/common/observableInternal/debugLocation.js.map +1 -1
  100. package/esm/vs/base/common/observableInternal/debugName.js +1 -0
  101. package/esm/vs/base/common/observableInternal/debugName.js.map +1 -1
  102. package/esm/vs/base/common/observableInternal/logging/consoleObservableLogger.js +1 -0
  103. package/esm/vs/base/common/observableInternal/logging/consoleObservableLogger.js.map +1 -1
  104. package/esm/vs/base/common/observableInternal/logging/debugger/debuggerRpc.js +1 -0
  105. package/esm/vs/base/common/observableInternal/logging/debugger/debuggerRpc.js.map +1 -1
  106. package/esm/vs/base/common/observableInternal/logging/debugger/rpc.js +1 -0
  107. package/esm/vs/base/common/observableInternal/logging/debugger/rpc.js.map +1 -1
  108. package/esm/vs/base/common/observableInternal/observables/derived.js +7 -1
  109. package/esm/vs/base/common/observableInternal/observables/derived.js.map +1 -1
  110. package/esm/vs/base/common/observableInternal/observables/derivedImpl.js +2 -0
  111. package/esm/vs/base/common/observableInternal/observables/derivedImpl.js.map +1 -1
  112. package/esm/vs/base/common/observableInternal/observables/observableFromEvent.js +1 -0
  113. package/esm/vs/base/common/observableInternal/observables/observableFromEvent.js.map +1 -1
  114. package/esm/vs/base/common/observableInternal/reactions/autorunImpl.js +1 -0
  115. package/esm/vs/base/common/observableInternal/reactions/autorunImpl.js.map +1 -1
  116. package/esm/vs/base/common/process.js +1 -0
  117. package/esm/vs/base/common/process.js.map +1 -1
  118. package/esm/vs/base/common/product.js.map +1 -1
  119. package/esm/vs/base/common/types.js +2 -0
  120. package/esm/vs/base/common/types.js.map +1 -1
  121. package/esm/vs/base/common/worker/webWorker.js +26 -14
  122. package/esm/vs/base/common/worker/webWorker.js.map +1 -1
  123. package/esm/vs/base/parts/sandbox/common/sandboxTypes.js +2 -0
  124. package/esm/vs/base/parts/sandbox/common/sandboxTypes.js.map +1 -0
  125. package/esm/vs/basic-languages/_.contribution.js +1 -1
  126. package/esm/vs/basic-languages/abap/abap.contribution.js +1 -1
  127. package/esm/vs/basic-languages/abap/abap.js +1 -1
  128. package/esm/vs/basic-languages/apex/apex.contribution.js +1 -1
  129. package/esm/vs/basic-languages/apex/apex.js +1 -1
  130. package/esm/vs/basic-languages/azcli/azcli.contribution.js +1 -1
  131. package/esm/vs/basic-languages/azcli/azcli.js +1 -1
  132. package/esm/vs/basic-languages/bat/bat.contribution.js +1 -1
  133. package/esm/vs/basic-languages/bat/bat.js +1 -1
  134. package/esm/vs/basic-languages/bicep/bicep.contribution.js +1 -1
  135. package/esm/vs/basic-languages/bicep/bicep.js +1 -1
  136. package/esm/vs/basic-languages/cameligo/cameligo.contribution.js +1 -1
  137. package/esm/vs/basic-languages/cameligo/cameligo.js +1 -1
  138. package/esm/vs/basic-languages/clojure/clojure.contribution.js +1 -1
  139. package/esm/vs/basic-languages/clojure/clojure.js +1 -1
  140. package/esm/vs/basic-languages/coffee/coffee.contribution.js +1 -1
  141. package/esm/vs/basic-languages/coffee/coffee.js +1 -1
  142. package/esm/vs/basic-languages/cpp/cpp.contribution.js +1 -1
  143. package/esm/vs/basic-languages/cpp/cpp.js +1 -1
  144. package/esm/vs/basic-languages/csharp/csharp.contribution.js +1 -1
  145. package/esm/vs/basic-languages/csharp/csharp.js +1 -1
  146. package/esm/vs/basic-languages/csp/csp.contribution.js +1 -1
  147. package/esm/vs/basic-languages/csp/csp.js +1 -1
  148. package/esm/vs/basic-languages/css/css.contribution.js +1 -1
  149. package/esm/vs/basic-languages/css/css.js +1 -1
  150. package/esm/vs/basic-languages/cypher/cypher.contribution.js +1 -1
  151. package/esm/vs/basic-languages/cypher/cypher.js +1 -1
  152. package/esm/vs/basic-languages/dart/dart.contribution.js +1 -1
  153. package/esm/vs/basic-languages/dart/dart.js +1 -1
  154. package/esm/vs/basic-languages/dockerfile/dockerfile.contribution.js +1 -1
  155. package/esm/vs/basic-languages/dockerfile/dockerfile.js +1 -1
  156. package/esm/vs/basic-languages/ecl/ecl.contribution.js +1 -1
  157. package/esm/vs/basic-languages/ecl/ecl.js +1 -1
  158. package/esm/vs/basic-languages/elixir/elixir.contribution.js +1 -1
  159. package/esm/vs/basic-languages/elixir/elixir.js +1 -1
  160. package/esm/vs/basic-languages/flow9/flow9.contribution.js +1 -1
  161. package/esm/vs/basic-languages/flow9/flow9.js +1 -1
  162. package/esm/vs/basic-languages/freemarker2/freemarker2.contribution.js +1 -1
  163. package/esm/vs/basic-languages/freemarker2/freemarker2.js +1 -1
  164. package/esm/vs/basic-languages/fsharp/fsharp.contribution.js +1 -1
  165. package/esm/vs/basic-languages/fsharp/fsharp.js +1 -1
  166. package/esm/vs/basic-languages/go/go.contribution.js +1 -1
  167. package/esm/vs/basic-languages/go/go.js +1 -1
  168. package/esm/vs/basic-languages/graphql/graphql.contribution.js +1 -1
  169. package/esm/vs/basic-languages/graphql/graphql.js +1 -1
  170. package/esm/vs/basic-languages/handlebars/handlebars.contribution.js +1 -1
  171. package/esm/vs/basic-languages/handlebars/handlebars.js +1 -1
  172. package/esm/vs/basic-languages/hcl/hcl.contribution.js +1 -1
  173. package/esm/vs/basic-languages/hcl/hcl.js +1 -1
  174. package/esm/vs/basic-languages/html/html.contribution.js +1 -1
  175. package/esm/vs/basic-languages/html/html.js +1 -1
  176. package/esm/vs/basic-languages/ini/ini.contribution.js +1 -1
  177. package/esm/vs/basic-languages/ini/ini.js +1 -1
  178. package/esm/vs/basic-languages/java/java.contribution.js +1 -1
  179. package/esm/vs/basic-languages/java/java.js +1 -1
  180. package/esm/vs/basic-languages/javascript/javascript.contribution.js +1 -1
  181. package/esm/vs/basic-languages/javascript/javascript.js +1 -1
  182. package/esm/vs/basic-languages/julia/julia.contribution.js +1 -1
  183. package/esm/vs/basic-languages/julia/julia.js +1 -1
  184. package/esm/vs/basic-languages/kotlin/kotlin.contribution.js +1 -1
  185. package/esm/vs/basic-languages/kotlin/kotlin.js +1 -1
  186. package/esm/vs/basic-languages/less/less.contribution.js +1 -1
  187. package/esm/vs/basic-languages/less/less.js +1 -1
  188. package/esm/vs/basic-languages/lexon/lexon.contribution.js +1 -1
  189. package/esm/vs/basic-languages/lexon/lexon.js +1 -1
  190. package/esm/vs/basic-languages/liquid/liquid.contribution.js +1 -1
  191. package/esm/vs/basic-languages/liquid/liquid.js +1 -1
  192. package/esm/vs/basic-languages/lua/lua.contribution.js +1 -1
  193. package/esm/vs/basic-languages/lua/lua.js +1 -1
  194. package/esm/vs/basic-languages/m3/m3.contribution.js +1 -1
  195. package/esm/vs/basic-languages/m3/m3.js +1 -1
  196. package/esm/vs/basic-languages/markdown/markdown.contribution.js +1 -1
  197. package/esm/vs/basic-languages/markdown/markdown.js +1 -1
  198. package/esm/vs/basic-languages/mdx/mdx.contribution.js +1 -1
  199. package/esm/vs/basic-languages/mdx/mdx.js +1 -1
  200. package/esm/vs/basic-languages/mips/mips.contribution.js +1 -1
  201. package/esm/vs/basic-languages/mips/mips.js +1 -1
  202. package/esm/vs/basic-languages/monaco.contribution.js +1 -1
  203. package/esm/vs/basic-languages/msdax/msdax.contribution.js +1 -1
  204. package/esm/vs/basic-languages/msdax/msdax.js +1 -1
  205. package/esm/vs/basic-languages/mysql/mysql.contribution.js +1 -1
  206. package/esm/vs/basic-languages/mysql/mysql.js +1 -1
  207. package/esm/vs/basic-languages/objective-c/objective-c.contribution.js +1 -1
  208. package/esm/vs/basic-languages/objective-c/objective-c.js +1 -1
  209. package/esm/vs/basic-languages/pascal/pascal.contribution.js +1 -1
  210. package/esm/vs/basic-languages/pascal/pascal.js +1 -1
  211. package/esm/vs/basic-languages/pascaligo/pascaligo.contribution.js +1 -1
  212. package/esm/vs/basic-languages/pascaligo/pascaligo.js +1 -1
  213. package/esm/vs/basic-languages/perl/perl.contribution.js +1 -1
  214. package/esm/vs/basic-languages/perl/perl.js +1 -1
  215. package/esm/vs/basic-languages/pgsql/pgsql.contribution.js +1 -1
  216. package/esm/vs/basic-languages/pgsql/pgsql.js +1 -1
  217. package/esm/vs/basic-languages/php/php.contribution.js +1 -1
  218. package/esm/vs/basic-languages/php/php.js +1 -1
  219. package/esm/vs/basic-languages/pla/pla.contribution.js +1 -1
  220. package/esm/vs/basic-languages/pla/pla.js +1 -1
  221. package/esm/vs/basic-languages/postiats/postiats.contribution.js +1 -1
  222. package/esm/vs/basic-languages/postiats/postiats.js +1 -1
  223. package/esm/vs/basic-languages/powerquery/powerquery.contribution.js +1 -1
  224. package/esm/vs/basic-languages/powerquery/powerquery.js +1 -1
  225. package/esm/vs/basic-languages/powershell/powershell.contribution.js +1 -1
  226. package/esm/vs/basic-languages/powershell/powershell.js +1 -1
  227. package/esm/vs/basic-languages/protobuf/protobuf.contribution.js +1 -1
  228. package/esm/vs/basic-languages/protobuf/protobuf.js +1 -1
  229. package/esm/vs/basic-languages/pug/pug.contribution.js +1 -1
  230. package/esm/vs/basic-languages/pug/pug.js +1 -1
  231. package/esm/vs/basic-languages/python/python.contribution.js +1 -1
  232. package/esm/vs/basic-languages/python/python.js +1 -1
  233. package/esm/vs/basic-languages/qsharp/qsharp.contribution.js +1 -1
  234. package/esm/vs/basic-languages/qsharp/qsharp.js +1 -1
  235. package/esm/vs/basic-languages/r/r.contribution.js +1 -1
  236. package/esm/vs/basic-languages/r/r.js +1 -1
  237. package/esm/vs/basic-languages/razor/razor.contribution.js +1 -1
  238. package/esm/vs/basic-languages/razor/razor.js +1 -1
  239. package/esm/vs/basic-languages/redis/redis.contribution.js +1 -1
  240. package/esm/vs/basic-languages/redis/redis.js +1 -1
  241. package/esm/vs/basic-languages/redshift/redshift.contribution.js +1 -1
  242. package/esm/vs/basic-languages/redshift/redshift.js +1 -1
  243. package/esm/vs/basic-languages/restructuredtext/restructuredtext.contribution.js +1 -1
  244. package/esm/vs/basic-languages/restructuredtext/restructuredtext.js +1 -1
  245. package/esm/vs/basic-languages/ruby/ruby.contribution.js +1 -1
  246. package/esm/vs/basic-languages/ruby/ruby.js +1 -1
  247. package/esm/vs/basic-languages/rust/rust.contribution.js +1 -1
  248. package/esm/vs/basic-languages/rust/rust.js +1 -1
  249. package/esm/vs/basic-languages/sb/sb.contribution.js +1 -1
  250. package/esm/vs/basic-languages/sb/sb.js +1 -1
  251. package/esm/vs/basic-languages/scala/scala.contribution.js +1 -1
  252. package/esm/vs/basic-languages/scala/scala.js +1 -1
  253. package/esm/vs/basic-languages/scheme/scheme.contribution.js +1 -1
  254. package/esm/vs/basic-languages/scheme/scheme.js +1 -1
  255. package/esm/vs/basic-languages/scss/scss.contribution.js +1 -1
  256. package/esm/vs/basic-languages/scss/scss.js +1 -1
  257. package/esm/vs/basic-languages/shell/shell.contribution.js +1 -1
  258. package/esm/vs/basic-languages/shell/shell.js +1 -1
  259. package/esm/vs/basic-languages/solidity/solidity.contribution.js +1 -1
  260. package/esm/vs/basic-languages/solidity/solidity.js +1 -1
  261. package/esm/vs/basic-languages/sophia/sophia.contribution.js +1 -1
  262. package/esm/vs/basic-languages/sophia/sophia.js +1 -1
  263. package/esm/vs/basic-languages/sparql/sparql.contribution.js +1 -1
  264. package/esm/vs/basic-languages/sparql/sparql.js +1 -1
  265. package/esm/vs/basic-languages/sql/sql.contribution.js +1 -1
  266. package/esm/vs/basic-languages/sql/sql.js +1 -1
  267. package/esm/vs/basic-languages/st/st.contribution.js +1 -1
  268. package/esm/vs/basic-languages/st/st.js +1 -1
  269. package/esm/vs/basic-languages/swift/swift.contribution.js +1 -1
  270. package/esm/vs/basic-languages/swift/swift.js +1 -1
  271. package/esm/vs/basic-languages/systemverilog/systemverilog.contribution.js +1 -1
  272. package/esm/vs/basic-languages/systemverilog/systemverilog.js +1 -1
  273. package/esm/vs/basic-languages/tcl/tcl.contribution.js +1 -1
  274. package/esm/vs/basic-languages/tcl/tcl.js +1 -1
  275. package/esm/vs/basic-languages/twig/twig.contribution.js +1 -1
  276. package/esm/vs/basic-languages/twig/twig.js +1 -1
  277. package/esm/vs/basic-languages/typescript/typescript.contribution.js +1 -1
  278. package/esm/vs/basic-languages/typescript/typescript.js +1 -1
  279. package/esm/vs/basic-languages/typespec/typespec.contribution.js +1 -1
  280. package/esm/vs/basic-languages/typespec/typespec.js +1 -1
  281. package/esm/vs/basic-languages/vb/vb.contribution.js +1 -1
  282. package/esm/vs/basic-languages/vb/vb.js +1 -1
  283. package/esm/vs/basic-languages/wgsl/wgsl.contribution.js +1 -1
  284. package/esm/vs/basic-languages/wgsl/wgsl.js +1 -1
  285. package/esm/vs/basic-languages/xml/xml.contribution.js +1 -1
  286. package/esm/vs/basic-languages/xml/xml.js +1 -1
  287. package/esm/vs/basic-languages/yaml/yaml.contribution.js +1 -1
  288. package/esm/vs/basic-languages/yaml/yaml.js +1 -1
  289. package/esm/vs/editor/browser/config/editorConfiguration.js +3 -2
  290. package/esm/vs/editor/browser/config/editorConfiguration.js.map +1 -1
  291. package/esm/vs/editor/browser/config/migrateOptions.js +1 -1
  292. package/esm/vs/editor/browser/config/migrateOptions.js.map +1 -1
  293. package/esm/vs/editor/browser/controller/editContext/native/editContextFactory.js.map +1 -1
  294. package/esm/vs/editor/browser/controller/editContext/native/nativeEditContextUtils.js +2 -0
  295. package/esm/vs/editor/browser/controller/editContext/native/nativeEditContextUtils.js.map +1 -1
  296. package/esm/vs/editor/browser/controller/mouseHandler.js +2 -1
  297. package/esm/vs/editor/browser/controller/mouseHandler.js.map +1 -1
  298. package/esm/vs/editor/browser/controller/mouseTarget.js +7 -0
  299. package/esm/vs/editor/browser/controller/mouseTarget.js.map +1 -1
  300. package/esm/vs/editor/browser/controller/pointerHandler.js.map +1 -1
  301. package/esm/vs/editor/browser/coreCommands.js.map +1 -1
  302. package/esm/vs/editor/browser/editorBrowser.js.map +1 -1
  303. package/esm/vs/editor/browser/editorDom.js.map +1 -1
  304. package/esm/vs/editor/browser/editorExtensions.js.map +1 -1
  305. package/esm/vs/editor/browser/gpu/gpuUtils.js +1 -0
  306. package/esm/vs/editor/browser/gpu/gpuUtils.js.map +1 -1
  307. package/esm/vs/editor/browser/gpu/viewGpuContext.js +1 -0
  308. package/esm/vs/editor/browser/gpu/viewGpuContext.js.map +1 -1
  309. package/esm/vs/editor/browser/services/abstractCodeEditorService.js.map +1 -1
  310. package/esm/vs/editor/browser/services/bulkEditService.js.map +1 -1
  311. package/esm/vs/editor/browser/services/codeEditorService.js.map +1 -1
  312. package/esm/vs/editor/browser/services/editorWorkerService.js.map +1 -1
  313. package/esm/vs/editor/browser/services/hoverService/hover.css +2 -0
  314. package/esm/vs/editor/browser/services/hoverService/hoverService.js.map +1 -1
  315. package/esm/vs/editor/browser/services/hoverService/hoverWidget.js +1 -1
  316. package/esm/vs/editor/browser/services/hoverService/hoverWidget.js.map +1 -1
  317. package/esm/vs/editor/browser/services/inlineCompletionsService.js +8 -8
  318. package/esm/vs/editor/browser/services/inlineCompletionsService.js.map +1 -1
  319. package/esm/vs/editor/browser/services/openerService.js.map +1 -1
  320. package/esm/vs/editor/browser/view/viewLayer.js +1 -1
  321. package/esm/vs/editor/browser/view/viewLayer.js.map +1 -1
  322. package/esm/vs/editor/browser/view.js.map +1 -1
  323. package/esm/vs/editor/browser/viewParts/contentWidgets/contentWidgets.js +1 -0
  324. package/esm/vs/editor/browser/viewParts/contentWidgets/contentWidgets.js.map +1 -1
  325. package/esm/vs/editor/browser/viewParts/viewZones/viewZones.js +1 -0
  326. package/esm/vs/editor/browser/viewParts/viewZones/viewZones.js.map +1 -1
  327. package/esm/vs/editor/browser/widget/codeEditor/codeEditorContributions.js.map +1 -1
  328. package/esm/vs/editor/browser/widget/codeEditor/codeEditorWidget.js +4 -1
  329. package/esm/vs/editor/browser/widget/codeEditor/codeEditorWidget.js.map +1 -1
  330. package/esm/vs/editor/browser/widget/diffEditor/components/diffEditorEditors.js +1 -0
  331. package/esm/vs/editor/browser/widget/diffEditor/components/diffEditorEditors.js.map +1 -1
  332. package/esm/vs/editor/browser/widget/diffEditor/delegatingEditorImpl.js.map +1 -1
  333. package/esm/vs/editor/browser/widget/diffEditor/diffEditorOptions.js +1 -0
  334. package/esm/vs/editor/browser/widget/diffEditor/diffEditorOptions.js.map +1 -1
  335. package/esm/vs/editor/browser/widget/diffEditor/diffEditorWidget.js +1 -0
  336. package/esm/vs/editor/browser/widget/diffEditor/diffEditorWidget.js.map +1 -1
  337. package/esm/vs/editor/browser/widget/diffEditor/utils.js +2 -0
  338. package/esm/vs/editor/browser/widget/diffEditor/utils.js.map +1 -1
  339. package/esm/vs/editor/browser/widget/multiDiffEditor/diffEditorItemTemplate.js +2 -0
  340. package/esm/vs/editor/browser/widget/multiDiffEditor/diffEditorItemTemplate.js.map +1 -1
  341. package/esm/vs/editor/common/config/editorOptions.js +122 -68
  342. package/esm/vs/editor/common/config/editorOptions.js.map +1 -1
  343. package/esm/vs/editor/common/config/fontInfo.js +32 -16
  344. package/esm/vs/editor/common/config/fontInfo.js.map +1 -1
  345. package/esm/vs/editor/common/config/fontInfoFromSettings.js +16 -0
  346. package/esm/vs/editor/common/config/fontInfoFromSettings.js.map +1 -0
  347. package/esm/vs/editor/common/core/edits/edit.js +1 -0
  348. package/esm/vs/editor/common/core/edits/edit.js.map +1 -1
  349. package/esm/vs/editor/common/core/edits/stringEdit.js +2 -0
  350. package/esm/vs/editor/common/core/edits/stringEdit.js.map +1 -1
  351. package/esm/vs/editor/common/core/position.js +1 -1
  352. package/esm/vs/editor/common/core/position.js.map +1 -1
  353. package/esm/vs/editor/common/core/range.js +1 -1
  354. package/esm/vs/editor/common/core/range.js.map +1 -1
  355. package/esm/vs/editor/common/core/selection.js +1 -1
  356. package/esm/vs/editor/common/core/selection.js.map +1 -1
  357. package/esm/vs/editor/common/cursor/cursorMoveCommands.js.map +1 -1
  358. package/esm/vs/editor/common/editorCommon.js.map +1 -1
  359. package/esm/vs/editor/common/languages.js +1 -1
  360. package/esm/vs/editor/common/languages.js.map +1 -1
  361. package/esm/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/length.js +14 -0
  362. package/esm/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/length.js.map +1 -1
  363. package/esm/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/smallImmutableSet.js +2 -0
  364. package/esm/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/smallImmutableSet.js.map +1 -1
  365. package/esm/vs/editor/common/model/textModel.js +1 -1
  366. package/esm/vs/editor/common/model/textModel.js.map +1 -1
  367. package/esm/vs/editor/common/model.js +1 -1
  368. package/esm/vs/editor/common/model.js.map +1 -1
  369. package/esm/vs/editor/common/services/editorBaseApi.js.map +1 -1
  370. package/esm/vs/editor/common/services/editorWebWorker.js +1 -0
  371. package/esm/vs/editor/common/services/editorWebWorker.js.map +1 -1
  372. package/esm/vs/editor/common/services/editorWorkerHost.js.map +1 -1
  373. package/esm/vs/editor/common/services/modelService.js +14 -21
  374. package/esm/vs/editor/common/services/modelService.js.map +1 -1
  375. package/esm/vs/editor/common/textModelEditSource.js +2 -0
  376. package/esm/vs/editor/common/textModelEditSource.js.map +1 -1
  377. package/esm/vs/editor/common/viewLayout/viewLineRenderer.js +40 -1
  378. package/esm/vs/editor/common/viewLayout/viewLineRenderer.js.map +1 -1
  379. package/esm/vs/editor/common/viewModel/viewModelImpl.js +2 -1
  380. package/esm/vs/editor/common/viewModel/viewModelImpl.js.map +1 -1
  381. package/esm/vs/editor/contrib/codeAction/browser/codeActionController.js +1 -1
  382. package/esm/vs/editor/contrib/codeAction/browser/codeActionController.js.map +1 -1
  383. package/esm/vs/editor/contrib/codelens/browser/codelensController.js +1 -1
  384. package/esm/vs/editor/contrib/codelens/browser/codelensController.js.map +1 -1
  385. package/esm/vs/editor/contrib/colorPicker/browser/colorDetector.js +1 -0
  386. package/esm/vs/editor/contrib/colorPicker/browser/colorDetector.js.map +1 -1
  387. package/esm/vs/editor/contrib/contextmenu/browser/contextmenu.js +1 -0
  388. package/esm/vs/editor/contrib/contextmenu/browser/contextmenu.js.map +1 -1
  389. package/esm/vs/editor/contrib/find/browser/findModel.js +1 -0
  390. package/esm/vs/editor/contrib/find/browser/findModel.js.map +1 -1
  391. package/esm/vs/editor/contrib/find/browser/findWidget.css +5 -5
  392. package/esm/vs/editor/contrib/folding/browser/folding.css +4 -4
  393. package/esm/vs/editor/contrib/folding/browser/foldingDecorations.js.map +1 -1
  394. package/esm/vs/editor/contrib/gotoSymbol/browser/link/goToDefinitionAtPosition.js +1 -1
  395. package/esm/vs/editor/contrib/gotoSymbol/browser/link/goToDefinitionAtPosition.js.map +1 -1
  396. package/esm/vs/editor/contrib/inlayHints/browser/inlayHintsController.js +30 -14
  397. package/esm/vs/editor/contrib/inlayHints/browser/inlayHintsController.js.map +1 -1
  398. package/esm/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsModel.js +4 -3
  399. package/esm/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsModel.js.map +1 -1
  400. package/esm/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsSource.js +56 -7
  401. package/esm/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsSource.js.map +1 -1
  402. package/esm/vs/editor/contrib/inlineCompletions/browser/structuredLogger.js +1 -0
  403. package/esm/vs/editor/contrib/inlineCompletions/browser/structuredLogger.js.map +1 -1
  404. package/esm/vs/editor/contrib/inlineCompletions/browser/view/ghostText/ghostTextView.js +2 -0
  405. package/esm/vs/editor/contrib/inlineCompletions/browser/view/ghostText/ghostTextView.js.map +1 -1
  406. package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorView.js +1 -0
  407. package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorView.js.map +1 -1
  408. package/esm/vs/editor/contrib/parameterHints/browser/parameterHintsWidget.js +1 -1
  409. package/esm/vs/editor/contrib/parameterHints/browser/parameterHintsWidget.js.map +1 -1
  410. package/esm/vs/editor/contrib/rename/browser/renameWidget.js.map +1 -1
  411. package/esm/vs/editor/contrib/symbolIcons/browser/symbolIcons.css +2 -0
  412. package/esm/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.js +2 -0
  413. package/esm/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.js.map +1 -1
  414. package/esm/vs/editor/contrib/unusualLineTerminators/browser/unusualLineTerminators.js.map +1 -1
  415. package/esm/vs/editor/editor.api.d.ts +8 -8
  416. package/esm/vs/editor/editor.api.js +4 -0
  417. package/esm/vs/editor/editor.api.js.map +1 -1
  418. package/esm/vs/editor/editor.main.js +1 -1
  419. package/esm/vs/editor/editor.worker.js +1 -1
  420. package/esm/vs/editor/standalone/browser/standaloneCodeEditor.js.map +1 -1
  421. package/esm/vs/editor/standalone/browser/standaloneEditor.js +37 -0
  422. package/esm/vs/editor/standalone/browser/standaloneEditor.js.map +1 -1
  423. package/esm/vs/editor/standalone/browser/standaloneLanguages.js +37 -0
  424. package/esm/vs/editor/standalone/browser/standaloneLanguages.js.map +1 -1
  425. package/esm/vs/editor/standalone/browser/standaloneServices.js.map +1 -1
  426. package/esm/vs/editor/standalone/browser/standaloneWebWorker.js.map +1 -1
  427. package/esm/vs/editor/standalone/common/monarch/monarchCompile.js +3 -0
  428. package/esm/vs/editor/standalone/common/monarch/monarchCompile.js.map +1 -1
  429. package/esm/vs/language/css/css.worker.js +1 -1
  430. package/esm/vs/language/css/cssMode.js +1 -1
  431. package/esm/vs/language/css/monaco.contribution.js +1 -1
  432. package/esm/vs/language/html/html.worker.js +1 -1
  433. package/esm/vs/language/html/htmlMode.js +1 -1
  434. package/esm/vs/language/html/monaco.contribution.js +1 -1
  435. package/esm/vs/language/json/json.worker.js +1 -1
  436. package/esm/vs/language/json/jsonMode.js +1 -1
  437. package/esm/vs/language/json/monaco.contribution.js +1 -1
  438. package/esm/vs/language/typescript/monaco.contribution.js +1 -1
  439. package/esm/vs/language/typescript/ts.worker.js +1 -1
  440. package/esm/vs/language/typescript/tsMode.js +1 -1
  441. package/esm/vs/platform/accessibility/browser/accessibilityService.js +2 -2
  442. package/esm/vs/platform/accessibility/browser/accessibilityService.js.map +1 -1
  443. package/esm/vs/platform/actions/common/actions.js.map +1 -1
  444. package/esm/vs/platform/commands/common/commands.js.map +1 -1
  445. package/esm/vs/platform/contextkey/common/contextkey.js +5 -0
  446. package/esm/vs/platform/contextkey/common/contextkey.js.map +1 -1
  447. package/esm/vs/platform/dataChannel/browser/forwardingTelemetryService.js +1 -0
  448. package/esm/vs/platform/dataChannel/browser/forwardingTelemetryService.js.map +1 -1
  449. package/esm/vs/platform/dnd/browser/dnd.js +2 -0
  450. package/esm/vs/platform/dnd/browser/dnd.js.map +1 -1
  451. package/esm/vs/platform/instantiation/common/descriptors.js.map +1 -1
  452. package/esm/vs/platform/instantiation/common/instantiation.js.map +1 -1
  453. package/esm/vs/platform/instantiation/common/instantiationService.js +1 -0
  454. package/esm/vs/platform/instantiation/common/instantiationService.js.map +1 -1
  455. package/esm/vs/platform/list/browser/listService.js +5 -0
  456. package/esm/vs/platform/list/browser/listService.js.map +1 -1
  457. package/esm/vs/platform/log/common/log.js.map +1 -1
  458. package/esm/vs/platform/log/common/logService.js.map +1 -1
  459. package/esm/vs/platform/observable/common/wrapInHotClass.js +2 -0
  460. package/esm/vs/platform/observable/common/wrapInHotClass.js.map +1 -1
  461. package/esm/vs/platform/observable/common/wrapInReloadableClass.js +3 -0
  462. package/esm/vs/platform/observable/common/wrapInReloadableClass.js.map +1 -1
  463. package/esm/vs/platform/product/common/product.js +69 -0
  464. package/esm/vs/platform/product/common/product.js.map +1 -0
  465. package/esm/vs/platform/quickinput/browser/quickInput.js +1 -1
  466. package/esm/vs/platform/quickinput/browser/quickInput.js.map +1 -1
  467. package/min/vs/assets/{css.worker-cO8rX8Iy.js → css.worker-BVuiDuBy.js} +2 -2
  468. package/min/vs/assets/{editor.worker-DM0G1eFj.js → editor.worker-jxNOmuJM.js} +9 -9
  469. package/min/vs/assets/{html.worker-BruuIJkK.js → html.worker-DjzoR3Nq.js} +12 -12
  470. package/min/vs/assets/{json.worker-DghZTZS7.js → json.worker-BHO4PP-I.js} +16 -16
  471. package/min/vs/assets/{ts.worker-C4E4vgbE.js → ts.worker-BbmlTFxS.js} +24 -24
  472. package/min/vs/basic-languages/monaco.contribution.js +1 -1
  473. package/min/vs/{cssMode-CGp6dFmI.js → cssMode-CihSYqKE.js} +1 -1
  474. package/min/vs/editor/editor.main.css +1 -1
  475. package/min/vs/editor/editor.main.js +1 -1
  476. package/min/vs/{editor.api-i0YVFWkl.js → editor.api-BBvXWtgc.js} +171 -171
  477. package/min/vs/{freemarker2-CJME-ah8.js → freemarker2-Ce3sL2WS.js} +1 -1
  478. package/min/vs/{handlebars-NccI6MVO.js → handlebars-Bb3ZjWAt.js} +1 -1
  479. package/min/vs/{html-K7M-xuod.js → html-CsBZo_Ud.js} +1 -1
  480. package/min/vs/{htmlMode-DtjCNH-N.js → htmlMode-BaDSxMv5.js} +1 -1
  481. package/min/vs/{javascript-CUpTMdAr.js → javascript-2_kuM68q.js} +1 -1
  482. package/min/vs/{jsonMode-CJjR_ECa.js → jsonMode-PX5jRR_L.js} +1 -1
  483. package/min/vs/language/css/monaco.contribution.js +1 -1
  484. package/min/vs/language/html/monaco.contribution.js +1 -1
  485. package/min/vs/language/json/monaco.contribution.js +1 -1
  486. package/min/vs/language/typescript/monaco.contribution.js +1 -1
  487. package/min/vs/{liquid-STktYroN.js → liquid-DREB9HpI.js} +1 -1
  488. package/min/vs/{lspLanguageFeatures-A02kBDb6.js → lspLanguageFeatures-D8gqdJoR.js} +1 -1
  489. package/min/vs/{mdx-C6mq4H94.js → mdx-BNAJfpzr.js} +1 -1
  490. package/min/vs/nls.messages.de.js +1 -1
  491. package/min/vs/nls.messages.es.js +1 -1
  492. package/min/vs/nls.messages.fr.js +1 -1
  493. package/min/vs/nls.messages.it.js +1 -1
  494. package/min/vs/nls.messages.ja.js +1 -1
  495. package/min/vs/nls.messages.ko.js +1 -1
  496. package/min/vs/nls.messages.ru.js +1 -1
  497. package/min/vs/nls.messages.zh-cn.js +1 -1
  498. package/min/vs/nls.messages.zh-tw.js +1 -1
  499. package/min/vs/{python-B-Y2SC3b.js → python-CLgnWbAg.js} +1 -1
  500. package/min/vs/{razor-JzN5FpSg.js → razor-pD9XaIj8.js} +1 -1
  501. package/min/vs/{tsMode-i88JHxDY.js → tsMode-DDFENmoA.js} +1 -1
  502. package/min/vs/{typescript-4zug7YwV.js → typescript-CWlXqxY6.js} +1 -1
  503. package/min/vs/{workers-CbP2cVmy.js → workers-Da5d5FZY.js} +1 -1
  504. package/min/vs/{xml-DRHZuZwg.js → xml-B8kusTdt.js} +1 -1
  505. package/min/vs/{yaml-CkWIGXBM.js → yaml-CxSYV94R.js} +1 -1
  506. package/monaco.d.ts +8 -8
  507. package/package.json +3 -3
@@ -1,4 +1,4 @@
1
- define("vs/editor.api-BhD7pWdi", ["exports"], (function(exports) {
1
+ define("vs/editor.api-BgcxwOJR", ["exports"], (function(exports) {
2
2
  "use strict";
3
3
  var _a2, _b2, _c2, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F, _G, _H, _I, _J, _K, _L, _M, _N, _O, _P, _Q, _R, _S, _T, _U, _V, _W, _X, _Y, _Z, __, _$2, _aa, _ba, _ca, _da, _ea, _fa, _ga, _ha, _ia, _ja, _ka, _la, _ma, _na, _oa, _pa, _qa, _ra, _sa, _ta, _ua, _va, _wa, _xa, _ya, _za, _Aa, _Ba, _Ca, _Da, _Ea, _Fa, _Ga, _Ha, _Ia, _Ja, _Ka, _La, _Ma, _Na, _Oa, _Pa, _Qa, _Ra, _Sa;
4
4
  function getNLSMessages() {
@@ -1514,9 +1514,24 @@ define("vs/editor.api-BhD7pWdi", ["exports"], (function(exports) {
1514
1514
  constructor() {
1515
1515
  this._isDisposed = false;
1516
1516
  }
1517
+ /**
1518
+ * Get the currently held disposable value, or `undefined` if this MutableDisposable has been disposed
1519
+ */
1517
1520
  get value() {
1518
1521
  return this._isDisposed ? void 0 : this._value;
1519
1522
  }
1523
+ /**
1524
+ * Set a new disposable value.
1525
+ *
1526
+ * Behaviour:
1527
+ * - If the MutableDisposable has been disposed, the setter is a no-op.
1528
+ * - If the new value is strictly equal to the current value, the setter is a no-op.
1529
+ * - Otherwise the previous value (if any) is disposed and the new value is stored.
1530
+ *
1531
+ * Related helpers:
1532
+ * - clear() resets the value to `undefined` (and disposes the previous value).
1533
+ * - clearAndLeak() returns the old value without disposing it and removes its parent.
1534
+ */
1520
1535
  set value(value) {
1521
1536
  if (this._isDisposed || value === this._value) {
1522
1537
  return;
@@ -4218,9 +4233,9 @@ define("vs/editor.api-BhD7pWdi", ["exports"], (function(exports) {
4218
4233
  _InvisibleCharacters._data = void 0;
4219
4234
  let InvisibleCharacters = _InvisibleCharacters;
4220
4235
  let safeProcess;
4221
- const vscodeGlobal = globalThis.vscode;
4222
- if (typeof vscodeGlobal !== "undefined" && typeof vscodeGlobal.process !== "undefined") {
4223
- const sandboxProcess = vscodeGlobal.process;
4236
+ const vscodeGlobal$1 = globalThis.vscode;
4237
+ if (typeof vscodeGlobal$1 !== "undefined" && typeof vscodeGlobal$1.process !== "undefined") {
4238
+ const sandboxProcess = vscodeGlobal$1.process;
4224
4239
  safeProcess = {
4225
4240
  get platform() {
4226
4241
  return sandboxProcess.platform;
@@ -7574,6 +7589,7 @@ define("vs/editor.api-BhD7pWdi", ["exports"], (function(exports) {
7574
7589
  const shouldReact = this._changeTracker ? this._changeTracker.handleChange({
7575
7590
  changedObservable: observable,
7576
7591
  change,
7592
+ // eslint-disable-next-line local/code-no-any-casts
7577
7593
  didChange: (o) => o === observable
7578
7594
  }, this._changeSummary) : true;
7579
7595
  if (shouldReact) {
@@ -7898,6 +7914,7 @@ define("vs/editor.api-BhD7pWdi", ["exports"], (function(exports) {
7898
7914
  shouldReact = this._changeTracker ? this._changeTracker.handleChange({
7899
7915
  changedObservable: observable,
7900
7916
  change,
7917
+ // eslint-disable-next-line local/code-no-any-casts
7901
7918
  didChange: (o) => o === observable
7902
7919
  }, this._changeSummary) : true;
7903
7920
  } catch (e) {
@@ -7994,7 +8011,16 @@ define("vs/editor.api-BhD7pWdi", ["exports"], (function(exports) {
7994
8011
  if (computeFn !== void 0) {
7995
8012
  return new Derived(new DebugNameData(computeFnOrOwner, void 0, computeFn), computeFn, void 0, void 0, strictEquals, debugLocation);
7996
8013
  }
7997
- return new Derived(new DebugNameData(void 0, void 0, computeFnOrOwner), computeFnOrOwner, void 0, void 0, strictEquals, debugLocation);
8014
+ return new Derived(
8015
+ // eslint-disable-next-line local/code-no-any-casts
8016
+ new DebugNameData(void 0, void 0, computeFnOrOwner),
8017
+ // eslint-disable-next-line local/code-no-any-casts
8018
+ computeFnOrOwner,
8019
+ void 0,
8020
+ void 0,
8021
+ strictEquals,
8022
+ debugLocation
8023
+ );
7998
8024
  }
7999
8025
  function derivedWithSetter(owner, computeFn, setter, debugLocation = DebugLocation.ofCaller()) {
8000
8026
  return new DerivedWithSetter(new DebugNameData(owner, void 0, computeFn), computeFn, void 0, void 0, strictEquals, setter, debugLocation);
@@ -10633,7 +10659,7 @@ define("vs/editor.api-BhD7pWdi", ["exports"], (function(exports) {
10633
10659
  * Test if `obj` is an `IPosition`.
10634
10660
  */
10635
10661
  static isIPosition(obj) {
10636
- return obj && typeof obj.lineNumber === "number" && typeof obj.column === "number";
10662
+ return !!obj && typeof obj.lineNumber === "number" && typeof obj.column === "number";
10637
10663
  }
10638
10664
  toJSON() {
10639
10665
  return {
@@ -15915,7 +15941,7 @@ define("vs/editor.api-BhD7pWdi", ["exports"], (function(exports) {
15915
15941
  * Test if `obj` is an `IRange`.
15916
15942
  */
15917
15943
  static isIRange(obj) {
15918
- return obj && typeof obj.startLineNumber === "number" && typeof obj.startColumn === "number" && typeof obj.endLineNumber === "number" && typeof obj.endColumn === "number";
15944
+ return !!obj && typeof obj.startLineNumber === "number" && typeof obj.startColumn === "number" && typeof obj.endLineNumber === "number" && typeof obj.endColumn === "number";
15919
15945
  }
15920
15946
  /**
15921
15947
  * Test if the two ranges are touching in any way.
@@ -16120,7 +16146,7 @@ define("vs/editor.api-BhD7pWdi", ["exports"], (function(exports) {
16120
16146
  * Test if `obj` is an `ISelection`.
16121
16147
  */
16122
16148
  static isISelection(obj) {
16123
- return obj && typeof obj.selectionStartLineNumber === "number" && typeof obj.selectionStartColumn === "number" && typeof obj.positionLineNumber === "number" && typeof obj.positionColumn === "number";
16149
+ return !!obj && typeof obj.selectionStartLineNumber === "number" && typeof obj.selectionStartColumn === "number" && typeof obj.positionLineNumber === "number" && typeof obj.positionColumn === "number";
16124
16150
  }
16125
16151
  /**
16126
16152
  * Create with a direction.
@@ -18542,7 +18568,7 @@ define("vs/editor.api-BhD7pWdi", ["exports"], (function(exports) {
18542
18568
  }
18543
18569
  }
18544
18570
  function isITextSnapshot(obj) {
18545
- return obj && typeof obj.read === "function";
18571
+ return !!obj && typeof obj.read === "function";
18546
18572
  }
18547
18573
  class ValidAnnotatedEditOperation {
18548
18574
  constructor(identifier, range2, text2, forceMoveMarkers, isAutoWhitespaceEdit, _isTracked) {
@@ -25877,6 +25903,142 @@ define("vs/editor.api-BhD7pWdi", ["exports"], (function(exports) {
25877
25903
  const reader = new DomCharWidthReader(bareFontInfo, requests);
25878
25904
  reader.read(targetWindow);
25879
25905
  }
25906
+ const EditorZoom = new class {
25907
+ constructor() {
25908
+ this._zoomLevel = 0;
25909
+ this._onDidChangeZoomLevel = new Emitter$1();
25910
+ this.onDidChangeZoomLevel = this._onDidChangeZoomLevel.event;
25911
+ }
25912
+ getZoomLevel() {
25913
+ return this._zoomLevel;
25914
+ }
25915
+ setZoomLevel(zoomLevel) {
25916
+ zoomLevel = Math.min(Math.max(-5, zoomLevel), 20);
25917
+ if (this._zoomLevel === zoomLevel) {
25918
+ return;
25919
+ }
25920
+ this._zoomLevel = zoomLevel;
25921
+ this._onDidChangeZoomLevel.fire(this._zoomLevel);
25922
+ }
25923
+ }();
25924
+ const GOLDEN_LINE_HEIGHT_RATIO = isMacintosh ? 1.5 : 1.35;
25925
+ const MINIMUM_LINE_HEIGHT = 8;
25926
+ class BareFontInfo {
25927
+ /**
25928
+ * @internal
25929
+ */
25930
+ static _create(fontFamily, fontWeight, fontSize, fontFeatureSettings, fontVariationSettings, lineHeight, letterSpacing, pixelRatio, ignoreEditorZoom) {
25931
+ if (lineHeight === 0) {
25932
+ lineHeight = GOLDEN_LINE_HEIGHT_RATIO * fontSize;
25933
+ } else if (lineHeight < MINIMUM_LINE_HEIGHT) {
25934
+ lineHeight = lineHeight * fontSize;
25935
+ }
25936
+ lineHeight = Math.round(lineHeight);
25937
+ if (lineHeight < MINIMUM_LINE_HEIGHT) {
25938
+ lineHeight = MINIMUM_LINE_HEIGHT;
25939
+ }
25940
+ const editorZoomLevelMultiplier = 1 + (ignoreEditorZoom ? 0 : EditorZoom.getZoomLevel() * 0.1);
25941
+ fontSize *= editorZoomLevelMultiplier;
25942
+ lineHeight *= editorZoomLevelMultiplier;
25943
+ if (fontVariationSettings === FONT_VARIATION_TRANSLATE) {
25944
+ if (fontWeight === "normal" || fontWeight === "bold") {
25945
+ fontVariationSettings = FONT_VARIATION_OFF;
25946
+ } else {
25947
+ const fontWeightAsNumber = parseInt(fontWeight, 10);
25948
+ fontVariationSettings = `'wght' ${fontWeightAsNumber}`;
25949
+ fontWeight = "normal";
25950
+ }
25951
+ }
25952
+ return new BareFontInfo({
25953
+ pixelRatio,
25954
+ fontFamily,
25955
+ fontWeight,
25956
+ fontSize,
25957
+ fontFeatureSettings,
25958
+ fontVariationSettings,
25959
+ lineHeight,
25960
+ letterSpacing
25961
+ });
25962
+ }
25963
+ /**
25964
+ * @internal
25965
+ */
25966
+ constructor(opts) {
25967
+ this._bareFontInfoBrand = void 0;
25968
+ this.pixelRatio = opts.pixelRatio;
25969
+ this.fontFamily = String(opts.fontFamily);
25970
+ this.fontWeight = String(opts.fontWeight);
25971
+ this.fontSize = opts.fontSize;
25972
+ this.fontFeatureSettings = opts.fontFeatureSettings;
25973
+ this.fontVariationSettings = opts.fontVariationSettings;
25974
+ this.lineHeight = opts.lineHeight | 0;
25975
+ this.letterSpacing = opts.letterSpacing;
25976
+ }
25977
+ /**
25978
+ * @internal
25979
+ */
25980
+ getId() {
25981
+ return `${this.pixelRatio}-${this.fontFamily}-${this.fontWeight}-${this.fontSize}-${this.fontFeatureSettings}-${this.fontVariationSettings}-${this.lineHeight}-${this.letterSpacing}`;
25982
+ }
25983
+ /**
25984
+ * @internal
25985
+ */
25986
+ getMassagedFontFamily() {
25987
+ const fallbackFontFamily = EDITOR_FONT_DEFAULTS.fontFamily;
25988
+ const fontFamily = BareFontInfo._wrapInQuotes(this.fontFamily);
25989
+ if (this.fontFamily !== fallbackFontFamily) {
25990
+ return `${fontFamily}, ${fallbackFontFamily}`;
25991
+ }
25992
+ return fontFamily;
25993
+ }
25994
+ static _wrapInQuotes(fontFamily) {
25995
+ if (/[,"']/.test(fontFamily)) {
25996
+ return fontFamily;
25997
+ }
25998
+ if (/[+ ]/.test(fontFamily)) {
25999
+ return `"${fontFamily}"`;
26000
+ }
26001
+ return fontFamily;
26002
+ }
26003
+ }
26004
+ const SERIALIZED_FONT_INFO_VERSION = 2;
26005
+ class FontInfo extends BareFontInfo {
26006
+ /**
26007
+ * @internal
26008
+ */
26009
+ constructor(opts, isTrusted) {
26010
+ super(opts);
26011
+ this._editorStylingBrand = void 0;
26012
+ this.version = SERIALIZED_FONT_INFO_VERSION;
26013
+ this.isTrusted = isTrusted;
26014
+ this.isMonospace = opts.isMonospace;
26015
+ this.typicalHalfwidthCharacterWidth = opts.typicalHalfwidthCharacterWidth;
26016
+ this.typicalFullwidthCharacterWidth = opts.typicalFullwidthCharacterWidth;
26017
+ this.canUseHalfwidthRightwardsArrow = opts.canUseHalfwidthRightwardsArrow;
26018
+ this.spaceWidth = opts.spaceWidth;
26019
+ this.middotWidth = opts.middotWidth;
26020
+ this.wsmiddotWidth = opts.wsmiddotWidth;
26021
+ this.maxDigitWidth = opts.maxDigitWidth;
26022
+ }
26023
+ /**
26024
+ * @internal
26025
+ */
26026
+ equals(other) {
26027
+ return this.fontFamily === other.fontFamily && this.fontWeight === other.fontWeight && this.fontSize === other.fontSize && this.fontFeatureSettings === other.fontFeatureSettings && this.fontVariationSettings === other.fontVariationSettings && this.lineHeight === other.lineHeight && this.letterSpacing === other.letterSpacing && this.typicalHalfwidthCharacterWidth === other.typicalHalfwidthCharacterWidth && this.typicalFullwidthCharacterWidth === other.typicalFullwidthCharacterWidth && this.canUseHalfwidthRightwardsArrow === other.canUseHalfwidthRightwardsArrow && this.spaceWidth === other.spaceWidth && this.middotWidth === other.middotWidth && this.wsmiddotWidth === other.wsmiddotWidth && this.maxDigitWidth === other.maxDigitWidth;
26028
+ }
26029
+ }
26030
+ const FONT_VARIATION_OFF = "normal";
26031
+ const FONT_VARIATION_TRANSLATE = "translate";
26032
+ const DEFAULT_WINDOWS_FONT_FAMILY = "Consolas, 'Courier New', monospace";
26033
+ const DEFAULT_MAC_FONT_FAMILY = "Menlo, Monaco, 'Courier New', monospace";
26034
+ const DEFAULT_LINUX_FONT_FAMILY = "'Droid Sans Mono', 'monospace', monospace";
26035
+ const EDITOR_FONT_DEFAULTS = {
26036
+ fontFamily: isMacintosh ? DEFAULT_MAC_FONT_FAMILY : isWindows ? DEFAULT_WINDOWS_FONT_FAMILY : DEFAULT_LINUX_FONT_FAMILY,
26037
+ fontWeight: "normal",
26038
+ fontSize: isMacintosh ? 12 : 14,
26039
+ lineHeight: 0,
26040
+ letterSpacing: 0
26041
+ };
25880
26042
  const EDITOR_MODEL_DEFAULTS = {
25881
26043
  tabSize: 4,
25882
26044
  indentSize: 4,
@@ -25949,11 +26111,11 @@ define("vs/editor.api-BhD7pWdi", ["exports"], (function(exports) {
25949
26111
  return new ApplyUpdateResult(value, didChange);
25950
26112
  }
25951
26113
  class ComputedEditorOption {
25952
- constructor(id) {
26114
+ constructor(id, defaultValue) {
25953
26115
  this.schema = void 0;
25954
26116
  this.id = id;
25955
26117
  this.name = "_never_";
25956
- this.defaultValue = void 0;
26118
+ this.defaultValue = defaultValue;
25957
26119
  }
25958
26120
  applyUpdate(value, update) {
25959
26121
  return applyUpdate(value, update);
@@ -25972,12 +26134,6 @@ define("vs/editor.api-BhD7pWdi", ["exports"], (function(exports) {
25972
26134
  applyUpdate(value, update) {
25973
26135
  return applyUpdate(value, update);
25974
26136
  }
25975
- validate(input) {
25976
- if (typeof input === "undefined") {
25977
- return this.defaultValue;
25978
- }
25979
- return input;
25980
- }
25981
26137
  compute(env2, options, value) {
25982
26138
  return value;
25983
26139
  }
@@ -26004,13 +26160,13 @@ define("vs/editor.api-BhD7pWdi", ["exports"], (function(exports) {
26004
26160
  }
26005
26161
  }
26006
26162
  function clampedInt(value, defaultValue, minimum, maximum) {
26007
- if (typeof value === "undefined") {
26008
- return defaultValue;
26163
+ if (typeof value === "string") {
26164
+ value = parseInt(value, 10);
26009
26165
  }
26010
- let r = parseInt(value, 10);
26011
- if (isNaN(r)) {
26166
+ if (typeof value !== "number" || isNaN(value)) {
26012
26167
  return defaultValue;
26013
26168
  }
26169
+ let r = value;
26014
26170
  r = Math.max(minimum, r);
26015
26171
  r = Math.min(maximum, r);
26016
26172
  return r | 0;
@@ -26052,14 +26208,13 @@ define("vs/editor.api-BhD7pWdi", ["exports"], (function(exports) {
26052
26208
  return n2;
26053
26209
  }
26054
26210
  static float(value, defaultValue) {
26055
- if (typeof value === "number") {
26056
- return value;
26211
+ if (typeof value === "string") {
26212
+ value = parseFloat(value);
26057
26213
  }
26058
- if (typeof value === "undefined") {
26214
+ if (typeof value !== "number" || isNaN(value)) {
26059
26215
  return defaultValue;
26060
26216
  }
26061
- const r = parseFloat(value);
26062
- return isNaN(r) ? defaultValue : r;
26217
+ return value;
26063
26218
  }
26064
26219
  constructor(id, name, defaultValue, validationFn, schema, minimum, maximum) {
26065
26220
  if (typeof schema !== "undefined") {
@@ -26111,7 +26266,7 @@ define("vs/editor.api-BhD7pWdi", ["exports"], (function(exports) {
26111
26266
  constructor(id, name, defaultValue, allowedValues, schema = void 0) {
26112
26267
  if (typeof schema !== "undefined") {
26113
26268
  schema.type = "string";
26114
- schema.enum = allowedValues;
26269
+ schema.enum = allowedValues.slice(0);
26115
26270
  schema.default = defaultValue;
26116
26271
  }
26117
26272
  super(id, name, defaultValue, schema);
@@ -26260,10 +26415,7 @@ define("vs/editor.api-BhD7pWdi", ["exports"], (function(exports) {
26260
26415
  }
26261
26416
  class EditorClassName extends ComputedEditorOption {
26262
26417
  constructor() {
26263
- super(
26264
- 162
26265
- /* EditorOption.editorClassName */
26266
- );
26418
+ super(162, "");
26267
26419
  }
26268
26420
  compute(env2, options, _) {
26269
26421
  const classNames2 = ["monaco-editor"];
@@ -26405,8 +26557,8 @@ define("vs/editor.api-BhD7pWdi", ["exports"], (function(exports) {
26405
26557
  return {
26406
26558
  cursorMoveOnType: boolean(input.cursorMoveOnType, this.defaultValue.cursorMoveOnType),
26407
26559
  findOnType: boolean(input.findOnType, this.defaultValue.findOnType),
26408
- seedSearchStringFromSelection: typeof _input.seedSearchStringFromSelection === "boolean" ? _input.seedSearchStringFromSelection ? "always" : "never" : stringSet(input.seedSearchStringFromSelection, this.defaultValue.seedSearchStringFromSelection, ["never", "always", "selection"]),
26409
- autoFindInSelection: typeof _input.autoFindInSelection === "boolean" ? _input.autoFindInSelection ? "always" : "never" : stringSet(input.autoFindInSelection, this.defaultValue.autoFindInSelection, ["never", "always", "multiline"]),
26560
+ seedSearchStringFromSelection: typeof input.seedSearchStringFromSelection === "boolean" ? input.seedSearchStringFromSelection ? "always" : "never" : stringSet(input.seedSearchStringFromSelection, this.defaultValue.seedSearchStringFromSelection, ["never", "always", "selection"]),
26561
+ autoFindInSelection: typeof input.autoFindInSelection === "boolean" ? input.autoFindInSelection ? "always" : "never" : stringSet(input.autoFindInSelection, this.defaultValue.autoFindInSelection, ["never", "always", "multiline"]),
26410
26562
  globalFindClipboard: boolean(input.globalFindClipboard, this.defaultValue.globalFindClipboard),
26411
26563
  addExtraSpaceOnTop: boolean(input.addExtraSpaceOnTop, this.defaultValue.addExtraSpaceOnTop),
26412
26564
  loop: boolean(input.loop, this.defaultValue.loop),
@@ -26493,15 +26645,29 @@ define("vs/editor.api-BhD7pWdi", ["exports"], (function(exports) {
26493
26645
  return env2.fontInfo.fontVariationSettings;
26494
26646
  }
26495
26647
  };
26496
- _EditorFontVariations.OFF = "normal";
26497
- _EditorFontVariations.TRANSLATE = "translate";
26648
+ _EditorFontVariations.OFF = FONT_VARIATION_OFF;
26649
+ _EditorFontVariations.TRANSLATE = FONT_VARIATION_TRANSLATE;
26498
26650
  let EditorFontVariations = _EditorFontVariations;
26499
26651
  class EditorFontInfo extends ComputedEditorOption {
26500
26652
  constructor() {
26501
- super(
26502
- 59
26503
- /* EditorOption.fontInfo */
26504
- );
26653
+ super(59, new FontInfo({
26654
+ pixelRatio: 0,
26655
+ fontFamily: "",
26656
+ fontWeight: "",
26657
+ fontSize: 0,
26658
+ fontFeatureSettings: "",
26659
+ fontVariationSettings: "",
26660
+ lineHeight: 0,
26661
+ letterSpacing: 0,
26662
+ isMonospace: false,
26663
+ typicalHalfwidthCharacterWidth: 0,
26664
+ typicalFullwidthCharacterWidth: 0,
26665
+ canUseHalfwidthRightwardsArrow: false,
26666
+ spaceWidth: 0,
26667
+ middotWidth: 0,
26668
+ wsmiddotWidth: 0,
26669
+ maxDigitWidth: 0
26670
+ }, false));
26505
26671
  }
26506
26672
  compute(env2, options, _) {
26507
26673
  return env2.fontInfo;
@@ -26509,10 +26675,7 @@ define("vs/editor.api-BhD7pWdi", ["exports"], (function(exports) {
26509
26675
  }
26510
26676
  class EffectiveCursorStyle extends ComputedEditorOption {
26511
26677
  constructor() {
26512
- super(
26513
- 161
26514
- /* EditorOption.effectiveCursorStyle */
26515
- );
26678
+ super(161, TextEditorCursorStyle$1.Line);
26516
26679
  }
26517
26680
  compute(env2, options, _) {
26518
26681
  return env2.inputMode === "overtype" ? options.get(
@@ -26526,10 +26689,7 @@ define("vs/editor.api-BhD7pWdi", ["exports"], (function(exports) {
26526
26689
  }
26527
26690
  class EffectiveEditContextEnabled extends ComputedEditorOption {
26528
26691
  constructor() {
26529
- super(
26530
- 170
26531
- /* EditorOption.effectiveEditContext */
26532
- );
26692
+ super(170, false);
26533
26693
  }
26534
26694
  compute(env2, options) {
26535
26695
  return env2.editContextSupported && options.get(
@@ -26540,10 +26700,7 @@ define("vs/editor.api-BhD7pWdi", ["exports"], (function(exports) {
26540
26700
  }
26541
26701
  class EffectiveAllowVariableFonts extends ComputedEditorOption {
26542
26702
  constructor() {
26543
- super(
26544
- 172
26545
- /* EditorOption.effectiveAllowVariableFonts */
26546
- );
26703
+ super(172, false);
26547
26704
  }
26548
26705
  compute(env2, options) {
26549
26706
  const accessibilitySupport = env2.accessibilitySupport;
@@ -26705,12 +26862,12 @@ define("vs/editor.api-BhD7pWdi", ["exports"], (function(exports) {
26705
26862
  const input = _input;
26706
26863
  return {
26707
26864
  multiple: stringSet(input.multiple, this.defaultValue.multiple, ["peek", "gotoAndPeek", "goto"]),
26708
- multipleDefinitions: input.multipleDefinitions ?? stringSet(input.multipleDefinitions, "peek", ["peek", "gotoAndPeek", "goto"]),
26709
- multipleTypeDefinitions: input.multipleTypeDefinitions ?? stringSet(input.multipleTypeDefinitions, "peek", ["peek", "gotoAndPeek", "goto"]),
26710
- multipleDeclarations: input.multipleDeclarations ?? stringSet(input.multipleDeclarations, "peek", ["peek", "gotoAndPeek", "goto"]),
26711
- multipleImplementations: input.multipleImplementations ?? stringSet(input.multipleImplementations, "peek", ["peek", "gotoAndPeek", "goto"]),
26712
- multipleReferences: input.multipleReferences ?? stringSet(input.multipleReferences, "peek", ["peek", "gotoAndPeek", "goto"]),
26713
- multipleTests: input.multipleTests ?? stringSet(input.multipleTests, "peek", ["peek", "gotoAndPeek", "goto"]),
26865
+ multipleDefinitions: stringSet(input.multipleDefinitions, "peek", ["peek", "gotoAndPeek", "goto"]),
26866
+ multipleTypeDefinitions: stringSet(input.multipleTypeDefinitions, "peek", ["peek", "gotoAndPeek", "goto"]),
26867
+ multipleDeclarations: stringSet(input.multipleDeclarations, "peek", ["peek", "gotoAndPeek", "goto"]),
26868
+ multipleImplementations: stringSet(input.multipleImplementations, "peek", ["peek", "gotoAndPeek", "goto"]),
26869
+ multipleReferences: stringSet(input.multipleReferences, "peek", ["peek", "gotoAndPeek", "goto"]),
26870
+ multipleTests: stringSet(input.multipleTests, "peek", ["peek", "gotoAndPeek", "goto"]),
26714
26871
  alternativeDefinitionCommand: EditorStringOption.string(input.alternativeDefinitionCommand, this.defaultValue.alternativeDefinitionCommand),
26715
26872
  alternativeTypeDefinitionCommand: EditorStringOption.string(input.alternativeTypeDefinitionCommand, this.defaultValue.alternativeTypeDefinitionCommand),
26716
26873
  alternativeDeclarationCommand: EditorStringOption.string(input.alternativeDeclarationCommand, this.defaultValue.alternativeDeclarationCommand),
@@ -26776,10 +26933,44 @@ define("vs/editor.api-BhD7pWdi", ["exports"], (function(exports) {
26776
26933
  }
26777
26934
  class EditorLayoutInfoComputer extends ComputedEditorOption {
26778
26935
  constructor() {
26779
- super(
26780
- 165
26781
- /* EditorOption.layoutInfo */
26782
- );
26936
+ super(165, {
26937
+ width: 0,
26938
+ height: 0,
26939
+ glyphMarginLeft: 0,
26940
+ glyphMarginWidth: 0,
26941
+ glyphMarginDecorationLaneCount: 0,
26942
+ lineNumbersLeft: 0,
26943
+ lineNumbersWidth: 0,
26944
+ decorationsLeft: 0,
26945
+ decorationsWidth: 0,
26946
+ contentLeft: 0,
26947
+ contentWidth: 0,
26948
+ minimap: {
26949
+ renderMinimap: 0,
26950
+ minimapLeft: 0,
26951
+ minimapWidth: 0,
26952
+ minimapHeightIsEditorHeight: false,
26953
+ minimapIsSampling: false,
26954
+ minimapScale: 1,
26955
+ minimapLineHeight: 1,
26956
+ minimapCanvasInnerWidth: 0,
26957
+ minimapCanvasInnerHeight: 0,
26958
+ minimapCanvasOuterWidth: 0,
26959
+ minimapCanvasOuterHeight: 0
26960
+ },
26961
+ viewportColumn: 0,
26962
+ isWordWrapMinified: false,
26963
+ isViewportWrapping: false,
26964
+ wrappingColumn: -1,
26965
+ verticalScrollbarWidth: 0,
26966
+ horizontalScrollbarHeight: 0,
26967
+ overviewRuler: {
26968
+ top: 0,
26969
+ width: 0,
26970
+ height: 0,
26971
+ right: 0
26972
+ }
26973
+ });
26783
26974
  }
26784
26975
  compute(env2, options, _) {
26785
26976
  return EditorLayoutInfoComputer.computeLayout(options, {
@@ -27376,7 +27567,7 @@ define("vs/editor.api-BhD7pWdi", ["exports"], (function(exports) {
27376
27567
  }
27377
27568
  const input = _input;
27378
27569
  let markSectionHeaderRegex = this.defaultValue.markSectionHeaderRegex;
27379
- const inputRegex = _input.markSectionHeaderRegex;
27570
+ const inputRegex = input.markSectionHeaderRegex;
27380
27571
  if (typeof inputRegex === "string") {
27381
27572
  try {
27382
27573
  new RegExp(inputRegex, "d");
@@ -27396,8 +27587,8 @@ define("vs/editor.api-BhD7pWdi", ["exports"], (function(exports) {
27396
27587
  showRegionSectionHeaders: boolean(input.showRegionSectionHeaders, this.defaultValue.showRegionSectionHeaders),
27397
27588
  showMarkSectionHeaders: boolean(input.showMarkSectionHeaders, this.defaultValue.showMarkSectionHeaders),
27398
27589
  markSectionHeaderRegex,
27399
- sectionHeaderFontSize: EditorFloatOption.clamp(input.sectionHeaderFontSize ?? this.defaultValue.sectionHeaderFontSize, 4, 32),
27400
- sectionHeaderLetterSpacing: EditorFloatOption.clamp(input.sectionHeaderLetterSpacing ?? this.defaultValue.sectionHeaderLetterSpacing, 0, 5)
27590
+ sectionHeaderFontSize: EditorFloatOption.clamp(EditorFloatOption.float(input.sectionHeaderFontSize, this.defaultValue.sectionHeaderFontSize), 4, 32),
27591
+ sectionHeaderLetterSpacing: EditorFloatOption.clamp(EditorFloatOption.float(input.sectionHeaderLetterSpacing, this.defaultValue.sectionHeaderLetterSpacing), 0, 5)
27401
27592
  };
27402
27593
  }
27403
27594
  }
@@ -27469,10 +27660,7 @@ define("vs/editor.api-BhD7pWdi", ["exports"], (function(exports) {
27469
27660
  }
27470
27661
  class EditorPixelRatio extends ComputedEditorOption {
27471
27662
  constructor() {
27472
- super(
27473
- 163
27474
- /* EditorOption.pixelRatio */
27475
- );
27663
+ super(163, 1);
27476
27664
  }
27477
27665
  compute(env2, options, _) {
27478
27666
  return env2.pixelRatio;
@@ -27894,8 +28082,8 @@ define("vs/editor.api-BhD7pWdi", ["exports"], (function(exports) {
27894
28082
  ambiguousCharacters: boolean(input.ambiguousCharacters, this.defaultValue.ambiguousCharacters),
27895
28083
  includeComments: primitiveSet(input.includeComments, inUntrustedWorkspace, [true, false, inUntrustedWorkspace]),
27896
28084
  includeStrings: primitiveSet(input.includeStrings, inUntrustedWorkspace, [true, false, inUntrustedWorkspace]),
27897
- allowedCharacters: this.validateBooleanMap(_input.allowedCharacters, this.defaultValue.allowedCharacters),
27898
- allowedLocales: this.validateBooleanMap(_input.allowedLocales, this.defaultValue.allowedLocales)
28085
+ allowedCharacters: this.validateBooleanMap(input.allowedCharacters, this.defaultValue.allowedCharacters),
28086
+ allowedLocales: this.validateBooleanMap(input.allowedLocales, this.defaultValue.allowedLocales)
27899
28087
  };
27900
28088
  }
27901
28089
  validateBooleanMap(map, defaultValue) {
@@ -27922,7 +28110,7 @@ define("vs/editor.api-BhD7pWdi", ["exports"], (function(exports) {
27922
28110
  fontFamily: "default",
27923
28111
  syntaxHighlightingEnabled: true,
27924
28112
  minShowDelay: 0,
27925
- suppressInSnippetMode: false,
28113
+ suppressInSnippetMode: true,
27926
28114
  edits: {
27927
28115
  enabled: true,
27928
28116
  showCollapsed: false,
@@ -28058,18 +28246,32 @@ define("vs/editor.api-BhD7pWdi", ["exports"], (function(exports) {
28058
28246
  syntaxHighlightingEnabled: boolean(input.syntaxHighlightingEnabled, this.defaultValue.syntaxHighlightingEnabled),
28059
28247
  minShowDelay: EditorIntOption.clampedInt(input.minShowDelay, 0, 0, 1e4),
28060
28248
  suppressInSnippetMode: boolean(input.suppressInSnippetMode, this.defaultValue.suppressInSnippetMode),
28061
- edits: {
28062
- enabled: boolean(input.edits?.enabled, this.defaultValue.edits.enabled),
28063
- showCollapsed: boolean(input.edits?.showCollapsed, this.defaultValue.edits.showCollapsed),
28064
- allowCodeShifting: stringSet(input.edits?.allowCodeShifting, this.defaultValue.edits.allowCodeShifting, ["always", "horizontal", "never"]),
28065
- renderSideBySide: stringSet(input.edits?.renderSideBySide, this.defaultValue.edits.renderSideBySide, ["never", "auto"])
28066
- },
28249
+ edits: this._validateEdits(input.edits),
28067
28250
  triggerCommandOnProviderChange: boolean(input.triggerCommandOnProviderChange, this.defaultValue.triggerCommandOnProviderChange),
28068
- experimental: {
28069
- suppressInlineSuggestions: EditorStringOption.string(input.experimental?.suppressInlineSuggestions, this.defaultValue.experimental.suppressInlineSuggestions),
28070
- showOnSuggestConflict: stringSet(input.experimental?.showOnSuggestConflict, this.defaultValue.experimental.showOnSuggestConflict, ["always", "never", "whenSuggestListIsIncomplete"]),
28071
- emptyResponseInformation: boolean(input.experimental?.emptyResponseInformation, this.defaultValue.experimental.emptyResponseInformation)
28072
- }
28251
+ experimental: this._validateExperimental(input.experimental)
28252
+ };
28253
+ }
28254
+ _validateEdits(_input) {
28255
+ if (!_input || typeof _input !== "object") {
28256
+ return this.defaultValue.edits;
28257
+ }
28258
+ const input = _input;
28259
+ return {
28260
+ enabled: boolean(input.enabled, this.defaultValue.edits.enabled),
28261
+ showCollapsed: boolean(input.showCollapsed, this.defaultValue.edits.showCollapsed),
28262
+ allowCodeShifting: stringSet(input.allowCodeShifting, this.defaultValue.edits.allowCodeShifting, ["always", "horizontal", "never"]),
28263
+ renderSideBySide: stringSet(input.renderSideBySide, this.defaultValue.edits.renderSideBySide, ["never", "auto"])
28264
+ };
28265
+ }
28266
+ _validateExperimental(_input) {
28267
+ if (!_input || typeof _input !== "object") {
28268
+ return this.defaultValue.experimental;
28269
+ }
28270
+ const input = _input;
28271
+ return {
28272
+ suppressInlineSuggestions: EditorStringOption.string(input.suppressInlineSuggestions, this.defaultValue.experimental.suppressInlineSuggestions),
28273
+ showOnSuggestConflict: stringSet(input.showOnSuggestConflict, this.defaultValue.experimental.showOnSuggestConflict, ["always", "never", "whenSuggestListIsIncomplete"]),
28274
+ emptyResponseInformation: boolean(input.emptyResponseInformation, this.defaultValue.experimental.emptyResponseInformation)
28073
28275
  };
28074
28276
  }
28075
28277
  }
@@ -28610,10 +28812,12 @@ define("vs/editor.api-BhD7pWdi", ["exports"], (function(exports) {
28610
28812
  }
28611
28813
  class EditorWrappingInfoComputer extends ComputedEditorOption {
28612
28814
  constructor() {
28613
- super(
28614
- 166
28615
- /* EditorOption.wrappingInfo */
28616
- );
28815
+ super(166, {
28816
+ isDominatedByLongLines: false,
28817
+ isWordWrapMinified: false,
28818
+ isViewportWrapping: false,
28819
+ wrappingColumn: -1
28820
+ });
28617
28821
  }
28618
28822
  compute(env2, options, _) {
28619
28823
  const layoutInfo = options.get(
@@ -28698,16 +28902,6 @@ define("vs/editor.api-BhD7pWdi", ["exports"], (function(exports) {
28698
28902
  };
28699
28903
  }
28700
28904
  }
28701
- const DEFAULT_WINDOWS_FONT_FAMILY = "Consolas, 'Courier New', monospace";
28702
- const DEFAULT_MAC_FONT_FAMILY = "Menlo, Monaco, 'Courier New', monospace";
28703
- const DEFAULT_LINUX_FONT_FAMILY = "'Droid Sans Mono', 'monospace', monospace";
28704
- const EDITOR_FONT_DEFAULTS = {
28705
- fontFamily: isMacintosh ? DEFAULT_MAC_FONT_FAMILY : isWindows ? DEFAULT_WINDOWS_FONT_FAMILY : DEFAULT_LINUX_FONT_FAMILY,
28706
- fontWeight: "normal",
28707
- fontSize: isMacintosh ? 12 : 14,
28708
- lineHeight: 0,
28709
- letterSpacing: 0
28710
- };
28711
28905
  const editorOptionsRegistry = [];
28712
28906
  function register$1(option2) {
28713
28907
  editorOptionsRegistry[option2.id] = option2;
@@ -29165,164 +29359,6 @@ define("vs/editor.api-BhD7pWdi", ["exports"], (function(exports) {
29165
29359
  effectiveEditContextEnabled: register$1(new EffectiveEditContextEnabled()),
29166
29360
  effectiveAllowVariableFonts: register$1(new EffectiveAllowVariableFonts())
29167
29361
  };
29168
- const EditorZoom = new class {
29169
- constructor() {
29170
- this._zoomLevel = 0;
29171
- this._onDidChangeZoomLevel = new Emitter$1();
29172
- this.onDidChangeZoomLevel = this._onDidChangeZoomLevel.event;
29173
- }
29174
- getZoomLevel() {
29175
- return this._zoomLevel;
29176
- }
29177
- setZoomLevel(zoomLevel) {
29178
- zoomLevel = Math.min(Math.max(-5, zoomLevel), 20);
29179
- if (this._zoomLevel === zoomLevel) {
29180
- return;
29181
- }
29182
- this._zoomLevel = zoomLevel;
29183
- this._onDidChangeZoomLevel.fire(this._zoomLevel);
29184
- }
29185
- }();
29186
- const GOLDEN_LINE_HEIGHT_RATIO = isMacintosh ? 1.5 : 1.35;
29187
- const MINIMUM_LINE_HEIGHT = 8;
29188
- class BareFontInfo {
29189
- /**
29190
- * @internal
29191
- */
29192
- static createFromValidatedSettings(options, pixelRatio, ignoreEditorZoom) {
29193
- const fontFamily = options.get(
29194
- 58
29195
- /* EditorOption.fontFamily */
29196
- );
29197
- const fontWeight = options.get(
29198
- 62
29199
- /* EditorOption.fontWeight */
29200
- );
29201
- const fontSize = options.get(
29202
- 61
29203
- /* EditorOption.fontSize */
29204
- );
29205
- const fontFeatureSettings = options.get(
29206
- 60
29207
- /* EditorOption.fontLigatures */
29208
- );
29209
- const fontVariationSettings = options.get(
29210
- 63
29211
- /* EditorOption.fontVariations */
29212
- );
29213
- const lineHeight = options.get(
29214
- 75
29215
- /* EditorOption.lineHeight */
29216
- );
29217
- const letterSpacing = options.get(
29218
- 72
29219
- /* EditorOption.letterSpacing */
29220
- );
29221
- return BareFontInfo._create(fontFamily, fontWeight, fontSize, fontFeatureSettings, fontVariationSettings, lineHeight, letterSpacing, pixelRatio, ignoreEditorZoom);
29222
- }
29223
- /**
29224
- * @internal
29225
- */
29226
- static _create(fontFamily, fontWeight, fontSize, fontFeatureSettings, fontVariationSettings, lineHeight, letterSpacing, pixelRatio, ignoreEditorZoom) {
29227
- if (lineHeight === 0) {
29228
- lineHeight = GOLDEN_LINE_HEIGHT_RATIO * fontSize;
29229
- } else if (lineHeight < MINIMUM_LINE_HEIGHT) {
29230
- lineHeight = lineHeight * fontSize;
29231
- }
29232
- lineHeight = Math.round(lineHeight);
29233
- if (lineHeight < MINIMUM_LINE_HEIGHT) {
29234
- lineHeight = MINIMUM_LINE_HEIGHT;
29235
- }
29236
- const editorZoomLevelMultiplier = 1 + (ignoreEditorZoom ? 0 : EditorZoom.getZoomLevel() * 0.1);
29237
- fontSize *= editorZoomLevelMultiplier;
29238
- lineHeight *= editorZoomLevelMultiplier;
29239
- if (fontVariationSettings === EditorFontVariations.TRANSLATE) {
29240
- if (fontWeight === "normal" || fontWeight === "bold") {
29241
- fontVariationSettings = EditorFontVariations.OFF;
29242
- } else {
29243
- const fontWeightAsNumber = parseInt(fontWeight, 10);
29244
- fontVariationSettings = `'wght' ${fontWeightAsNumber}`;
29245
- fontWeight = "normal";
29246
- }
29247
- }
29248
- return new BareFontInfo({
29249
- pixelRatio,
29250
- fontFamily,
29251
- fontWeight,
29252
- fontSize,
29253
- fontFeatureSettings,
29254
- fontVariationSettings,
29255
- lineHeight,
29256
- letterSpacing
29257
- });
29258
- }
29259
- /**
29260
- * @internal
29261
- */
29262
- constructor(opts) {
29263
- this._bareFontInfoBrand = void 0;
29264
- this.pixelRatio = opts.pixelRatio;
29265
- this.fontFamily = String(opts.fontFamily);
29266
- this.fontWeight = String(opts.fontWeight);
29267
- this.fontSize = opts.fontSize;
29268
- this.fontFeatureSettings = opts.fontFeatureSettings;
29269
- this.fontVariationSettings = opts.fontVariationSettings;
29270
- this.lineHeight = opts.lineHeight | 0;
29271
- this.letterSpacing = opts.letterSpacing;
29272
- }
29273
- /**
29274
- * @internal
29275
- */
29276
- getId() {
29277
- return `${this.pixelRatio}-${this.fontFamily}-${this.fontWeight}-${this.fontSize}-${this.fontFeatureSettings}-${this.fontVariationSettings}-${this.lineHeight}-${this.letterSpacing}`;
29278
- }
29279
- /**
29280
- * @internal
29281
- */
29282
- getMassagedFontFamily() {
29283
- const fallbackFontFamily = EDITOR_FONT_DEFAULTS.fontFamily;
29284
- const fontFamily = BareFontInfo._wrapInQuotes(this.fontFamily);
29285
- if (this.fontFamily !== fallbackFontFamily) {
29286
- return `${fontFamily}, ${fallbackFontFamily}`;
29287
- }
29288
- return fontFamily;
29289
- }
29290
- static _wrapInQuotes(fontFamily) {
29291
- if (/[,"']/.test(fontFamily)) {
29292
- return fontFamily;
29293
- }
29294
- if (/[+ ]/.test(fontFamily)) {
29295
- return `"${fontFamily}"`;
29296
- }
29297
- return fontFamily;
29298
- }
29299
- }
29300
- const SERIALIZED_FONT_INFO_VERSION = 2;
29301
- class FontInfo extends BareFontInfo {
29302
- /**
29303
- * @internal
29304
- */
29305
- constructor(opts, isTrusted) {
29306
- super(opts);
29307
- this._editorStylingBrand = void 0;
29308
- this.version = SERIALIZED_FONT_INFO_VERSION;
29309
- this.isTrusted = isTrusted;
29310
- this.isMonospace = opts.isMonospace;
29311
- this.typicalHalfwidthCharacterWidth = opts.typicalHalfwidthCharacterWidth;
29312
- this.typicalFullwidthCharacterWidth = opts.typicalFullwidthCharacterWidth;
29313
- this.canUseHalfwidthRightwardsArrow = opts.canUseHalfwidthRightwardsArrow;
29314
- this.spaceWidth = opts.spaceWidth;
29315
- this.middotWidth = opts.middotWidth;
29316
- this.wsmiddotWidth = opts.wsmiddotWidth;
29317
- this.maxDigitWidth = opts.maxDigitWidth;
29318
- }
29319
- /**
29320
- * @internal
29321
- */
29322
- equals(other) {
29323
- return this.fontFamily === other.fontFamily && this.fontWeight === other.fontWeight && this.fontSize === other.fontSize && this.fontFeatureSettings === other.fontFeatureSettings && this.fontVariationSettings === other.fontVariationSettings && this.lineHeight === other.lineHeight && this.letterSpacing === other.letterSpacing && this.typicalHalfwidthCharacterWidth === other.typicalHalfwidthCharacterWidth && this.typicalFullwidthCharacterWidth === other.typicalFullwidthCharacterWidth && this.canUseHalfwidthRightwardsArrow === other.canUseHalfwidthRightwardsArrow && this.spaceWidth === other.spaceWidth && this.middotWidth === other.middotWidth && this.wsmiddotWidth === other.wsmiddotWidth && this.maxDigitWidth === other.maxDigitWidth;
29324
- }
29325
- }
29326
29362
  class FontMeasurementsImpl extends Disposable {
29327
29363
  constructor() {
29328
29364
  super(...arguments);
@@ -29519,7 +29555,7 @@ define("vs/editor.api-BhD7pWdi", ["exports"], (function(exports) {
29519
29555
  this.migrate(value, read, write);
29520
29556
  }
29521
29557
  static _read(source, key) {
29522
- if (typeof source === "undefined") {
29558
+ if (typeof source === "undefined" || source === null) {
29523
29559
  return void 0;
29524
29560
  }
29525
29561
  const firstDotIndex = key.indexOf(".");
@@ -29727,6 +29763,37 @@ define("vs/editor.api-BhD7pWdi", ["exports"], (function(exports) {
29727
29763
  }
29728
29764
  }
29729
29765
  const TabFocus = new TabFocusImpl();
29766
+ function createBareFontInfoFromValidatedSettings(options, pixelRatio, ignoreEditorZoom) {
29767
+ const fontFamily = options.get(
29768
+ 58
29769
+ /* EditorOption.fontFamily */
29770
+ );
29771
+ const fontWeight = options.get(
29772
+ 62
29773
+ /* EditorOption.fontWeight */
29774
+ );
29775
+ const fontSize = options.get(
29776
+ 61
29777
+ /* EditorOption.fontSize */
29778
+ );
29779
+ const fontFeatureSettings = options.get(
29780
+ 60
29781
+ /* EditorOption.fontLigatures */
29782
+ );
29783
+ const fontVariationSettings = options.get(
29784
+ 63
29785
+ /* EditorOption.fontVariations */
29786
+ );
29787
+ const lineHeight = options.get(
29788
+ 75
29789
+ /* EditorOption.lineHeight */
29790
+ );
29791
+ const letterSpacing = options.get(
29792
+ 72
29793
+ /* EditorOption.letterSpacing */
29794
+ );
29795
+ return BareFontInfo._create(fontFamily, fontWeight, fontSize, fontFeatureSettings, fontVariationSettings, lineHeight, letterSpacing, pixelRatio, ignoreEditorZoom);
29796
+ }
29730
29797
  const IAccessibilityService = createDecorator("accessibilityService");
29731
29798
  const CONTEXT_ACCESSIBILITY_MODE_ENABLED = new RawContextKey("accessibilityModeEnabled", false);
29732
29799
  var __decorate$31 = function(decorators, target, key, desc) {
@@ -29787,7 +29854,7 @@ define("vs/editor.api-BhD7pWdi", ["exports"], (function(exports) {
29787
29854
  }
29788
29855
  _computeOptions() {
29789
29856
  const partialEnv = this._readEnvConfiguration();
29790
- const bareFontInfo = BareFontInfo.createFromValidatedSettings(this._validatedOptions, partialEnv.pixelRatio, this.isSimpleWidget);
29857
+ const bareFontInfo = createBareFontInfoFromValidatedSettings(this._validatedOptions, partialEnv.pixelRatio, this.isSimpleWidget);
29791
29858
  const fontInfo = this._readFontInfo(bareFontInfo);
29792
29859
  const env2 = {
29793
29860
  memory: this._computeOptionsMemory,
@@ -29818,6 +29885,7 @@ define("vs/editor.api-BhD7pWdi", ["exports"], (function(exports) {
29818
29885
  outerHeight: this._containerObserver.getHeight(),
29819
29886
  emptySelectionClipboard: isWebKit || isFirefox$1,
29820
29887
  pixelRatio: PixelRatio.getInstance(getWindowById(this._targetWindowId, true).window).value,
29888
+ // eslint-disable-next-line local/code-no-any-casts, @typescript-eslint/no-explicit-any
29821
29889
  editContextSupported: typeof globalThis.EditContext === "function",
29822
29890
  accessibilitySupport: this._accessibilityService.isScreenReaderOptimized() ? 2 : this._accessibilityService.getAccessibilitySupport()
29823
29891
  };
@@ -32657,6 +32725,8 @@ define("vs/editor.api-BhD7pWdi", ["exports"], (function(exports) {
32657
32725
  }
32658
32726
  if (!input.containsRTL) {
32659
32727
  tokens = splitLargeTokens(lineContent, tokens, !input.isBasicASCII || input.fontLigatures);
32728
+ } else {
32729
+ tokens = splitLeadingWhitespaceFromRTL(lineContent, tokens);
32660
32730
  }
32661
32731
  return new ResolvedRenderLineInput(input.useMonospaceOptimizations, input.canUseHalfwidthRightwardsArrow, lineContent, len, isOverflowing, overflowingCharCount, tokens, containsForeignElements, input.fauxIndentLength, input.tabSize, input.startVisibleColumn, input.spaceWidth, input.renderSpaceCharCode, input.renderWhitespace, input.renderControlCharacters);
32662
32732
  }
@@ -32742,6 +32812,34 @@ define("vs/editor.api-BhD7pWdi", ["exports"], (function(exports) {
32742
32812
  }
32743
32813
  return result;
32744
32814
  }
32815
+ function splitLeadingWhitespaceFromRTL(lineContent, tokens) {
32816
+ if (tokens.length === 0) {
32817
+ return tokens;
32818
+ }
32819
+ const firstToken = tokens[0];
32820
+ if (!firstToken.containsRTL) {
32821
+ return tokens;
32822
+ }
32823
+ const firstTokenEndIndex = firstToken.endIndex;
32824
+ let firstNonWhitespaceIndex2 = 0;
32825
+ for (let i2 = 0; i2 < firstTokenEndIndex; i2++) {
32826
+ const charCode = lineContent.charCodeAt(i2);
32827
+ if (charCode !== 32 && charCode !== 9) {
32828
+ firstNonWhitespaceIndex2 = i2;
32829
+ break;
32830
+ }
32831
+ }
32832
+ if (firstNonWhitespaceIndex2 === 0) {
32833
+ return tokens;
32834
+ }
32835
+ const result = [];
32836
+ result.push(new LinePart(firstNonWhitespaceIndex2, firstToken.type, firstToken.metadata, false));
32837
+ result.push(new LinePart(firstTokenEndIndex, firstToken.type, firstToken.metadata, firstToken.containsRTL));
32838
+ for (let i2 = 1; i2 < tokens.length; i2++) {
32839
+ result.push(tokens[i2]);
32840
+ }
32841
+ return result;
32842
+ }
32745
32843
  function isControlCharacter(charCode) {
32746
32844
  if (charCode < 32) {
32747
32845
  return charCode !== 9;
@@ -32989,7 +33087,7 @@ define("vs/editor.api-BhD7pWdi", ["exports"], (function(exports) {
32989
33087
  charOffsetInPart = 0;
32990
33088
  sb.appendString("<span ");
32991
33089
  if (partContainsRTL) {
32992
- sb.appendString('style="unicode-bidi:isolate" ');
33090
+ sb.appendString('dir="rtl" style="unicode-bidi:isolate" ');
32993
33091
  }
32994
33092
  sb.appendString('class="');
32995
33093
  sb.appendString(partRendersWhitespaceWithWidth ? "mtkz" : partType);
@@ -36121,7 +36219,7 @@ define("vs/editor.api-BhD7pWdi", ["exports"], (function(exports) {
36121
36219
  this._horizontalScrollbar.writeScrollPosition(desiredScrollPosition, desiredScrollLeft);
36122
36220
  }
36123
36221
  desiredScrollPosition = this._scrollable.validateScrollPosition(desiredScrollPosition);
36124
- if (this._options.inertialScroll && (deltaX || deltaY)) {
36222
+ if (this._options.inertialScroll && (deltaX || deltaY) && !classifier.isPhysicalMouseWheel()) {
36125
36223
  let startPeriodic = false;
36126
36224
  if (this._inertialSpeed.X === 0 && this._inertialSpeed.Y === 0) {
36127
36225
  startPeriodic = true;
@@ -36659,7 +36757,8 @@ define("vs/editor.api-BhD7pWdi", ["exports"], (function(exports) {
36659
36757
  if (!this.viewHelper.viewDomNode.contains(target)) {
36660
36758
  const shadowRoot = getShadowRoot(this.viewHelper.viewDomNode);
36661
36759
  if (shadowRoot) {
36662
- target = shadowRoot.elementsFromPoint(e.posx, e.posy).find((el) => this.viewHelper.viewDomNode.contains(el));
36760
+ const potentialTarget = shadowRoot.elementsFromPoint(e.posx, e.posy).find((el) => this.viewHelper.viewDomNode.contains(el)) ?? null;
36761
+ target = potentialTarget;
36663
36762
  }
36664
36763
  }
36665
36764
  return this.mouseTargetFactory.createMouseTarget(this.viewHelper.getLastRenderData(), e.editorPos, e.pos, e.relativePos, testEventTarget ? target : null);
@@ -38549,7 +38648,7 @@ define("vs/editor.api-BhD7pWdi", ["exports"], (function(exports) {
38549
38648
  if (wasInvalid[i2]) {
38550
38649
  const source = hugeDomNode.firstChild;
38551
38650
  const lineDomNode = line.getDomNode();
38552
- lineDomNode.parentNode.replaceChild(source, lineDomNode);
38651
+ lineDomNode.replaceWith(source);
38553
38652
  line.setDomNode(source);
38554
38653
  }
38555
38654
  }
@@ -42977,7 +43076,7 @@ define("vs/editor.api-BhD7pWdi", ["exports"], (function(exports) {
42977
43076
  DocumentHighlightKind2[DocumentHighlightKind2["Write"] = 2] = "Write";
42978
43077
  })(DocumentHighlightKind$1 || (DocumentHighlightKind$1 = {}));
42979
43078
  function isLocationLink(thing) {
42980
- return thing && URI.isUri(thing.uri) && Range$2.isIRange(thing.range) && (Range$2.isIRange(thing.originSelectionRange) || Range$2.isIRange(thing.targetSelectionRange));
43079
+ return !!thing && URI.isUri(thing.uri) && Range$2.isIRange(thing.range) && (Range$2.isIRange(thing.originSelectionRange) || Range$2.isIRange(thing.targetSelectionRange));
42981
43080
  }
42982
43081
  const symbolKindNames = {
42983
43082
  [
@@ -47476,6 +47575,7 @@ define("vs/editor.api-BhD7pWdi", ["exports"], (function(exports) {
47476
47575
  return func(arg1);
47477
47576
  } catch (e) {
47478
47577
  onUnexpectedError(e);
47578
+ return void 0;
47479
47579
  }
47480
47580
  }
47481
47581
  class WhitespaceOverlay extends DynamicViewOverlay {
@@ -66783,7 +66883,7 @@ struct VSOutput {
66783
66883
  findMatches(searchString, rawSearchScope, isRegex, matchCase, wordSeparators2, captureMatches, limitResultCount = LIMIT_FIND_COUNT) {
66784
66884
  this._assertNotDisposed();
66785
66885
  let searchRanges = null;
66786
- if (rawSearchScope !== null) {
66886
+ if (rawSearchScope !== null && typeof rawSearchScope !== "boolean") {
66787
66887
  if (!Array.isArray(rawSearchScope)) {
66788
66888
  rawSearchScope = [rawSearchScope];
66789
66889
  }
@@ -75244,7 +75344,9 @@ struct VSOutput {
75244
75344
  const command = EditorExtensionsRegistry.getEditorCommand(handlerId);
75245
75345
  if (command) {
75246
75346
  payload = payload || {};
75247
- payload.source = source;
75347
+ if (isObject(payload)) {
75348
+ payload.source = source;
75349
+ }
75248
75350
  this._instantiationService.invokeFunction((accessor) => {
75249
75351
  Promise.resolve(command.runEditorCommand(accessor, this, payload)).then(void 0, onUnexpectedError);
75250
75352
  });
@@ -80013,10 +80115,13 @@ ${text2}</tr>
80013
80115
  }
80014
80116
  if (typeof obj === "object") {
80015
80117
  switch (obj.$mid) {
80118
+ // eslint-disable-next-line local/code-no-any-casts
80016
80119
  case 1:
80017
80120
  return URI.revive(obj);
80121
+ // eslint-disable-next-line local/code-no-any-casts
80018
80122
  case 2:
80019
80123
  return new RegExp(obj.source, obj.flags);
80124
+ // eslint-disable-next-line local/code-no-any-casts
80020
80125
  case 17:
80021
80126
  return new Date(obj.source);
80022
80127
  }
@@ -84181,7 +84286,7 @@ ${escape$2(text2)}
84181
84286
  content.push(`
84182
84287
  .monaco-drag-image${suffix},
84183
84288
  .monaco-list${suffix}:focus .monaco-list-row.focused,
84184
- .monaco-workbench.context-menu-visible .monaco-list${suffix}.last-focused .monaco-list-row.focused { outline: 1px solid ${styles.listFocusOutline}; outline-offset: -1px; }
84289
+ .context-menu-visible .monaco-list${suffix}.last-focused .monaco-list-row.focused { outline: 1px solid ${styles.listFocusOutline}; outline-offset: -1px; }
84185
84290
  `);
84186
84291
  }
84187
84292
  const inactiveFocusAndSelectionOutline = asCssValueWithDefault(styles.listSelectionOutline, styles.listInactiveFocusOutline ?? "");
@@ -84222,13 +84327,13 @@ ${escape$2(text2)}
84222
84327
  content.push(`
84223
84328
  .monaco-table > .monaco-split-view2,
84224
84329
  .monaco-table > .monaco-split-view2 .monaco-sash.vertical::before,
84225
- .monaco-workbench:not(.reduce-motion) .monaco-table:hover > .monaco-split-view2,
84226
- .monaco-workbench:not(.reduce-motion) .monaco-table:hover > .monaco-split-view2 .monaco-sash.vertical::before {
84330
+ .monaco-enable-motion .monaco-table:hover > .monaco-split-view2,
84331
+ .monaco-enable-motion .monaco-table:hover > .monaco-split-view2 .monaco-sash.vertical::before {
84227
84332
  border-color: ${styles.tableColumnsBorder};
84228
84333
  }
84229
84334
 
84230
- .monaco-workbench:not(.reduce-motion) .monaco-table > .monaco-split-view2,
84231
- .monaco-workbench:not(.reduce-motion) .monaco-table > .monaco-split-view2 .monaco-sash.vertical::before {
84335
+ .monaco-enable-motion .monaco-table > .monaco-split-view2,
84336
+ .monaco-enable-motion .monaco-table > .monaco-split-view2 .monaco-sash.vertical::before {
84232
84337
  border-color: transparent;
84233
84338
  }
84234
84339
  `);
@@ -92468,6 +92573,7 @@ ${escape$2(text2)}
92468
92573
  useTrueInlineView: boolean(options.experimental?.useTrueInlineView, defaults.experimental.useTrueInlineView)
92469
92574
  },
92470
92575
  hideUnchangedRegions: {
92576
+ // eslint-disable-next-line local/code-no-any-casts, @typescript-eslint/no-explicit-any
92471
92577
  enabled: boolean(options.hideUnchangedRegions?.enabled ?? options.experimental?.collapseUnchangedRegions, defaults.hideUnchangedRegions.enabled),
92472
92578
  contextLineCount: clampedInt(
92473
92579
  options.hideUnchangedRegions?.contextLineCount,
@@ -103523,7 +103629,7 @@ ${escape$2(text2)}
103523
103629
  const actionItem = actions.validActions[0];
103524
103630
  const command = actionItem.action.command;
103525
103631
  if (command && command.id === "inlineChat.start") {
103526
- if (command.arguments && command.arguments.length >= 1) {
103632
+ if (command.arguments && command.arguments.length >= 1 && command.arguments[0]) {
103527
103633
  command.arguments[0] = { ...command.arguments[0], autoSend: false };
103528
103634
  }
103529
103635
  }
@@ -114282,9 +114388,9 @@ ${escape$2(text2)}
114282
114388
  if (styles.listFocusOutline) {
114283
114389
  content.push(`.monaco-list${suffix}.sticky-scroll-focused .monaco-scrollable-element .monaco-tree-sticky-container:focus .monaco-list-row.focused { outline: 1px solid ${styles.listFocusOutline}; outline-offset: -1px; }`);
114284
114390
  content.push(`.monaco-list${suffix}:not(.sticky-scroll-focused) .monaco-scrollable-element .monaco-tree-sticky-container .monaco-list-row.focused { outline: inherit; }`);
114285
- content.push(`.monaco-workbench.context-menu-visible .monaco-list${suffix}.last-focused.sticky-scroll-focused .monaco-scrollable-element .monaco-tree-sticky-container .monaco-list-row.passive-focused { outline: 1px solid ${styles.listFocusOutline}; outline-offset: -1px; }`);
114286
- content.push(`.monaco-workbench.context-menu-visible .monaco-list${suffix}.last-focused.sticky-scroll-focused .monaco-list-rows .monaco-list-row.focused { outline: inherit; }`);
114287
- content.push(`.monaco-workbench.context-menu-visible .monaco-list${suffix}.last-focused:not(.sticky-scroll-focused) .monaco-tree-sticky-container .monaco-list-rows .monaco-list-row.focused { outline: inherit; }`);
114391
+ content.push(`.context-menu-visible .monaco-list${suffix}.last-focused.sticky-scroll-focused .monaco-scrollable-element .monaco-tree-sticky-container .monaco-list-row.passive-focused { outline: 1px solid ${styles.listFocusOutline}; outline-offset: -1px; }`);
114392
+ content.push(`.context-menu-visible .monaco-list${suffix}.last-focused.sticky-scroll-focused .monaco-list-rows .monaco-list-row.focused { outline: inherit; }`);
114393
+ content.push(`.context-menu-visible .monaco-list${suffix}.last-focused:not(.sticky-scroll-focused) .monaco-tree-sticky-container .monaco-list-rows .monaco-list-row.focused { outline: inherit; }`);
114288
114394
  }
114289
114395
  this.styleElement.textContent = content.join("\n");
114290
114396
  this.view.style(styles);
@@ -119836,6 +119942,25 @@ ${escape$2(text2)}
119836
119942
  this.hasTriggerModifier = hasTriggerModifier2;
119837
119943
  }
119838
119944
  }
119945
+ class CancellationStore {
119946
+ constructor() {
119947
+ this._store = new MutableDisposable();
119948
+ this._tokenSource = new CancellationTokenSource$1();
119949
+ }
119950
+ dispose() {
119951
+ this._store.dispose();
119952
+ this._tokenSource.dispose(true);
119953
+ }
119954
+ reset() {
119955
+ this._tokenSource.dispose(true);
119956
+ this._tokenSource = new CancellationTokenSource$1();
119957
+ this._store.value = new DisposableStore();
119958
+ return {
119959
+ store: this._store.value,
119960
+ token: this._tokenSource.token
119961
+ };
119962
+ }
119963
+ }
119839
119964
  let InlayHintsController = (_M = class {
119840
119965
  static get(editor2) {
119841
119966
  return editor2.getContribution(InlayHintsController_1.ID) ?? void 0;
@@ -119923,41 +120048,36 @@ ${escape$2(text2)}
119923
120048
  }));
119924
120049
  let cts;
119925
120050
  const watchedProviders = /* @__PURE__ */ new Set();
120051
+ this._sessionDisposables.add(model.onWillDispose(() => cts?.cancel()));
120052
+ const cancellationStore = this._sessionDisposables.add(new CancellationStore());
119926
120053
  const scheduler = new RunOnceScheduler(async () => {
119927
120054
  const t1 = Date.now();
119928
- cts?.dispose(true);
119929
- cts = new CancellationTokenSource$1();
119930
- const listener = model.onWillDispose(() => cts?.cancel());
120055
+ const { store, token } = cancellationStore.reset();
119931
120056
  try {
119932
- const myToken = cts.token;
119933
- const inlayHints = await InlayHintsFragments.create(this._languageFeaturesService.inlayHintsProvider, model, this._getHintsRanges(), myToken);
120057
+ const inlayHints = await InlayHintsFragments.create(this._languageFeaturesService.inlayHintsProvider, model, this._getHintsRanges(), token);
119934
120058
  scheduler.delay = this._debounceInfo.update(model, Date.now() - t1);
119935
- if (myToken.isCancellationRequested) {
120059
+ if (token.isCancellationRequested) {
119936
120060
  inlayHints.dispose();
119937
120061
  return;
119938
120062
  }
119939
120063
  for (const provider of inlayHints.provider) {
119940
120064
  if (typeof provider.onDidChangeInlayHints === "function" && !watchedProviders.has(provider)) {
119941
120065
  watchedProviders.add(provider);
119942
- this._sessionDisposables.add(provider.onDidChangeInlayHints(() => {
120066
+ store.add(provider.onDidChangeInlayHints(() => {
119943
120067
  if (!scheduler.isScheduled()) {
119944
120068
  scheduler.schedule();
119945
120069
  }
119946
120070
  }));
119947
120071
  }
119948
120072
  }
119949
- this._sessionDisposables.add(inlayHints);
120073
+ store.add(inlayHints);
119950
120074
  this._updateHintsDecorators(inlayHints.ranges, inlayHints.items);
119951
120075
  this._cacheHintsForFastRestore(model);
119952
120076
  } catch (err) {
119953
120077
  onUnexpectedError(err);
119954
- } finally {
119955
- cts.dispose();
119956
- listener.dispose();
119957
120078
  }
119958
120079
  }, this._debounceInfo.get(model));
119959
120080
  this._sessionDisposables.add(scheduler);
119960
- this._sessionDisposables.add(toDisposable(() => cts?.dispose(true)));
119961
120081
  scheduler.schedule(0);
119962
120082
  this._sessionDisposables.add(this._editor.onDidScrollChange((e) => {
119963
120083
  if (e.scrollTopChanged || !scheduler.isScheduled()) {
@@ -119966,7 +120086,6 @@ ${escape$2(text2)}
119966
120086
  }));
119967
120087
  const cursor = this._sessionDisposables.add(new MutableDisposable());
119968
120088
  this._sessionDisposables.add(this._editor.onDidChangeModelContent((e) => {
119969
- cts?.cancel();
119970
120089
  const delay = Math.max(scheduler.delay, 800);
119971
120090
  this._cursorInfo = { position: this._editor.getPosition(), notEarlierThan: Date.now() + delay };
119972
120091
  cursor.value = disposableTimeout(() => scheduler.schedule(0), delay);
@@ -133117,6 +133236,51 @@ ${escape$2(text2)}
133117
133236
  const extIdLowerCase = extensionId.toLowerCase();
133118
133237
  return extIdLowerCase === "github.copilot" || extIdLowerCase === "github.copilot-chat";
133119
133238
  }
133239
+ let product;
133240
+ const vscodeGlobal = globalThis.vscode;
133241
+ if (typeof vscodeGlobal !== "undefined" && typeof vscodeGlobal.context !== "undefined") {
133242
+ const configuration = vscodeGlobal.context.configuration();
133243
+ if (configuration) {
133244
+ product = configuration.product;
133245
+ } else {
133246
+ throw new Error("Sandbox: unable to resolve product configuration from preload script.");
133247
+ }
133248
+ } else if (globalThis._VSCODE_PRODUCT_JSON && globalThis._VSCODE_PACKAGE_JSON) {
133249
+ product = globalThis._VSCODE_PRODUCT_JSON;
133250
+ if (env["VSCODE_DEV"]) {
133251
+ Object.assign(product, {
133252
+ nameShort: `${product.nameShort} Dev`,
133253
+ nameLong: `${product.nameLong} Dev`,
133254
+ dataFolderName: `${product.dataFolderName}-dev`,
133255
+ serverDataFolderName: product.serverDataFolderName ? `${product.serverDataFolderName}-dev` : void 0
133256
+ });
133257
+ }
133258
+ if (!product.version) {
133259
+ const pkg = globalThis._VSCODE_PACKAGE_JSON;
133260
+ Object.assign(product, {
133261
+ version: pkg.version
133262
+ });
133263
+ }
133264
+ } else {
133265
+ product = {
133266
+ /*BUILD->INSERT_PRODUCT_CONFIGURATION*/
133267
+ };
133268
+ if (Object.keys(product).length === 0) {
133269
+ Object.assign(product, {
133270
+ version: "1.104.0-dev",
133271
+ nameShort: "Code - OSS Dev",
133272
+ nameLong: "Code - OSS Dev",
133273
+ applicationName: "code-oss",
133274
+ dataFolderName: ".vscode-oss",
133275
+ urlProtocol: "code-oss",
133276
+ reportIssueUrl: "https://github.com/microsoft/vscode/issues/new",
133277
+ licenseName: "MIT",
133278
+ licenseUrl: "https://github.com/microsoft/vscode/blob/main/LICENSE.txt",
133279
+ serverLicenseUrl: "https://github.com/microsoft/vscode/blob/main/LICENSE.txt"
133280
+ });
133281
+ }
133282
+ }
133283
+ const product$1 = product;
133120
133284
  function offsetEditFromContentChanges(contentChanges) {
133121
133285
  const editsArr = contentChanges.map((c) => new StringReplacement(OffsetRange.ofStartAndLength(c.rangeOffset, c.rangeLength), c.text));
133122
133286
  editsArr.reverse();
@@ -134503,7 +134667,7 @@ ${escape$2(text2)}
134503
134667
  };
134504
134668
  var InlineCompletionsSource_1;
134505
134669
  let InlineCompletionsSource = (_$2 = class extends Disposable {
134506
- constructor(_textModel, _versionId, _debounceValue, _cursorPosition, _languageConfigurationService, _logService, _configurationService, _instantiationService) {
134670
+ constructor(_textModel, _versionId, _debounceValue, _cursorPosition, _languageConfigurationService, _logService, _configurationService, _instantiationService, _contextKeyService) {
134507
134671
  super();
134508
134672
  this._textModel = _textModel;
134509
134673
  this._versionId = _versionId;
@@ -134513,6 +134677,7 @@ ${escape$2(text2)}
134513
134677
  this._logService = _logService;
134514
134678
  this._configurationService = _configurationService;
134515
134679
  this._instantiationService = _instantiationService;
134680
+ this._contextKeyService = _contextKeyService;
134516
134681
  this._updateOperation = this._register(new MutableDisposable());
134517
134682
  this._state = observableReducerSettable(this, {
134518
134683
  initial: () => ({
@@ -134542,6 +134707,7 @@ ${escape$2(text2)}
134542
134707
  });
134543
134708
  this.inlineCompletions = this._state.map(this, (v) => v.inlineCompletions);
134544
134709
  this.suggestWidgetInlineCompletions = this._state.map(this, (v) => v.suggestWidgetInlineCompletions);
134710
+ this._completionsEnabled = void 0;
134545
134711
  this.clearOperationOnTextModelChange = derived(this, (reader) => {
134546
134712
  this._versionId.read(reader);
134547
134713
  this._updateOperation.clear();
@@ -134552,6 +134718,23 @@ ${escape$2(text2)}
134552
134718
  this._sendRequestData = observableConfigValue("editor.inlineSuggest.emptyResponseInformation", true, this._configurationService).recomputeInitiallyAndOnChange(this._store);
134553
134719
  this._structuredFetchLogger = this._register(this._instantiationService.createInstance(StructuredLogger.cast(), "editor.inlineSuggest.logFetch.commandId"));
134554
134720
  this.clearOperationOnTextModelChange.recomputeInitiallyAndOnChange(this._store);
134721
+ const enablementSetting = product$1.defaultChatAgent?.completionsEnablementSetting ?? void 0;
134722
+ if (enablementSetting) {
134723
+ this._updateCompletionsEnablement(enablementSetting);
134724
+ this._register(this._configurationService.onDidChangeConfiguration((e) => {
134725
+ if (e.affectsConfiguration(enablementSetting)) {
134726
+ this._updateCompletionsEnablement(enablementSetting);
134727
+ }
134728
+ }));
134729
+ }
134730
+ }
134731
+ _updateCompletionsEnablement(enalementSetting) {
134732
+ const result = this._configurationService.getValue(enalementSetting);
134733
+ if (!isObject(result)) {
134734
+ this._completionsEnabled = void 0;
134735
+ } else {
134736
+ this._completionsEnabled = result;
134737
+ }
134555
134738
  }
134556
134739
  _log(entry) {
134557
134740
  if (this._loggingEnabled.get()) {
@@ -134572,8 +134755,17 @@ ${escape$2(text2)}
134572
134755
  this._updateOperation.clear();
134573
134756
  const source = new CancellationTokenSource$1();
134574
134757
  const promise = (async () => {
134575
- this._loadingCount.set(this._loadingCount.get() + 1, void 0);
134576
134758
  const store = new DisposableStore();
134759
+ this._loadingCount.set(this._loadingCount.get() + 1, void 0);
134760
+ let didDecrease = false;
134761
+ const decreaseLoadingCount = () => {
134762
+ if (!didDecrease) {
134763
+ didDecrease = true;
134764
+ this._loadingCount.set(this._loadingCount.get() - 1, void 0);
134765
+ }
134766
+ };
134767
+ const loadingReset = store.add(new RunOnceScheduler(() => decreaseLoadingCount(), 10 * 1e3));
134768
+ loadingReset.schedule();
134577
134769
  const inlineSuggestionsProviders = providers.filter((p) => p.providerId);
134578
134770
  const requestResponseInfo = new RequestResponseData(context, requestInfo, inlineSuggestionsProviders);
134579
134771
  try {
@@ -134659,7 +134851,8 @@ ${escape$2(text2)}
134659
134851
  if (source.token.isCancellationRequested) {
134660
134852
  requestResponseInfo.setNoSuggestionReasonIfNotSet("canceled:whileFetching");
134661
134853
  } else {
134662
- requestResponseInfo.setNoSuggestionReasonIfNotSet("noSuggestion");
134854
+ const completionsQuotaExceeded = this._contextKeyService.getContextKeyValue("completionsQuotaExceeded");
134855
+ requestResponseInfo.setNoSuggestionReasonIfNotSet(completionsQuotaExceeded ? "completionsQuotaExceeded" : "noSuggestion");
134663
134856
  }
134664
134857
  }
134665
134858
  const remainingTimeToWait = context.earliestShownDateTime - Date.now();
@@ -134692,8 +134885,8 @@ ${escape$2(text2)}
134692
134885
  v.suggestWidgetInlineCompletions.dispose();
134693
134886
  });
134694
134887
  } finally {
134695
- this._loadingCount.set(this._loadingCount.get() - 1, void 0);
134696
134888
  store.dispose();
134889
+ decreaseLoadingCount();
134697
134890
  this.sendInlineCompletionsRequestTelemetry(requestResponseInfo);
134698
134891
  }
134699
134892
  return true;
@@ -134733,12 +134926,18 @@ ${escape$2(text2)}
134733
134926
  });
134734
134927
  }
134735
134928
  sendInlineCompletionsRequestTelemetry(requestResponseInfo) {
134736
- if (!this._sendRequestData.get()) {
134929
+ if (!this._sendRequestData.get() && !this._contextKeyService.getContextKeyValue("isRunningUnificationExperiment")) {
134737
134930
  return;
134738
134931
  }
134739
134932
  if (requestResponseInfo.requestUuid === void 0 || requestResponseInfo.hasProducedSuggestion) {
134740
134933
  return;
134741
134934
  }
134935
+ if (!isCompletionsEnabled(this._completionsEnabled, this._textModel.getLanguageId())) {
134936
+ return;
134937
+ }
134938
+ if (!requestResponseInfo.providers.some((p) => isCopilotLikeExtension(p.providerId?.extensionId))) {
134939
+ return;
134940
+ }
134742
134941
  const emptyEndOfLifeEvent = {
134743
134942
  id: requestResponseInfo.requestUuid,
134744
134943
  opportunityId: requestResponseInfo.requestUuid,
@@ -134796,7 +134995,8 @@ ${escape$2(text2)}
134796
134995
  __param$1z(4, ILanguageConfigurationService),
134797
134996
  __param$1z(5, ILogService),
134798
134997
  __param$1z(6, IConfigurationService),
134799
- __param$1z(7, IInstantiationService)
134998
+ __param$1z(7, IInstantiationService),
134999
+ __param$1z(8, IContextKeyService)
134800
135000
  ], InlineCompletionsSource);
134801
135001
  class UpdateRequest {
134802
135002
  constructor(position, context, versionId, providers) {
@@ -134829,6 +135029,15 @@ ${escape$2(text2)}
134829
135029
  function isSubset(set1, set2) {
134830
135030
  return [...set1].every((item) => set2.has(item));
134831
135031
  }
135032
+ function isCompletionsEnabled(completionsEnablementObject, modeId = "*") {
135033
+ if (completionsEnablementObject === void 0) {
135034
+ return false;
135035
+ }
135036
+ if (typeof completionsEnablementObject[modeId] !== "undefined") {
135037
+ return Boolean(completionsEnablementObject[modeId]);
135038
+ }
135039
+ return Boolean(completionsEnablementObject["*"]);
135040
+ }
134832
135041
  class UpdateOperation {
134833
135042
  constructor(request, cancellationTokenSource, promise) {
134834
135043
  this.request = request;
@@ -134965,7 +135174,7 @@ ${escape$2(text2)}
134965
135174
  this.onDidChangeIsSnoozing = this._onDidChangeIsSnoozing.event;
134966
135175
  this._snoozeTimeEnd = void 0;
134967
135176
  this._recentCompletionIds = [];
134968
- this._timer = this._register(new WindowIntervalTimer());
135177
+ this._timer = this._register(new TimeoutTimer());
134969
135178
  const inlineCompletionsSnoozing = InlineCompletionsSnoozing.bindTo(this._contextKeyService);
134970
135179
  this._register(this.onDidChangeIsSnoozing(() => inlineCompletionsSnoozing.set(this.isSnoozing())));
134971
135180
  }
@@ -135047,15 +135256,15 @@ ${escape$2(text2)}
135047
135256
  const quickInputService = accessor.get(IQuickInputService);
135048
135257
  const inlineCompletionsService = accessor.get(IInlineCompletionsService);
135049
135258
  const storageService = accessor.get(IStorageService);
135050
- let durationMinutes;
135259
+ let durationMs;
135051
135260
  if (args.length > 0 && typeof args[0] === "number") {
135052
- durationMinutes = args[0];
135261
+ durationMs = args[0] * 6e4;
135053
135262
  }
135054
- if (!durationMinutes) {
135055
- durationMinutes = await this.getDurationFromUser(quickInputService, storageService);
135263
+ if (!durationMs) {
135264
+ durationMs = await this.getDurationFromUser(quickInputService, storageService);
135056
135265
  }
135057
- if (durationMinutes) {
135058
- inlineCompletionsService.setSnoozeDuration(durationMinutes);
135266
+ if (durationMs) {
135267
+ inlineCompletionsService.setSnoozeDuration(durationMs);
135059
135268
  }
135060
135269
  }
135061
135270
  async getDurationFromUser(quickInputService, storageService) {
@@ -135526,7 +135735,8 @@ ${escape$2(text2)}
135526
135735
  const inlineEdit = new InlineEdit(edit2, commands ?? [], inlineEditResult);
135527
135736
  const edits = inlineEditResult.updatedEdit;
135528
135737
  const e = edits ? TextEdit.fromStringEdit(edits, new TextModelText(this.textModel)).replacements : [edit2];
135529
- const nextEditUri = (item.inlineEdit?.command?.id === "vscode.open" || item.inlineEdit?.command?.id === "_workbench.open") && item.inlineEdit?.command.arguments?.length ? URI.from(item.inlineEdit?.command.arguments[0]) : void 0;
135738
+ const nextEditUri = (item.inlineEdit?.command?.id === "vscode.open" || item.inlineEdit?.command?.id === "_workbench.open") && // eslint-disable-next-line local/code-no-any-casts
135739
+ item.inlineEdit?.command.arguments?.length ? URI.from(item.inlineEdit?.command.arguments[0]) : void 0;
135530
135740
  return { kind: "inlineEdit", inlineEdit, inlineCompletion: inlineEditResult, edits: e, cursorAtInlineEdit, nextEditUri };
135531
135741
  }
135532
135742
  const suggestItem = this._selectedSuggestItem.read(reader);
@@ -135663,6 +135873,9 @@ ${escape$2(text2)}
135663
135873
  if (this.showCollapsed.read(reader)) {
135664
135874
  return false;
135665
135875
  }
135876
+ if (this._tabShouldIndent.read(reader)) {
135877
+ return false;
135878
+ }
135666
135879
  if (this._inAcceptFlow.read(reader) && this._appearedInsideViewport.read(reader)) {
135667
135880
  return true;
135668
135881
  }
@@ -135672,9 +135885,6 @@ ${escape$2(text2)}
135672
135885
  if (this._jumpedToId.read(reader) === s.inlineCompletion.semanticId) {
135673
135886
  return true;
135674
135887
  }
135675
- if (this._tabShouldIndent.read(reader)) {
135676
- return false;
135677
- }
135678
135888
  return s.cursorAtInlineEdit.read(reader);
135679
135889
  });
135680
135890
  this._jumpedToId = observableValue(this, void 0);
@@ -143570,6 +143780,7 @@ ${escape$2(text2)}
143570
143780
  zIndex: "20",
143571
143781
  position: "absolute",
143572
143782
  backgroundColor: this._gutterIndicatorStyles.map((v) => v.background),
143783
+ // eslint-disable-next-line local/code-no-any-casts
143573
143784
  ["--vscodeIconForeground"]: this._gutterIndicatorStyles.map((v) => v.foreground),
143574
143785
  border: this._gutterIndicatorStyles.map((v) => `1px solid ${v.border}`),
143575
143786
  boxSizing: "border-box",
@@ -147426,7 +147637,7 @@ ${json}
147426
147637
  }
147427
147638
  return getDefinitionsAtPosition(this.languageFeaturesService.definitionProvider, model, position, false, token);
147428
147639
  }
147429
- gotoDefinition(position, openToSide) {
147640
+ async gotoDefinition(position, openToSide) {
147430
147641
  this.editor.setPosition(position);
147431
147642
  return this.editor.invokeWithinContext((accessor) => {
147432
147643
  const canPeek = !openToSide && this.editor.getOption(
@@ -159509,7 +159720,7 @@ ${json}
159509
159720
  regExp.lastIndex = 0;
159510
159721
  return typeof path === "string" && regExp.test(path) ? pattern : null;
159511
159722
  };
159512
- } catch (error) {
159723
+ } catch {
159513
159724
  return NULL;
159514
159725
  }
159515
159726
  }
@@ -165093,7 +165304,7 @@ ${this._themeCSS}`;
165093
165304
  setWorkerId(workerId) {
165094
165305
  this._workerId = workerId;
165095
165306
  }
165096
- sendMessage(channel, method, args) {
165307
+ async sendMessage(channel, method, args) {
165097
165308
  const req = String(++this._lastSentReq);
165098
165309
  return new Promise((resolve2, reject) => {
165099
165310
  this._pendingReplies[req] = {
@@ -165174,10 +165385,11 @@ ${this._themeCSS}`;
165174
165385
  if (replyMessage.err) {
165175
165386
  let err = replyMessage.err;
165176
165387
  if (replyMessage.err.$isError) {
165177
- err = new Error();
165178
- err.name = replyMessage.err.name;
165179
- err.message = replyMessage.err.message;
165180
- err.stack = replyMessage.err.stack;
165388
+ const newErr = new Error();
165389
+ newErr.name = replyMessage.err.name;
165390
+ newErr.message = replyMessage.err.message;
165391
+ newErr.stack = replyMessage.err.stack;
165392
+ err = newErr;
165181
165393
  }
165182
165394
  reply.reject(err);
165183
165395
  return;
@@ -165222,8 +165434,9 @@ ${this._themeCSS}`;
165222
165434
  const transfer = [];
165223
165435
  if (msg.type === 0) {
165224
165436
  for (let i2 = 0; i2 < msg.args.length; i2++) {
165225
- if (msg.args[i2] instanceof ArrayBuffer) {
165226
- transfer.push(msg.args[i2]);
165437
+ const arg = msg.args[i2];
165438
+ if (arg instanceof ArrayBuffer) {
165439
+ transfer.push(arg);
165227
165440
  }
165228
165441
  }
165229
165442
  } else if (msg.type === 1) {
@@ -165260,7 +165473,8 @@ ${this._themeCSS}`;
165260
165473
  this._protocol.setWorkerId(this._worker.getId());
165261
165474
  this._onModuleLoaded = this._protocol.sendMessage(DEFAULT_CHANNEL, INITIALIZE, [
165262
165475
  this._worker.getId()
165263
- ]);
165476
+ ]).then(() => {
165477
+ });
165264
165478
  this.proxy = this._protocol.createProxyToRemoteChannel(DEFAULT_CHANNEL, async () => {
165265
165479
  await this._onModuleLoaded;
165266
165480
  });
@@ -165273,11 +165487,12 @@ ${this._themeCSS}`;
165273
165487
  if (!channel) {
165274
165488
  return Promise.reject(new Error(`Missing channel ${channelName} on main thread`));
165275
165489
  }
165276
- if (typeof channel[method] !== "function") {
165490
+ const fn = channel[method];
165491
+ if (typeof fn !== "function") {
165277
165492
  return Promise.reject(new Error(`Missing method ${method} on main thread channel ${channelName}`));
165278
165493
  }
165279
165494
  try {
165280
- return Promise.resolve(channel[method].apply(channel, args));
165495
+ return Promise.resolve(fn.apply(channel, args));
165281
165496
  } catch (e) {
165282
165497
  return Promise.reject(e);
165283
165498
  }
@@ -165288,7 +165503,11 @@ ${this._themeCSS}`;
165288
165503
  throw new Error(`Missing channel ${channelName} on main thread`);
165289
165504
  }
165290
165505
  if (propertyIsDynamicEvent(eventName)) {
165291
- const event = channel[eventName].call(channel, arg);
165506
+ const fn = channel[eventName];
165507
+ if (typeof fn !== "function") {
165508
+ throw new Error(`Missing dynamic event ${eventName} on main thread channel ${channelName}.`);
165509
+ }
165510
+ const event = fn.call(channel, arg);
165292
165511
  if (typeof event !== "function") {
165293
165512
  throw new Error(`Missing dynamic event ${eventName} on main thread channel ${channelName}.`);
165294
165513
  }
@@ -166475,6 +166694,7 @@ ${this._themeCSS}`;
166475
166694
  const _EditorWorker = class _EditorWorker {
166476
166695
  constructor(_foreignModule = null) {
166477
166696
  this._foreignModule = _foreignModule;
166697
+ this._requestHandlerBrand = void 0;
166478
166698
  this._workerTextModelSyncServer = new WorkerTextModelSyncServer();
166479
166699
  }
166480
166700
  dispose() {
@@ -174684,20 +174904,11 @@ ${formatRule(Codicon.menuSubmenu)}
174684
174904
  static _readModelOptions(config, isForSimpleWidget) {
174685
174905
  let tabSize = EDITOR_MODEL_DEFAULTS.tabSize;
174686
174906
  if (config.editor && typeof config.editor.tabSize !== "undefined") {
174687
- const parsedTabSize = parseInt(config.editor.tabSize, 10);
174688
- if (!isNaN(parsedTabSize)) {
174689
- tabSize = parsedTabSize;
174690
- }
174691
- if (tabSize < 1) {
174692
- tabSize = 1;
174693
- }
174907
+ tabSize = clampedInt(config.editor.tabSize, EDITOR_MODEL_DEFAULTS.tabSize, 1, 100);
174694
174908
  }
174695
174909
  let indentSize = "tabSize";
174696
174910
  if (config.editor && typeof config.editor.indentSize !== "undefined" && config.editor.indentSize !== "tabSize") {
174697
- const parsedIndentSize = parseInt(config.editor.indentSize, 10);
174698
- if (!isNaN(parsedIndentSize)) {
174699
- indentSize = Math.max(parsedIndentSize, 1);
174700
- }
174911
+ indentSize = clampedInt(config.editor.indentSize, "tabSize", 1, 100);
174701
174912
  }
174702
174913
  let insertSpaces = EDITOR_MODEL_DEFAULTS.insertSpaces;
174703
174914
  if (config.editor && typeof config.editor.insertSpaces !== "undefined") {
@@ -174724,9 +174935,10 @@ ${formatRule(Codicon.menuSubmenu)}
174724
174935
  }
174725
174936
  let bracketPairColorizationOptions = EDITOR_MODEL_DEFAULTS.bracketPairColorizationOptions;
174726
174937
  if (config.editor?.bracketPairColorization && typeof config.editor.bracketPairColorization === "object") {
174938
+ const bpConfig = config.editor.bracketPairColorization;
174727
174939
  bracketPairColorizationOptions = {
174728
- enabled: !!config.editor.bracketPairColorization.enabled,
174729
- independentColorPoolPerBracketType: !!config.editor.bracketPairColorization.independentColorPoolPerBracketType
174940
+ enabled: !!bpConfig.enabled,
174941
+ independentColorPoolPerBracketType: !!bpConfig.independentColorPoolPerBracketType
174730
174942
  };
174731
174943
  }
174732
174944
  return {
@@ -176063,7 +176275,7 @@ ${formatRule(Codicon.menuSubmenu)}
176063
176275
  if (inBackground && !this._canAcceptInBackground) {
176064
176276
  return;
176065
176277
  }
176066
- if (this.activeItems[0]) {
176278
+ if (this.activeItems[0] && !this._canSelectMany) {
176067
176279
  this._selectedItems = [this.activeItems[0]];
176068
176280
  this.onDidChangeSelectionEmitter.fire(this.selectedItems);
176069
176281
  }
@@ -179364,8 +179576,8 @@ ${formatRule(Codicon.menuSubmenu)}
179364
179576
  }));
179365
179577
  const updateRootClasses = () => {
179366
179578
  const reduce = this.isMotionReduced();
179367
- this._layoutService.mainContainer.classList.toggle("reduce-motion", reduce);
179368
- this._layoutService.mainContainer.classList.toggle("enable-motion", !reduce);
179579
+ this._layoutService.mainContainer.classList.toggle("monaco-reduce-motion", reduce);
179580
+ this._layoutService.mainContainer.classList.toggle("monaco-enable-motion", !reduce);
179369
179581
  };
179370
179582
  updateRootClasses();
179371
179583
  this._register(this.onDidChangeReducedMotion(() => updateRootClasses()));
@@ -182015,8 +182227,10 @@ ${graph.toString()}`;
182015
182227
  h("div.header-content", [
182016
182228
  h("div.collapse-button@collapseButton"),
182017
182229
  h("div.file-path", [
182230
+ // eslint-disable-next-line local/code-no-any-casts, @typescript-eslint/no-explicit-any
182018
182231
  h("div.title.modified.show-file-icons@primaryPath", []),
182019
182232
  h("div.status.deleted@status", ["R"]),
182233
+ // eslint-disable-next-line local/code-no-any-casts, @typescript-eslint/no-explicit-any
182020
182234
  h("div.title.original.show-file-icons@secondaryPath", [])
182021
182235
  ]),
182022
182236
  h("div.actions@actions")
@@ -182806,37 +183020,65 @@ ${graph.toString()}`;
182806
183020
  function createMonacoEditorAPI() {
182807
183021
  return {
182808
183022
  // methods
183023
+ // eslint-disable-next-line local/code-no-any-casts
182809
183024
  create,
183025
+ // eslint-disable-next-line local/code-no-any-casts
182810
183026
  getEditors,
183027
+ // eslint-disable-next-line local/code-no-any-casts
182811
183028
  getDiffEditors,
183029
+ // eslint-disable-next-line local/code-no-any-casts
182812
183030
  onDidCreateEditor,
183031
+ // eslint-disable-next-line local/code-no-any-casts
182813
183032
  onDidCreateDiffEditor,
183033
+ // eslint-disable-next-line local/code-no-any-casts
182814
183034
  createDiffEditor,
183035
+ // eslint-disable-next-line local/code-no-any-casts
182815
183036
  addCommand,
183037
+ // eslint-disable-next-line local/code-no-any-casts
182816
183038
  addEditorAction,
183039
+ // eslint-disable-next-line local/code-no-any-casts
182817
183040
  addKeybindingRule,
183041
+ // eslint-disable-next-line local/code-no-any-casts
182818
183042
  addKeybindingRules,
183043
+ // eslint-disable-next-line local/code-no-any-casts
182819
183044
  createModel,
183045
+ // eslint-disable-next-line local/code-no-any-casts
182820
183046
  setModelLanguage,
183047
+ // eslint-disable-next-line local/code-no-any-casts
182821
183048
  setModelMarkers,
183049
+ // eslint-disable-next-line local/code-no-any-casts
182822
183050
  getModelMarkers,
182823
183051
  removeAllMarkers,
183052
+ // eslint-disable-next-line local/code-no-any-casts
182824
183053
  onDidChangeMarkers,
183054
+ // eslint-disable-next-line local/code-no-any-casts
182825
183055
  getModels,
183056
+ // eslint-disable-next-line local/code-no-any-casts
182826
183057
  getModel,
183058
+ // eslint-disable-next-line local/code-no-any-casts
182827
183059
  onDidCreateModel,
183060
+ // eslint-disable-next-line local/code-no-any-casts
182828
183061
  onWillDisposeModel,
183062
+ // eslint-disable-next-line local/code-no-any-casts
182829
183063
  onDidChangeModelLanguage,
183064
+ // eslint-disable-next-line local/code-no-any-casts
182830
183065
  createWebWorker,
183066
+ // eslint-disable-next-line local/code-no-any-casts
182831
183067
  colorizeElement,
183068
+ // eslint-disable-next-line local/code-no-any-casts
182832
183069
  colorize,
183070
+ // eslint-disable-next-line local/code-no-any-casts
182833
183071
  colorizeModelLine,
183072
+ // eslint-disable-next-line local/code-no-any-casts
182834
183073
  tokenize,
183074
+ // eslint-disable-next-line local/code-no-any-casts
182835
183075
  defineTheme,
183076
+ // eslint-disable-next-line local/code-no-any-casts
182836
183077
  setTheme,
182837
183078
  remeasureFonts,
182838
183079
  registerCommand,
182839
183080
  registerLinkOpener,
183081
+ // eslint-disable-next-line local/code-no-any-casts
182840
183082
  registerEditorOpener,
182841
183083
  // enums
182842
183084
  AccessibilitySupport,
@@ -182866,16 +183108,25 @@ ${graph.toString()}`;
182866
183108
  ShowLightbulbIconMode,
182867
183109
  TextDirection,
182868
183110
  // classes
183111
+ // eslint-disable-next-line local/code-no-any-casts
182869
183112
  ConfigurationChangedEvent,
183113
+ // eslint-disable-next-line local/code-no-any-casts
182870
183114
  BareFontInfo,
183115
+ // eslint-disable-next-line local/code-no-any-casts
182871
183116
  FontInfo,
183117
+ // eslint-disable-next-line local/code-no-any-casts
182872
183118
  TextModelResolvedOptions,
183119
+ // eslint-disable-next-line local/code-no-any-casts
182873
183120
  FindMatch,
183121
+ // eslint-disable-next-line local/code-no-any-casts
182874
183122
  ApplyUpdateResult,
183123
+ // eslint-disable-next-line local/code-no-any-casts
182875
183124
  EditorZoom,
183125
+ // eslint-disable-next-line local/code-no-any-casts
182876
183126
  createMultiFileDiffEditor,
182877
183127
  // vars
182878
183128
  EditorType,
183129
+ // eslint-disable-next-line local/code-no-any-casts
182879
183130
  EditorOptions
182880
183131
  };
182881
183132
  }
@@ -183681,42 +183932,77 @@ ${graph.toString()}`;
183681
183932
  }
183682
183933
  function createMonacoLanguagesAPI() {
183683
183934
  return {
183935
+ // eslint-disable-next-line local/code-no-any-casts
183684
183936
  register,
183937
+ // eslint-disable-next-line local/code-no-any-casts
183685
183938
  getLanguages,
183939
+ // eslint-disable-next-line local/code-no-any-casts
183686
183940
  onLanguage,
183941
+ // eslint-disable-next-line local/code-no-any-casts
183687
183942
  onLanguageEncountered,
183943
+ // eslint-disable-next-line local/code-no-any-casts
183688
183944
  getEncodedLanguageId,
183689
183945
  // provider methods
183946
+ // eslint-disable-next-line local/code-no-any-casts
183690
183947
  setLanguageConfiguration,
183691
183948
  setColorMap,
183949
+ // eslint-disable-next-line local/code-no-any-casts
183692
183950
  registerTokensProviderFactory,
183951
+ // eslint-disable-next-line local/code-no-any-casts
183693
183952
  setTokensProvider,
183953
+ // eslint-disable-next-line local/code-no-any-casts
183694
183954
  setMonarchTokensProvider,
183955
+ // eslint-disable-next-line local/code-no-any-casts
183695
183956
  registerReferenceProvider,
183957
+ // eslint-disable-next-line local/code-no-any-casts
183696
183958
  registerRenameProvider,
183959
+ // eslint-disable-next-line local/code-no-any-casts
183697
183960
  registerNewSymbolNameProvider,
183961
+ // eslint-disable-next-line local/code-no-any-casts
183698
183962
  registerCompletionItemProvider,
183963
+ // eslint-disable-next-line local/code-no-any-casts
183699
183964
  registerSignatureHelpProvider,
183965
+ // eslint-disable-next-line local/code-no-any-casts
183700
183966
  registerHoverProvider,
183967
+ // eslint-disable-next-line local/code-no-any-casts
183701
183968
  registerDocumentSymbolProvider,
183969
+ // eslint-disable-next-line local/code-no-any-casts
183702
183970
  registerDocumentHighlightProvider,
183971
+ // eslint-disable-next-line local/code-no-any-casts
183703
183972
  registerLinkedEditingRangeProvider,
183973
+ // eslint-disable-next-line local/code-no-any-casts
183704
183974
  registerDefinitionProvider,
183975
+ // eslint-disable-next-line local/code-no-any-casts
183705
183976
  registerImplementationProvider,
183977
+ // eslint-disable-next-line local/code-no-any-casts
183706
183978
  registerTypeDefinitionProvider,
183979
+ // eslint-disable-next-line local/code-no-any-casts
183707
183980
  registerCodeLensProvider,
183981
+ // eslint-disable-next-line local/code-no-any-casts
183708
183982
  registerCodeActionProvider,
183983
+ // eslint-disable-next-line local/code-no-any-casts
183709
183984
  registerDocumentFormattingEditProvider,
183985
+ // eslint-disable-next-line local/code-no-any-casts
183710
183986
  registerDocumentRangeFormattingEditProvider,
183987
+ // eslint-disable-next-line local/code-no-any-casts
183711
183988
  registerOnTypeFormattingEditProvider,
183989
+ // eslint-disable-next-line local/code-no-any-casts
183712
183990
  registerLinkProvider,
183991
+ // eslint-disable-next-line local/code-no-any-casts
183713
183992
  registerColorProvider,
183993
+ // eslint-disable-next-line local/code-no-any-casts
183714
183994
  registerFoldingRangeProvider,
183995
+ // eslint-disable-next-line local/code-no-any-casts
183715
183996
  registerDeclarationProvider,
183997
+ // eslint-disable-next-line local/code-no-any-casts
183716
183998
  registerSelectionRangeProvider,
183999
+ // eslint-disable-next-line local/code-no-any-casts
183717
184000
  registerDocumentSemanticTokensProvider,
184001
+ // eslint-disable-next-line local/code-no-any-casts
183718
184002
  registerDocumentRangeSemanticTokensProvider,
184003
+ // eslint-disable-next-line local/code-no-any-casts
183719
184004
  registerInlineCompletionsProvider,
184005
+ // eslint-disable-next-line local/code-no-any-casts
183720
184006
  registerInlayHintsProvider,
183721
184007
  // enums
183722
184008
  DocumentHighlightKind,
@@ -183739,7 +184025,9 @@ ${graph.toString()}`;
183739
184025
  InlineCompletionDisplayLocationKind,
183740
184026
  // classes
183741
184027
  FoldingRangeKind,
184028
+ // eslint-disable-next-line local/code-no-any-casts
183742
184029
  SelectedSuggestionInfo,
184030
+ // eslint-disable-next-line local/code-no-any-casts
183743
184031
  EditDeltaInfo
183744
184032
  };
183745
184033
  }