monaco-editor 0.54.0 → 0.55.0-dev-20251008

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 (520) 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-CHffVsWa.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-C70J1qfL.js} +713 -346
  11. package/dev/vs/{freemarker2-Ci5s7p-k.js → freemarker2-DDD8lp2x.js} +1 -1
  12. package/dev/vs/{handlebars-Cpd6mzVL.js → handlebars-CnAeMNUs.js} +1 -1
  13. package/dev/vs/{html-L3fuhF-c.js → html-DeG7snbt.js} +1 -1
  14. package/dev/vs/{htmlMode-BL74tky3.js → htmlMode-D0ElzHFo.js} +1 -1
  15. package/dev/vs/{javascript-DtYAOqDf.js → javascript-BWI_xYYR.js} +1 -1
  16. package/dev/vs/{jsonMode-KHMzkiG2.js → jsonMode-sxxKom-M.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-DtdTWHdv.js} +1 -1
  22. package/dev/vs/{lspLanguageFeatures-C8J-56s2.js → lspLanguageFeatures-Ggubyxzq.js} +1 -1
  23. package/dev/vs/{mdx-CRukMuk2.js → mdx-B8WDZJoQ.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-4I_pkJc0.js} +1 -1
  34. package/dev/vs/{razor-CcKFJPeA.js → razor-BPQ86gXE.js} +1 -1
  35. package/dev/vs/{tsMode-DOj38qML.js → tsMode-CGEm2hNy.js} +1 -1
  36. package/dev/vs/{typescript-qRP7tyf4.js → typescript-CH0Z8cT8.js} +1 -1
  37. package/dev/vs/{workers-CJWv4CcA.js → workers-DazCv2xJ.js} +1 -1
  38. package/dev/vs/{xml-CSLddLaW.js → xml-CoiKcc-M.js} +1 -1
  39. package/dev/vs/{yaml-TB97xlnI.js → yaml-aWvggUoY.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 +5 -4
  67. package/esm/vs/base/browser/ui/tree/abstractTree.js.map +1 -1
  68. package/esm/vs/base/browser/ui/tree/asyncDataTree.js +6 -4
  69. package/esm/vs/base/browser/ui/tree/asyncDataTree.js.map +1 -1
  70. package/esm/vs/base/browser/ui/tree/dataTree.js.map +1 -1
  71. package/esm/vs/base/browser/ui/tree/indexTreeModel.js +1 -1
  72. package/esm/vs/base/browser/ui/tree/indexTreeModel.js.map +1 -1
  73. package/esm/vs/base/browser/ui/tree/media/tree.css +2 -2
  74. package/esm/vs/base/browser/ui/tree/objectTree.js.map +1 -1
  75. package/esm/vs/base/browser/webWorkerFactory.js +3 -0
  76. package/esm/vs/base/browser/webWorkerFactory.js.map +1 -1
  77. package/esm/vs/base/common/buffer.js.map +1 -1
  78. package/esm/vs/base/common/decorators.js +1 -0
  79. package/esm/vs/base/common/decorators.js.map +1 -1
  80. package/esm/vs/base/common/errors.js +1 -0
  81. package/esm/vs/base/common/errors.js.map +1 -1
  82. package/esm/vs/base/common/glob.js +1 -1
  83. package/esm/vs/base/common/glob.js.map +1 -1
  84. package/esm/vs/base/common/hash.js.map +1 -1
  85. package/esm/vs/base/common/hotReload.js +2 -0
  86. package/esm/vs/base/common/hotReload.js.map +1 -1
  87. package/esm/vs/base/common/hotReloadHelpers.js +1 -0
  88. package/esm/vs/base/common/hotReloadHelpers.js.map +1 -1
  89. package/esm/vs/base/common/lifecycle.js +19 -0
  90. package/esm/vs/base/common/lifecycle.js.map +1 -1
  91. package/esm/vs/base/common/map.js.map +1 -1
  92. package/esm/vs/base/common/marshalling.js +4 -0
  93. package/esm/vs/base/common/marshalling.js.map +1 -1
  94. package/esm/vs/base/common/network.js +1 -0
  95. package/esm/vs/base/common/network.js.map +1 -1
  96. package/esm/vs/base/common/normalization.js +39 -0
  97. package/esm/vs/base/common/normalization.js.map +1 -0
  98. package/esm/vs/base/common/objects.js +1 -0
  99. package/esm/vs/base/common/objects.js.map +1 -1
  100. package/esm/vs/base/common/observableInternal/changeTracker.js +4 -0
  101. package/esm/vs/base/common/observableInternal/changeTracker.js.map +1 -1
  102. package/esm/vs/base/common/observableInternal/debugLocation.js +1 -0
  103. package/esm/vs/base/common/observableInternal/debugLocation.js.map +1 -1
  104. package/esm/vs/base/common/observableInternal/debugName.js +1 -0
  105. package/esm/vs/base/common/observableInternal/debugName.js.map +1 -1
  106. package/esm/vs/base/common/observableInternal/logging/consoleObservableLogger.js +1 -0
  107. package/esm/vs/base/common/observableInternal/logging/consoleObservableLogger.js.map +1 -1
  108. package/esm/vs/base/common/observableInternal/logging/debugger/debuggerRpc.js +1 -0
  109. package/esm/vs/base/common/observableInternal/logging/debugger/debuggerRpc.js.map +1 -1
  110. package/esm/vs/base/common/observableInternal/logging/debugger/rpc.js +1 -0
  111. package/esm/vs/base/common/observableInternal/logging/debugger/rpc.js.map +1 -1
  112. package/esm/vs/base/common/observableInternal/observables/derived.js +7 -1
  113. package/esm/vs/base/common/observableInternal/observables/derived.js.map +1 -1
  114. package/esm/vs/base/common/observableInternal/observables/derivedImpl.js +2 -0
  115. package/esm/vs/base/common/observableInternal/observables/derivedImpl.js.map +1 -1
  116. package/esm/vs/base/common/observableInternal/observables/observableFromEvent.js +1 -0
  117. package/esm/vs/base/common/observableInternal/observables/observableFromEvent.js.map +1 -1
  118. package/esm/vs/base/common/observableInternal/reactions/autorunImpl.js +1 -0
  119. package/esm/vs/base/common/observableInternal/reactions/autorunImpl.js.map +1 -1
  120. package/esm/vs/base/common/process.js.map +1 -1
  121. package/esm/vs/base/common/product.js.map +1 -1
  122. package/esm/vs/base/common/types.js +2 -0
  123. package/esm/vs/base/common/types.js.map +1 -1
  124. package/esm/vs/base/common/worker/webWorker.js +26 -14
  125. package/esm/vs/base/common/worker/webWorker.js.map +1 -1
  126. package/esm/vs/base/parts/sandbox/common/sandboxTypes.js +2 -0
  127. package/esm/vs/base/parts/sandbox/common/sandboxTypes.js.map +1 -0
  128. package/esm/vs/basic-languages/_.contribution.js +1 -1
  129. package/esm/vs/basic-languages/abap/abap.contribution.js +1 -1
  130. package/esm/vs/basic-languages/abap/abap.js +1 -1
  131. package/esm/vs/basic-languages/apex/apex.contribution.js +1 -1
  132. package/esm/vs/basic-languages/apex/apex.js +1 -1
  133. package/esm/vs/basic-languages/azcli/azcli.contribution.js +1 -1
  134. package/esm/vs/basic-languages/azcli/azcli.js +1 -1
  135. package/esm/vs/basic-languages/bat/bat.contribution.js +1 -1
  136. package/esm/vs/basic-languages/bat/bat.js +1 -1
  137. package/esm/vs/basic-languages/bicep/bicep.contribution.js +1 -1
  138. package/esm/vs/basic-languages/bicep/bicep.js +1 -1
  139. package/esm/vs/basic-languages/cameligo/cameligo.contribution.js +1 -1
  140. package/esm/vs/basic-languages/cameligo/cameligo.js +1 -1
  141. package/esm/vs/basic-languages/clojure/clojure.contribution.js +1 -1
  142. package/esm/vs/basic-languages/clojure/clojure.js +1 -1
  143. package/esm/vs/basic-languages/coffee/coffee.contribution.js +1 -1
  144. package/esm/vs/basic-languages/coffee/coffee.js +1 -1
  145. package/esm/vs/basic-languages/cpp/cpp.contribution.js +1 -1
  146. package/esm/vs/basic-languages/cpp/cpp.js +1 -1
  147. package/esm/vs/basic-languages/csharp/csharp.contribution.js +1 -1
  148. package/esm/vs/basic-languages/csharp/csharp.js +1 -1
  149. package/esm/vs/basic-languages/csp/csp.contribution.js +1 -1
  150. package/esm/vs/basic-languages/csp/csp.js +1 -1
  151. package/esm/vs/basic-languages/css/css.contribution.js +1 -1
  152. package/esm/vs/basic-languages/css/css.js +1 -1
  153. package/esm/vs/basic-languages/cypher/cypher.contribution.js +1 -1
  154. package/esm/vs/basic-languages/cypher/cypher.js +1 -1
  155. package/esm/vs/basic-languages/dart/dart.contribution.js +1 -1
  156. package/esm/vs/basic-languages/dart/dart.js +1 -1
  157. package/esm/vs/basic-languages/dockerfile/dockerfile.contribution.js +1 -1
  158. package/esm/vs/basic-languages/dockerfile/dockerfile.js +1 -1
  159. package/esm/vs/basic-languages/ecl/ecl.contribution.js +1 -1
  160. package/esm/vs/basic-languages/ecl/ecl.js +1 -1
  161. package/esm/vs/basic-languages/elixir/elixir.contribution.js +1 -1
  162. package/esm/vs/basic-languages/elixir/elixir.js +1 -1
  163. package/esm/vs/basic-languages/flow9/flow9.contribution.js +1 -1
  164. package/esm/vs/basic-languages/flow9/flow9.js +1 -1
  165. package/esm/vs/basic-languages/freemarker2/freemarker2.contribution.js +1 -1
  166. package/esm/vs/basic-languages/freemarker2/freemarker2.js +1 -1
  167. package/esm/vs/basic-languages/fsharp/fsharp.contribution.js +1 -1
  168. package/esm/vs/basic-languages/fsharp/fsharp.js +1 -1
  169. package/esm/vs/basic-languages/go/go.contribution.js +1 -1
  170. package/esm/vs/basic-languages/go/go.js +1 -1
  171. package/esm/vs/basic-languages/graphql/graphql.contribution.js +1 -1
  172. package/esm/vs/basic-languages/graphql/graphql.js +1 -1
  173. package/esm/vs/basic-languages/handlebars/handlebars.contribution.js +1 -1
  174. package/esm/vs/basic-languages/handlebars/handlebars.js +1 -1
  175. package/esm/vs/basic-languages/hcl/hcl.contribution.js +1 -1
  176. package/esm/vs/basic-languages/hcl/hcl.js +1 -1
  177. package/esm/vs/basic-languages/html/html.contribution.js +1 -1
  178. package/esm/vs/basic-languages/html/html.js +1 -1
  179. package/esm/vs/basic-languages/ini/ini.contribution.js +1 -1
  180. package/esm/vs/basic-languages/ini/ini.js +1 -1
  181. package/esm/vs/basic-languages/java/java.contribution.js +1 -1
  182. package/esm/vs/basic-languages/java/java.js +1 -1
  183. package/esm/vs/basic-languages/javascript/javascript.contribution.js +1 -1
  184. package/esm/vs/basic-languages/javascript/javascript.js +1 -1
  185. package/esm/vs/basic-languages/julia/julia.contribution.js +1 -1
  186. package/esm/vs/basic-languages/julia/julia.js +1 -1
  187. package/esm/vs/basic-languages/kotlin/kotlin.contribution.js +1 -1
  188. package/esm/vs/basic-languages/kotlin/kotlin.js +1 -1
  189. package/esm/vs/basic-languages/less/less.contribution.js +1 -1
  190. package/esm/vs/basic-languages/less/less.js +1 -1
  191. package/esm/vs/basic-languages/lexon/lexon.contribution.js +1 -1
  192. package/esm/vs/basic-languages/lexon/lexon.js +1 -1
  193. package/esm/vs/basic-languages/liquid/liquid.contribution.js +1 -1
  194. package/esm/vs/basic-languages/liquid/liquid.js +1 -1
  195. package/esm/vs/basic-languages/lua/lua.contribution.js +1 -1
  196. package/esm/vs/basic-languages/lua/lua.js +1 -1
  197. package/esm/vs/basic-languages/m3/m3.contribution.js +1 -1
  198. package/esm/vs/basic-languages/m3/m3.js +1 -1
  199. package/esm/vs/basic-languages/markdown/markdown.contribution.js +1 -1
  200. package/esm/vs/basic-languages/markdown/markdown.js +1 -1
  201. package/esm/vs/basic-languages/mdx/mdx.contribution.js +1 -1
  202. package/esm/vs/basic-languages/mdx/mdx.js +1 -1
  203. package/esm/vs/basic-languages/mips/mips.contribution.js +1 -1
  204. package/esm/vs/basic-languages/mips/mips.js +1 -1
  205. package/esm/vs/basic-languages/monaco.contribution.js +1 -1
  206. package/esm/vs/basic-languages/msdax/msdax.contribution.js +1 -1
  207. package/esm/vs/basic-languages/msdax/msdax.js +1 -1
  208. package/esm/vs/basic-languages/mysql/mysql.contribution.js +1 -1
  209. package/esm/vs/basic-languages/mysql/mysql.js +1 -1
  210. package/esm/vs/basic-languages/objective-c/objective-c.contribution.js +1 -1
  211. package/esm/vs/basic-languages/objective-c/objective-c.js +1 -1
  212. package/esm/vs/basic-languages/pascal/pascal.contribution.js +1 -1
  213. package/esm/vs/basic-languages/pascal/pascal.js +1 -1
  214. package/esm/vs/basic-languages/pascaligo/pascaligo.contribution.js +1 -1
  215. package/esm/vs/basic-languages/pascaligo/pascaligo.js +1 -1
  216. package/esm/vs/basic-languages/perl/perl.contribution.js +1 -1
  217. package/esm/vs/basic-languages/perl/perl.js +1 -1
  218. package/esm/vs/basic-languages/pgsql/pgsql.contribution.js +1 -1
  219. package/esm/vs/basic-languages/pgsql/pgsql.js +1 -1
  220. package/esm/vs/basic-languages/php/php.contribution.js +1 -1
  221. package/esm/vs/basic-languages/php/php.js +1 -1
  222. package/esm/vs/basic-languages/pla/pla.contribution.js +1 -1
  223. package/esm/vs/basic-languages/pla/pla.js +1 -1
  224. package/esm/vs/basic-languages/postiats/postiats.contribution.js +1 -1
  225. package/esm/vs/basic-languages/postiats/postiats.js +1 -1
  226. package/esm/vs/basic-languages/powerquery/powerquery.contribution.js +1 -1
  227. package/esm/vs/basic-languages/powerquery/powerquery.js +1 -1
  228. package/esm/vs/basic-languages/powershell/powershell.contribution.js +1 -1
  229. package/esm/vs/basic-languages/powershell/powershell.js +1 -1
  230. package/esm/vs/basic-languages/protobuf/protobuf.contribution.js +1 -1
  231. package/esm/vs/basic-languages/protobuf/protobuf.js +1 -1
  232. package/esm/vs/basic-languages/pug/pug.contribution.js +1 -1
  233. package/esm/vs/basic-languages/pug/pug.js +1 -1
  234. package/esm/vs/basic-languages/python/python.contribution.js +1 -1
  235. package/esm/vs/basic-languages/python/python.js +1 -1
  236. package/esm/vs/basic-languages/qsharp/qsharp.contribution.js +1 -1
  237. package/esm/vs/basic-languages/qsharp/qsharp.js +1 -1
  238. package/esm/vs/basic-languages/r/r.contribution.js +1 -1
  239. package/esm/vs/basic-languages/r/r.js +1 -1
  240. package/esm/vs/basic-languages/razor/razor.contribution.js +1 -1
  241. package/esm/vs/basic-languages/razor/razor.js +1 -1
  242. package/esm/vs/basic-languages/redis/redis.contribution.js +1 -1
  243. package/esm/vs/basic-languages/redis/redis.js +1 -1
  244. package/esm/vs/basic-languages/redshift/redshift.contribution.js +1 -1
  245. package/esm/vs/basic-languages/redshift/redshift.js +1 -1
  246. package/esm/vs/basic-languages/restructuredtext/restructuredtext.contribution.js +1 -1
  247. package/esm/vs/basic-languages/restructuredtext/restructuredtext.js +1 -1
  248. package/esm/vs/basic-languages/ruby/ruby.contribution.js +1 -1
  249. package/esm/vs/basic-languages/ruby/ruby.js +1 -1
  250. package/esm/vs/basic-languages/rust/rust.contribution.js +1 -1
  251. package/esm/vs/basic-languages/rust/rust.js +1 -1
  252. package/esm/vs/basic-languages/sb/sb.contribution.js +1 -1
  253. package/esm/vs/basic-languages/sb/sb.js +1 -1
  254. package/esm/vs/basic-languages/scala/scala.contribution.js +1 -1
  255. package/esm/vs/basic-languages/scala/scala.js +1 -1
  256. package/esm/vs/basic-languages/scheme/scheme.contribution.js +1 -1
  257. package/esm/vs/basic-languages/scheme/scheme.js +1 -1
  258. package/esm/vs/basic-languages/scss/scss.contribution.js +1 -1
  259. package/esm/vs/basic-languages/scss/scss.js +1 -1
  260. package/esm/vs/basic-languages/shell/shell.contribution.js +1 -1
  261. package/esm/vs/basic-languages/shell/shell.js +1 -1
  262. package/esm/vs/basic-languages/solidity/solidity.contribution.js +1 -1
  263. package/esm/vs/basic-languages/solidity/solidity.js +1 -1
  264. package/esm/vs/basic-languages/sophia/sophia.contribution.js +1 -1
  265. package/esm/vs/basic-languages/sophia/sophia.js +1 -1
  266. package/esm/vs/basic-languages/sparql/sparql.contribution.js +1 -1
  267. package/esm/vs/basic-languages/sparql/sparql.js +1 -1
  268. package/esm/vs/basic-languages/sql/sql.contribution.js +1 -1
  269. package/esm/vs/basic-languages/sql/sql.js +1 -1
  270. package/esm/vs/basic-languages/st/st.contribution.js +1 -1
  271. package/esm/vs/basic-languages/st/st.js +1 -1
  272. package/esm/vs/basic-languages/swift/swift.contribution.js +1 -1
  273. package/esm/vs/basic-languages/swift/swift.js +1 -1
  274. package/esm/vs/basic-languages/systemverilog/systemverilog.contribution.js +1 -1
  275. package/esm/vs/basic-languages/systemverilog/systemverilog.js +1 -1
  276. package/esm/vs/basic-languages/tcl/tcl.contribution.js +1 -1
  277. package/esm/vs/basic-languages/tcl/tcl.js +1 -1
  278. package/esm/vs/basic-languages/twig/twig.contribution.js +1 -1
  279. package/esm/vs/basic-languages/twig/twig.js +1 -1
  280. package/esm/vs/basic-languages/typescript/typescript.contribution.js +1 -1
  281. package/esm/vs/basic-languages/typescript/typescript.js +1 -1
  282. package/esm/vs/basic-languages/typespec/typespec.contribution.js +1 -1
  283. package/esm/vs/basic-languages/typespec/typespec.js +1 -1
  284. package/esm/vs/basic-languages/vb/vb.contribution.js +1 -1
  285. package/esm/vs/basic-languages/vb/vb.js +1 -1
  286. package/esm/vs/basic-languages/wgsl/wgsl.contribution.js +1 -1
  287. package/esm/vs/basic-languages/wgsl/wgsl.js +1 -1
  288. package/esm/vs/basic-languages/xml/xml.contribution.js +1 -1
  289. package/esm/vs/basic-languages/xml/xml.js +1 -1
  290. package/esm/vs/basic-languages/yaml/yaml.contribution.js +1 -1
  291. package/esm/vs/basic-languages/yaml/yaml.js +1 -1
  292. package/esm/vs/editor/browser/config/editorConfiguration.js +3 -2
  293. package/esm/vs/editor/browser/config/editorConfiguration.js.map +1 -1
  294. package/esm/vs/editor/browser/config/migrateOptions.js +1 -1
  295. package/esm/vs/editor/browser/config/migrateOptions.js.map +1 -1
  296. package/esm/vs/editor/browser/controller/editContext/native/editContextFactory.js.map +1 -1
  297. package/esm/vs/editor/browser/controller/editContext/native/nativeEditContextUtils.js +2 -0
  298. package/esm/vs/editor/browser/controller/editContext/native/nativeEditContextUtils.js.map +1 -1
  299. package/esm/vs/editor/browser/controller/mouseHandler.js +2 -1
  300. package/esm/vs/editor/browser/controller/mouseHandler.js.map +1 -1
  301. package/esm/vs/editor/browser/controller/mouseTarget.js +7 -0
  302. package/esm/vs/editor/browser/controller/mouseTarget.js.map +1 -1
  303. package/esm/vs/editor/browser/controller/pointerHandler.js.map +1 -1
  304. package/esm/vs/editor/browser/coreCommands.js.map +1 -1
  305. package/esm/vs/editor/browser/editorBrowser.js.map +1 -1
  306. package/esm/vs/editor/browser/editorDom.js.map +1 -1
  307. package/esm/vs/editor/browser/editorExtensions.js.map +1 -1
  308. package/esm/vs/editor/browser/gpu/gpuUtils.js +1 -0
  309. package/esm/vs/editor/browser/gpu/gpuUtils.js.map +1 -1
  310. package/esm/vs/editor/browser/gpu/viewGpuContext.js +1 -0
  311. package/esm/vs/editor/browser/gpu/viewGpuContext.js.map +1 -1
  312. package/esm/vs/editor/browser/services/abstractCodeEditorService.js.map +1 -1
  313. package/esm/vs/editor/browser/services/bulkEditService.js.map +1 -1
  314. package/esm/vs/editor/browser/services/codeEditorService.js.map +1 -1
  315. package/esm/vs/editor/browser/services/editorWorkerService.js.map +1 -1
  316. package/esm/vs/editor/browser/services/hoverService/hover.css +2 -0
  317. package/esm/vs/editor/browser/services/hoverService/hoverService.js.map +1 -1
  318. package/esm/vs/editor/browser/services/hoverService/hoverWidget.js +1 -1
  319. package/esm/vs/editor/browser/services/hoverService/hoverWidget.js.map +1 -1
  320. package/esm/vs/editor/browser/services/inlineCompletionsService.js +8 -8
  321. package/esm/vs/editor/browser/services/inlineCompletionsService.js.map +1 -1
  322. package/esm/vs/editor/browser/services/openerService.js.map +1 -1
  323. package/esm/vs/editor/browser/view/viewLayer.js +1 -1
  324. package/esm/vs/editor/browser/view/viewLayer.js.map +1 -1
  325. package/esm/vs/editor/browser/view.js.map +1 -1
  326. package/esm/vs/editor/browser/viewParts/contentWidgets/contentWidgets.js +1 -0
  327. package/esm/vs/editor/browser/viewParts/contentWidgets/contentWidgets.js.map +1 -1
  328. package/esm/vs/editor/browser/viewParts/viewZones/viewZones.js +1 -0
  329. package/esm/vs/editor/browser/viewParts/viewZones/viewZones.js.map +1 -1
  330. package/esm/vs/editor/browser/widget/codeEditor/codeEditorContributions.js.map +1 -1
  331. package/esm/vs/editor/browser/widget/codeEditor/codeEditorWidget.js +4 -1
  332. package/esm/vs/editor/browser/widget/codeEditor/codeEditorWidget.js.map +1 -1
  333. package/esm/vs/editor/browser/widget/diffEditor/components/diffEditorEditors.js +1 -0
  334. package/esm/vs/editor/browser/widget/diffEditor/components/diffEditorEditors.js.map +1 -1
  335. package/esm/vs/editor/browser/widget/diffEditor/delegatingEditorImpl.js.map +1 -1
  336. package/esm/vs/editor/browser/widget/diffEditor/diffEditorOptions.js +1 -0
  337. package/esm/vs/editor/browser/widget/diffEditor/diffEditorOptions.js.map +1 -1
  338. package/esm/vs/editor/browser/widget/diffEditor/diffEditorWidget.js +1 -0
  339. package/esm/vs/editor/browser/widget/diffEditor/diffEditorWidget.js.map +1 -1
  340. package/esm/vs/editor/browser/widget/diffEditor/utils.js +2 -0
  341. package/esm/vs/editor/browser/widget/diffEditor/utils.js.map +1 -1
  342. package/esm/vs/editor/browser/widget/multiDiffEditor/diffEditorItemTemplate.js +2 -0
  343. package/esm/vs/editor/browser/widget/multiDiffEditor/diffEditorItemTemplate.js.map +1 -1
  344. package/esm/vs/editor/common/config/editorOptions.js +122 -68
  345. package/esm/vs/editor/common/config/editorOptions.js.map +1 -1
  346. package/esm/vs/editor/common/config/fontInfo.js +32 -16
  347. package/esm/vs/editor/common/config/fontInfo.js.map +1 -1
  348. package/esm/vs/editor/common/config/fontInfoFromSettings.js +16 -0
  349. package/esm/vs/editor/common/config/fontInfoFromSettings.js.map +1 -0
  350. package/esm/vs/editor/common/core/edits/edit.js +1 -0
  351. package/esm/vs/editor/common/core/edits/edit.js.map +1 -1
  352. package/esm/vs/editor/common/core/edits/stringEdit.js +2 -0
  353. package/esm/vs/editor/common/core/edits/stringEdit.js.map +1 -1
  354. package/esm/vs/editor/common/core/position.js +1 -1
  355. package/esm/vs/editor/common/core/position.js.map +1 -1
  356. package/esm/vs/editor/common/core/range.js +1 -1
  357. package/esm/vs/editor/common/core/range.js.map +1 -1
  358. package/esm/vs/editor/common/core/selection.js +1 -1
  359. package/esm/vs/editor/common/core/selection.js.map +1 -1
  360. package/esm/vs/editor/common/cursor/cursorMoveCommands.js.map +1 -1
  361. package/esm/vs/editor/common/editorCommon.js.map +1 -1
  362. package/esm/vs/editor/common/languages.js +1 -1
  363. package/esm/vs/editor/common/languages.js.map +1 -1
  364. package/esm/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/length.js +14 -0
  365. package/esm/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/length.js.map +1 -1
  366. package/esm/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/smallImmutableSet.js +2 -0
  367. package/esm/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/smallImmutableSet.js.map +1 -1
  368. package/esm/vs/editor/common/model/textModel.js +1 -1
  369. package/esm/vs/editor/common/model/textModel.js.map +1 -1
  370. package/esm/vs/editor/common/model.js +1 -1
  371. package/esm/vs/editor/common/model.js.map +1 -1
  372. package/esm/vs/editor/common/services/editorBaseApi.js.map +1 -1
  373. package/esm/vs/editor/common/services/editorWebWorker.js +1 -0
  374. package/esm/vs/editor/common/services/editorWebWorker.js.map +1 -1
  375. package/esm/vs/editor/common/services/editorWorkerHost.js.map +1 -1
  376. package/esm/vs/editor/common/services/modelService.js +14 -21
  377. package/esm/vs/editor/common/services/modelService.js.map +1 -1
  378. package/esm/vs/editor/common/textModelEditSource.js +2 -0
  379. package/esm/vs/editor/common/textModelEditSource.js.map +1 -1
  380. package/esm/vs/editor/common/viewLayout/viewLineRenderer.js +40 -1
  381. package/esm/vs/editor/common/viewLayout/viewLineRenderer.js.map +1 -1
  382. package/esm/vs/editor/common/viewModel/viewModelImpl.js +2 -1
  383. package/esm/vs/editor/common/viewModel/viewModelImpl.js.map +1 -1
  384. package/esm/vs/editor/contrib/codeAction/browser/codeActionController.js +1 -1
  385. package/esm/vs/editor/contrib/codeAction/browser/codeActionController.js.map +1 -1
  386. package/esm/vs/editor/contrib/codelens/browser/codelensController.js +1 -1
  387. package/esm/vs/editor/contrib/codelens/browser/codelensController.js.map +1 -1
  388. package/esm/vs/editor/contrib/colorPicker/browser/colorDetector.js +1 -0
  389. package/esm/vs/editor/contrib/colorPicker/browser/colorDetector.js.map +1 -1
  390. package/esm/vs/editor/contrib/contextmenu/browser/contextmenu.js +1 -0
  391. package/esm/vs/editor/contrib/contextmenu/browser/contextmenu.js.map +1 -1
  392. package/esm/vs/editor/contrib/find/browser/findModel.js +1 -0
  393. package/esm/vs/editor/contrib/find/browser/findModel.js.map +1 -1
  394. package/esm/vs/editor/contrib/find/browser/findWidget.css +5 -5
  395. package/esm/vs/editor/contrib/folding/browser/folding.css +4 -4
  396. package/esm/vs/editor/contrib/folding/browser/foldingDecorations.js.map +1 -1
  397. package/esm/vs/editor/contrib/gotoSymbol/browser/link/goToDefinitionAtPosition.js +1 -1
  398. package/esm/vs/editor/contrib/gotoSymbol/browser/link/goToDefinitionAtPosition.js.map +1 -1
  399. package/esm/vs/editor/contrib/inlayHints/browser/inlayHintsController.js +30 -14
  400. package/esm/vs/editor/contrib/inlayHints/browser/inlayHintsController.js.map +1 -1
  401. package/esm/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsModel.js +5 -3
  402. package/esm/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsModel.js.map +1 -1
  403. package/esm/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsSource.js +56 -7
  404. package/esm/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsSource.js.map +1 -1
  405. package/esm/vs/editor/contrib/inlineCompletions/browser/structuredLogger.js +1 -0
  406. package/esm/vs/editor/contrib/inlineCompletions/browser/structuredLogger.js.map +1 -1
  407. package/esm/vs/editor/contrib/inlineCompletions/browser/view/ghostText/ghostTextView.js +2 -0
  408. package/esm/vs/editor/contrib/inlineCompletions/browser/view/ghostText/ghostTextView.js.map +1 -1
  409. package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorView.js +1 -0
  410. package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorView.js.map +1 -1
  411. package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditWithChanges.js +2 -1
  412. package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditWithChanges.js.map +1 -1
  413. package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsModel.js +1 -1
  414. package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsModel.js.map +1 -1
  415. package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsView.js +27 -1
  416. package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsView.js.map +1 -1
  417. package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViewProducer.js +1 -1
  418. package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViewProducer.js.map +1 -1
  419. package/esm/vs/editor/contrib/parameterHints/browser/parameterHintsWidget.js +1 -1
  420. package/esm/vs/editor/contrib/parameterHints/browser/parameterHintsWidget.js.map +1 -1
  421. package/esm/vs/editor/contrib/rename/browser/renameWidget.js.map +1 -1
  422. package/esm/vs/editor/contrib/symbolIcons/browser/symbolIcons.css +2 -0
  423. package/esm/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.js +2 -0
  424. package/esm/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.js.map +1 -1
  425. package/esm/vs/editor/contrib/unusualLineTerminators/browser/unusualLineTerminators.js.map +1 -1
  426. package/esm/vs/editor/editor.api.d.ts +8 -8
  427. package/esm/vs/editor/editor.api.js +4 -0
  428. package/esm/vs/editor/editor.api.js.map +1 -1
  429. package/esm/vs/editor/editor.main.js +1 -1
  430. package/esm/vs/editor/editor.worker.js +1 -1
  431. package/esm/vs/editor/standalone/browser/standaloneCodeEditor.js.map +1 -1
  432. package/esm/vs/editor/standalone/browser/standaloneEditor.js +37 -0
  433. package/esm/vs/editor/standalone/browser/standaloneEditor.js.map +1 -1
  434. package/esm/vs/editor/standalone/browser/standaloneLanguages.js +37 -0
  435. package/esm/vs/editor/standalone/browser/standaloneLanguages.js.map +1 -1
  436. package/esm/vs/editor/standalone/browser/standaloneServices.js.map +1 -1
  437. package/esm/vs/editor/standalone/browser/standaloneWebWorker.js.map +1 -1
  438. package/esm/vs/editor/standalone/common/monarch/monarchCompile.js +3 -0
  439. package/esm/vs/editor/standalone/common/monarch/monarchCompile.js.map +1 -1
  440. package/esm/vs/language/css/css.worker.js +1 -1
  441. package/esm/vs/language/css/cssMode.js +1 -1
  442. package/esm/vs/language/css/monaco.contribution.js +1 -1
  443. package/esm/vs/language/html/html.worker.js +1 -1
  444. package/esm/vs/language/html/htmlMode.js +1 -1
  445. package/esm/vs/language/html/monaco.contribution.js +1 -1
  446. package/esm/vs/language/json/json.worker.js +1 -1
  447. package/esm/vs/language/json/jsonMode.js +1 -1
  448. package/esm/vs/language/json/monaco.contribution.js +1 -1
  449. package/esm/vs/language/typescript/monaco.contribution.js +1 -1
  450. package/esm/vs/language/typescript/ts.worker.js +1 -1
  451. package/esm/vs/language/typescript/tsMode.js +1 -1
  452. package/esm/vs/platform/accessibility/browser/accessibilityService.js +2 -2
  453. package/esm/vs/platform/accessibility/browser/accessibilityService.js.map +1 -1
  454. package/esm/vs/platform/actions/common/actions.js.map +1 -1
  455. package/esm/vs/platform/commands/common/commands.js.map +1 -1
  456. package/esm/vs/platform/contextkey/common/contextkey.js +5 -0
  457. package/esm/vs/platform/contextkey/common/contextkey.js.map +1 -1
  458. package/esm/vs/platform/dataChannel/browser/forwardingTelemetryService.js +1 -1
  459. package/esm/vs/platform/dataChannel/browser/forwardingTelemetryService.js.map +1 -1
  460. package/esm/vs/platform/dnd/browser/dnd.js +1 -1
  461. package/esm/vs/platform/dnd/browser/dnd.js.map +1 -1
  462. package/esm/vs/platform/instantiation/common/descriptors.js.map +1 -1
  463. package/esm/vs/platform/instantiation/common/instantiation.js.map +1 -1
  464. package/esm/vs/platform/instantiation/common/instantiationService.js +1 -0
  465. package/esm/vs/platform/instantiation/common/instantiationService.js.map +1 -1
  466. package/esm/vs/platform/list/browser/listService.js +5 -0
  467. package/esm/vs/platform/list/browser/listService.js.map +1 -1
  468. package/esm/vs/platform/log/common/log.js.map +1 -1
  469. package/esm/vs/platform/log/common/logService.js.map +1 -1
  470. package/esm/vs/platform/observable/common/wrapInHotClass.js +2 -0
  471. package/esm/vs/platform/observable/common/wrapInHotClass.js.map +1 -1
  472. package/esm/vs/platform/observable/common/wrapInReloadableClass.js +3 -0
  473. package/esm/vs/platform/observable/common/wrapInReloadableClass.js.map +1 -1
  474. package/esm/vs/platform/product/common/product.js +68 -0
  475. package/esm/vs/platform/product/common/product.js.map +1 -0
  476. package/esm/vs/platform/quickinput/browser/commandsQuickAccess.js +26 -2
  477. package/esm/vs/platform/quickinput/browser/commandsQuickAccess.js.map +1 -1
  478. package/esm/vs/platform/quickinput/browser/quickInput.js +1 -1
  479. package/esm/vs/platform/quickinput/browser/quickInput.js.map +1 -1
  480. package/min/vs/assets/{css.worker-cO8rX8Iy.js → css.worker-BVuiDuBy.js} +2 -2
  481. package/min/vs/assets/{editor.worker-DM0G1eFj.js → editor.worker-jxNOmuJM.js} +9 -9
  482. package/min/vs/assets/{html.worker-BruuIJkK.js → html.worker-DjzoR3Nq.js} +12 -12
  483. package/min/vs/assets/{json.worker-DghZTZS7.js → json.worker-BHO4PP-I.js} +16 -16
  484. package/min/vs/assets/{ts.worker-C4E4vgbE.js → ts.worker-BbmlTFxS.js} +24 -24
  485. package/min/vs/basic-languages/monaco.contribution.js +1 -1
  486. package/min/vs/{cssMode-CGp6dFmI.js → cssMode-CTNzSY4I.js} +1 -1
  487. package/min/vs/editor/editor.main.css +1 -1
  488. package/min/vs/editor/editor.main.js +1 -1
  489. package/min/vs/{editor.api-i0YVFWkl.js → editor.api-4D_nYvbL.js} +178 -178
  490. package/min/vs/{freemarker2-CJME-ah8.js → freemarker2-CL8cD1-y.js} +1 -1
  491. package/min/vs/{handlebars-NccI6MVO.js → handlebars-E-pLpXtB.js} +1 -1
  492. package/min/vs/{html-K7M-xuod.js → html-DYhWgoXQ.js} +1 -1
  493. package/min/vs/{htmlMode-DtjCNH-N.js → htmlMode-Dla_Uj3B.js} +1 -1
  494. package/min/vs/{javascript-CUpTMdAr.js → javascript-BtHIVtcy.js} +1 -1
  495. package/min/vs/{jsonMode-CJjR_ECa.js → jsonMode-DdHYofgv.js} +1 -1
  496. package/min/vs/language/css/monaco.contribution.js +1 -1
  497. package/min/vs/language/html/monaco.contribution.js +1 -1
  498. package/min/vs/language/json/monaco.contribution.js +1 -1
  499. package/min/vs/language/typescript/monaco.contribution.js +1 -1
  500. package/min/vs/{liquid-STktYroN.js → liquid-YCL54jED.js} +1 -1
  501. package/min/vs/{lspLanguageFeatures-A02kBDb6.js → lspLanguageFeatures-ChQ3v99-.js} +1 -1
  502. package/min/vs/{mdx-C6mq4H94.js → mdx-DN1Q2Xi8.js} +1 -1
  503. package/min/vs/nls.messages.de.js +1 -1
  504. package/min/vs/nls.messages.es.js +1 -1
  505. package/min/vs/nls.messages.fr.js +1 -1
  506. package/min/vs/nls.messages.it.js +1 -1
  507. package/min/vs/nls.messages.ja.js +1 -1
  508. package/min/vs/nls.messages.ko.js +1 -1
  509. package/min/vs/nls.messages.ru.js +1 -1
  510. package/min/vs/nls.messages.zh-cn.js +1 -1
  511. package/min/vs/nls.messages.zh-tw.js +1 -1
  512. package/min/vs/{python-B-Y2SC3b.js → python-zTjiAf4u.js} +1 -1
  513. package/min/vs/{razor-JzN5FpSg.js → razor-DzHcrenM.js} +1 -1
  514. package/min/vs/{tsMode-i88JHxDY.js → tsMode-Dy4edrBN.js} +1 -1
  515. package/min/vs/{typescript-4zug7YwV.js → typescript-B8g0Uzcb.js} +1 -1
  516. package/min/vs/{workers-CbP2cVmy.js → workers-BXcLLFAE.js} +1 -1
  517. package/min/vs/{xml-DRHZuZwg.js → xml-Dl2qQz04.js} +1 -1
  518. package/min/vs/{yaml-CkWIGXBM.js → yaml-CL-5lpPH.js} +1 -1
  519. package/monaco.d.ts +8 -8
  520. package/package.json +3 -3
@@ -1,4 +1,4 @@
1
- define("vs/editor.api-BhD7pWdi", ["exports"], (function(exports) {
1
+ define("vs/editor.api-C70J1qfL", ["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;
@@ -5356,7 +5371,7 @@ define("vs/editor.api-BhD7pWdi", ["exports"], (function(exports) {
5356
5371
  };
5357
5372
  posix.win32 = win32.win32 = win32;
5358
5373
  posix.posix = win32.posix = posix;
5359
- const normalize = platformIsWin32 ? win32.normalize : posix.normalize;
5374
+ const normalize$1 = platformIsWin32 ? win32.normalize : posix.normalize;
5360
5375
  const resolve$1 = platformIsWin32 ? win32.resolve : posix.resolve;
5361
5376
  const relative = platformIsWin32 ? win32.relative : posix.relative;
5362
5377
  const dirname$1 = platformIsWin32 ? win32.dirname : posix.dirname;
@@ -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 {
@@ -14792,7 +14818,7 @@ define("vs/editor.api-BhD7pWdi", ["exports"], (function(exports) {
14792
14818
  }
14793
14819
  let normalizedPath;
14794
14820
  if (resource.scheme === Schemas.file) {
14795
- normalizedPath = URI.file(normalize(originalFSPath(resource))).path;
14821
+ normalizedPath = URI.file(normalize$1(originalFSPath(resource))).path;
14796
14822
  } else {
14797
14823
  normalizedPath = posix.normalize(resource.path);
14798
14824
  }
@@ -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,
@@ -97308,7 +97414,7 @@ ${escape$2(text2)}
97308
97414
  let LocalSelectionTransfer = _LocalSelectionTransfer;
97309
97415
  function getPathForFile(file) {
97310
97416
  if (isNative && typeof globalThis.vscode?.webUtils?.getPathForFile === "function") {
97311
- return globalThis.vscode.webUtils.getPathForFile(file);
97417
+ return globalThis.vscode?.webUtils?.getPathForFile(file);
97312
97418
  }
97313
97419
  return void 0;
97314
97420
  }
@@ -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
  }
@@ -112021,7 +112127,7 @@ ${escape$2(text2)}
112021
112127
  }
112022
112128
  }
112023
112129
  function isCollapsibleStateUpdate(update) {
112024
- return typeof update.collapsible === "boolean";
112130
+ return "collapsible" in update;
112025
112131
  }
112026
112132
  class IndexTreeModel {
112027
112133
  constructor(user, rootElement, options = {}) {
@@ -113843,7 +113949,8 @@ ${escape$2(text2)}
113843
113949
  this.onDidChange = this._onDidChange.event;
113844
113950
  }
113845
113951
  set(nodes, browserEvent) {
113846
- if (!browserEvent?.__forceEvent && equals$1(this.nodes, nodes)) {
113952
+ const event = browserEvent;
113953
+ if (!event?.__forceEvent && equals$1(this.nodes, nodes)) {
113847
113954
  return;
113848
113955
  }
113849
113956
  this._set(nodes, false, browserEvent);
@@ -114282,9 +114389,9 @@ ${escape$2(text2)}
114282
114389
  if (styles.listFocusOutline) {
114283
114390
  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
114391
  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; }`);
114392
+ 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; }`);
114393
+ content.push(`.context-menu-visible .monaco-list${suffix}.last-focused.sticky-scroll-focused .monaco-list-rows .monaco-list-row.focused { outline: inherit; }`);
114394
+ 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
114395
  }
114289
114396
  this.styleElement.textContent = content.join("\n");
114290
114397
  this.view.style(styles);
@@ -115478,7 +115585,8 @@ ${escape$2(text2)}
115478
115585
  } else {
115479
115586
  return options.defaultFindVisibility(e.element);
115480
115587
  }
115481
- }
115588
+ },
115589
+ stickyScrollDelegate: options.stickyScrollDelegate
115482
115590
  };
115483
115591
  }
115484
115592
  function dfs(node, fn) {
@@ -116059,7 +116167,8 @@ ${escape$2(text2)}
116059
116167
  getCompressedNodeKeyboardNavigationLabel(els) {
116060
116168
  return options.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(els.map((e) => e.element));
116061
116169
  }
116062
- }
116170
+ },
116171
+ stickyScrollDelegate: objectTreeOptions.stickyScrollDelegate
116063
116172
  };
116064
116173
  }
116065
116174
  class CompressibleAsyncDataTree extends AsyncDataTree {
@@ -119836,6 +119945,25 @@ ${escape$2(text2)}
119836
119945
  this.hasTriggerModifier = hasTriggerModifier2;
119837
119946
  }
119838
119947
  }
119948
+ class CancellationStore {
119949
+ constructor() {
119950
+ this._store = new MutableDisposable();
119951
+ this._tokenSource = new CancellationTokenSource$1();
119952
+ }
119953
+ dispose() {
119954
+ this._store.dispose();
119955
+ this._tokenSource.dispose(true);
119956
+ }
119957
+ reset() {
119958
+ this._tokenSource.dispose(true);
119959
+ this._tokenSource = new CancellationTokenSource$1();
119960
+ this._store.value = new DisposableStore();
119961
+ return {
119962
+ store: this._store.value,
119963
+ token: this._tokenSource.token
119964
+ };
119965
+ }
119966
+ }
119839
119967
  let InlayHintsController = (_M = class {
119840
119968
  static get(editor2) {
119841
119969
  return editor2.getContribution(InlayHintsController_1.ID) ?? void 0;
@@ -119923,41 +120051,36 @@ ${escape$2(text2)}
119923
120051
  }));
119924
120052
  let cts;
119925
120053
  const watchedProviders = /* @__PURE__ */ new Set();
120054
+ this._sessionDisposables.add(model.onWillDispose(() => cts?.cancel()));
120055
+ const cancellationStore = this._sessionDisposables.add(new CancellationStore());
119926
120056
  const scheduler = new RunOnceScheduler(async () => {
119927
120057
  const t1 = Date.now();
119928
- cts?.dispose(true);
119929
- cts = new CancellationTokenSource$1();
119930
- const listener = model.onWillDispose(() => cts?.cancel());
120058
+ const { store, token } = cancellationStore.reset();
119931
120059
  try {
119932
- const myToken = cts.token;
119933
- const inlayHints = await InlayHintsFragments.create(this._languageFeaturesService.inlayHintsProvider, model, this._getHintsRanges(), myToken);
120060
+ const inlayHints = await InlayHintsFragments.create(this._languageFeaturesService.inlayHintsProvider, model, this._getHintsRanges(), token);
119934
120061
  scheduler.delay = this._debounceInfo.update(model, Date.now() - t1);
119935
- if (myToken.isCancellationRequested) {
120062
+ if (token.isCancellationRequested) {
119936
120063
  inlayHints.dispose();
119937
120064
  return;
119938
120065
  }
119939
120066
  for (const provider of inlayHints.provider) {
119940
120067
  if (typeof provider.onDidChangeInlayHints === "function" && !watchedProviders.has(provider)) {
119941
120068
  watchedProviders.add(provider);
119942
- this._sessionDisposables.add(provider.onDidChangeInlayHints(() => {
120069
+ store.add(provider.onDidChangeInlayHints(() => {
119943
120070
  if (!scheduler.isScheduled()) {
119944
120071
  scheduler.schedule();
119945
120072
  }
119946
120073
  }));
119947
120074
  }
119948
120075
  }
119949
- this._sessionDisposables.add(inlayHints);
120076
+ store.add(inlayHints);
119950
120077
  this._updateHintsDecorators(inlayHints.ranges, inlayHints.items);
119951
120078
  this._cacheHintsForFastRestore(model);
119952
120079
  } catch (err) {
119953
120080
  onUnexpectedError(err);
119954
- } finally {
119955
- cts.dispose();
119956
- listener.dispose();
119957
120081
  }
119958
120082
  }, this._debounceInfo.get(model));
119959
120083
  this._sessionDisposables.add(scheduler);
119960
- this._sessionDisposables.add(toDisposable(() => cts?.dispose(true)));
119961
120084
  scheduler.schedule(0);
119962
120085
  this._sessionDisposables.add(this._editor.onDidScrollChange((e) => {
119963
120086
  if (e.scrollTopChanged || !scheduler.isScheduled()) {
@@ -119966,7 +120089,6 @@ ${escape$2(text2)}
119966
120089
  }));
119967
120090
  const cursor = this._sessionDisposables.add(new MutableDisposable());
119968
120091
  this._sessionDisposables.add(this._editor.onDidChangeModelContent((e) => {
119969
- cts?.cancel();
119970
120092
  const delay = Math.max(scheduler.delay, 800);
119971
120093
  this._cursorInfo = { position: this._editor.getPosition(), notEarlierThan: Date.now() + delay };
119972
120094
  cursor.value = disposableTimeout(() => scheduler.schedule(0), delay);
@@ -133094,7 +133216,7 @@ ${escape$2(text2)}
133094
133216
  forward = Boolean(data[shouldForwardToChannel]);
133095
133217
  }
133096
133218
  if (forward) {
133097
- dataChannelService.getDataChannel("editTelemetry").sendData({ eventName, data });
133219
+ dataChannelService.getDataChannel("editTelemetry").sendData({ eventName, data: data ?? {} });
133098
133220
  }
133099
133221
  });
133100
133222
  }
@@ -133117,6 +133239,51 @@ ${escape$2(text2)}
133117
133239
  const extIdLowerCase = extensionId.toLowerCase();
133118
133240
  return extIdLowerCase === "github.copilot" || extIdLowerCase === "github.copilot-chat";
133119
133241
  }
133242
+ let product;
133243
+ const vscodeGlobal = globalThis.vscode;
133244
+ if (typeof vscodeGlobal !== "undefined" && typeof vscodeGlobal.context !== "undefined") {
133245
+ const configuration = vscodeGlobal.context.configuration();
133246
+ if (configuration) {
133247
+ product = configuration.product;
133248
+ } else {
133249
+ throw new Error("Sandbox: unable to resolve product configuration from preload script.");
133250
+ }
133251
+ } else if (globalThis._VSCODE_PRODUCT_JSON && globalThis._VSCODE_PACKAGE_JSON) {
133252
+ product = globalThis._VSCODE_PRODUCT_JSON;
133253
+ if (env["VSCODE_DEV"]) {
133254
+ Object.assign(product, {
133255
+ nameShort: `${product.nameShort} Dev`,
133256
+ nameLong: `${product.nameLong} Dev`,
133257
+ dataFolderName: `${product.dataFolderName}-dev`,
133258
+ serverDataFolderName: product.serverDataFolderName ? `${product.serverDataFolderName}-dev` : void 0
133259
+ });
133260
+ }
133261
+ if (!product.version) {
133262
+ const pkg = globalThis._VSCODE_PACKAGE_JSON;
133263
+ Object.assign(product, {
133264
+ version: pkg.version
133265
+ });
133266
+ }
133267
+ } else {
133268
+ product = {
133269
+ /*BUILD->INSERT_PRODUCT_CONFIGURATION*/
133270
+ };
133271
+ if (Object.keys(product).length === 0) {
133272
+ Object.assign(product, {
133273
+ version: "1.104.0-dev",
133274
+ nameShort: "Code - OSS Dev",
133275
+ nameLong: "Code - OSS Dev",
133276
+ applicationName: "code-oss",
133277
+ dataFolderName: ".vscode-oss",
133278
+ urlProtocol: "code-oss",
133279
+ reportIssueUrl: "https://github.com/microsoft/vscode/issues/new",
133280
+ licenseName: "MIT",
133281
+ licenseUrl: "https://github.com/microsoft/vscode/blob/main/LICENSE.txt",
133282
+ serverLicenseUrl: "https://github.com/microsoft/vscode/blob/main/LICENSE.txt"
133283
+ });
133284
+ }
133285
+ }
133286
+ const product$1 = product;
133120
133287
  function offsetEditFromContentChanges(contentChanges) {
133121
133288
  const editsArr = contentChanges.map((c) => new StringReplacement(OffsetRange.ofStartAndLength(c.rangeOffset, c.rangeLength), c.text));
133122
133289
  editsArr.reverse();
@@ -134503,7 +134670,7 @@ ${escape$2(text2)}
134503
134670
  };
134504
134671
  var InlineCompletionsSource_1;
134505
134672
  let InlineCompletionsSource = (_$2 = class extends Disposable {
134506
- constructor(_textModel, _versionId, _debounceValue, _cursorPosition, _languageConfigurationService, _logService, _configurationService, _instantiationService) {
134673
+ constructor(_textModel, _versionId, _debounceValue, _cursorPosition, _languageConfigurationService, _logService, _configurationService, _instantiationService, _contextKeyService) {
134507
134674
  super();
134508
134675
  this._textModel = _textModel;
134509
134676
  this._versionId = _versionId;
@@ -134513,6 +134680,7 @@ ${escape$2(text2)}
134513
134680
  this._logService = _logService;
134514
134681
  this._configurationService = _configurationService;
134515
134682
  this._instantiationService = _instantiationService;
134683
+ this._contextKeyService = _contextKeyService;
134516
134684
  this._updateOperation = this._register(new MutableDisposable());
134517
134685
  this._state = observableReducerSettable(this, {
134518
134686
  initial: () => ({
@@ -134542,6 +134710,7 @@ ${escape$2(text2)}
134542
134710
  });
134543
134711
  this.inlineCompletions = this._state.map(this, (v) => v.inlineCompletions);
134544
134712
  this.suggestWidgetInlineCompletions = this._state.map(this, (v) => v.suggestWidgetInlineCompletions);
134713
+ this._completionsEnabled = void 0;
134545
134714
  this.clearOperationOnTextModelChange = derived(this, (reader) => {
134546
134715
  this._versionId.read(reader);
134547
134716
  this._updateOperation.clear();
@@ -134552,6 +134721,23 @@ ${escape$2(text2)}
134552
134721
  this._sendRequestData = observableConfigValue("editor.inlineSuggest.emptyResponseInformation", true, this._configurationService).recomputeInitiallyAndOnChange(this._store);
134553
134722
  this._structuredFetchLogger = this._register(this._instantiationService.createInstance(StructuredLogger.cast(), "editor.inlineSuggest.logFetch.commandId"));
134554
134723
  this.clearOperationOnTextModelChange.recomputeInitiallyAndOnChange(this._store);
134724
+ const enablementSetting = product$1.defaultChatAgent?.completionsEnablementSetting ?? void 0;
134725
+ if (enablementSetting) {
134726
+ this._updateCompletionsEnablement(enablementSetting);
134727
+ this._register(this._configurationService.onDidChangeConfiguration((e) => {
134728
+ if (e.affectsConfiguration(enablementSetting)) {
134729
+ this._updateCompletionsEnablement(enablementSetting);
134730
+ }
134731
+ }));
134732
+ }
134733
+ }
134734
+ _updateCompletionsEnablement(enalementSetting) {
134735
+ const result = this._configurationService.getValue(enalementSetting);
134736
+ if (!isObject(result)) {
134737
+ this._completionsEnabled = void 0;
134738
+ } else {
134739
+ this._completionsEnabled = result;
134740
+ }
134555
134741
  }
134556
134742
  _log(entry) {
134557
134743
  if (this._loggingEnabled.get()) {
@@ -134572,8 +134758,17 @@ ${escape$2(text2)}
134572
134758
  this._updateOperation.clear();
134573
134759
  const source = new CancellationTokenSource$1();
134574
134760
  const promise = (async () => {
134575
- this._loadingCount.set(this._loadingCount.get() + 1, void 0);
134576
134761
  const store = new DisposableStore();
134762
+ this._loadingCount.set(this._loadingCount.get() + 1, void 0);
134763
+ let didDecrease = false;
134764
+ const decreaseLoadingCount = () => {
134765
+ if (!didDecrease) {
134766
+ didDecrease = true;
134767
+ this._loadingCount.set(this._loadingCount.get() - 1, void 0);
134768
+ }
134769
+ };
134770
+ const loadingReset = store.add(new RunOnceScheduler(() => decreaseLoadingCount(), 10 * 1e3));
134771
+ loadingReset.schedule();
134577
134772
  const inlineSuggestionsProviders = providers.filter((p) => p.providerId);
134578
134773
  const requestResponseInfo = new RequestResponseData(context, requestInfo, inlineSuggestionsProviders);
134579
134774
  try {
@@ -134659,7 +134854,8 @@ ${escape$2(text2)}
134659
134854
  if (source.token.isCancellationRequested) {
134660
134855
  requestResponseInfo.setNoSuggestionReasonIfNotSet("canceled:whileFetching");
134661
134856
  } else {
134662
- requestResponseInfo.setNoSuggestionReasonIfNotSet("noSuggestion");
134857
+ const completionsQuotaExceeded = this._contextKeyService.getContextKeyValue("completionsQuotaExceeded");
134858
+ requestResponseInfo.setNoSuggestionReasonIfNotSet(completionsQuotaExceeded ? "completionsQuotaExceeded" : "noSuggestion");
134663
134859
  }
134664
134860
  }
134665
134861
  const remainingTimeToWait = context.earliestShownDateTime - Date.now();
@@ -134692,8 +134888,8 @@ ${escape$2(text2)}
134692
134888
  v.suggestWidgetInlineCompletions.dispose();
134693
134889
  });
134694
134890
  } finally {
134695
- this._loadingCount.set(this._loadingCount.get() - 1, void 0);
134696
134891
  store.dispose();
134892
+ decreaseLoadingCount();
134697
134893
  this.sendInlineCompletionsRequestTelemetry(requestResponseInfo);
134698
134894
  }
134699
134895
  return true;
@@ -134733,12 +134929,18 @@ ${escape$2(text2)}
134733
134929
  });
134734
134930
  }
134735
134931
  sendInlineCompletionsRequestTelemetry(requestResponseInfo) {
134736
- if (!this._sendRequestData.get()) {
134932
+ if (!this._sendRequestData.get() && !this._contextKeyService.getContextKeyValue("isRunningUnificationExperiment")) {
134737
134933
  return;
134738
134934
  }
134739
134935
  if (requestResponseInfo.requestUuid === void 0 || requestResponseInfo.hasProducedSuggestion) {
134740
134936
  return;
134741
134937
  }
134938
+ if (!isCompletionsEnabled(this._completionsEnabled, this._textModel.getLanguageId())) {
134939
+ return;
134940
+ }
134941
+ if (!requestResponseInfo.providers.some((p) => isCopilotLikeExtension(p.providerId?.extensionId))) {
134942
+ return;
134943
+ }
134742
134944
  const emptyEndOfLifeEvent = {
134743
134945
  id: requestResponseInfo.requestUuid,
134744
134946
  opportunityId: requestResponseInfo.requestUuid,
@@ -134796,7 +134998,8 @@ ${escape$2(text2)}
134796
134998
  __param$1z(4, ILanguageConfigurationService),
134797
134999
  __param$1z(5, ILogService),
134798
135000
  __param$1z(6, IConfigurationService),
134799
- __param$1z(7, IInstantiationService)
135001
+ __param$1z(7, IInstantiationService),
135002
+ __param$1z(8, IContextKeyService)
134800
135003
  ], InlineCompletionsSource);
134801
135004
  class UpdateRequest {
134802
135005
  constructor(position, context, versionId, providers) {
@@ -134829,6 +135032,15 @@ ${escape$2(text2)}
134829
135032
  function isSubset(set1, set2) {
134830
135033
  return [...set1].every((item) => set2.has(item));
134831
135034
  }
135035
+ function isCompletionsEnabled(completionsEnablementObject, modeId = "*") {
135036
+ if (completionsEnablementObject === void 0) {
135037
+ return false;
135038
+ }
135039
+ if (typeof completionsEnablementObject[modeId] !== "undefined") {
135040
+ return Boolean(completionsEnablementObject[modeId]);
135041
+ }
135042
+ return Boolean(completionsEnablementObject["*"]);
135043
+ }
134832
135044
  class UpdateOperation {
134833
135045
  constructor(request, cancellationTokenSource, promise) {
134834
135046
  this.request = request;
@@ -134965,7 +135177,7 @@ ${escape$2(text2)}
134965
135177
  this.onDidChangeIsSnoozing = this._onDidChangeIsSnoozing.event;
134966
135178
  this._snoozeTimeEnd = void 0;
134967
135179
  this._recentCompletionIds = [];
134968
- this._timer = this._register(new WindowIntervalTimer());
135180
+ this._timer = this._register(new TimeoutTimer());
134969
135181
  const inlineCompletionsSnoozing = InlineCompletionsSnoozing.bindTo(this._contextKeyService);
134970
135182
  this._register(this.onDidChangeIsSnoozing(() => inlineCompletionsSnoozing.set(this.isSnoozing())));
134971
135183
  }
@@ -135047,15 +135259,15 @@ ${escape$2(text2)}
135047
135259
  const quickInputService = accessor.get(IQuickInputService);
135048
135260
  const inlineCompletionsService = accessor.get(IInlineCompletionsService);
135049
135261
  const storageService = accessor.get(IStorageService);
135050
- let durationMinutes;
135262
+ let durationMs;
135051
135263
  if (args.length > 0 && typeof args[0] === "number") {
135052
- durationMinutes = args[0];
135264
+ durationMs = args[0] * 6e4;
135053
135265
  }
135054
- if (!durationMinutes) {
135055
- durationMinutes = await this.getDurationFromUser(quickInputService, storageService);
135266
+ if (!durationMs) {
135267
+ durationMs = await this.getDurationFromUser(quickInputService, storageService);
135056
135268
  }
135057
- if (durationMinutes) {
135058
- inlineCompletionsService.setSnoozeDuration(durationMinutes);
135269
+ if (durationMs) {
135270
+ inlineCompletionsService.setSnoozeDuration(durationMs);
135059
135271
  }
135060
135272
  }
135061
135273
  async getDurationFromUser(quickInputService, storageService) {
@@ -135276,6 +135488,7 @@ ${escape$2(text2)}
135276
135488
  this._fetchSpecificProviderSignal = observableSignal(this);
135277
135489
  this._selectedInlineCompletionId = observableValue(this, void 0);
135278
135490
  this.primaryPosition = derived(this, (reader) => this._positions.read(reader)[0] ?? new Position$1(1, 1));
135491
+ this.allPositions = derived(this, (reader) => this._positions.read(reader));
135279
135492
  this._isAcceptingPartially = false;
135280
135493
  this._appearedInsideViewport = derived(this, (reader) => {
135281
135494
  const state = this.state.read(reader);
@@ -135526,7 +135739,8 @@ ${escape$2(text2)}
135526
135739
  const inlineEdit = new InlineEdit(edit2, commands ?? [], inlineEditResult);
135527
135740
  const edits = inlineEditResult.updatedEdit;
135528
135741
  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;
135742
+ const nextEditUri = (item.inlineEdit?.command?.id === "vscode.open" || item.inlineEdit?.command?.id === "_workbench.open") && // eslint-disable-next-line local/code-no-any-casts
135743
+ item.inlineEdit?.command.arguments?.length ? URI.from(item.inlineEdit?.command.arguments[0]) : void 0;
135530
135744
  return { kind: "inlineEdit", inlineEdit, inlineCompletion: inlineEditResult, edits: e, cursorAtInlineEdit, nextEditUri };
135531
135745
  }
135532
135746
  const suggestItem = this._selectedSuggestItem.read(reader);
@@ -135663,6 +135877,9 @@ ${escape$2(text2)}
135663
135877
  if (this.showCollapsed.read(reader)) {
135664
135878
  return false;
135665
135879
  }
135880
+ if (this._tabShouldIndent.read(reader)) {
135881
+ return false;
135882
+ }
135666
135883
  if (this._inAcceptFlow.read(reader) && this._appearedInsideViewport.read(reader)) {
135667
135884
  return true;
135668
135885
  }
@@ -135672,9 +135889,6 @@ ${escape$2(text2)}
135672
135889
  if (this._jumpedToId.read(reader) === s.inlineCompletion.semanticId) {
135673
135890
  return true;
135674
135891
  }
135675
- if (this._tabShouldIndent.read(reader)) {
135676
- return false;
135677
- }
135678
135892
  return s.cursorAtInlineEdit.read(reader);
135679
135893
  });
135680
135894
  this._jumpedToId = observableValue(this, void 0);
@@ -141066,10 +141280,11 @@ ${escape$2(text2)}
141066
141280
  get displayRange() {
141067
141281
  return this.originalText.lineRange.intersect(this.originalLineRange.join(LineRange.ofLength(this.originalLineRange.startLineNumber, this.lineEdit.newLines.length)));
141068
141282
  }
141069
- constructor(originalText, edit2, cursorPosition, commands, inlineCompletion) {
141283
+ constructor(originalText, edit2, cursorPosition, multiCursorPositions, commands, inlineCompletion) {
141070
141284
  this.originalText = originalText;
141071
141285
  this.edit = edit2;
141072
141286
  this.cursorPosition = cursorPosition;
141287
+ this.multiCursorPositions = multiCursorPositions;
141073
141288
  this.commands = commands;
141074
141289
  this.inlineCompletion = inlineCompletion;
141075
141290
  }
@@ -141120,7 +141335,7 @@ ${escape$2(text2)}
141120
141335
  }
141121
141336
  return InlineEditTabAction.Inactive;
141122
141337
  });
141123
- this.model = new InlineEditModel(model, new InlineEditWithChanges(new StringText(""), new TextEdit([inlineCompletion.getSingleTextEdit()]), model.primaryPosition.get(), inlineCompletion.source.inlineSuggestions.commands ?? [], inlineCompletion), tabAction);
141338
+ this.model = new InlineEditModel(model, new InlineEditWithChanges(new StringText(""), new TextEdit([inlineCompletion.getSingleTextEdit()]), model.primaryPosition.get(), model.allPositions.get(), inlineCompletion.source.inlineSuggestions.commands ?? [], inlineCompletion), tabAction);
141124
141339
  }
141125
141340
  }
141126
141341
  class Rect {
@@ -143570,6 +143785,7 @@ ${escape$2(text2)}
143570
143785
  zIndex: "20",
143571
143786
  position: "absolute",
143572
143787
  backgroundColor: this._gutterIndicatorStyles.map((v) => v.background),
143788
+ // eslint-disable-next-line local/code-no-any-casts
143573
143789
  ["--vscodeIconForeground"]: this._gutterIndicatorStyles.map((v) => v.foreground),
143574
143790
  border: this._gutterIndicatorStyles.map((v) => `1px solid ${v.border}`),
143575
143791
  boxSizing: "border-box",
@@ -146016,7 +146232,15 @@ ${escape$2(text2)}
146016
146232
  }
146017
146233
  determineRenderState(model, reader, diff, newText) {
146018
146234
  const inlineEdit = model.inlineEdit;
146019
- const view = this.determineView(model, reader, diff, newText);
146235
+ let view = this.determineView(model, reader, diff, newText);
146236
+ if (this._willRenderAboveCursor(reader, inlineEdit, view)) {
146237
+ switch (view) {
146238
+ case InlineCompletionViewKind.LineReplacement:
146239
+ case InlineCompletionViewKind.WordReplacements:
146240
+ view = InlineCompletionViewKind.SideBySide;
146241
+ break;
146242
+ }
146243
+ }
146020
146244
  this._previousView = { id: this.getCacheId(model), view, editorWidth: this._editor.getLayoutInfo().width, timestamp: Date.now() };
146021
146245
  const inner = diff.flatMap((d) => d.innerChanges ?? []);
146022
146246
  const textModel = this._editor.getModel();
@@ -146093,6 +146317,21 @@ ${escape$2(text2)}
146093
146317
  }
146094
146318
  return void 0;
146095
146319
  }
146320
+ _willRenderAboveCursor(reader, inlineEdit, view) {
146321
+ const useCodeShifting = this._useCodeShifting.read(reader);
146322
+ if (useCodeShifting === "always") {
146323
+ return false;
146324
+ }
146325
+ for (const cursorPosition of inlineEdit.multiCursorPositions) {
146326
+ if (view === InlineCompletionViewKind.WordReplacements && cursorPosition.lineNumber === inlineEdit.originalLineRange.startLineNumber + 1) {
146327
+ return true;
146328
+ }
146329
+ if (view === InlineCompletionViewKind.LineReplacement && cursorPosition.lineNumber >= inlineEdit.originalLineRange.endLineNumberExclusive && cursorPosition.lineNumber < inlineEdit.modifiedLineRange.endLineNumberExclusive + inlineEdit.modifiedLineRange.length) {
146330
+ return true;
146331
+ }
146332
+ }
146333
+ return false;
146334
+ }
146096
146335
  _viewHasBeenShownLongerThan(durationMs) {
146097
146336
  const viewCreationTime = this._previousView?.timestamp;
146098
146337
  if (!viewCreationTime) {
@@ -146269,7 +146508,7 @@ ${escape$2(text2)}
146269
146508
  });
146270
146509
  const diffEdits = new TextEdit(edits);
146271
146510
  const text2 = new TextModelText(textModel);
146272
- return new InlineEditWithChanges(text2, diffEdits, model.primaryPosition.read(void 0), inlineEdit.commands, inlineEdit.inlineCompletion);
146511
+ return new InlineEditWithChanges(text2, diffEdits, model.primaryPosition.read(void 0), model.allPositions.read(void 0), inlineEdit.commands, inlineEdit.inlineCompletion);
146273
146512
  });
146274
146513
  this._inlineEditModel = derived(this, (reader) => {
146275
146514
  const model = this._model.read(reader);
@@ -147426,7 +147665,7 @@ ${json}
147426
147665
  }
147427
147666
  return getDefinitionsAtPosition(this.languageFeaturesService.definitionProvider, model, position, false, token);
147428
147667
  }
147429
- gotoDefinition(position, openToSide) {
147668
+ async gotoDefinition(position, openToSide) {
147430
147669
  this.editor.setPosition(position);
147431
147670
  return this.editor.invokeWithinContext((accessor) => {
147432
147671
  const canPeek = !openToSide && this.editor.getOption(
@@ -159509,7 +159748,7 @@ ${json}
159509
159748
  regExp.lastIndex = 0;
159510
159749
  return typeof path === "string" && regExp.test(path) ? pattern : null;
159511
159750
  };
159512
- } catch (error) {
159751
+ } catch {
159513
159752
  return NULL;
159514
159753
  }
159515
159754
  }
@@ -159780,7 +160019,7 @@ ${json}
159780
160019
  if (typeof pattern === "string") {
159781
160020
  normalizedPattern = pattern;
159782
160021
  } else {
159783
- normalizedPattern = { ...pattern, base: normalize(pattern.base) };
160022
+ normalizedPattern = { ...pattern, base: normalize$1(pattern.base) };
159784
160023
  }
159785
160024
  if (normalizedPattern === candidateUri.fsPath || match(normalizedPattern, candidateUri.fsPath)) {
159786
160025
  ret = 10;
@@ -163025,6 +163264,35 @@ ${json}
163025
163264
  return disposables;
163026
163265
  }
163027
163266
  }
163267
+ new LRUCache(1e4);
163268
+ const nfdCache = new LRUCache(1e4);
163269
+ function normalizeNFD(str) {
163270
+ return normalize(str, "NFD", nfdCache);
163271
+ }
163272
+ const nonAsciiCharactersPattern = /[^\u0000-\u0080]/;
163273
+ function normalize(str, form, normalizedCache) {
163274
+ if (!str) {
163275
+ return str;
163276
+ }
163277
+ const cached = normalizedCache.get(str);
163278
+ if (cached) {
163279
+ return cached;
163280
+ }
163281
+ let res;
163282
+ if (nonAsciiCharactersPattern.test(str)) {
163283
+ res = str.normalize(form);
163284
+ } else {
163285
+ res = str;
163286
+ }
163287
+ normalizedCache.set(str, res);
163288
+ return res;
163289
+ }
163290
+ const removeAccents = /* @__PURE__ */ (function() {
163291
+ const regex = /[\u0300-\u036f]/g;
163292
+ return function(str) {
163293
+ return normalizeNFD(str).replace(regex, "");
163294
+ };
163295
+ })();
163028
163296
  var __decorate$x = function(decorators, target, key, desc) {
163029
163297
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
163030
163298
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -163061,10 +163329,16 @@ ${json}
163061
163329
  const result = tfidf.calculateScores(filter, token);
163062
163330
  return normalizeTfIdfScores(result).filter((score2) => score2.score > AbstractCommandsQuickAccessProvider_1.TFIDF_THRESHOLD).slice(0, AbstractCommandsQuickAccessProvider_1.TFIDF_MAX_RESULTS);
163063
163331
  });
163332
+ const noAccentsFilter = this.normalizeForFiltering(filter);
163064
163333
  const filteredCommandPicks = [];
163065
163334
  for (const commandPick of allCommandPicks) {
163066
- const labelHighlights = AbstractCommandsQuickAccessProvider_1.WORD_FILTER(filter, commandPick.label) ?? void 0;
163067
- const aliasHighlights = commandPick.commandAlias ? AbstractCommandsQuickAccessProvider_1.WORD_FILTER(filter, commandPick.commandAlias) ?? void 0 : void 0;
163335
+ commandPick.labelNoAccents ??= this.normalizeForFiltering(commandPick.label);
163336
+ const labelHighlights = AbstractCommandsQuickAccessProvider_1.WORD_FILTER(noAccentsFilter, commandPick.labelNoAccents) ?? void 0;
163337
+ let aliasHighlights;
163338
+ if (commandPick.commandAlias) {
163339
+ commandPick.aliasNoAccents ??= this.normalizeForFiltering(commandPick.commandAlias);
163340
+ aliasHighlights = AbstractCommandsQuickAccessProvider_1.WORD_FILTER(noAccentsFilter, commandPick.aliasNoAccents) ?? void 0;
163341
+ }
163068
163342
  if (labelHighlights || aliasHighlights) {
163069
163343
  commandPick.highlights = {
163070
163344
  label: labelHighlights,
@@ -163213,6 +163487,22 @@ ${json}
163213
163487
  }
163214
163488
  return chunk;
163215
163489
  }
163490
+ /**
163491
+ * Normalizes a string for filtering by removing accents, but only if the result has the same length, otherwise
163492
+ * returns the original string.
163493
+ */
163494
+ normalizeForFiltering(value) {
163495
+ const withoutAccents = removeAccents(value);
163496
+ if (withoutAccents.length !== value.length) {
163497
+ this.telemetryService.publicLog2("QuickAccess:FilterLengthMismatch", {
163498
+ originalLength: value.length,
163499
+ normalizedLength: withoutAccents.length
163500
+ });
163501
+ return value;
163502
+ } else {
163503
+ return withoutAccents;
163504
+ }
163505
+ }
163216
163506
  }, AbstractCommandsQuickAccessProvider_1 = _La, _La.PREFIX = ">", _La.TFIDF_THRESHOLD = 0.5, _La.TFIDF_MAX_RESULTS = 5, _La.WORD_FILTER = or(matchesPrefix, matchesWords, matchesContiguousSubString), _La);
163217
163507
  AbstractCommandsQuickAccessProvider = AbstractCommandsQuickAccessProvider_1 = __decorate$x([
163218
163508
  __param$w(1, IInstantiationService),
@@ -165093,7 +165383,7 @@ ${this._themeCSS}`;
165093
165383
  setWorkerId(workerId) {
165094
165384
  this._workerId = workerId;
165095
165385
  }
165096
- sendMessage(channel, method, args) {
165386
+ async sendMessage(channel, method, args) {
165097
165387
  const req = String(++this._lastSentReq);
165098
165388
  return new Promise((resolve2, reject) => {
165099
165389
  this._pendingReplies[req] = {
@@ -165174,10 +165464,11 @@ ${this._themeCSS}`;
165174
165464
  if (replyMessage.err) {
165175
165465
  let err = replyMessage.err;
165176
165466
  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;
165467
+ const newErr = new Error();
165468
+ newErr.name = replyMessage.err.name;
165469
+ newErr.message = replyMessage.err.message;
165470
+ newErr.stack = replyMessage.err.stack;
165471
+ err = newErr;
165181
165472
  }
165182
165473
  reply.reject(err);
165183
165474
  return;
@@ -165222,8 +165513,9 @@ ${this._themeCSS}`;
165222
165513
  const transfer = [];
165223
165514
  if (msg.type === 0) {
165224
165515
  for (let i2 = 0; i2 < msg.args.length; i2++) {
165225
- if (msg.args[i2] instanceof ArrayBuffer) {
165226
- transfer.push(msg.args[i2]);
165516
+ const arg = msg.args[i2];
165517
+ if (arg instanceof ArrayBuffer) {
165518
+ transfer.push(arg);
165227
165519
  }
165228
165520
  }
165229
165521
  } else if (msg.type === 1) {
@@ -165260,7 +165552,8 @@ ${this._themeCSS}`;
165260
165552
  this._protocol.setWorkerId(this._worker.getId());
165261
165553
  this._onModuleLoaded = this._protocol.sendMessage(DEFAULT_CHANNEL, INITIALIZE, [
165262
165554
  this._worker.getId()
165263
- ]);
165555
+ ]).then(() => {
165556
+ });
165264
165557
  this.proxy = this._protocol.createProxyToRemoteChannel(DEFAULT_CHANNEL, async () => {
165265
165558
  await this._onModuleLoaded;
165266
165559
  });
@@ -165273,11 +165566,12 @@ ${this._themeCSS}`;
165273
165566
  if (!channel) {
165274
165567
  return Promise.reject(new Error(`Missing channel ${channelName} on main thread`));
165275
165568
  }
165276
- if (typeof channel[method] !== "function") {
165569
+ const fn = channel[method];
165570
+ if (typeof fn !== "function") {
165277
165571
  return Promise.reject(new Error(`Missing method ${method} on main thread channel ${channelName}`));
165278
165572
  }
165279
165573
  try {
165280
- return Promise.resolve(channel[method].apply(channel, args));
165574
+ return Promise.resolve(fn.apply(channel, args));
165281
165575
  } catch (e) {
165282
165576
  return Promise.reject(e);
165283
165577
  }
@@ -165288,7 +165582,11 @@ ${this._themeCSS}`;
165288
165582
  throw new Error(`Missing channel ${channelName} on main thread`);
165289
165583
  }
165290
165584
  if (propertyIsDynamicEvent(eventName)) {
165291
- const event = channel[eventName].call(channel, arg);
165585
+ const fn = channel[eventName];
165586
+ if (typeof fn !== "function") {
165587
+ throw new Error(`Missing dynamic event ${eventName} on main thread channel ${channelName}.`);
165588
+ }
165589
+ const event = fn.call(channel, arg);
165292
165590
  if (typeof event !== "function") {
165293
165591
  throw new Error(`Missing dynamic event ${eventName} on main thread channel ${channelName}.`);
165294
165592
  }
@@ -166475,6 +166773,7 @@ ${this._themeCSS}`;
166475
166773
  const _EditorWorker = class _EditorWorker {
166476
166774
  constructor(_foreignModule = null) {
166477
166775
  this._foreignModule = _foreignModule;
166776
+ this._requestHandlerBrand = void 0;
166478
166777
  this._workerTextModelSyncServer = new WorkerTextModelSyncServer();
166479
166778
  }
166480
166779
  dispose() {
@@ -174684,20 +174983,11 @@ ${formatRule(Codicon.menuSubmenu)}
174684
174983
  static _readModelOptions(config, isForSimpleWidget) {
174685
174984
  let tabSize = EDITOR_MODEL_DEFAULTS.tabSize;
174686
174985
  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
- }
174986
+ tabSize = clampedInt(config.editor.tabSize, EDITOR_MODEL_DEFAULTS.tabSize, 1, 100);
174694
174987
  }
174695
174988
  let indentSize = "tabSize";
174696
174989
  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
- }
174990
+ indentSize = clampedInt(config.editor.indentSize, "tabSize", 1, 100);
174701
174991
  }
174702
174992
  let insertSpaces = EDITOR_MODEL_DEFAULTS.insertSpaces;
174703
174993
  if (config.editor && typeof config.editor.insertSpaces !== "undefined") {
@@ -174724,9 +175014,10 @@ ${formatRule(Codicon.menuSubmenu)}
174724
175014
  }
174725
175015
  let bracketPairColorizationOptions = EDITOR_MODEL_DEFAULTS.bracketPairColorizationOptions;
174726
175016
  if (config.editor?.bracketPairColorization && typeof config.editor.bracketPairColorization === "object") {
175017
+ const bpConfig = config.editor.bracketPairColorization;
174727
175018
  bracketPairColorizationOptions = {
174728
- enabled: !!config.editor.bracketPairColorization.enabled,
174729
- independentColorPoolPerBracketType: !!config.editor.bracketPairColorization.independentColorPoolPerBracketType
175019
+ enabled: !!bpConfig.enabled,
175020
+ independentColorPoolPerBracketType: !!bpConfig.independentColorPoolPerBracketType
174730
175021
  };
174731
175022
  }
174732
175023
  return {
@@ -176063,7 +176354,7 @@ ${formatRule(Codicon.menuSubmenu)}
176063
176354
  if (inBackground && !this._canAcceptInBackground) {
176064
176355
  return;
176065
176356
  }
176066
- if (this.activeItems[0]) {
176357
+ if (this.activeItems[0] && !this._canSelectMany) {
176067
176358
  this._selectedItems = [this.activeItems[0]];
176068
176359
  this.onDidChangeSelectionEmitter.fire(this.selectedItems);
176069
176360
  }
@@ -179364,8 +179655,8 @@ ${formatRule(Codicon.menuSubmenu)}
179364
179655
  }));
179365
179656
  const updateRootClasses = () => {
179366
179657
  const reduce = this.isMotionReduced();
179367
- this._layoutService.mainContainer.classList.toggle("reduce-motion", reduce);
179368
- this._layoutService.mainContainer.classList.toggle("enable-motion", !reduce);
179658
+ this._layoutService.mainContainer.classList.toggle("monaco-reduce-motion", reduce);
179659
+ this._layoutService.mainContainer.classList.toggle("monaco-enable-motion", !reduce);
179369
179660
  };
179370
179661
  updateRootClasses();
179371
179662
  this._register(this.onDidChangeReducedMotion(() => updateRootClasses()));
@@ -182015,8 +182306,10 @@ ${graph.toString()}`;
182015
182306
  h("div.header-content", [
182016
182307
  h("div.collapse-button@collapseButton"),
182017
182308
  h("div.file-path", [
182309
+ // eslint-disable-next-line local/code-no-any-casts, @typescript-eslint/no-explicit-any
182018
182310
  h("div.title.modified.show-file-icons@primaryPath", []),
182019
182311
  h("div.status.deleted@status", ["R"]),
182312
+ // eslint-disable-next-line local/code-no-any-casts, @typescript-eslint/no-explicit-any
182020
182313
  h("div.title.original.show-file-icons@secondaryPath", [])
182021
182314
  ]),
182022
182315
  h("div.actions@actions")
@@ -182806,37 +183099,65 @@ ${graph.toString()}`;
182806
183099
  function createMonacoEditorAPI() {
182807
183100
  return {
182808
183101
  // methods
183102
+ // eslint-disable-next-line local/code-no-any-casts
182809
183103
  create,
183104
+ // eslint-disable-next-line local/code-no-any-casts
182810
183105
  getEditors,
183106
+ // eslint-disable-next-line local/code-no-any-casts
182811
183107
  getDiffEditors,
183108
+ // eslint-disable-next-line local/code-no-any-casts
182812
183109
  onDidCreateEditor,
183110
+ // eslint-disable-next-line local/code-no-any-casts
182813
183111
  onDidCreateDiffEditor,
183112
+ // eslint-disable-next-line local/code-no-any-casts
182814
183113
  createDiffEditor,
183114
+ // eslint-disable-next-line local/code-no-any-casts
182815
183115
  addCommand,
183116
+ // eslint-disable-next-line local/code-no-any-casts
182816
183117
  addEditorAction,
183118
+ // eslint-disable-next-line local/code-no-any-casts
182817
183119
  addKeybindingRule,
183120
+ // eslint-disable-next-line local/code-no-any-casts
182818
183121
  addKeybindingRules,
183122
+ // eslint-disable-next-line local/code-no-any-casts
182819
183123
  createModel,
183124
+ // eslint-disable-next-line local/code-no-any-casts
182820
183125
  setModelLanguage,
183126
+ // eslint-disable-next-line local/code-no-any-casts
182821
183127
  setModelMarkers,
183128
+ // eslint-disable-next-line local/code-no-any-casts
182822
183129
  getModelMarkers,
182823
183130
  removeAllMarkers,
183131
+ // eslint-disable-next-line local/code-no-any-casts
182824
183132
  onDidChangeMarkers,
183133
+ // eslint-disable-next-line local/code-no-any-casts
182825
183134
  getModels,
183135
+ // eslint-disable-next-line local/code-no-any-casts
182826
183136
  getModel,
183137
+ // eslint-disable-next-line local/code-no-any-casts
182827
183138
  onDidCreateModel,
183139
+ // eslint-disable-next-line local/code-no-any-casts
182828
183140
  onWillDisposeModel,
183141
+ // eslint-disable-next-line local/code-no-any-casts
182829
183142
  onDidChangeModelLanguage,
183143
+ // eslint-disable-next-line local/code-no-any-casts
182830
183144
  createWebWorker,
183145
+ // eslint-disable-next-line local/code-no-any-casts
182831
183146
  colorizeElement,
183147
+ // eslint-disable-next-line local/code-no-any-casts
182832
183148
  colorize,
183149
+ // eslint-disable-next-line local/code-no-any-casts
182833
183150
  colorizeModelLine,
183151
+ // eslint-disable-next-line local/code-no-any-casts
182834
183152
  tokenize,
183153
+ // eslint-disable-next-line local/code-no-any-casts
182835
183154
  defineTheme,
183155
+ // eslint-disable-next-line local/code-no-any-casts
182836
183156
  setTheme,
182837
183157
  remeasureFonts,
182838
183158
  registerCommand,
182839
183159
  registerLinkOpener,
183160
+ // eslint-disable-next-line local/code-no-any-casts
182840
183161
  registerEditorOpener,
182841
183162
  // enums
182842
183163
  AccessibilitySupport,
@@ -182866,16 +183187,25 @@ ${graph.toString()}`;
182866
183187
  ShowLightbulbIconMode,
182867
183188
  TextDirection,
182868
183189
  // classes
183190
+ // eslint-disable-next-line local/code-no-any-casts
182869
183191
  ConfigurationChangedEvent,
183192
+ // eslint-disable-next-line local/code-no-any-casts
182870
183193
  BareFontInfo,
183194
+ // eslint-disable-next-line local/code-no-any-casts
182871
183195
  FontInfo,
183196
+ // eslint-disable-next-line local/code-no-any-casts
182872
183197
  TextModelResolvedOptions,
183198
+ // eslint-disable-next-line local/code-no-any-casts
182873
183199
  FindMatch,
183200
+ // eslint-disable-next-line local/code-no-any-casts
182874
183201
  ApplyUpdateResult,
183202
+ // eslint-disable-next-line local/code-no-any-casts
182875
183203
  EditorZoom,
183204
+ // eslint-disable-next-line local/code-no-any-casts
182876
183205
  createMultiFileDiffEditor,
182877
183206
  // vars
182878
183207
  EditorType,
183208
+ // eslint-disable-next-line local/code-no-any-casts
182879
183209
  EditorOptions
182880
183210
  };
182881
183211
  }
@@ -183681,42 +184011,77 @@ ${graph.toString()}`;
183681
184011
  }
183682
184012
  function createMonacoLanguagesAPI() {
183683
184013
  return {
184014
+ // eslint-disable-next-line local/code-no-any-casts
183684
184015
  register,
184016
+ // eslint-disable-next-line local/code-no-any-casts
183685
184017
  getLanguages,
184018
+ // eslint-disable-next-line local/code-no-any-casts
183686
184019
  onLanguage,
184020
+ // eslint-disable-next-line local/code-no-any-casts
183687
184021
  onLanguageEncountered,
184022
+ // eslint-disable-next-line local/code-no-any-casts
183688
184023
  getEncodedLanguageId,
183689
184024
  // provider methods
184025
+ // eslint-disable-next-line local/code-no-any-casts
183690
184026
  setLanguageConfiguration,
183691
184027
  setColorMap,
184028
+ // eslint-disable-next-line local/code-no-any-casts
183692
184029
  registerTokensProviderFactory,
184030
+ // eslint-disable-next-line local/code-no-any-casts
183693
184031
  setTokensProvider,
184032
+ // eslint-disable-next-line local/code-no-any-casts
183694
184033
  setMonarchTokensProvider,
184034
+ // eslint-disable-next-line local/code-no-any-casts
183695
184035
  registerReferenceProvider,
184036
+ // eslint-disable-next-line local/code-no-any-casts
183696
184037
  registerRenameProvider,
184038
+ // eslint-disable-next-line local/code-no-any-casts
183697
184039
  registerNewSymbolNameProvider,
184040
+ // eslint-disable-next-line local/code-no-any-casts
183698
184041
  registerCompletionItemProvider,
184042
+ // eslint-disable-next-line local/code-no-any-casts
183699
184043
  registerSignatureHelpProvider,
184044
+ // eslint-disable-next-line local/code-no-any-casts
183700
184045
  registerHoverProvider,
184046
+ // eslint-disable-next-line local/code-no-any-casts
183701
184047
  registerDocumentSymbolProvider,
184048
+ // eslint-disable-next-line local/code-no-any-casts
183702
184049
  registerDocumentHighlightProvider,
184050
+ // eslint-disable-next-line local/code-no-any-casts
183703
184051
  registerLinkedEditingRangeProvider,
184052
+ // eslint-disable-next-line local/code-no-any-casts
183704
184053
  registerDefinitionProvider,
184054
+ // eslint-disable-next-line local/code-no-any-casts
183705
184055
  registerImplementationProvider,
184056
+ // eslint-disable-next-line local/code-no-any-casts
183706
184057
  registerTypeDefinitionProvider,
184058
+ // eslint-disable-next-line local/code-no-any-casts
183707
184059
  registerCodeLensProvider,
184060
+ // eslint-disable-next-line local/code-no-any-casts
183708
184061
  registerCodeActionProvider,
184062
+ // eslint-disable-next-line local/code-no-any-casts
183709
184063
  registerDocumentFormattingEditProvider,
184064
+ // eslint-disable-next-line local/code-no-any-casts
183710
184065
  registerDocumentRangeFormattingEditProvider,
184066
+ // eslint-disable-next-line local/code-no-any-casts
183711
184067
  registerOnTypeFormattingEditProvider,
184068
+ // eslint-disable-next-line local/code-no-any-casts
183712
184069
  registerLinkProvider,
184070
+ // eslint-disable-next-line local/code-no-any-casts
183713
184071
  registerColorProvider,
184072
+ // eslint-disable-next-line local/code-no-any-casts
183714
184073
  registerFoldingRangeProvider,
184074
+ // eslint-disable-next-line local/code-no-any-casts
183715
184075
  registerDeclarationProvider,
184076
+ // eslint-disable-next-line local/code-no-any-casts
183716
184077
  registerSelectionRangeProvider,
184078
+ // eslint-disable-next-line local/code-no-any-casts
183717
184079
  registerDocumentSemanticTokensProvider,
184080
+ // eslint-disable-next-line local/code-no-any-casts
183718
184081
  registerDocumentRangeSemanticTokensProvider,
184082
+ // eslint-disable-next-line local/code-no-any-casts
183719
184083
  registerInlineCompletionsProvider,
184084
+ // eslint-disable-next-line local/code-no-any-casts
183720
184085
  registerInlayHintsProvider,
183721
184086
  // enums
183722
184087
  DocumentHighlightKind,
@@ -183739,7 +184104,9 @@ ${graph.toString()}`;
183739
184104
  InlineCompletionDisplayLocationKind,
183740
184105
  // classes
183741
184106
  FoldingRangeKind,
184107
+ // eslint-disable-next-line local/code-no-any-casts
183742
184108
  SelectedSuggestionInfo,
184109
+ // eslint-disable-next-line local/code-no-any-casts
183743
184110
  EditDeltaInfo
183744
184111
  };
183745
184112
  }