@agent-spaces/server 0.3.4 → 0.3.6
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.
- package/dist/adapters/claude-code-runtime/index.js +19 -1
- package/dist/adapters/codex-runtime.js +13 -3
- package/dist/agents/agent-message-parts.js +9 -1
- package/dist/agents/commit-agent.js +7 -15
- package/dist/app.js +26 -0
- package/dist/package.json +3 -1
- package/dist/routes/code-favorites.js +60 -0
- package/dist/routes/file.js +13 -0
- package/dist/routes/prompt-template.js +48 -0
- package/dist/services/agent.js +45 -3
- package/dist/services/code-favorites.js +23 -0
- package/dist/services/file.js +4 -0
- package/dist/services/persistent-agent-context.js +3 -2
- package/dist/services/prompt-template.js +93 -0
- package/dist/services/pty.js +18 -1
- package/dist/storage/code-favorites-store.js +15 -0
- package/dist/web/404.html +1 -1
- package/dist/web/__next.__PAGE__.txt +4 -4
- package/dist/web/__next._full.txt +21 -21
- package/dist/web/__next._head.txt +4 -4
- package/dist/web/__next._index.txt +13 -13
- package/dist/web/__next._tree.txt +2 -2
- package/dist/web/_next/static/chunks/0-1pn22sg~67u.js +2 -0
- package/dist/web/_next/static/chunks/0-lseun2l1m_t.js +2 -0
- package/dist/web/_next/static/chunks/0-wkj-hzh444r.css +4 -0
- package/dist/web/_next/static/chunks/{0f6vrjsdauiwl.js → 0-~4vw4_9z_0_.js} +2 -2
- package/dist/web/_next/static/chunks/0..g0jl-8qup7.js +1 -0
- package/dist/web/_next/static/chunks/0.006.ycpe92w.js +496 -0
- package/dist/web/_next/static/chunks/0.6x8f.mb-1qf.js +1 -0
- package/dist/web/_next/static/chunks/{0qe5wvs8fe9ip.js → 004wt62de8617.js} +1 -1
- package/dist/web/_next/static/chunks/016xz2o-hv3am.js +1 -0
- package/dist/web/_next/static/chunks/01gi~q0c6ez6..js +1 -0
- package/dist/web/_next/static/chunks/023lpc7n70tav.css +1 -0
- package/dist/web/_next/static/chunks/03me5_ir..2ix.js +1 -0
- package/dist/web/_next/static/chunks/04fk~8rnrvs44.js +1 -0
- package/dist/web/_next/static/chunks/05eu2fdixf7c9.js +1 -0
- package/dist/web/_next/static/chunks/05gt_g_vbzh-5.css +1 -0
- package/dist/web/_next/static/chunks/06vadtvw631k5.css +1 -0
- package/dist/web/_next/static/chunks/07ge_85i__6pb.js +1 -0
- package/dist/web/_next/static/chunks/07ne4g8zopykv.js +1 -0
- package/dist/web/_next/static/chunks/07xvadmf~8bow.js +1 -0
- package/dist/web/_next/static/chunks/08.u~dmq20cak.css +23 -0
- package/dist/web/_next/static/chunks/{03sd~wmqw.9gc.js → 08kpa0nox.bb1.js} +2 -2
- package/dist/web/_next/static/chunks/08o-zmr-40r5g.js +1 -0
- package/dist/web/_next/static/chunks/0_-c.y2qq4ax4.js +270 -0
- package/dist/web/_next/static/chunks/0a1rewz7xr-xi.js +1 -0
- package/dist/web/_next/static/chunks/0amcocbojo4v2.js +1 -0
- package/dist/web/_next/static/chunks/0brrgp3ki5w4_.css +17 -0
- package/dist/web/_next/static/chunks/0bzmgi.ynrn.0.css +3 -0
- package/dist/web/_next/static/chunks/0c_vfzf1z7-rt.js +2 -0
- package/dist/web/_next/static/chunks/0cjmfclopcxho.css +1 -0
- package/dist/web/_next/static/chunks/0cs830n97dgjy.js +1 -0
- package/dist/web/_next/static/chunks/0d_dp_4ofz0l3.css +3 -0
- package/dist/web/_next/static/chunks/0dws-faof-ryx.css +13 -0
- package/dist/web/_next/static/chunks/0ejc_zlyocy_r.css +1 -0
- package/dist/web/_next/static/chunks/0esty_4gmxfq3.js +1 -0
- package/dist/web/_next/static/chunks/0evjw7bao5_e~.js +1 -0
- package/dist/web/_next/static/chunks/{0ag4p6m9rze~n.js → 0g-0n6glz_z6w.js} +1 -1
- package/dist/web/_next/static/chunks/{145qu5b0tgm9w.js → 0gig.k.rq8d0x.js} +1 -1
- package/dist/web/_next/static/chunks/0hl_7y464qll6.css +2 -0
- package/dist/web/_next/static/chunks/0hrbuvzuxrjfl.js +1 -0
- package/dist/web/_next/static/chunks/0i_3.3rdsu2mw.js +2 -0
- package/dist/web/_next/static/chunks/0i_gi.kq2dau8.css +1 -0
- package/dist/web/_next/static/chunks/0j00r2f_n-.lx.js +1 -0
- package/dist/web/_next/static/chunks/0jh9xnkimjkyh.js +1 -0
- package/dist/web/_next/static/chunks/0jokpgh485~28.js +167 -0
- package/dist/web/_next/static/chunks/0kvsjgpj7zcb9.css +9 -0
- package/dist/web/_next/static/chunks/0l5ab99s37x5f.js +1 -0
- package/dist/web/_next/static/chunks/0lcc9r.o.p.sc.js +1 -0
- package/dist/web/_next/static/chunks/0lh~x2tf~i1hd.css +2 -0
- package/dist/web/_next/static/chunks/0me8ho8j4tq7_.css +2 -0
- package/dist/web/_next/static/chunks/0mny8i81aenx3.js +1 -0
- package/dist/web/_next/static/chunks/0mt-7av8yrg0o.css +3 -0
- package/dist/web/_next/static/chunks/0njy89g5coeyi.js +60 -0
- package/dist/web/_next/static/chunks/0nsu~f3voe~0i.js +5 -0
- package/dist/web/_next/static/chunks/0ow~co9wcleka.js +173 -0
- package/dist/web/_next/static/chunks/0pldvk5_h__t7.css +3 -0
- package/dist/web/_next/static/chunks/0qad.lgvtlt0b.css +16 -0
- package/dist/web/_next/static/chunks/0qpq0~_58fe9a.js +18 -0
- package/dist/web/_next/static/chunks/{0.335m_d-cd_g.js → 0qtc_rbo1oghu.js} +1 -1
- package/dist/web/_next/static/chunks/0qz5~3wquy~3q.css +2 -0
- package/dist/web/_next/static/chunks/0rv0nj__24y60.js +10 -0
- package/dist/web/_next/static/chunks/{145gbwitjxamg.js → 0sz8_nijfiz0p.js} +1 -1
- package/dist/web/_next/static/chunks/0tvd~rxgf0oh_.js +1 -0
- package/dist/web/_next/static/chunks/0wv0h27jafag4.js +1 -0
- package/dist/web/_next/static/chunks/0wwvc4zc2q6bn.js +1 -0
- package/dist/web/_next/static/chunks/0x4b-a2ixww6m.js +1 -0
- package/dist/web/_next/static/chunks/0z8ipjj2z-3al.css +8 -0
- package/dist/web/_next/static/chunks/0zd1o3u04~qvo.js +127 -0
- package/dist/web/_next/static/chunks/0~2l1-8o4delc.js +1 -0
- package/dist/web/_next/static/chunks/0~w6ugk9s5p-h.css +1 -0
- package/dist/web/_next/static/chunks/10jfi.9fw5g48.js +1 -0
- package/dist/web/_next/static/chunks/11_tltlhc8.sj.js +1 -0
- package/dist/web/_next/static/chunks/125nunjfj2fj0.js +1 -0
- package/dist/web/_next/static/chunks/1285yqy_oirb-.js +1 -0
- package/dist/web/_next/static/chunks/12md9ajfx2o85.css +1 -0
- package/dist/web/_next/static/chunks/12odetnu-lyrr.js +167 -0
- package/dist/web/_next/static/chunks/12u4g4uzrlten.js +2 -0
- package/dist/web/_next/static/chunks/134ozsnbd~0qw.js +1 -0
- package/dist/web/_next/static/chunks/13ess~4pdmxma.js +1 -0
- package/dist/web/_next/static/chunks/13xfagjq0q~tf.js +1 -0
- package/dist/web/_next/static/chunks/143.pbs8a1ivm.js +1 -0
- package/dist/web/_next/static/chunks/14_y_s_5rhsd1.css +5 -0
- package/dist/web/_next/static/chunks/15hca2.5le07..js +3 -0
- package/dist/web/_next/static/chunks/15rf3~h7sugz4.css +19 -0
- package/dist/web/_next/static/chunks/16i87txo0qh0h.css +6 -0
- package/dist/web/_next/static/chunks/16~udgv7eel6a.css +2 -0
- package/dist/web/_next/static/chunks/{turbopack-0-j2hpomozegf.js → turbopack-000x5q9w-wx10.js} +1 -1
- package/dist/web/_next/static/chunks/{turbopack-0rrhp9pbrv0p3.js → turbopack-0hrx111grzq49.js} +1 -1
- package/dist/web/_next/static/chunks/{turbopack-0_zn00zg5kmqz.js → turbopack-0w-kua.9ymd0x.js} +1 -1
- package/dist/web/_next/static/chunks/{turbopack-0l~pq1hytx49z.js → turbopack-15zqm_4ixj.18.js} +1 -1
- package/dist/web/_next/static/media/code-icon.0g3wskzlr7oxf.svg +1 -0
- package/dist/web/_next/static/media/codicon.0pqe-t5rtghj8.ttf +0 -0
- package/dist/web/_next/static/media/continue-tb.0qei4mru4tzd2.png +0 -0
- package/dist/web/_next/static/media/dark_modern.09.uq6bp373zs.json +1 -0
- package/dist/web/_next/static/media/dark_plus.187umr0~d1_r7.json +1 -0
- package/dist/web/_next/static/media/dark_vs.12ju8ocr7rg--.json +1 -0
- package/dist/web/_next/static/media/document-dark.0vvlbsi_fdy~4.svg +3 -0
- package/dist/web/_next/static/media/document-light.0bfi_yt9e~vk7.svg +3 -0
- package/dist/web/_next/static/media/editor.worker.0ffjdaaj15t6e.js +1 -0
- package/dist/web/_next/static/media/extensionHost.worker.14sz5xf8-1efr.js +2 -0
- package/dist/web/_next/static/media/fake.16yx0-xxqj4pc.html +10 -0
- package/dist/web/_next/static/media/folder-dark.02kdicw3013tb.svg +3 -0
- package/dist/web/_next/static/media/folder-light.0s165k4fp3.53.svg +3 -0
- package/dist/web/_next/static/media/folder-open-dark.0sk6.yh45uqs3.svg +4 -0
- package/dist/web/_next/static/media/folder-open-light.10k1v_ugaq8ic.svg +4 -0
- package/dist/web/_next/static/media/hc_black.0-ul9e2oc5twb.json +1 -0
- package/dist/web/_next/static/media/hc_light.0vi.a7fr.z4gy.json +1 -0
- package/dist/web/_next/static/media/index.0jmafs_mwcjgg.html +1341 -0
- package/dist/web/_next/static/media/keyboard-dark.0t86n~1rrhj2-.svg +10 -0
- package/dist/web/_next/static/media/keyboard-light.0abw0ukjcd9ox.svg +10 -0
- package/dist/web/_next/static/media/letterpress-dark.181s2xkw~lfyo.svg +3 -0
- package/dist/web/_next/static/media/letterpress-hcDark.0ftfw8fess-5y.svg +3 -0
- package/dist/web/_next/static/media/letterpress-hcLight.06x23d0.aixf_.svg +3 -0
- package/dist/web/_next/static/media/letterpress-light.0xb1bapis~iw7.svg +3 -0
- package/dist/web/_next/static/media/light_modern.00ps-apoc9ph7.json +1 -0
- package/dist/web/_next/static/media/light_plus.0ow37ouyuazdz.json +1 -0
- package/dist/web/_next/static/media/light_vs.0fdbve5sxkgq1.json +1 -0
- package/dist/web/_next/static/media/onig.0dk~55st~1x8..wasm +0 -0
- package/dist/web/_next/static/media/opacity-background.0-9.t0ta0ko23.png +0 -0
- package/dist/web/_next/static/media/package.0_p8a~hpmb_uj.json +1 -0
- package/dist/web/_next/static/media/package.nls.0e5hn-g497b64.json +1 -0
- package/dist/web/_next/static/media/pause-tb.0ttrm1r1uuz_c.png +0 -0
- package/dist/web/_next/static/media/restart-tb.086872s_sc2qv.png +0 -0
- package/dist/web/_next/static/media/root-folder-dark.14iwnfb7p2na~.svg +5 -0
- package/dist/web/_next/static/media/root-folder-light.0ljk9fi7sw3.2.svg +5 -0
- package/dist/web/_next/static/media/root-folder-open-dark.08vw3g9zvki33.svg +5 -0
- package/dist/web/_next/static/media/root-folder-open-light.0f46.ahns5c~..svg +5 -0
- package/dist/web/_next/static/media/run-with-debugging-tb.0j1h52k~h~72z.png +0 -0
- package/dist/web/_next/static/media/service-worker.0_udu6mraxn4k.js +543 -0
- package/dist/web/_next/static/media/stepinto-tb.0cl87yt4ub_j8.png +0 -0
- package/dist/web/_next/static/media/stepout-tb.0vjib_bn-_xax.png +0 -0
- package/dist/web/_next/static/media/stepover-tb.04beeu~7cxr4l.png +0 -0
- package/dist/web/_next/static/media/stop-tb.1498tmu97_y9j.png +0 -0
- package/dist/web/_next/static/media/vs_minimal-icon-theme.0-qs73lvw4voi.json +1 -0
- package/dist/web/_next/static/media/webWorkerExtensionHostIframe.0x2r1o97s.m0m.html +156 -0
- package/dist/web/_next/static/media/worker.081j0x4avp1l1.js +2 -0
- package/dist/web/_not-found/__next._full.txt +19 -19
- package/dist/web/_not-found/__next._head.txt +4 -4
- package/dist/web/_not-found/__next._index.txt +13 -13
- package/dist/web/_not-found/__next._not-found.__PAGE__.txt +2 -2
- package/dist/web/_not-found/__next._not-found.txt +3 -3
- package/dist/web/_not-found/__next._tree.txt +2 -2
- package/dist/web/_not-found.html +1 -1
- package/dist/web/_not-found.txt +19 -19
- package/dist/web/index.html +1 -1
- package/dist/web/index.txt +21 -21
- package/dist/web/login/__next._full.txt +21 -21
- package/dist/web/login/__next._head.txt +4 -4
- package/dist/web/login/__next._index.txt +13 -13
- package/dist/web/login/__next._tree.txt +2 -2
- package/dist/web/login/__next.login.__PAGE__.txt +4 -4
- package/dist/web/login/__next.login.txt +3 -3
- package/dist/web/login.html +1 -1
- package/dist/web/login.txt +21 -21
- package/dist/web/settings/__next._full.txt +23 -23
- package/dist/web/settings/__next._head.txt +4 -4
- package/dist/web/settings/__next._index.txt +13 -13
- package/dist/web/settings/__next._tree.txt +2 -2
- package/dist/web/settings/__next.settings.__PAGE__.txt +4 -4
- package/dist/web/settings/__next.settings.txt +5 -5
- package/dist/web/settings/agents/__next._full.txt +23 -23
- package/dist/web/settings/agents/__next._head.txt +4 -4
- package/dist/web/settings/agents/__next._index.txt +13 -13
- package/dist/web/settings/agents/__next._tree.txt +2 -2
- package/dist/web/settings/agents/__next.settings.agents.__PAGE__.txt +4 -4
- package/dist/web/settings/agents/__next.settings.agents.txt +3 -3
- package/dist/web/settings/agents/__next.settings.txt +5 -5
- package/dist/web/settings/agents.html +1 -1
- package/dist/web/settings/agents.txt +23 -23
- package/dist/web/settings/mcps/__next._full.txt +23 -23
- package/dist/web/settings/mcps/__next._head.txt +4 -4
- package/dist/web/settings/mcps/__next._index.txt +13 -13
- package/dist/web/settings/mcps/__next._tree.txt +2 -2
- package/dist/web/settings/mcps/__next.settings.mcps.__PAGE__.txt +4 -4
- package/dist/web/settings/mcps/__next.settings.mcps.txt +3 -3
- package/dist/web/settings/mcps/__next.settings.txt +5 -5
- package/dist/web/settings/mcps.html +1 -1
- package/dist/web/settings/mcps.txt +23 -23
- package/dist/web/settings/models/__next._full.txt +23 -23
- package/dist/web/settings/models/__next._head.txt +4 -4
- package/dist/web/settings/models/__next._index.txt +13 -13
- package/dist/web/settings/models/__next._tree.txt +2 -2
- package/dist/web/settings/models/__next.settings.models.__PAGE__.txt +4 -4
- package/dist/web/settings/models/__next.settings.models.txt +3 -3
- package/dist/web/settings/models/__next.settings.txt +5 -5
- package/dist/web/settings/models.html +1 -1
- package/dist/web/settings/models.txt +23 -23
- package/dist/web/settings/prompts/__next._full.txt +42 -0
- package/dist/web/settings/prompts/__next._head.txt +6 -0
- package/dist/web/settings/prompts/__next._index.txt +15 -0
- package/dist/web/settings/prompts/__next._tree.txt +8 -0
- package/dist/web/settings/prompts/__next.settings.prompts.__PAGE__.txt +9 -0
- package/dist/web/settings/prompts/__next.settings.prompts.txt +5 -0
- package/dist/web/settings/prompts/__next.settings.txt +7 -0
- package/dist/web/settings/prompts.html +1 -0
- package/dist/web/settings/prompts.txt +42 -0
- package/dist/web/settings/providers/__next._full.txt +23 -23
- package/dist/web/settings/providers/__next._head.txt +4 -4
- package/dist/web/settings/providers/__next._index.txt +13 -13
- package/dist/web/settings/providers/__next._tree.txt +2 -2
- package/dist/web/settings/providers/__next.settings.providers.__PAGE__.txt +4 -4
- package/dist/web/settings/providers/__next.settings.providers.txt +3 -3
- package/dist/web/settings/providers/__next.settings.txt +5 -5
- package/dist/web/settings/providers.html +1 -1
- package/dist/web/settings/providers.txt +23 -23
- package/dist/web/settings/skills/__next._full.txt +23 -23
- package/dist/web/settings/skills/__next._head.txt +4 -4
- package/dist/web/settings/skills/__next._index.txt +13 -13
- package/dist/web/settings/skills/__next._tree.txt +2 -2
- package/dist/web/settings/skills/__next.settings.skills.__PAGE__.txt +4 -4
- package/dist/web/settings/skills/__next.settings.skills.txt +3 -3
- package/dist/web/settings/skills/__next.settings.txt +5 -5
- package/dist/web/settings/skills.html +1 -1
- package/dist/web/settings/skills.txt +23 -23
- package/dist/web/settings.html +1 -1
- package/dist/web/settings.txt +23 -23
- package/dist/web/workflows/__next._full.txt +21 -21
- package/dist/web/workflows/__next._head.txt +4 -4
- package/dist/web/workflows/__next._index.txt +13 -13
- package/dist/web/workflows/__next._tree.txt +2 -2
- package/dist/web/workflows/__next.workflows.__PAGE__.txt +4 -4
- package/dist/web/workflows/__next.workflows.txt +3 -3
- package/dist/web/workflows.html +1 -1
- package/dist/web/workflows.txt +21 -21
- package/dist/web/workspace/_/__next._full.txt +68 -35
- package/dist/web/workspace/_/__next._head.txt +4 -4
- package/dist/web/workspace/_/__next._index.txt +13 -13
- package/dist/web/workspace/_/__next._tree.txt +15 -3
- package/dist/web/workspace/_/__next.workspace.$d$id.__PAGE__.txt +16 -4
- package/dist/web/workspace/_/__next.workspace.$d$id.txt +3 -3
- package/dist/web/workspace/_/__next.workspace.txt +3 -3
- package/dist/web/workspace/_.html +1 -1
- package/dist/web/workspace/_.txt +68 -35
- package/dist/web/workspaces/__next._full.txt +21 -21
- package/dist/web/workspaces/__next._head.txt +4 -4
- package/dist/web/workspaces/__next._index.txt +13 -13
- package/dist/web/workspaces/__next._tree.txt +2 -2
- package/dist/web/workspaces/__next.workspaces.__PAGE__.txt +4 -4
- package/dist/web/workspaces/__next.workspaces.txt +3 -3
- package/dist/web/workspaces.html +1 -1
- package/dist/web/workspaces.txt +21 -21
- package/dist/ws/agent-runner.js +158 -20
- package/dist/ws/handler.js +6 -1
- package/dist/ws/message-parts.js +20 -1
- package/dist/ws/terminal-handler.js +12 -7
- package/dist/ws/typescript-lsp.js +78 -0
- package/package.json +13 -10
- package/dist/web/_next/static/chunks/0-a17~4piefz_.js +0 -1
- package/dist/web/_next/static/chunks/01tyftu_-l7tm.css +0 -1
- package/dist/web/_next/static/chunks/028b9_5cyq-_m.js +0 -1
- package/dist/web/_next/static/chunks/0anuxr11yn5iv.js +0 -2
- package/dist/web/_next/static/chunks/0e.z4v3cd78dx.js +0 -1
- package/dist/web/_next/static/chunks/0egot8y~i-ge3.js +0 -1
- package/dist/web/_next/static/chunks/0eq7wt-l.fetc.js +0 -1
- package/dist/web/_next/static/chunks/0gtbd3yt7y1gx.js +0 -1
- package/dist/web/_next/static/chunks/0j2w71psq6w9u.js +0 -1
- package/dist/web/_next/static/chunks/0kyv5yika-41a.js +0 -1
- package/dist/web/_next/static/chunks/0ms3tsu4men_j.js +0 -204
- package/dist/web/_next/static/chunks/0plreh4_gkxf9.js +0 -1
- package/dist/web/_next/static/chunks/0qxk21zejhdbm.js +0 -1
- package/dist/web/_next/static/chunks/12gvpt~z9mn8w.js +0 -1
- package/dist/web/_next/static/chunks/14iaqoj9-09g..js +0 -2
- package/dist/web/_next/static/chunks/15dyaigebtnwg.js +0 -5
- package/dist/web/_next/static/chunks/17oc2l.ekcs8b.css +0 -1
- /package/dist/web/_next/static/{O5-QCW1u2YNyAUyaoYh6s → HUlYEknPhyW7dRmJ5mFdG}/_buildManifest.js +0 -0
- /package/dist/web/_next/static/{O5-QCW1u2YNyAUyaoYh6s → HUlYEknPhyW7dRmJ5mFdG}/_clientMiddlewareManifest.js +0 -0
- /package/dist/web/_next/static/{O5-QCW1u2YNyAUyaoYh6s → HUlYEknPhyW7dRmJ5mFdG}/_ssgManifest.js +0 -0
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,514366,166338,757507,825433,191425,938319,952509,237397,405642,336524,113510,989630,8717,707724,25029,264688,e=>{"use strict";var t,i,o=e.i(281482);e.i(157255);var r=e.i(488259),n=e.i(781808),s=e.i(85280),a=e.i(194558),d=e.i(498702),c=e.i(107707),l=e.i(536766);let u=class{constructor(e){this.instantiationService=e}createDiffProvider(e){return this.instantiationService.createInstance(h,e)}};u=(0,o.__decorate)([(0,o.__param)(0,r.IInstantiationService)],u);let h=class{static{t=this}static{this.diffCache=new Map}constructor(e,t,i){this.editorWorkerService=t,this.telemetryService=i,this.onDidChangeEventEmitter=new n.Emitter,this.onDidChange=this.onDidChangeEventEmitter.event,this.diffAlgorithm="advanced",this.diffAlgorithmOnDidChangeSubscription=void 0,this.setOptions(e)}dispose(){this.diffAlgorithmOnDidChangeSubscription?.dispose()}async computeDiff(e,i,o,r){if("string"!=typeof this.diffAlgorithm)return this.diffAlgorithm.computeDiff(e,i,o,r);if(e.isDisposed()||i.isDisposed())return{changes:[],identical:!0,quitEarly:!1,moves:[]};if(1===e.getLineCount()&&1===e.getLineMaxColumn(1))return 1===i.getLineCount()&&1===i.getLineMaxColumn(1)?{changes:[],identical:!0,quitEarly:!1,moves:[]}:{changes:[new d.DetailedLineRangeMapping(new a.LineRange(1,2),new a.LineRange(1,i.getLineCount()+1),[new d.RangeMapping(e.getFullModelRange(),i.getFullModelRange())])],identical:!1,quitEarly:!1,moves:[]};let n=JSON.stringify([e.uri.toString(),i.uri.toString()]),c=JSON.stringify([e.id,i.id,e.getAlternativeVersionId(),i.getAlternativeVersionId(),JSON.stringify(o)]),l=t.diffCache.get(n);if(l&&l.context===c)return l.result;let u=s.StopWatch.create(),h=await this.editorWorkerService.computeDiff(e.uri,i.uri,o,this.diffAlgorithm),p=u.elapsed();if(this.telemetryService.publicLog2("diffEditor.computeDiff",{timeMs:p,timedOut:h?.quitEarly??!0,detectedMoves:o.computeMoves?h?.moves.length??0:-1}),r.isCancellationRequested)return{changes:[],identical:!1,quitEarly:!0,moves:[]};if(!h)throw Error("no diff result available");return t.diffCache.size>10&&t.diffCache.delete(t.diffCache.keys().next().value),t.diffCache.set(n,{result:h,context:c}),h}setOptions(e){let t=!1;e.diffAlgorithm&&this.diffAlgorithm!==e.diffAlgorithm&&(this.diffAlgorithmOnDidChangeSubscription?.dispose(),this.diffAlgorithmOnDidChangeSubscription=void 0,this.diffAlgorithm=e.diffAlgorithm,"string"!=typeof e.diffAlgorithm&&(this.diffAlgorithmOnDidChangeSubscription=e.diffAlgorithm.onDidChange(()=>this.onDidChangeEventEmitter.fire())),t=!0),t&&this.onDidChangeEventEmitter.fire()}};h=t=(0,o.__decorate)([(0,o.__param)(1,c.IEditorWorkerService),(0,o.__param)(2,l.ITelemetryService)],h),e.s(["WorkerBasedDiffProviderFactoryService",0,u],514366);var p=e.i(715658);e.s(["LanguageFeaturesService",0,class{constructor(){this.referenceProvider=new p.LanguageFeatureRegistry(this._score.bind(this)),this.renameProvider=new p.LanguageFeatureRegistry(this._score.bind(this)),this.newSymbolNamesProvider=new p.LanguageFeatureRegistry(this._score.bind(this)),this.codeActionProvider=new p.LanguageFeatureRegistry(this._score.bind(this)),this.definitionProvider=new p.LanguageFeatureRegistry(this._score.bind(this)),this.typeDefinitionProvider=new p.LanguageFeatureRegistry(this._score.bind(this)),this.declarationProvider=new p.LanguageFeatureRegistry(this._score.bind(this)),this.implementationProvider=new p.LanguageFeatureRegistry(this._score.bind(this)),this.documentSymbolProvider=new p.LanguageFeatureRegistry(this._score.bind(this)),this.inlayHintsProvider=new p.LanguageFeatureRegistry(this._score.bind(this)),this.colorProvider=new p.LanguageFeatureRegistry(this._score.bind(this)),this.codeLensProvider=new p.LanguageFeatureRegistry(this._score.bind(this)),this.documentFormattingEditProvider=new p.LanguageFeatureRegistry(this._score.bind(this)),this.documentRangeFormattingEditProvider=new p.LanguageFeatureRegistry(this._score.bind(this)),this.onTypeFormattingEditProvider=new p.LanguageFeatureRegistry(this._score.bind(this)),this.signatureHelpProvider=new p.LanguageFeatureRegistry(this._score.bind(this)),this.hoverProvider=new p.LanguageFeatureRegistry(this._score.bind(this)),this.documentHighlightProvider=new p.LanguageFeatureRegistry(this._score.bind(this)),this.multiDocumentHighlightProvider=new p.LanguageFeatureRegistry(this._score.bind(this)),this.selectionRangeProvider=new p.LanguageFeatureRegistry(this._score.bind(this)),this.foldingRangeProvider=new p.LanguageFeatureRegistry(this._score.bind(this)),this.linkProvider=new p.LanguageFeatureRegistry(this._score.bind(this)),this.inlineCompletionsProvider=new p.LanguageFeatureRegistry(this._score.bind(this)),this.completionProvider=new p.LanguageFeatureRegistry(this._score.bind(this)),this.linkedEditingRangeProvider=new p.LanguageFeatureRegistry(this._score.bind(this)),this.inlineValuesProvider=new p.LanguageFeatureRegistry(this._score.bind(this)),this.evaluatableExpressionProvider=new p.LanguageFeatureRegistry(this._score.bind(this)),this.documentRangeSemanticTokensProvider=new p.LanguageFeatureRegistry(this._score.bind(this)),this.documentSemanticTokensProvider=new p.LanguageFeatureRegistry(this._score.bind(this)),this.documentDropEditProvider=new p.LanguageFeatureRegistry(this._score.bind(this)),this.documentPasteEditProvider=new p.LanguageFeatureRegistry(this._score.bind(this))}setNotebookTypeResolver(e){this._notebookTypeResolver=e}_score(e){return this._notebookTypeResolver?.(e)}}],166338);let g=(0,r.createDecorator)("semanticTokensStylingService");e.s(["ISemanticTokensStylingService",0,g],757507);var m=e.i(802186),v=e.i(166969),y=e.i(704994),f=e.i(619122),_=e.i(611130),C=e.i(535567),S=e.i(802136),b=e.i(326659),I=e.i(318581),E=e.i(407791);class w{constructor(){this.lenses=[]}static{this.Empty=new w}dispose(){this._store?.dispose()}get isDisposed(){return this._store?.isDisposed??!1}add(e,t){for(let i of((0,_.isDisposable)(e)&&(this._store??=new _.DisposableStore,this._store.add(e)),e.lenses))this.lenses.push({symbol:i,provider:t})}}async function D(e,t,i){let o=e.ordered(t),r=new Map,n=new w,s=o.map(async(e,o)=>{r.set(e,o);try{let o=await Promise.resolve(e.provideCodeLenses(t,i));o&&n.add(o,e)}catch(e){(0,f.onUnexpectedExternalError)(e)}});return(await Promise.all(s),i.isCancellationRequested)?(n.dispose(),w.Empty):(n.lenses=n.lenses.sort((e,t)=>{if(e.symbol.range.startLineNumber<t.symbol.range.startLineNumber)return -1;if(e.symbol.range.startLineNumber>t.symbol.range.startLineNumber)return 1;if(r.get(e.provider)<r.get(t.provider))return -1;if(r.get(e.provider)>r.get(t.provider))return 1;if(e.symbol.range.startColumn<t.symbol.range.startColumn)return -1;else if(e.symbol.range.startColumn>t.symbol.range.startColumn)return 1;else return 0}),n)}I.CommandsRegistry.registerCommand("_executeCodeLensProvider",function(e,...t){let[i,o]=t;(0,C.assertType)(S.URI.isUri(i)),(0,C.assertType)("number"==typeof o||!o);let{codeLensProvider:r}=e.get(E.ILanguageFeaturesService),n=e.get(b.IModelService).getModel(i);if(!n)throw(0,f.illegalArgument)();let s=[],a=new _.DisposableStore;return D(r,n,y.CancellationToken.None).then(e=>{a.add(e);let t=[];for(let i of e.lenses)null==o||i.symbol.command?s.push(i.symbol):o-- >0&&i.provider.resolveCodeLens&&t.push(Promise.resolve(i.provider.resolveCodeLens(n,i.symbol,y.CancellationToken.None)).then(e=>s.push(e||i.symbol)));return Promise.all(t)}).then(()=>s).finally(()=>{setTimeout(()=>a.dispose(),100)})}),e.s(["CodeLensModel",0,w,"getCodeLensModel",0,D],825433);var A=e.i(701575),x=e.i(140889),k=e.i(865562),T=e.i(850887);class M{constructor(e,t){this.lineCount=e,this.data=t}}let P=class{constructor(e){this._fakeProvider=new class{provideCodeLenses(){throw Error("not supported")}},this._cache=new m.LRUCache(20,.75),(0,T.runWhenWindowIdle)(k.mainWindow,()=>e.remove("codelens/cache",A.StorageScope.WORKSPACE));const t="codelens/cache2",i=e.get(t,A.StorageScope.WORKSPACE,"{}");this._deserialize(i);const o=n.Event.filter(e.onWillSaveState,e=>e.reason===A.WillSaveStateReason.SHUTDOWN);n.Event.once(o)(i=>{e.store(t,this._serialize(),A.StorageScope.WORKSPACE,A.StorageTarget.MACHINE)})}put(e,t){let i=t.lenses.map(e=>({range:e.symbol.range,command:e.symbol.command&&{id:"",title:e.symbol.command?.title}})),o=new w;o.add({lenses:i},this._fakeProvider);let r=new M(e.getLineCount(),o);this._cache.set(e.uri.toString(),r)}get(e){let t=this._cache.get(e.uri.toString());return t&&t.lineCount===e.getLineCount()?t.data:void 0}delete(e){this._cache.delete(e.uri.toString())}_serialize(){let e=Object.create(null);for(let[t,i]of this._cache){let o=new Set;for(let e of i.data.lenses)o.add(e.symbol.range.startLineNumber);e[t]={lineCount:i.lineCount,lines:[...o.values()]}}return JSON.stringify(e)}_deserialize(e){try{let t=JSON.parse(e);for(let e in t){let i=t[e],o=[];for(let e of i.lines)o.push({range:new v.Range(e,1,e,11)});let r=new w;r.add({lenses:o},this._fakeProvider),this._cache.set(e,new M(i.lineCount,r))}}catch{}}};P=(0,o.__decorate)([(0,o.__param)(0,x.IStorageService)],P),e.s(["CodeLensCache",0,P],191425);let R=(0,r.createDecorator)("ICodeLensCache");e.s(["ICodeLensCache",0,R],938319);let L=(0,r.createDecorator)("IOutlineModelService");e.s(["IOutlineModelService",0,L],952509);var N=e.i(454514),O=e.i(195603),F=e.i(693205),K=e.i(362787),W=e.i(206548),z=e.i(731931),V=e.i(693162);class B{constructor(e,t,i){this.marker=e,this.index=t,this.total=i}}let U=class{constructor(e,t,i){this._markerService=t,this._configService=i,this._onDidChange=new n.Emitter,this.onDidChange=this._onDidChange.event,this._dispoables=new _.DisposableStore,this._markers=[],this._nextIdx=-1,S.URI.isUri(e)?this._resourceFilter=t=>t.toString()===e.toString():e&&(this._resourceFilter=e);const o=this._configService.getValue("problems.sortOrder"),r=(e,t)=>{let i=(0,F.compare)(e.resource.toString(),t.resource.toString());return 0===i&&(i="position"===o?v.Range.compareRangesUsingStarts(e,t)||K.MarkerSeverity.compare(e.severity,t.severity):K.MarkerSeverity.compare(e.severity,t.severity)||v.Range.compareRangesUsingStarts(e,t)),i},s=()=>{let t=this._markerService.read({resource:S.URI.isUri(e)?e:void 0,severities:K.MarkerSeverity.Error|K.MarkerSeverity.Warning|K.MarkerSeverity.Info});return"function"==typeof e&&(t=t.filter(e=>this._resourceFilter(e.resource))),t.sort(r),!(0,N.equals)(t,this._markers,(e,t)=>e.resource.toString()===t.resource.toString()&&e.startLineNumber===t.startLineNumber&&e.startColumn===t.startColumn&&e.endLineNumber===t.endLineNumber&&e.endColumn===t.endColumn&&e.severity===t.severity&&e.message===t.message)&&(this._markers=t,!0)};s(),this._dispoables.add(t.onMarkerChanged(e=>{(!this._resourceFilter||e.some(e=>this._resourceFilter(e)))&&s()&&(this._nextIdx=-1,this._onDidChange.fire())}))}dispose(){this._dispoables.dispose(),this._onDidChange.dispose()}matches(e){return!this._resourceFilter&&!e||!!this._resourceFilter&&!!e&&this._resourceFilter(e)}get selected(){let e=this._markers[this._nextIdx];return e&&new B(e,this._nextIdx+1,this._markers.length)}_initIdx(e,t,i){let o=this._markers.findIndex(t=>(0,V.isEqual)(t.resource,e.uri));if(o<0)(o=(0,N.binarySearch2)(this._markers.length,t=>(0,F.compare)(this._markers[t].resource.toString(),e.uri.toString())))<0&&(o=~o),i?this._nextIdx=o:this._nextIdx=(this._markers.length+o-1)%this._markers.length;else{let r=!1,n=!1;for(let i=o;i<this._markers.length;i++){let o=v.Range.lift(this._markers[i]);if(o.isEmpty()){let t=e.getWordAtPosition(o.getStartPosition());t&&(o=new v.Range(o.startLineNumber,t.startColumn,o.startLineNumber,t.endColumn))}if(t&&(o.containsPosition(t)||t.isBeforeOrEqual(o.getStartPosition()))){this._nextIdx=i,r=!0,n=!o.containsPosition(t);break}if(this._markers[i].resource.toString()!==e.uri.toString())break}r?n&&!i&&(this._nextIdx-=1):this._nextIdx=i?0:this._markers.length-1}this._nextIdx<0&&(this._nextIdx=this._markers.length-1)}resetIndex(){this._nextIdx=-1}move(e,t,i){if(0===this._markers.length)return!1;let o=this._nextIdx;return -1===this._nextIdx?this._initIdx(t,i,e):e?this._nextIdx=(this._nextIdx+1)%this._markers.length:e||(this._nextIdx=(this._nextIdx-1+this._markers.length)%this._markers.length),o!==this._nextIdx}find(e,t){let i=this._markers.findIndex(t=>t.resource.toString()===e.toString());if(!(i<0)){for(;i<this._markers.length;i++)if(v.Range.containsPosition(this._markers[i],t))return new B(this._markers[i],i+1,this._markers.length)}}};U=(0,o.__decorate)([(0,o.__param)(1,W.IMarkerService),(0,o.__param)(2,z.IConfigurationService)],U);let H=class{constructor(e,t){this._markerService=e,this._configService=t,this._provider=new O.LinkedList}registerProvider(e){let t=this._provider.unshift(e);return(0,_.toDisposable)(()=>t())}getMarkerList(e){for(let t of this._provider){let i=t.getMarkerList(e);if(i)return i}return new U(e,this._markerService,this._configService)}};H=(0,o.__decorate)([(0,o.__param)(0,W.IMarkerService),(0,o.__param)(1,z.IConfigurationService)],H),e.s(["MarkerNavigationService",0,H],237397);var q=e.i(83823),G=e.i(478697),$=e.i(79522),Q=e.i(650289),j=e.i(568101),Y=e.i(9753),X=e.i(16046),Z=e.i(84513),J=e.i(718596),ee=e.i(975445),et=e.i(746654);let ei=new j.RawContextKey("hasSymbols",!1,(0,Q.localize)(1191,"Whether there are symbol locations that can be navigated via keyboard-only.")),eo=class{constructor(e,t,i,o){this._editorService=t,this._notificationService=i,this._keybindingService=o,this._currentModel=void 0,this._currentIdx=-1,this._ignoreEditorChange=!1,this._ctxHasSymbols=ei.bindTo(e)}reset(){this._ctxHasSymbols.reset(),this._currentState?.dispose(),this._currentMessage?.close(),this._currentModel=void 0,this._currentIdx=-1}put(e){let t=e.parent.parent;if(t.references.length<=1)return void this.reset();this._currentModel=t,this._currentIdx=t.references.indexOf(e),this._ctxHasSymbols.set(!0),this._showMessage();let i=new er(this._editorService),o=i.onDidChange(e=>{if(this._ignoreEditorChange)return;let i=this._editorService.getActiveCodeEditor();if(!i)return;let o=i.getModel(),r=i.getPosition();if(!o||!r)return;let n=!1,s=!1;for(let e of t.references)if((0,V.isEqual)(e.uri,o.uri))n=!0,s=s||v.Range.containsPosition(e.range,r);else if(n)break;n&&s||this.reset()});this._currentState=(0,_.combinedDisposable)(i,o)}revealNext(e){if(!this._currentModel)return Promise.resolve();this._currentIdx+=1,this._currentIdx%=this._currentModel.references.length;let t=this._currentModel.references[this._currentIdx];return this._showMessage(),this._ignoreEditorChange=!0,this._editorService.openCodeEditor({resource:t.uri,options:{selection:v.Range.collapseToStart(t.range),selectionRevealType:X.TextEditorSelectionRevealType.NearTopIfOutsideViewport}},e).finally(()=>{this._ignoreEditorChange=!1})}_showMessage(){this._currentMessage?.close();let e=this._keybindingService.lookupKeybinding("editor.gotoNextSymbolFromResult"),t=e?(0,Q.localize)(1192,"Symbol {0} of {1}, {2} for next",this._currentIdx+1,this._currentModel.references.length,e.getLabel()):(0,Q.localize)(1193,"Symbol {0} of {1}",this._currentIdx+1,this._currentModel.references.length);this._currentMessage=this._notificationService.status(t)}};eo=(0,o.__decorate)([(0,o.__param)(0,Y.IContextKeyService),(0,o.__param)(1,$.ICodeEditorService),(0,o.__param)(2,ee.INotificationService),(0,o.__param)(3,Z.IKeybindingService)],eo),(0,G.registerEditorCommand)(new class extends G.EditorCommand{constructor(){super({id:"editor.gotoNextSymbolFromResult",precondition:ei,kbOpts:{weight:J.KeybindingWeight.EditorContrib,primary:q.KeyCode.F12}})}runEditorCommand(e,t){return e.get(et.ISymbolNavigationService).revealNext(t)}}),J.KeybindingsRegistry.registerCommandAndKeybindingRule({id:"editor.gotoNextSymbolFromResult.cancel",weight:J.KeybindingWeight.EditorContrib,when:ei,primary:q.KeyCode.Escape,handler(e){e.get(et.ISymbolNavigationService).reset()}});let er=class{constructor(e){this._listener=new Map,this._disposables=new _.DisposableStore,this._onDidChange=new n.Emitter,this.onDidChange=this._onDidChange.event,this._disposables.add(e.onCodeEditorRemove(this._onDidRemoveEditor,this)),this._disposables.add(e.onCodeEditorAdd(this._onDidAddEditor,this)),e.listCodeEditors().forEach(this._onDidAddEditor,this)}dispose(){this._disposables.dispose(),this._onDidChange.dispose(),(0,_.dispose)(this._listener.values())}_onDidAddEditor(e){this._listener.set(e,(0,_.combinedDisposable)(e.onDidChangeCursorPosition(t=>this._onDidChange.fire({editor:e})),e.onDidChangeModelContent(t=>this._onDidChange.fire({editor:e}))))}_onDidRemoveEditor(e){this._listener.get(e)?.dispose(),this._listener.delete(e)}};er=(0,o.__decorate)([(0,o.__param)(0,$.ICodeEditorService)],er),e.s(["SymbolNavigationService",0,eo],405642);var en=e.i(590746),es=e.i(226870),ea=e.i(772649);class ed{constructor(e){this.name=e}select(e,t,i){if(0===i.length)return 0;let o=i[0].score[0];for(let e=0;e<i.length;e++){let{score:t,completion:r}=i[e];if(t[0]!==o)break;if(r.preselect)return e}return 0}}class ec extends ed{constructor(){super("first")}memorize(e,t,i){}toJSON(){}fromJSON(){}}class el extends ed{constructor(){super("recentlyUsed"),this._cache=new m.LRUCache(300,.66),this._seq=0}memorize(e,t,i){let o=`${e.getLanguageId()}/${i.textLabel}`;this._cache.set(o,{touch:this._seq++,type:i.completion.kind,insertText:i.completion.insertText})}select(e,t,i){if(0===i.length)return 0;let o=e.getLineContent(t.lineNumber).substr(t.column-10,t.column-1);if(/\s$/.test(o))return super.select(e,t,i);let r=i[0].score[0],n=-1,s=-1;for(let t=0;t<i.length&&i[t].score[0]===r;t++){let o=`${e.getLanguageId()}/${i[t].textLabel}`,r=this._cache.peek(o);if(r&&r.touch>s&&r.type===i[t].completion.kind&&r.insertText===i[t].completion.insertText&&(s=r.touch,n=t),i[t].completion.preselect&&!0)return t}return -1!==n?n:0}toJSON(){return this._cache.toJSON()}fromJSON(e){for(let[t,i]of(this._cache.clear(),e))i.touch=0,i.type="number"==typeof i.type?i.type:ea.CompletionItemKinds.fromString(i.type),this._cache.set(t,i);this._seq=this._cache.size}}class eu extends ed{constructor(){super("recentlyUsedByPrefix"),this._trie=es.TernarySearchTree.forStrings(),this._seq=0}memorize(e,t,i){let{word:o}=e.getWordUntilPosition(t),r=`${e.getLanguageId()}/${o}`;this._trie.set(r,{type:i.completion.kind,insertText:i.completion.insertText,touch:this._seq++})}select(e,t,i){let{word:o}=e.getWordUntilPosition(t);if(!o)return super.select(e,t,i);let r=`${e.getLanguageId()}/${o}`,n=this._trie.get(r);if(n||(n=this._trie.findSubstr(r)),n)for(let e=0;e<i.length;e++){let{kind:t,insertText:o}=i[e].completion;if(t===n.type&&o===n.insertText)return e}return super.select(e,t,i)}toJSON(){let e=[];return this._trie.forEach((t,i)=>e.push([i,t])),e.sort((e,t)=>-(e[1].touch-t[1].touch)).forEach((e,t)=>e[1].touch=t),e.slice(0,200)}fromJSON(e){if(this._trie.clear(),e.length>0)for(let[t,i]of(this._seq=e[0][1].touch+1,e))i.type="number"==typeof i.type?i.type:ea.CompletionItemKinds.fromString(i.type),this._trie.set(t,i)}}let eh=class{static{i=this}static{this._strategyCtors=new Map([["recentlyUsedByPrefix",eu],["recentlyUsed",el],["first",ec]])}static{this._storagePrefix="suggest/memories"}constructor(e,t){this._storageService=e,this._configService=t,this._disposables=new _.DisposableStore,this._persistSoon=new en.RunOnceScheduler(()=>this._saveState(),500),this._disposables.add(e.onWillSaveState(e=>{e.reason===A.WillSaveStateReason.SHUTDOWN&&this._saveState()}))}dispose(){this._disposables.dispose(),this._persistSoon.dispose()}memorize(e,t,i){this._withStrategy(e,t).memorize(e,t,i),this._persistSoon.schedule()}select(e,t,i){return this._withStrategy(e,t).select(e,t,i)}_withStrategy(e,t){let o=this._configService.getValue("editor.suggestSelection",{overrideIdentifier:e.getLanguageIdAtPosition(t.lineNumber,t.column),resource:e.uri});if(this._strategy?.name!==o){this._saveState();let e=i._strategyCtors.get(o)||ec;this._strategy=new e;try{let e=this._configService.getValue("editor.suggest.shareSuggestSelections")?A.StorageScope.PROFILE:A.StorageScope.WORKSPACE,t=this._storageService.get(`${i._storagePrefix}/${o}`,e);t&&this._strategy.fromJSON(JSON.parse(t))}catch(e){}}return this._strategy}_saveState(){if(this._strategy){let e=this._configService.getValue("editor.suggest.shareSuggestSelections")?A.StorageScope.PROFILE:A.StorageScope.WORKSPACE,t=JSON.stringify(this._strategy);this._storageService.store(`${i._storagePrefix}/${this._strategy.name}`,t,e,A.StorageTarget.MACHINE)}}};eh=i=(0,o.__decorate)([(0,o.__param)(0,x.IStorageService),(0,o.__param)(1,z.IConfigurationService)],eh),e.s(["SuggestMemoryService",0,eh],336524);var ep=e.i(654295),eg=e.i(32637),em=_,ev=e.i(927955),ey=e.i(686380),ef=e.i(919101),e_=e.i(575129);e.i(698014),e.i(140331),e.i(471999);var eC=e.i(900329);e.i(785266),e.i(181268),e.i(70177),e.i(575210),e.i(890787),e.i(67920);var eS=e.i(710009);(0,ep.registerCss)(void 0),(0,e_.registerColor)("actionBar.toggledBackground",eC.inputActiveOptionBackground,(0,Q.localize)(1750,"Background color for toggled action items in action bar."));let eb={Visible:new j.RawContextKey("codeActionMenuVisible",!1,(0,Q.localize)(1751,"Whether the action widget list is visible"))},eI=class extends em.Disposable{get isVisible(){return eb.Visible.getValue(this._contextKeyService)||!1}constructor(e,t,i){super(),this._contextViewService=e,this._contextKeyService=t,this._instantiationService=i,this._list=this._register(new em.MutableDisposable)}show(e,t,i,o,r,n,s,a){let d=eb.Visible.bindTo(this._contextKeyService),c=this._instantiationService.createInstance(ev.ActionList,e,t,i,o,a);this._contextViewService.showContextView({getAnchor:()=>r,render:e=>(d.set(!0),this._renderWidget(e,c,s??[])),onHide:e=>{d.reset(),this._onWidgetClosed(e)}},n,!1)}acceptSelected(e){this._list.value?.acceptSelected(e)}focusPrevious(){this._list?.value?.focusPrevious()}focusNext(){this._list?.value?.focusNext()}hide(e){this._list.value?.hide(e),this._list.clear()}clear(){this._list.clear()}_renderWidget(e,t,i){let o=(0,T.createElement)("div");if(o.classList.add("action-widget"),e.appendChild(o),this._list.value=t,this._list.value)o.appendChild(this._list.value.domNode);else throw Error("List has no value");let r=new em.DisposableStore,n=(0,T.createElement)("div"),s=e.appendChild(n);s.classList.add("context-view-block"),r.add((0,T.addDisposableListener)(s,T.EventType.MOUSE_DOWN,e=>e.stopPropagation()));let a=(0,T.createElement)("div"),d=e.appendChild(a);d.classList.add("context-view-pointerBlock"),r.add((0,T.addDisposableListener)(d,T.EventType.POINTER_MOVE,()=>d.remove())),r.add((0,T.addDisposableListener)(d,T.EventType.MOUSE_DOWN,()=>d.remove()));let c=0;if(i.length){let e=this._createActionBar(".action-widget-action-bar",i);e&&(o.appendChild(e.getContainer().parentElement),r.add(e),c=e.getContainer().offsetWidth)}let l=this._list.value?.layout(c);o.style.width=`${l}px`;let u=r.add((0,T.trackFocus)(e));return r.add(u.onDidBlur(()=>this.hide(!0))),r}_createActionBar(e,t){if(!t.length)return;let i=(0,T.$)(e),o=new eg.ActionBar(i);return o.push(t,{icon:!1,label:!0}),o}_onWidgetClosed(e){this._list.value?.hide(e)}};eI=(0,o.__decorate)([(0,o.__param)(0,ef.IContextViewService),(0,o.__param)(1,Y.IContextKeyService),(0,o.__param)(2,r.IInstantiationService)],eI);let eE=J.KeybindingWeight.EditorContrib+1e3;(0,ey.registerAction2)(class extends ey.Action2{constructor(){super({id:"hideCodeActionWidget",title:(0,Q.localize2)(1752,"Hide action widget"),precondition:eb.Visible,keybinding:{weight:eE,primary:q.KeyCode.Escape,secondary:[q.KeyMod.Shift|q.KeyCode.Escape]}})}run(e){e.get(eS.IActionWidgetService).hide(!0)}}),(0,ey.registerAction2)(class extends ey.Action2{constructor(){super({id:"selectPrevCodeAction",title:(0,Q.localize2)(1753,"Select previous action"),precondition:eb.Visible,keybinding:{weight:eE,primary:q.KeyCode.UpArrow,secondary:[q.KeyMod.CtrlCmd|q.KeyCode.UpArrow],mac:{primary:q.KeyCode.UpArrow,secondary:[q.KeyMod.CtrlCmd|q.KeyCode.UpArrow,q.KeyMod.WinCtrl|q.KeyCode.KeyP]}}})}run(e){let t=e.get(eS.IActionWidgetService);t instanceof eI&&t.focusPrevious()}}),(0,ey.registerAction2)(class extends ey.Action2{constructor(){super({id:"selectNextCodeAction",title:(0,Q.localize2)(1754,"Select next action"),precondition:eb.Visible,keybinding:{weight:eE,primary:q.KeyCode.DownArrow,secondary:[q.KeyMod.CtrlCmd|q.KeyCode.DownArrow],mac:{primary:q.KeyCode.DownArrow,secondary:[q.KeyMod.CtrlCmd|q.KeyCode.DownArrow,q.KeyMod.WinCtrl|q.KeyCode.KeyN]}}})}run(e){let t=e.get(eS.IActionWidgetService);t instanceof eI&&t.focusNext()}}),(0,ey.registerAction2)(class extends ey.Action2{constructor(){super({id:ev.acceptSelectedActionCommand,title:(0,Q.localize2)(1755,"Accept selected action"),precondition:eb.Visible,keybinding:{weight:eE,primary:q.KeyCode.Enter,secondary:[q.KeyMod.CtrlCmd|q.KeyCode.Period]}})}run(e){let t=e.get(eS.IActionWidgetService);t instanceof eI&&t.acceptSelected()}}),(0,ey.registerAction2)(class extends ey.Action2{constructor(){super({id:ev.previewSelectedActionCommand,title:(0,Q.localize2)(1756,"Preview selected action"),precondition:eb.Visible,keybinding:{weight:eE,primary:q.KeyMod.CtrlCmd|q.KeyCode.Enter}})}run(e){let t=e.get(eS.IActionWidgetService);t instanceof eI&&t.acceptSelected(!0)}}),e.s(["ActionWidgetService",0,eI],113510);let ew="diagnosticsService";e.s(["ID",0,ew,"NullDiagnosticsService",0,class{async getPerformanceInfo(e,t){return{}}async getSystemInfo(e,t){return{processArgs:"nullProcessArgs",gpuStatus:"nullGpuStatus",screenReader:"nullScreenReader",remoteData:[],os:"nullOs",memory:"nullMemory",vmHint:"nullVmHint"}}async getDiagnostics(e,t){return""}async getWorkspaceFileExtensions(e){return{extensions:[]}}async reportWorkspaceStats(e){}}],989630);let eD=(0,r.createDecorator)(ew);e.s(["IDiagnosticsService",0,eD],8717);let eA=(0,r.createDecorator)("encryptionService");e.s(["IEncryptionService",0,eA],707724);let ex=(0,r.createDecorator)("IExtensionsScannerService");e.s(["IExtensionsScannerService",0,ex],25029);let ek=(0,r.createDecorator)("IExtensionRecommendationNotificationService");e.s(["IExtensionRecommendationNotificationService",0,ek],264688)},317679,e=>{"use strict";let t=(0,e.i(488259).createDecorator)("keyboardLayoutService");e.s(["IKeyboardLayoutService",0,t])},38383,904044,169315,790330,e=>{"use strict";var t=e.i(488259);let i=(0,t.createDecorator)("IMcpGalleryService"),o=(0,t.createDecorator)("IMcpManagementService"),r=(0,t.createDecorator)("IAllowedMcpServersService");e.s(["IAllowedMcpServersService",0,r,"IMcpGalleryService",0,i,"IMcpManagementService",0,o],38383);let n=(0,t.createDecorator)("IMcpResourceScannerService");e.s(["IMcpResourceScannerService",0,n],904044);var s=e.i(781808);(e.i(751753),e.i(611130)).Disposable,e.s(["NullPolicyService",0,class{constructor(){this.onDidChange=s.Event.None,this.policyDefinitions={}}async updatePolicyDefinitions(){return{}}getPolicyValue(){}serialize(){}}],169315);let a=(0,t.createDecorator)("terminalLogService");e.s(["ITerminalLogService",0,a],790330)},302346,391677,e=>{"use strict";var t,i,o,r,n,s,a=e.i(535567);(t=r||(r={})).Uninitialized="uninitialized",t.Idle="idle",t.Disabled="disabled",t.CheckingForUpdates="checking for updates",t.AvailableForDownload="available for download",t.Downloading="downloading",t.Downloaded="downloaded",t.Updating="updating",t.Ready="ready",(i=n||(n={}))[i.Setup=0]="Setup",i[i.Archive=1]="Archive",i[i.Snap=2]="Snap",(o=s||(s={}))[o.NotBuilt=0]="NotBuilt",o[o.DisabledByEnvironment=1]="DisabledByEnvironment",o[o.ManuallyDisabled=2]="ManuallyDisabled",o[o.MissingConfiguration=3]="MissingConfiguration",o[o.InvalidConfiguration=4]="InvalidConfiguration",o[o.RunningAsAdmin=5]="RunningAsAdmin";let d={Uninitialized:(0,a.upcast)({type:r.Uninitialized}),Disabled:e=>({type:r.Disabled,reason:e}),Idle:(e,t)=>({type:r.Idle,updateType:e,error:t}),CheckingForUpdates:e=>({type:r.CheckingForUpdates,explicit:e}),AvailableForDownload:e=>({type:r.AvailableForDownload,update:e}),Downloading:(0,a.upcast)({type:r.Downloading}),Downloaded:e=>({type:r.Downloaded,update:e}),Updating:e=>({type:r.Updating,update:e}),Ready:e=>({type:r.Ready,update:e})};e.s(["State",0,d,"StateType",0,r],302346);let c=(0,e.i(488259).createDecorator)("updateService");e.s(["IUpdateService",0,c],391677)},523652,957593,40570,958642,274248,952250,645790,949687,289711,e=>{"use strict";var t,i,o,r,n,s,a,d,c,l,u,h=e.i(281482),p=e.i(488259),g=e.i(802136);e.i(157255);var m=e.i(652731),v=e.i(553638),y=e.i(693162),f=e.i(781808),_=e.i(611130),C=e.i(454514);class S{static{this._clock=0}constructor(e){this.uri=e,this.time=S._clock++}touch(){return this.time=S._clock++,this}}let b=class{constructor(e){this._fileService=e,this._dispooables=new _.DisposableStore,this._limit=65536;const t=new Map,i=i=>{let o=t.get(i.scheme);return void 0===o&&(o=e.hasProvider(i)&&!this._fileService.hasCapability(i,m.FileSystemProviderCapabilities.PathCaseSensitive),t.set(i.scheme,o)),o};this._dispooables.add(f.Event.any(e.onDidChangeFileSystemProviderRegistrations,e.onDidChangeFileSystemProviderCapabilities)(e=>{if(void 0===t.get(e.scheme))return;t.delete(e.scheme);let o=i(g.URI.from({scheme:e.scheme}));if(o!=o)for(let[t,i]of this._canonicalUris.entries())i.uri.scheme===e.scheme&&this._canonicalUris.delete(t)})),this.extUri=new y.ExtUri(i),this._canonicalUris=new Map}dispose(){this._dispooables.dispose(),this._canonicalUris.clear()}asCanonicalUri(e){this._fileService.hasProvider(e)&&(e=(0,y.normalizePath)(e));let t=this.extUri.getComparisonKey(e,!0),i=this._canonicalUris.get(t);return i?i.touch().uri.with({fragment:e.fragment}):(this._canonicalUris.set(t,new S(e)),this._checkTrim(),e)}_checkTrim(){if(this._canonicalUris.size<this._limit)return;S._clock=1;let e=[...this._canonicalUris.values()].map(e=>e.time),t=(0,C.quickSelect)(Math.floor(e.length/2),e,(e,t)=>e-t);for(let[e,i]of this._canonicalUris.entries())i.time<=t?this._canonicalUris.delete(e):i.time=0}};b=(0,h.__decorate)([(0,h.__param)(0,v.IFileService)],b),e.s(["UriIdentityService",0,b],523652);let I=(0,p.createDecorator)("IUserDataProfileStorageService");e.s(["IUserDataProfileStorageService",0,I],957593);let E=(0,p.createDecorator)("IIgnoredExtensionsManagementService");e.s(["IIgnoredExtensionsManagementService",0,E],40570),e.i(535567),e.i(650289),e.i(2267),e.i(331139),e.i(4160),e.i(621826),(t=a||(a={})).Settings="settings",t.Keybindings="keybindings",t.Snippets="snippets",t.Prompts="prompts",t.Tasks="tasks",t.Mcp="mcp",t.Extensions="extensions",t.GlobalState="globalState",t.Profiles="profiles",t.WorkspaceState="workspaceState",a.Settings,a.Keybindings,a.Snippets,a.Prompts,a.Tasks,a.Extensions,a.GlobalState,a.Profiles,a.Mcp,(i=d||(d={})).Unauthorized="Unauthorized",i.Forbidden="Forbidden",i.NotFound="NotFound",i.MethodNotFound="MethodNotFound",i.Conflict="Conflict",i.Gone="Gone",i.PreconditionFailed="PreconditionFailed",i.TooLarge="TooLarge",i.UpgradeRequired="UpgradeRequired",i.PreconditionRequired="PreconditionRequired",i.TooManyRequests="RemoteTooManyRequests",i.TooManyRequestsAndRetryAfter="TooManyRequestsAndRetryAfter",i.RequestFailed="RequestFailed",i.RequestCanceled="RequestCanceled",i.RequestTimeout="RequestTimeout",i.RequestProtocolNotSupported="RequestProtocolNotSupported",i.RequestPathNotEscaped="RequestPathNotEscaped",i.RequestHeadersNotObject="RequestHeadersNotObject",i.NoCollection="NoCollection",i.NoRef="NoRef",i.EmptyResponse="EmptyResponse",i.TurnedOff="TurnedOff",i.SessionExpired="SessionExpired",i.ServiceChanged="ServiceChanged",i.DefaultServiceChanged="DefaultServiceChanged",i.LocalTooManyProfiles="LocalTooManyProfiles",i.LocalTooManyRequests="LocalTooManyRequests",i.LocalPreconditionFailed="LocalPreconditionFailed",i.LocalInvalidContent="LocalInvalidContent",i.LocalError="LocalError",i.IncompatibleLocalContent="IncompatibleLocalContent",i.IncompatibleRemoteContent="IncompatibleRemoteContent",i.Unknown="Unknown";class w extends Error{constructor(e,t,i,o){super(e),this.code=t,this.resource=i,this.operationId=o,this.name=`${this.code} (UserDataSyncError) syncResource:${this.resource||"unknown"} operationId:${this.operationId||"unknown"}`}}(o=w||(w={})).toUserDataSyncError=function(e){if(e instanceof o)return e;let t=/^(.+) \(UserDataSyncError\) syncResource:(.+) operationId:(.+)$/.exec(e.name);if(t&&t[1]){let i="unknown"===t[2]?void 0:t[2],r="unknown"===t[3]?void 0:t[3];return new o(e.message,t[1],i,r)}return new o(e.message,d.Unknown)},(r=c||(c={})).Uninitialized="uninitialized",r.Idle="idle",r.Syncing="syncing",r.HasConflicts="hasConflicts",(n=l||(l={}))[n.None=0]="None",n[n.Added=1]="Added",n[n.Modified=2]="Modified",n[n.Deleted=3]="Deleted",(s=u||(u={})).Preview="preview",s.Conflict="conflict",s.Accepted="accepted",e.s(["SyncResource",0,a,"SyncStatus",0,c],958642);let D=(0,p.createDecorator)("IUserDataSyncStoreManagementService"),A=(0,p.createDecorator)("IUserDataSyncStoreService"),x=(0,p.createDecorator)("IUserDataSyncLocalStoreService"),k=(0,p.createDecorator)("IUserDataSyncEnablementService"),T=(0,p.createDecorator)("IUserDataSyncService"),M=(0,p.createDecorator)("IUserDataSyncResourceProviderService"),P=(0,p.createDecorator)("IUserDataAutoSyncService"),R=(0,p.createDecorator)("IUserDataSyncUtilService"),L=(0,p.createDecorator)("IUserDataSyncLogService");e.s(["IUserDataAutoSyncService",0,P,"IUserDataSyncEnablementService",0,k,"IUserDataSyncLocalStoreService",0,x,"IUserDataSyncLogService",0,L,"IUserDataSyncResourceProviderService",0,M,"IUserDataSyncService",0,T,"IUserDataSyncStoreManagementService",0,D,"IUserDataSyncStoreService",0,A,"IUserDataSyncUtilService",0,R],274248);let N=(0,p.createDecorator)("IUserDataSyncAccountService");e.s(["IUserDataSyncAccountService",0,N],952250);let O=(0,p.createDecorator)("IUserDataSyncMachinesService");e.s(["IUserDataSyncMachinesService",0,O],645790),e.s(["NullSharedWebContentExtractorService",0,class{readImage(e,t){throw Error("Not implemented")}},"NullWebContentExtractorService",0,class{extract(e){throw Error("Not implemented")}}],949687);let F=(0,p.createDecorator)("IWebContentExtractorService"),K=(0,p.createDecorator)("ISharedWebContentExtractorService");e.s(["ISharedWebContentExtractorService",0,K,"IWebContentExtractorService",0,F],289711)},613036,e=>{"use strict";let t=(0,e.i(488259).createDecorator)("IEditorBreadcrumbsService");e.s(["IBreadcrumbsService",0,t])},636007,495516,722540,189807,261056,749751,905449,979233,867227,591071,523559,377196,595517,775518,348354,64658,714741,951599,568799,727782,668601,660653,207464,518888,822667,950212,618669,962396,81240,30495,656661,428888,760364,932060,7708,e=>{"use strict";var t=e.i(488259);let i=(0,t.createDecorator)("IChatAttachmentResolveService");e.s(["IChatAttachmentResolveService",0,i],636007);let o=(0,t.createDecorator)("chatMarkdownAnchorService");e.s(["IChatMarkdownAnchorService",0,o],495516);let r=(0,t.createDecorator)("IContextPickService");e.s(["IChatContextPickService",0,r],722540);let n=(0,t.createDecorator)("chatTodoListService");e.s(["IChatTodoListService",0,n],189807);let s=(0,t.createDecorator)("chatTransferService");e.s(["IChatTransferService",0,s],261056);let a=(0,t.createDecorator)("IChatWidgetHistoryService");e.s(["IChatWidgetHistoryService",0,a],749751);let d=(0,t.createDecorator)("ILanguageModelStatsService");e.s(["ILanguageModelStatsService",0,d],905449);let c=(0,t.createDecorator)("IEditSessionsStorageService"),l=(0,t.createDecorator)("IEditSessionsLogService");e.s(["IEditSessionsLogService",0,l,"IEditSessionsStorageService",0,c],979233);let u=(0,t.createDecorator)("explorerService");e.s(["IExplorerService",0,u],867227);let h=(0,t.createDecorator)("IInlineChatSessionService");e.s(["IInlineChatSessionService",0,h],591071);let p=(0,t.createDecorator)("ITroubleshootIssueService");e.s(["ITroubleshootIssueService",0,p],523559);let g=(0,t.createDecorator)("issueFormService"),m=(0,t.createDecorator)("workbenchIssueService");e.s(["IIssueFormService",0,g,"IWorkbenchIssueService",0,m],377196);let v=(0,t.createDecorator)("INotebookOriginalCellModelFactory");e.s(["INotebookOriginalCellModelFactory",0,v],595517);let y=(0,t.createDecorator)("INotebookOriginalModelReferenceFactory");e.s(["INotebookOriginalModelReferenceFactory",0,y],775518);let f=(0,t.createDecorator)("INotebookCellOutlineDataSourceFactory");e.s(["INotebookCellOutlineDataSourceFactory",0,f],348354);let _=(0,t.createDecorator)("INotebookExecutionService");e.s(["INotebookExecutionService",0,_],64658);let C=(0,t.createDecorator)("notebookKeymapService");e.s(["INotebookKeymapService",0,C],714741);let S=(0,t.createDecorator)("notebookEditorWorkerService");e.s(["INotebookEditorWorkerService",0,S],951599);let b=(0,t.createDecorator)("preferencesSearchService");e.s(["IPreferencesSearchService",0,b],568799);let I=(0,t.createDecorator)("remoteCodingAgentsService");e.s(["IRemoteCodingAgentsService",0,I],727782);let E=(0,t.createDecorator)("replaceService");e.s(["IReplaceService",0,E],668601);let w=(0,t.createDecorator)("searchViewModelWorkbenchService");e.s(["ISearchViewModelWorkbenchService",0,w],660653);let D=(0,t.createDecorator)("notebookSearchService");e.s(["INotebookSearchService",0,D],207464);let A=(0,t.createDecorator)("searchHistoryService");e.s(["ISearchHistoryService",0,A],518888),e.i(157255),e.s(["NoOpWorkspaceTagsService",0,class{getTags(){return Promise.resolve({})}async getTelemetryWorkspaceId(e,t){}getHashedRemotesFromUri(e,t){return Promise.resolve([])}}],822667);let x=(0,t.createDecorator)("workspaceTagsService");e.s(["IWorkspaceTagsService",0,x],950212);let k=(0,t.createDecorator)("terminalContributionsService");e.s(["ITerminalContributionService",0,k],618669);let T=(0,t.createDecorator)("testCoverageService");e.s(["ITestCoverageService",0,T],962396);let M=(0,t.createDecorator)("testingFilterState");e.s(["ITestExplorerFilterState",0,M],81240);let P=(0,t.createDecorator)("ITestResultStorage");e.s(["ITestResultStorage",0,P],30495);let R=(0,t.createDecorator)("testingContinuousRunService");e.s(["ITestingContinuousRunService",0,R],656661);let L=(0,t.createDecorator)("testingDecorationService");e.s(["ITestingDecorationsService",0,L],428888);let N=(0,t.createDecorator)("testingPeekOpener");e.s(["ITestingPeekOpener",0,N],760364);let O=(0,t.createDecorator)("walkthroughsService");e.s(["IWalkthroughsService",0,O],932060);let F=(0,t.createDecorator)("accessibleViewInformationService");e.s(["IAccessibleViewInformationService",0,F],7708)},258861,e=>{"use strict";let t=(0,e.i(488259).createDecorator)("activityService");e.s(["IActivityService",0,t])},967602,785480,e=>{"use strict";var t=e.i(488259);let i=(0,t.createDecorator)("assignmentService");e.s(["IWorkbenchAssignmentService",0,i],967602);let o=(0,t.createDecorator)("IAuthenticationQueryService");e.s(["IAuthenticationQueryService",0,o],785480)},669414,e=>{"use strict";let t=(0,e.i(488259).createDecorator)("auxiliaryWindowService");e.s(["IAuxiliaryWindowService",0,t])},360912,e=>{"use strict";let t=(0,e.i(488259).createDecorator)("bannerService");e.s(["IBannerService",0,t])},436380,254686,189078,874923,818421,e=>{"use strict";var t=e.i(488259);let i=(0,t.createDecorator)("browserElementsService");e.s(["IBrowserElementsService",0,i],436380);let o=(0,t.createDecorator)("jsonEditingService");e.s(["IJSONEditingService",0,o],254686);let r=(0,t.createDecorator)("IExtensionFeaturesManagementService");e.s(["IExtensionFeaturesManagementService",0,r],189078);let n=(0,t.createDecorator)("extensionRecommendationsService"),s=(0,t.createDecorator)("IExtensionIgnoredRecommendationsService");e.s(["IExtensionIgnoredRecommendationsService",0,s,"IExtensionRecommendationsService",0,n],874923);let a=(0,t.createDecorator)("IWorkspaceExtensionsConfigService");e.s(["IWorkspaceExtensionsConfigService",0,a],818421)},441201,e=>{"use strict";let t=(0,e.i(488259).createDecorator)("historyService");e.s(["IHistoryService",0,t])},769268,e=>{"use strict";let t=(0,e.i(488259).createDecorator)("integrityService");e.s(["IIntegrityService",0,t])},248598,e=>{"use strict";var t=e.i(932956),i=e.i(922205);e.s(["FallbackKeyboardMapper",0,class{constructor(e,t){this._mapAltGrToCtrlAlt=e,this._OS=t}dumpDebugInfo(){return"FallbackKeyboardMapper dispatching on keyCode"}resolveKeyboardEvent(e){let i=e.ctrlKey||this._mapAltGrToCtrlAlt&&e.altGraphKey,o=e.altKey||this._mapAltGrToCtrlAlt&&e.altGraphKey,r=new t.KeyCodeChord(i,e.shiftKey,o,e.metaKey,e.keyCode);return this.resolveKeybinding(new t.Keybinding([r]))[0]}resolveKeybinding(e){return i.USLayoutResolvedKeybinding.resolveKeybinding(e,this._OS)}}])},109953,17e3,107797,36835,e=>{"use strict";var t,i=e.i(488259);let o=(0,i.createDecorator)("keybindingEditingService");e.s(["IKeybindingEditingService",0,o],109953);var r=e.i(281482),n=e.i(781808),s=e.i(590746),a=e.i(611130),d=e.i(683578),c=e.i(853457),l=e.i(40577),u=e.i(701575),h=e.i(140889);let p=class extends a.Disposable{static{t=this}static{this.LAST_SHUTDOWN_REASON_KEY="lifecyle.lastShutdownReason"}get startupKind(){return this._startupKind}get shouldAttemptTaskReconnection(){return this.startupKind===d.StartupKind.ReloadedWindow}get phase(){return this._phase}get willShutdown(){return this._willShutdown}constructor(e,i){super(),this.logService=e,this.storageService=i,this._onBeforeShutdown=this._register(new n.Emitter),this.onBeforeShutdown=this._onBeforeShutdown.event,this._onWillShutdown=this._register(new n.Emitter),this.onWillShutdown=this._onWillShutdown.event,this._onDidShutdown=this._register(new n.Emitter),this.onDidShutdown=this._onDidShutdown.event,this._onBeforeShutdownError=this._register(new n.Emitter),this.onBeforeShutdownError=this._onBeforeShutdownError.event,this._onShutdownVeto=this._register(new n.Emitter),this.onShutdownVeto=this._onShutdownVeto.event,this._phase=d.LifecyclePhase.Starting,this._willShutdown=!1,this.phaseWhen=new Map,this._startupKind=this.resolveStartupKind(),this._register(this.storageService.onWillSaveState(e=>{e.reason===u.WillSaveStateReason.SHUTDOWN&&this.storageService.store(t.LAST_SHUTDOWN_REASON_KEY,this.shutdownReason,u.StorageScope.WORKSPACE,u.StorageTarget.MACHINE)}))}resolveStartupKind(){let e=this.doResolveStartupKind()??d.StartupKind.NewWindow;return this.logService.trace(`[lifecycle] starting up (startup kind: ${e})`),e}doResolveStartupKind(){let e,i=this.storageService.getNumber(t.LAST_SHUTDOWN_REASON_KEY,u.StorageScope.WORKSPACE);switch(this.storageService.remove(t.LAST_SHUTDOWN_REASON_KEY,u.StorageScope.WORKSPACE),i){case d.ShutdownReason.RELOAD:e=d.StartupKind.ReloadedWindow;break;case d.ShutdownReason.LOAD:e=d.StartupKind.ReopenedWindow}return e}set phase(e){if(e<this.phase)throw Error("Lifecycle cannot go backwards");if(this._phase===e)return;this.logService.trace(`lifecycle: phase changed (value: ${e})`),this._phase=e,(0,l.mark)(`code/LifecyclePhase/${(0,d.LifecyclePhaseToString)(e)}`);let t=this.phaseWhen.get(this._phase);t&&(t.open(),this.phaseWhen.delete(this._phase))}async when(e){if(e<=this._phase)return;let t=this.phaseWhen.get(e);t||(t=new s.Barrier,this.phaseWhen.set(e,t)),await t.wait()}};p=t=(0,r.__decorate)([(0,r.__param)(0,c.ILogService),(0,r.__param)(1,h.IStorageService)],p),e.s(["AbstractLifecycleService",0,p],17e3);let g=(0,i.createDecorator)("localizationService"),m=(0,i.createDecorator)("activeLanguageService");e.s(["IActiveLanguagePackService",0,m,"ILocaleService",0,g],107797);var v=e.i(38383);let y=(0,i.refineServiceDecorator)(v.IMcpManagementService);e.s(["IWorkbenchMcpManagementService",0,y],36835)},241006,e=>{"use strict";let t=(0,e.i(488259).createDecorator)("IOutlineService");e.s(["IOutlineService",0,t])},315645,e=>{"use strict";let t=(0,e.i(488259).createDecorator)("embedderTerminalService");e.s(["IEmbedderTerminalService",0,t])},335563,e=>{"use strict";let t=(0,e.i(488259).createDecorator)("titleService");e.s(["ITitleService",0,t])},54630,557025,441665,932476,635579,266735,624497,949609,932007,492727,587561,402357,775387,19025,335200,673078,49583,840969,787197,644497,347470,183866,331508,e=>{"use strict";var t,i,o,r,n,s,a,d,c,l,u,h,p,g,m,v,y,f,_,C,S,b,I,E,w,D,A,x,k,T,M,P,R,L,N,O,F,K,W,z,V,B,U,H,q,G,$,Q,j,Y,X,Z,J,ee,et,ei,eo,er,en,es,ea,ed,ec,el,eu,eh,ep,eg,em,ev,ey,ef,e_,eC,eS,eb,eI,eE,ew,eD,eA,ex,ek,eT,eM,eP,eR,eL,eN,eO,eF,eK,eW,ez,eV,eB,eU,eH,eq,eG,e$,eQ,ej,eY,eX,eZ,eJ=e.i(281482),e0=e.i(865562),e1=e.i(781808),e2=e.i(611130),e3=e.i(802186);e.i(71224);var e8=e.i(354244),e5=e.i(693162),e6=e.i(802136),e7=e.i(79522),e9=e.i(848551),e4=e.i(563154),te=e.i(514366),tt=e.i(924396),ti=e.i(174562),to=e.i(841836),tr=e.i(561270),tn=e.i(197946),ts=e.i(407791),ta=e.i(166338),td=e.i(326659),tc=e.i(757507),tl=e.i(768646),tu=e.i(561214),th=e.i(155621),tp=e.i(744194),tg=e.i(191425),tm=e.i(938319),tv=e.i(380016),ty=e.i(952509),tf=e.i(269676),t_=e.i(879498),tC=e.i(237397),tS=e.i(974398),tb=e.i(405642),tI=e.i(746654),tE=e.i(410149),tw=e.i(717813),tD=e.i(696826),tA=e.i(378322),tx=e.i(336524),tk=e.i(77617),tT=e.i(487106),tM=e.i(823743),tP=e.i(113510),tR=e.i(710009),tL=e.i(108527),tN=e.i(9753),tO=e.i(745971),tF=e.i(989630),tK=e.i(8717),tW=e.i(324726),tz=e.i(939496),tV=e.i(707724),tB=e.i(253642),tU=e.i(236686),tH=e.i(455162),tq=e.i(158231),tG=e.i(577256),t$=e.i(25029),tQ=e.i(264688),tj=e.i(304484),tY=e.i(840930),tX=e.i(553638),tZ=e.i(487495),tJ=e.i(5407),t0=e.i(157255),t1=e.i(317679),t2=e.i(762834),t3=e.i(290231),t8=e.i(853457),t5=e.i(38383),t6=e.i(904044),t7=e.i(169315),t9=e.i(990091),t4=e.i(347589),ie=e.i(667499),it=e.i(102474),ii=e.i(508156),io=e.i(123597),ir=e.i(371620),is=e.i(457468),ia=e.i(536766),id=e.i(620943),ic=e.i(596950),il=e.i(790330),iu=e.i(806987),ih=e.i(935144),ip=e.i(312066),ig=e.i(302346),im=e.i(391677),iv=e.i(474320),iy=e.i(523652),i_=e.i(565836),iC=e.i(420067),iS=e.i(991307),ib=e.i(957593),iI=e.i(40570),iE=e.i(958642),iw=e.i(274248),iD=e.i(952250),iA=e.i(645790),ix=e.i(949687),ik=e.i(289711),iT=e.i(677516),iM=e.i(975497),iP=e.i(391205),iR=e.i(168363),iL=e.i(506986),iN=e.i(948279),iO=e.i(613036),iF=e.i(597556),iK=e.i(447186),iW=e.i(276925),iz=e.i(636007),iV=e.i(495516),iB=e.i(722540),iU=e.i(337610),iH=e.i(643882),iq=e.i(120140),iG=e.i(83e3),i$=e.i(528337),iQ=e.i(630882),ij=e.i(476799),iY=e.i(189807),iX=e.i(261056),iZ=e.i(949316),iJ=e.i(749751),i0=e.i(792823),i1=e.i(905449),i2=e.i(633137),i3=e.i(548806),i8=e.i(515401),i5=e.i(461121),i6=e.i(767053),i7=e.i(352853),i9=e.i(838943),i4=e.i(979233),oe=e.i(542034),ot=e.i(399108),oi=e.i(867227),oo=e.i(591071),or=e.i(782978),on=e.i(377285),os=e.i(523559),oa=e.i(377196),od=e.i(669827),oc=e.i(461079),ol=e.i(386454),ou=e.i(107219),oh=e.i(595517),op=e.i(775518),og=e.i(723476),om=e.i(348354),ov=e.i(541137),oy=e.i(174234),of=e.i(64658),o_=e.i(274107),oC=e.i(112021),oS=e.i(714741),ob=e.i(455428),oI=e.i(158460),oE=e.i(777416),ow=e.i(951599),oD=e.i(568799),oA=e.i(727782),ox=e.i(13303),ok=e.i(921752),oT=e.i(752563),oM=e.i(668601),oP=e.i(660653),oR=e.i(207464),oL=e.i(518888),oN=e.i(846171),oO=e.i(849922),oF=e.i(470991),oK=e.i(822667),oW=e.i(950212),oz=e.i(809355),oV=e.i(465433),oB=e.i(195911),oU=e.i(848391),oH=e.i(966041),oq=e.i(618669),oG=e.i(284162),o$=e.i(315631),oQ=e.i(576101),oj=e.i(962396),oY=e.i(81240),oX=e.i(426),oZ=e.i(386185),oJ=e.i(30495),o0=e.i(576159),o1=e.i(656661),o2=e.i(428888),o3=e.i(760364),o8=e.i(685352),o5=e.i(380928),o6=e.i(913726),o7=e.i(971629),o9=e.i(571728),o4=e.i(932060),re=e.i(7708),rt=e.i(258861),ri=e.i(251559),ro=e.i(734570),rr=e.i(967602),rn=e.i(853703),rs=e.i(10129),ra=e.i(745257),rd=e.i(4808),rc=e.i(252798),rl=e.i(527605),ru=e.i(785480),rh=e.i(278735),rp=e.i(669414),rg=e.i(360912),rm=e.i(436380),rv=e.i(518203),ry=e.i(254686),rf=e.i(703175),r_=e.i(359661),rC=e.i(419486),rS=e.i(824489),rb=e.i(1391),rI=e.i(891110),rE=e.i(50788),rw=e.i(865384),rD=e.i(362361),rA=e.i(276199),rx=e.i(189078),rk=e.i(17565),rT=e.i(325501),rM=e.i(874923),rP=e.i(818421),rR=e.i(68292),rL=e.i(456557),rN=e.i(774260),rO=e.i(981399),rF=e.i(883685),rK=e.i(951129),rW=e.i(441201),rz=e.i(74304),rV=e.i(769268),rB=e.i(248598),rU=e.i(109953),rH=e.i(58467),rq=e.i(508898),rG=e.i(278725),r$=e.i(17e3),rQ=e.i(107797),rj=e.i(36835),rY=e.i(227835),rX=e.i(241006),rZ=e.i(812491),rJ=e.i(34422),r0=e.i(292035),r1=e.i(509046),r2=e.i(436771),r3=e.i(47903),r8=e.i(488313),r5=e.i(727704),r6=e.i(85282),r7=e.i(315645),r9=e.i(112231),r4=e.i(1125),ne=e.i(170774),nt=e.i(317317),ni=e.i(967011),no=e.i(335563),nr=e.i(219170),nn=e.i(404214),ns=e.i(322544),na=e.i(488259);let nd=(0,na.createDecorator)("IRemoteUserDataProfilesService");e.s(["IRemoteUserDataProfilesService",0,nd],557025);var nc=e.i(17607),nl=e.i(590746),nu=e2,nh=e.i(107700);class np extends nu.Disposable{get currentProfile(){return this._currentProfile}constructor(e){super(),this._onDidChangeCurrentProfile=this._register(new e1.Emitter),this.onDidChangeCurrentProfile=this._onDidChangeCurrentProfile.event,this._currentProfile=e}async updateCurrentProfile(e){if((0,nh.equals)(this._currentProfile,e))return;let t=this._currentProfile;this._currentProfile=e;let i=[];this._onDidChangeCurrentProfile.fire({previous:t,profile:e,join(e){i.push(e)}}),await nl.Promises.settled(i)}}e.s(["UserDataProfileService",0,np],441665);var ng=e.i(568101),nm=e.i(650289),nv=e.i(155652),ny=e.i(321012),nf=e.i(262072);(t=ee||(ee={})).Uninitialized="uninitialized",t.Unavailable="unavailable",t.Available="available",(0,nm.localize2)(14608,"Settings Sync"),(0,ny.registerIcon)("settings-sync-view-icon",nv.Codicon.sync,(0,nm.localize)(14609,"View icon of the Settings Sync view."));let n_=new ng.RawContextKey("syncStatus",iE.SyncStatus.Uninitialized);new ng.RawContextKey("syncEnabled",!1);let nC=new ng.RawContextKey("userDataSyncAccountStatus",ee.Uninitialized);new ng.RawContextKey("enableSyncActivityViews",!1),new ng.RawContextKey("enableSyncConflictsView",!1),new ng.RawContextKey("hasConflicts",!1),(0,nm.localize2)(14610,"Download Settings Sync Activity"),nf.Categories.Developer,ng.ContextKeyExpr.and(nC.isEqualTo(ee.Available),n_.notEqualsTo(iE.SyncStatus.Uninitialized)),e.s(["AccountStatus",0,ee],932476);let nS=(0,na.createDecorator)("IUserDataSyncWorkbenchService");e.s(["IUserDataSyncWorkbenchService",0,nS],635579);var nb=e.i(99419),nI=e.i(732157),nE=e.i(826001),nw=e.i(464172);let nD=(0,na.createDecorator)("workingCopyHistoryService");e.s(["IWorkingCopyHistoryService",0,nD],266735);var nA=e.i(7542),nx=e.i(973265);let nk=(0,na.createDecorator)("IWorkspaceIdentityService");e.s(["IWorkspaceIdentityService",0,nk],624497);var nT=e.i(387902),nM=e.i(888481),nP=e.i(718876),nR=e.i(364363);let nL=(0,na.createDecorator)("imageResizeMainService");var nN=e.i(202822),nO=e.i(221997);let nF=(0,na.createDecorator)("IMcpGalleryManifestService");e.s(["IMcpGalleryManifestService",0,nF],949609);var nK=e.i(350271),nW=e.i(361345);let nz=(0,na.createDecorator)("chatLayoutService");e.s(["IChatLayoutService",0,nz],932007);let nV=(0,na.createDecorator)("chatModeService");e.s(["IChatModeService",0,nV],492727);let nB=(0,na.createDecorator)("ILanguageModelToolsConfirmationService");e.s(["ILanguageModelToolsConfirmationService",0,nB],587561);var nU=e.i(280980);let nH=(0,na.createDecorator)("randomService");e.s(["IRandomService",0,nH],402357);var nq=e.i(424863),nG=e.i(585883);let n$=(0,na.createDecorator)("INotebookOutlineEntryFactory");var nQ=e.i(975451),nj=e.i(61260),nY=e.i(897241);let nX=(0,na.createDecorator)("agentSessions");e.s(["IAgentSessionsService",0,nX],775387);let nZ=(0,na.createDecorator)("userAttentionService");e.s(["IUserAttentionService",0,nZ],19025);let nJ=(0,na.createDecorator)("ICodeCompareModelService");e.s(["ICodeCompareModelService",0,nJ],335200);var n0=e2,n1=e.i(954593),n2=e.i(454683),n3=e.i(557941),n8=e.i(166969),n5=e.i(772649),n6=e.i(886412),n7=e.i(819593),n9=e.i(601293),n4=e.i(419734);(i=et||(et={}))[i.Invalid=0]="Invalid",i[i.Start=1]="Start",i[i.H=2]="H",i[i.HT=3]="HT",i[i.HTT=4]="HTT",i[i.HTTP=5]="HTTP",i[i.F=6]="F",i[i.FI=7]="FI",i[i.FIL=8]="FIL",i[i.BeforeColon=9]="BeforeColon",i[i.AfterColon=10]="AfterColon",i[i.AlmostThere=11]="AlmostThere",i[i.End=12]="End",i[i.Accept=13]="Accept",i[i.LastKnownState=14]="LastKnownState";class se{constructor(e,t,i){const o=new Uint8Array(e*t);for(let r=0,n=e*t;r<n;r++)o[r]=i;this._data=o,this.rows=e,this.cols=t}get(e,t){return this._data[e*this.cols+t]}set(e,t,i){this._data[e*this.cols+t]=i}}class st{constructor(e){let t=0,i=et.Invalid;for(let o=0,r=e.length;o<r;o++){const[r,n,s]=e[o];n>t&&(t=n),r>i&&(i=r),s>i&&(i=s)}t++;const o=new se(++i,t,et.Invalid);for(let t=0,i=e.length;t<i;t++){const[i,r,n]=e[t];o.set(i,r,n)}this._states=o,this._maxCharCode=t}nextState(e,t){return t<0||t>=this._maxCharCode?et.Invalid:this._states.get(e,t)}}let si=null;function so(){return null===si&&(si=new st([[et.Start,n9.CharCode.h,et.H],[et.Start,n9.CharCode.H,et.H],[et.Start,n9.CharCode.f,et.F],[et.Start,n9.CharCode.F,et.F],[et.H,n9.CharCode.t,et.HT],[et.H,n9.CharCode.T,et.HT],[et.HT,n9.CharCode.t,et.HTT],[et.HT,n9.CharCode.T,et.HTT],[et.HTT,n9.CharCode.p,et.HTTP],[et.HTT,n9.CharCode.P,et.HTTP],[et.HTTP,n9.CharCode.s,et.BeforeColon],[et.HTTP,n9.CharCode.S,et.BeforeColon],[et.HTTP,n9.CharCode.Colon,et.AfterColon],[et.F,n9.CharCode.i,et.FI],[et.F,n9.CharCode.I,et.FI],[et.FI,n9.CharCode.l,et.FIL],[et.FI,n9.CharCode.L,et.FIL],[et.FIL,n9.CharCode.e,et.BeforeColon],[et.FIL,n9.CharCode.E,et.BeforeColon],[et.BeforeColon,n9.CharCode.Colon,et.AfterColon],[et.AfterColon,n9.CharCode.Slash,et.AlmostThere],[et.AlmostThere,n9.CharCode.Slash,et.End]])),si}(o=ei||(ei={}))[o.None=0]="None",o[o.ForceTermination=1]="ForceTermination",o[o.CannotEndIn=2]="CannotEndIn";let sr=null;class sn{static _createLink(e,t,i,o,r){let n=r-1;do{let i=t.charCodeAt(n);if(e.get(i)!==ei.CannotEndIn)break;n--}while(n>o)if(o>0){let e=t.charCodeAt(o-1),i=t.charCodeAt(n);(e===n9.CharCode.OpenParen&&i===n9.CharCode.CloseParen||e===n9.CharCode.OpenSquareBracket&&i===n9.CharCode.CloseSquareBracket||e===n9.CharCode.OpenCurlyBrace&&i===n9.CharCode.CloseCurlyBrace)&&n--}return{range:{startLineNumber:i,startColumn:o+1,endLineNumber:i,endColumn:n+2},url:t.substring(o,n+1)}}static computeLinks(e,t=so()){let i=function(){if(null===sr){sr=new n4.CharacterClassifier(ei.None);let e=" <>'\"、。。、,.:;‘〈「『〔([{「」}])〕』」〉’`~…|";for(let t=0;t<e.length;t++)sr.set(e.charCodeAt(t),ei.ForceTermination);let t=".,;:";for(let e=0;e<t.length;e++)sr.set(t.charCodeAt(e),ei.CannotEndIn)}return sr}(),o=[];for(let r=1,n=e.getLineCount();r<=n;r++){let n=e.getLineContent(r),s=n.length,a=0,d=0,c=0,l=et.Start,u=!1,h=!1,p=!1,g=!1;for(;a<s;){let e=!1,s=n.charCodeAt(a);if(l===et.Accept){let t;switch(s){case n9.CharCode.OpenParen:u=!0,t=ei.None;break;case n9.CharCode.CloseParen:t=u?ei.None:ei.ForceTermination;break;case n9.CharCode.OpenSquareBracket:p=!0,h=!0,t=ei.None;break;case n9.CharCode.CloseSquareBracket:p=!1,t=h?ei.None:ei.ForceTermination;break;case n9.CharCode.OpenCurlyBrace:g=!0,t=ei.None;break;case n9.CharCode.CloseCurlyBrace:t=g?ei.None:ei.ForceTermination;break;case n9.CharCode.SingleQuote:case n9.CharCode.DoubleQuote:case n9.CharCode.BackTick:t=c===s?ei.ForceTermination:c===n9.CharCode.SingleQuote||c===n9.CharCode.DoubleQuote||c===n9.CharCode.BackTick?ei.None:ei.ForceTermination;break;case n9.CharCode.Asterisk:t=c===n9.CharCode.Asterisk?ei.ForceTermination:ei.None;break;case n9.CharCode.Space:t=p?ei.None:ei.ForceTermination;break;default:t=i.get(s)}t===ei.ForceTermination&&(o.push(sn._createLink(i,n,r,d,a)),e=!0)}else if(l===et.End){let t;s===n9.CharCode.OpenSquareBracket?(h=!0,t=ei.None):t=i.get(s),t===ei.ForceTermination?e=!0:l=et.Accept}else(l=t.nextState(l,s))===et.Invalid&&(e=!0);e&&(l=et.Start,u=!1,h=!1,g=!1,d=a+1,c=s),a++}l===et.Accept&&o.push(sn._createLink(i,n,r,d,s))}return o}}function ss(e){return e&&"function"==typeof e.getLineCount&&"function"==typeof e.getLineContent?sn.computeLinks(e):[]}e.s(["LinkComputer",0,sn,"State",0,et,"StateMachine",0,st,"computeLinks",0,ss],673078);class sa{constructor(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}static{this.INSTANCE=new sa}navigateValueSet(e,t,i,o,r){if(e&&t){let i=this.doNavigateValueSet(t,r);if(i)return{range:e,value:i}}if(i&&o){let e=this.doNavigateValueSet(o,r);if(e)return{range:i,value:e}}return null}doNavigateValueSet(e,t){let i=this.numberReplace(e,t);return null!==i?i:this.textReplace(e,t)}numberReplace(e,t){let i=Math.pow(10,e.length-(e.lastIndexOf(".")+1)),o=Number(e),r=parseFloat(e);if(!isNaN(o)&&!isNaN(r)&&o===r&&(0!==o||t))return String((o=Math.floor(o*i)+(t?i:-i))/i);return null}textReplace(e,t){return this.valueSetsReplace(this._defaultValueSet,e,t)}valueSetsReplace(e,t,i){let o=null;for(let r=0,n=e.length;null===o&&r<n;r++)o=this.valueSetReplace(e[r],t,i);return o}valueSetReplace(e,t,i){let o=e.indexOf(t);return o>=0?((o+=i?1:-1)<0?o=e.length-1:o%=e.length,e[o]):null}}var sd=e.i(704994),sc=e.i(83823),sl=e.i(340793);(r=eo||(eo={}))[r.Unknown=0]="Unknown",r[r.Disabled=1]="Disabled",r[r.Enabled=2]="Enabled",(n=er||(er={}))[n.Invoke=1]="Invoke",n[n.Auto=2]="Auto",(s=en||(en={}))[s.None=0]="None",s[s.KeepWhitespace=1]="KeepWhitespace",s[s.InsertAsSnippet=4]="InsertAsSnippet",(a=es||(es={}))[a.Method=0]="Method",a[a.Function=1]="Function",a[a.Constructor=2]="Constructor",a[a.Field=3]="Field",a[a.Variable=4]="Variable",a[a.Class=5]="Class",a[a.Struct=6]="Struct",a[a.Interface=7]="Interface",a[a.Module=8]="Module",a[a.Property=9]="Property",a[a.Event=10]="Event",a[a.Operator=11]="Operator",a[a.Unit=12]="Unit",a[a.Value=13]="Value",a[a.Constant=14]="Constant",a[a.Enum=15]="Enum",a[a.EnumMember=16]="EnumMember",a[a.Keyword=17]="Keyword",a[a.Text=18]="Text",a[a.Color=19]="Color",a[a.File=20]="File",a[a.Reference=21]="Reference",a[a.Customcolor=22]="Customcolor",a[a.Folder=23]="Folder",a[a.TypeParameter=24]="TypeParameter",a[a.User=25]="User",a[a.Issue=26]="Issue",a[a.Tool=27]="Tool",a[a.Snippet=28]="Snippet",(d=ea||(ea={}))[d.Deprecated=1]="Deprecated",(c=ed||(ed={}))[c.Invoke=0]="Invoke",c[c.TriggerCharacter=1]="TriggerCharacter",c[c.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions",(l=ec||(ec={}))[l.EXACT=0]="EXACT",l[l.ABOVE=1]="ABOVE",l[l.BELOW=2]="BELOW",(u=el||(el={}))[u.NotSet=0]="NotSet",u[u.ContentFlush=1]="ContentFlush",u[u.RecoverFromMarkers=2]="RecoverFromMarkers",u[u.Explicit=3]="Explicit",u[u.Paste=4]="Paste",u[u.Undo=5]="Undo",u[u.Redo=6]="Redo",(h=eu||(eu={}))[h.LF=1]="LF",h[h.CRLF=2]="CRLF",(p=eh||(eh={}))[p.Text=0]="Text",p[p.Read=1]="Read",p[p.Write=2]="Write",(g=ep||(ep={}))[g.None=0]="None",g[g.Keep=1]="Keep",g[g.Brackets=2]="Brackets",g[g.Advanced=3]="Advanced",g[g.Full=4]="Full",(m=eg||(eg={}))[m.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",m[m.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",m[m.accessibilitySupport=2]="accessibilitySupport",m[m.accessibilityPageSize=3]="accessibilityPageSize",m[m.allowOverflow=4]="allowOverflow",m[m.allowVariableLineHeights=5]="allowVariableLineHeights",m[m.allowVariableFonts=6]="allowVariableFonts",m[m.allowVariableFontsInAccessibilityMode=7]="allowVariableFontsInAccessibilityMode",m[m.ariaLabel=8]="ariaLabel",m[m.ariaRequired=9]="ariaRequired",m[m.autoClosingBrackets=10]="autoClosingBrackets",m[m.autoClosingComments=11]="autoClosingComments",m[m.screenReaderAnnounceInlineSuggestion=12]="screenReaderAnnounceInlineSuggestion",m[m.autoClosingDelete=13]="autoClosingDelete",m[m.autoClosingOvertype=14]="autoClosingOvertype",m[m.autoClosingQuotes=15]="autoClosingQuotes",m[m.autoIndent=16]="autoIndent",m[m.autoIndentOnPaste=17]="autoIndentOnPaste",m[m.autoIndentOnPasteWithinString=18]="autoIndentOnPasteWithinString",m[m.automaticLayout=19]="automaticLayout",m[m.autoSurround=20]="autoSurround",m[m.bracketPairColorization=21]="bracketPairColorization",m[m.guides=22]="guides",m[m.codeLens=23]="codeLens",m[m.codeLensFontFamily=24]="codeLensFontFamily",m[m.codeLensFontSize=25]="codeLensFontSize",m[m.colorDecorators=26]="colorDecorators",m[m.colorDecoratorsLimit=27]="colorDecoratorsLimit",m[m.columnSelection=28]="columnSelection",m[m.comments=29]="comments",m[m.contextmenu=30]="contextmenu",m[m.copyWithSyntaxHighlighting=31]="copyWithSyntaxHighlighting",m[m.cursorBlinking=32]="cursorBlinking",m[m.cursorSmoothCaretAnimation=33]="cursorSmoothCaretAnimation",m[m.cursorStyle=34]="cursorStyle",m[m.cursorSurroundingLines=35]="cursorSurroundingLines",m[m.cursorSurroundingLinesStyle=36]="cursorSurroundingLinesStyle",m[m.cursorWidth=37]="cursorWidth",m[m.cursorHeight=38]="cursorHeight",m[m.disableLayerHinting=39]="disableLayerHinting",m[m.disableMonospaceOptimizations=40]="disableMonospaceOptimizations",m[m.domReadOnly=41]="domReadOnly",m[m.dragAndDrop=42]="dragAndDrop",m[m.dropIntoEditor=43]="dropIntoEditor",m[m.editContext=44]="editContext",m[m.emptySelectionClipboard=45]="emptySelectionClipboard",m[m.experimentalGpuAcceleration=46]="experimentalGpuAcceleration",m[m.experimentalWhitespaceRendering=47]="experimentalWhitespaceRendering",m[m.extraEditorClassName=48]="extraEditorClassName",m[m.fastScrollSensitivity=49]="fastScrollSensitivity",m[m.find=50]="find",m[m.fixedOverflowWidgets=51]="fixedOverflowWidgets",m[m.folding=52]="folding",m[m.foldingStrategy=53]="foldingStrategy",m[m.foldingHighlight=54]="foldingHighlight",m[m.foldingImportsByDefault=55]="foldingImportsByDefault",m[m.foldingMaximumRegions=56]="foldingMaximumRegions",m[m.unfoldOnClickAfterEndOfLine=57]="unfoldOnClickAfterEndOfLine",m[m.fontFamily=58]="fontFamily",m[m.fontInfo=59]="fontInfo",m[m.fontLigatures=60]="fontLigatures",m[m.fontSize=61]="fontSize",m[m.fontWeight=62]="fontWeight",m[m.fontVariations=63]="fontVariations",m[m.formatOnPaste=64]="formatOnPaste",m[m.formatOnType=65]="formatOnType",m[m.glyphMargin=66]="glyphMargin",m[m.gotoLocation=67]="gotoLocation",m[m.hideCursorInOverviewRuler=68]="hideCursorInOverviewRuler",m[m.hover=69]="hover",m[m.inDiffEditor=70]="inDiffEditor",m[m.inlineSuggest=71]="inlineSuggest",m[m.letterSpacing=72]="letterSpacing",m[m.lightbulb=73]="lightbulb",m[m.lineDecorationsWidth=74]="lineDecorationsWidth",m[m.lineHeight=75]="lineHeight",m[m.lineNumbers=76]="lineNumbers",m[m.lineNumbersMinChars=77]="lineNumbersMinChars",m[m.linkedEditing=78]="linkedEditing",m[m.links=79]="links",m[m.matchBrackets=80]="matchBrackets",m[m.minimap=81]="minimap",m[m.mouseStyle=82]="mouseStyle",m[m.mouseWheelScrollSensitivity=83]="mouseWheelScrollSensitivity",m[m.mouseWheelZoom=84]="mouseWheelZoom",m[m.multiCursorMergeOverlapping=85]="multiCursorMergeOverlapping",m[m.multiCursorModifier=86]="multiCursorModifier",m[m.mouseMiddleClickAction=87]="mouseMiddleClickAction",m[m.multiCursorPaste=88]="multiCursorPaste",m[m.multiCursorLimit=89]="multiCursorLimit",m[m.occurrencesHighlight=90]="occurrencesHighlight",m[m.occurrencesHighlightDelay=91]="occurrencesHighlightDelay",m[m.overtypeCursorStyle=92]="overtypeCursorStyle",m[m.overtypeOnPaste=93]="overtypeOnPaste",m[m.overviewRulerBorder=94]="overviewRulerBorder",m[m.overviewRulerLanes=95]="overviewRulerLanes",m[m.padding=96]="padding",m[m.pasteAs=97]="pasteAs",m[m.parameterHints=98]="parameterHints",m[m.peekWidgetDefaultFocus=99]="peekWidgetDefaultFocus",m[m.placeholder=100]="placeholder",m[m.definitionLinkOpensInPeek=101]="definitionLinkOpensInPeek",m[m.quickSuggestions=102]="quickSuggestions",m[m.quickSuggestionsDelay=103]="quickSuggestionsDelay",m[m.readOnly=104]="readOnly",m[m.readOnlyMessage=105]="readOnlyMessage",m[m.renameOnType=106]="renameOnType",m[m.renderRichScreenReaderContent=107]="renderRichScreenReaderContent",m[m.renderControlCharacters=108]="renderControlCharacters",m[m.renderFinalNewline=109]="renderFinalNewline",m[m.renderLineHighlight=110]="renderLineHighlight",m[m.renderLineHighlightOnlyWhenFocus=111]="renderLineHighlightOnlyWhenFocus",m[m.renderValidationDecorations=112]="renderValidationDecorations",m[m.renderWhitespace=113]="renderWhitespace",m[m.revealHorizontalRightPadding=114]="revealHorizontalRightPadding",m[m.roundedSelection=115]="roundedSelection",m[m.rulers=116]="rulers",m[m.scrollbar=117]="scrollbar",m[m.scrollBeyondLastColumn=118]="scrollBeyondLastColumn",m[m.scrollBeyondLastLine=119]="scrollBeyondLastLine",m[m.scrollPredominantAxis=120]="scrollPredominantAxis",m[m.selectionClipboard=121]="selectionClipboard",m[m.selectionHighlight=122]="selectionHighlight",m[m.selectionHighlightMaxLength=123]="selectionHighlightMaxLength",m[m.selectionHighlightMultiline=124]="selectionHighlightMultiline",m[m.selectOnLineNumbers=125]="selectOnLineNumbers",m[m.showFoldingControls=126]="showFoldingControls",m[m.showUnused=127]="showUnused",m[m.snippetSuggestions=128]="snippetSuggestions",m[m.smartSelect=129]="smartSelect",m[m.smoothScrolling=130]="smoothScrolling",m[m.stickyScroll=131]="stickyScroll",m[m.stickyTabStops=132]="stickyTabStops",m[m.stopRenderingLineAfter=133]="stopRenderingLineAfter",m[m.suggest=134]="suggest",m[m.suggestFontSize=135]="suggestFontSize",m[m.suggestLineHeight=136]="suggestLineHeight",m[m.suggestOnTriggerCharacters=137]="suggestOnTriggerCharacters",m[m.suggestSelection=138]="suggestSelection",m[m.tabCompletion=139]="tabCompletion",m[m.tabIndex=140]="tabIndex",m[m.trimWhitespaceOnDelete=141]="trimWhitespaceOnDelete",m[m.unicodeHighlighting=142]="unicodeHighlighting",m[m.unusualLineTerminators=143]="unusualLineTerminators",m[m.useShadowDOM=144]="useShadowDOM",m[m.useTabStops=145]="useTabStops",m[m.wordBreak=146]="wordBreak",m[m.wordSegmenterLocales=147]="wordSegmenterLocales",m[m.wordSeparators=148]="wordSeparators",m[m.wordWrap=149]="wordWrap",m[m.wordWrapBreakAfterCharacters=150]="wordWrapBreakAfterCharacters",m[m.wordWrapBreakBeforeCharacters=151]="wordWrapBreakBeforeCharacters",m[m.wordWrapColumn=152]="wordWrapColumn",m[m.wordWrapOverride1=153]="wordWrapOverride1",m[m.wordWrapOverride2=154]="wordWrapOverride2",m[m.wrappingIndent=155]="wrappingIndent",m[m.wrappingStrategy=156]="wrappingStrategy",m[m.showDeprecated=157]="showDeprecated",m[m.inertialScroll=158]="inertialScroll",m[m.inlayHints=159]="inlayHints",m[m.wrapOnEscapedLineFeeds=160]="wrapOnEscapedLineFeeds",m[m.effectiveCursorStyle=161]="effectiveCursorStyle",m[m.editorClassName=162]="editorClassName",m[m.pixelRatio=163]="pixelRatio",m[m.tabFocusMode=164]="tabFocusMode",m[m.layoutInfo=165]="layoutInfo",m[m.wrappingInfo=166]="wrappingInfo",m[m.defaultColorDecorators=167]="defaultColorDecorators",m[m.colorDecoratorsActivatedOn=168]="colorDecoratorsActivatedOn",m[m.inlineCompletionsAccessibilityVerbose=169]="inlineCompletionsAccessibilityVerbose",m[m.effectiveEditContext=170]="effectiveEditContext",m[m.scrollOnMiddleClick=171]="scrollOnMiddleClick",m[m.effectiveAllowVariableFonts=172]="effectiveAllowVariableFonts",(v=em||(em={}))[v.TextDefined=0]="TextDefined",v[v.LF=1]="LF",v[v.CRLF=2]="CRLF",(y=ev||(ev={}))[y.LF=0]="LF",y[y.CRLF=1]="CRLF",(f=ey||(ey={}))[f.Left=1]="Left",f[f.Center=2]="Center",f[f.Right=3]="Right",(_=ef||(ef={}))[_.Increase=0]="Increase",_[_.Decrease=1]="Decrease",(C=e_||(e_={}))[C.None=0]="None",C[C.Indent=1]="Indent",C[C.IndentOutdent=2]="IndentOutdent",C[C.Outdent=3]="Outdent",(S=eC||(eC={}))[S.Both=0]="Both",S[S.Right=1]="Right",S[S.Left=2]="Left",S[S.None=3]="None",(b=eS||(eS={}))[b.Type=1]="Type",b[b.Parameter=2]="Parameter",(I=eb||(eb={}))[I.Accepted=0]="Accepted",I[I.Rejected=1]="Rejected",I[I.Ignored=2]="Ignored",(E=eI||(eI={}))[E.Code=1]="Code",E[E.Label=2]="Label",(w=eE||(eE={}))[w.Automatic=0]="Automatic",w[w.Explicit=1]="Explicit",(D=ew||(ew={}))[D.DependsOnKbLayout=-1]="DependsOnKbLayout",D[D.Unknown=0]="Unknown",D[D.Backspace=1]="Backspace",D[D.Tab=2]="Tab",D[D.Enter=3]="Enter",D[D.Shift=4]="Shift",D[D.Ctrl=5]="Ctrl",D[D.Alt=6]="Alt",D[D.PauseBreak=7]="PauseBreak",D[D.CapsLock=8]="CapsLock",D[D.Escape=9]="Escape",D[D.Space=10]="Space",D[D.PageUp=11]="PageUp",D[D.PageDown=12]="PageDown",D[D.End=13]="End",D[D.Home=14]="Home",D[D.LeftArrow=15]="LeftArrow",D[D.UpArrow=16]="UpArrow",D[D.RightArrow=17]="RightArrow",D[D.DownArrow=18]="DownArrow",D[D.Insert=19]="Insert",D[D.Delete=20]="Delete",D[D.Digit0=21]="Digit0",D[D.Digit1=22]="Digit1",D[D.Digit2=23]="Digit2",D[D.Digit3=24]="Digit3",D[D.Digit4=25]="Digit4",D[D.Digit5=26]="Digit5",D[D.Digit6=27]="Digit6",D[D.Digit7=28]="Digit7",D[D.Digit8=29]="Digit8",D[D.Digit9=30]="Digit9",D[D.KeyA=31]="KeyA",D[D.KeyB=32]="KeyB",D[D.KeyC=33]="KeyC",D[D.KeyD=34]="KeyD",D[D.KeyE=35]="KeyE",D[D.KeyF=36]="KeyF",D[D.KeyG=37]="KeyG",D[D.KeyH=38]="KeyH",D[D.KeyI=39]="KeyI",D[D.KeyJ=40]="KeyJ",D[D.KeyK=41]="KeyK",D[D.KeyL=42]="KeyL",D[D.KeyM=43]="KeyM",D[D.KeyN=44]="KeyN",D[D.KeyO=45]="KeyO",D[D.KeyP=46]="KeyP",D[D.KeyQ=47]="KeyQ",D[D.KeyR=48]="KeyR",D[D.KeyS=49]="KeyS",D[D.KeyT=50]="KeyT",D[D.KeyU=51]="KeyU",D[D.KeyV=52]="KeyV",D[D.KeyW=53]="KeyW",D[D.KeyX=54]="KeyX",D[D.KeyY=55]="KeyY",D[D.KeyZ=56]="KeyZ",D[D.Meta=57]="Meta",D[D.ContextMenu=58]="ContextMenu",D[D.F1=59]="F1",D[D.F2=60]="F2",D[D.F3=61]="F3",D[D.F4=62]="F4",D[D.F5=63]="F5",D[D.F6=64]="F6",D[D.F7=65]="F7",D[D.F8=66]="F8",D[D.F9=67]="F9",D[D.F10=68]="F10",D[D.F11=69]="F11",D[D.F12=70]="F12",D[D.F13=71]="F13",D[D.F14=72]="F14",D[D.F15=73]="F15",D[D.F16=74]="F16",D[D.F17=75]="F17",D[D.F18=76]="F18",D[D.F19=77]="F19",D[D.F20=78]="F20",D[D.F21=79]="F21",D[D.F22=80]="F22",D[D.F23=81]="F23",D[D.F24=82]="F24",D[D.NumLock=83]="NumLock",D[D.ScrollLock=84]="ScrollLock",D[D.Semicolon=85]="Semicolon",D[D.Equal=86]="Equal",D[D.Comma=87]="Comma",D[D.Minus=88]="Minus",D[D.Period=89]="Period",D[D.Slash=90]="Slash",D[D.Backquote=91]="Backquote",D[D.BracketLeft=92]="BracketLeft",D[D.Backslash=93]="Backslash",D[D.BracketRight=94]="BracketRight",D[D.Quote=95]="Quote",D[D.OEM_8=96]="OEM_8",D[D.IntlBackslash=97]="IntlBackslash",D[D.Numpad0=98]="Numpad0",D[D.Numpad1=99]="Numpad1",D[D.Numpad2=100]="Numpad2",D[D.Numpad3=101]="Numpad3",D[D.Numpad4=102]="Numpad4",D[D.Numpad5=103]="Numpad5",D[D.Numpad6=104]="Numpad6",D[D.Numpad7=105]="Numpad7",D[D.Numpad8=106]="Numpad8",D[D.Numpad9=107]="Numpad9",D[D.NumpadMultiply=108]="NumpadMultiply",D[D.NumpadAdd=109]="NumpadAdd",D[D.NUMPAD_SEPARATOR=110]="NUMPAD_SEPARATOR",D[D.NumpadSubtract=111]="NumpadSubtract",D[D.NumpadDecimal=112]="NumpadDecimal",D[D.NumpadDivide=113]="NumpadDivide",D[D.KEY_IN_COMPOSITION=114]="KEY_IN_COMPOSITION",D[D.ABNT_C1=115]="ABNT_C1",D[D.ABNT_C2=116]="ABNT_C2",D[D.AudioVolumeMute=117]="AudioVolumeMute",D[D.AudioVolumeUp=118]="AudioVolumeUp",D[D.AudioVolumeDown=119]="AudioVolumeDown",D[D.BrowserSearch=120]="BrowserSearch",D[D.BrowserHome=121]="BrowserHome",D[D.BrowserBack=122]="BrowserBack",D[D.BrowserForward=123]="BrowserForward",D[D.MediaTrackNext=124]="MediaTrackNext",D[D.MediaTrackPrevious=125]="MediaTrackPrevious",D[D.MediaStop=126]="MediaStop",D[D.MediaPlayPause=127]="MediaPlayPause",D[D.LaunchMediaPlayer=128]="LaunchMediaPlayer",D[D.LaunchMail=129]="LaunchMail",D[D.LaunchApp2=130]="LaunchApp2",D[D.Clear=131]="Clear",D[D.MAX_VALUE=132]="MAX_VALUE",(A=eD||(eD={}))[A.Hint=1]="Hint",A[A.Info=2]="Info",A[A.Warning=4]="Warning",A[A.Error=8]="Error",(x=eA||(eA={}))[x.Unnecessary=1]="Unnecessary",x[x.Deprecated=2]="Deprecated",(k=ex||(ex={}))[k.Inline=1]="Inline",k[k.Gutter=2]="Gutter",(T=ek||(ek={}))[T.Normal=1]="Normal",T[T.Underlined=2]="Underlined",(M=eT||(eT={}))[M.UNKNOWN=0]="UNKNOWN",M[M.TEXTAREA=1]="TEXTAREA",M[M.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",M[M.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",M[M.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",M[M.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",M[M.CONTENT_TEXT=6]="CONTENT_TEXT",M[M.CONTENT_EMPTY=7]="CONTENT_EMPTY",M[M.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",M[M.CONTENT_WIDGET=9]="CONTENT_WIDGET",M[M.OVERVIEW_RULER=10]="OVERVIEW_RULER",M[M.SCROLLBAR=11]="SCROLLBAR",M[M.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",M[M.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR",(P=eM||(eM={}))[P.AIGenerated=1]="AIGenerated",(R=eP||(eP={}))[R.Invoke=0]="Invoke",R[R.Automatic=1]="Automatic",(L=eR||(eR={}))[L.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",L[L.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",L[L.TOP_CENTER=2]="TOP_CENTER",(N=eL||(eL={}))[N.Left=1]="Left",N[N.Center=2]="Center",N[N.Right=4]="Right",N[N.Full=7]="Full",(O=eN||(eN={}))[O.Word=0]="Word",O[O.Line=1]="Line",O[O.Suggest=2]="Suggest",(F=eO||(eO={}))[F.Left=0]="Left",F[F.Right=1]="Right",F[F.None=2]="None",F[F.LeftOfInjectedText=3]="LeftOfInjectedText",F[F.RightOfInjectedText=4]="RightOfInjectedText",(K=eF||(eF={}))[K.Off=0]="Off",K[K.On=1]="On",K[K.Relative=2]="Relative",K[K.Interval=3]="Interval",K[K.Custom=4]="Custom",(W=eK||(eK={}))[W.None=0]="None",W[W.Text=1]="Text",W[W.Blocks=2]="Blocks",(z=eW||(eW={}))[z.Smooth=0]="Smooth",z[z.Immediate=1]="Immediate",(V=ez||(ez={}))[V.Auto=1]="Auto",V[V.Hidden=2]="Hidden",V[V.Visible=3]="Visible",(B=eV||(eV={}))[B.LTR=0]="LTR",B[B.RTL=1]="RTL",(U=eB||(eB={})).Off="off",U.OnCode="onCode",U.On="on",(H=eU||(eU={}))[H.Invoke=1]="Invoke",H[H.TriggerCharacter=2]="TriggerCharacter",H[H.ContentChange=3]="ContentChange",(q=eH||(eH={}))[q.File=0]="File",q[q.Module=1]="Module",q[q.Namespace=2]="Namespace",q[q.Package=3]="Package",q[q.Class=4]="Class",q[q.Method=5]="Method",q[q.Property=6]="Property",q[q.Field=7]="Field",q[q.Constructor=8]="Constructor",q[q.Enum=9]="Enum",q[q.Interface=10]="Interface",q[q.Function=11]="Function",q[q.Variable=12]="Variable",q[q.Constant=13]="Constant",q[q.String=14]="String",q[q.Number=15]="Number",q[q.Boolean=16]="Boolean",q[q.Array=17]="Array",q[q.Object=18]="Object",q[q.Key=19]="Key",q[q.Null=20]="Null",q[q.EnumMember=21]="EnumMember",q[q.Struct=22]="Struct",q[q.Event=23]="Event",q[q.Operator=24]="Operator",q[q.TypeParameter=25]="TypeParameter",(G=eq||(eq={}))[G.Deprecated=1]="Deprecated",($=eG||(eG={}))[$.LTR=0]="LTR",$[$.RTL=1]="RTL",(Q=e$||(e$={}))[Q.Hidden=0]="Hidden",Q[Q.Blink=1]="Blink",Q[Q.Smooth=2]="Smooth",Q[Q.Phase=3]="Phase",Q[Q.Expand=4]="Expand",Q[Q.Solid=5]="Solid",(j=eQ||(eQ={}))[j.Line=1]="Line",j[j.Block=2]="Block",j[j.Underline=3]="Underline",j[j.LineThin=4]="LineThin",j[j.BlockOutline=5]="BlockOutline",j[j.UnderlineThin=6]="UnderlineThin",(Y=ej||(ej={}))[Y.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",Y[Y.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",Y[Y.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",Y[Y.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter",(X=eY||(eY={}))[X.None=0]="None",X[X.Same=1]="Same",X[X.Indent=2]="Indent",X[X.DeepIndent=3]="DeepIndent",e.s(["AccessibilitySupport",0,eo,"CodeActionTriggerType",0,er,"CompletionItemInsertTextRule",0,en,"CompletionItemKind",0,es,"CompletionItemTag",0,ea,"CompletionTriggerKind",0,ed,"ContentWidgetPositionPreference",0,ec,"CursorChangeReason",0,el,"DefaultEndOfLine",0,eu,"DocumentHighlightKind",0,eh,"EditorAutoIndentStrategy",0,ep,"EditorOption",0,eg,"EndOfLinePreference",0,em,"EndOfLineSequence",0,ev,"GlyphMarginLane",0,ey,"HoverVerbosityAction",0,ef,"IndentAction",0,e_,"InjectedTextCursorStops",0,eC,"InlayHintKind",0,eS,"InlineCompletionEndOfLifeReasonKind",0,eb,"InlineCompletionHintStyle",0,eI,"InlineCompletionTriggerKind",0,eE,"KeyCode",0,ew,"MarkerSeverity",0,eD,"MarkerTag",0,eA,"MinimapPosition",0,ex,"MinimapSectionHeaderStyle",0,ek,"MouseTargetType",0,eT,"NewSymbolNameTag",0,eM,"NewSymbolNameTriggerKind",0,eP,"OverlayWidgetPositionPreference",0,eR,"OverviewRulerLane",0,eL,"PartialAcceptTriggerKind",0,eN,"PositionAffinity",0,eO,"RenderLineNumbersType",0,eF,"RenderMinimap",0,eK,"ScrollType",0,eW,"ScrollbarVisibility",0,ez,"SelectionDirection",0,eV,"ShowLightbulbIconMode",0,eB,"SignatureHelpTriggerKind",0,eU,"SymbolKind",0,eH,"SymbolTag",0,eq,"TextDirection",0,eG,"TextEditorCursorBlinkingStyle",0,e$,"TextEditorCursorStyle",0,eQ,"TrackedRangeStickiness",0,ej,"WrappingIndent",0,eY],49583);class su{static{this.CtrlCmd=sc.KeyMod.CtrlCmd}static{this.Shift=sc.KeyMod.Shift}static{this.Alt=sc.KeyMod.Alt}static{this.WinCtrl=sc.KeyMod.WinCtrl}static chord(e,t){return(0,sc.KeyChord)(e,t)}}function sh(){return{editor:void 0,languages:void 0,CancellationTokenSource:sd.CancellationTokenSource,Emitter:e1.Emitter,KeyCode:ew,KeyMod:su,Position:n7.Position,Range:n8.Range,Selection:sl.Selection,SelectionDirection:eV,MarkerSeverity:eD,MarkerTag:eA,Uri:e6.URI,Token:n5.Token}}e.s(["createMonacoBaseAPI",0,sh],840969);var sp=e.i(85280),sg=e.i(922688),sm=e.i(693205),sv=e.i(957235),sy=e.i(316321);class sf{static computeUnicodeHighlights(e,t,i){var o;let r,n,s=i?i.startLineNumber:1,a=i?i.endLineNumber:e.getLineCount(),d=new s_(t),c=d.getCandidateCodePoints();r="allNonBasicAscii"===c?RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):RegExp(`${(o=Array.from(c),`[${(0,sm.escapeRegExpCharacters)(o.map(e=>String.fromCodePoint(e)).join(""))}]`)}`,"g");let l=new sg.Searcher(null,r),u=[],h=!1,p=0,g=0,m=0;e:for(let t=s;t<=a;t++){let i=e.getLineContent(t),o=i.length;l.reset(0);do if(n=l.next(i)){let e=n.index,r=n.index+n[0].length;if(e>0){let t=i.charCodeAt(e-1);(0,sm.isHighSurrogate)(t)&&e--}if(r+1<o){let e=i.charCodeAt(r-1);(0,sm.isHighSurrogate)(e)&&r++}let s=i.substring(e,r),a=(0,sy.getWordAtText)(e+1,sy.DEFAULT_WORD_REGEXP,i,0);a&&a.endColumn<=e+1&&(a=null);let c=d.shouldHighlightNonBasicASCII(s,a?a.word:null);if(c!==eZ.None){if(c===eZ.Ambiguous?p++:c===eZ.Invisible?g++:c===eZ.NonBasicASCII?m++:(0,sv.assertNever)(),u.length>=1e3){h=!0;break e}u.push(new n8.Range(t,e+1,t,r+1))}}while(n)}return{ranges:u,hasMore:h,ambiguousCharacterCount:p,invisibleCharacterCount:g,nonBasicAsciiCharacterCount:m}}static computeUnicodeHighlightReason(e,t){let i=new s_(t);switch(i.shouldHighlightNonBasicASCII(e,null)){case eZ.None:return null;case eZ.Invisible:return{kind:eX.Invisible};case eZ.Ambiguous:{let o=e.codePointAt(0),r=i.ambiguousCharacters.getPrimaryConfusable(o),n=sm.AmbiguousCharacters.getLocales().filter(e=>!sm.AmbiguousCharacters.getInstance(new Set([...t.allowedLocales,e])).isAmbiguous(o));return{kind:eX.Ambiguous,confusableWith:String.fromCodePoint(r),notAmbiguousInLocales:n}}case eZ.NonBasicASCII:return{kind:eX.NonBasicAscii}}}}(Z=eX||(eX={}))[Z.Ambiguous=0]="Ambiguous",Z[Z.Invisible=1]="Invisible",Z[Z.NonBasicAscii=2]="NonBasicAscii";class s_{constructor(e){this.options=e,this.allowedCodePoints=new Set(e.allowedCodePoints),this.ambiguousCharacters=sm.AmbiguousCharacters.getInstance(new Set(e.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";let e=new Set;if(this.options.invisibleCharacters)for(let t of sm.InvisibleCharacters.codePoints)sC(String.fromCodePoint(t))||e.add(t);if(this.options.ambiguousCharacters)for(let t of this.ambiguousCharacters.getConfusableCodePoints())e.add(t);for(let t of this.allowedCodePoints)e.delete(t);return e}shouldHighlightNonBasicASCII(e,t){let i=e.codePointAt(0);if(this.allowedCodePoints.has(i))return eZ.None;if(this.options.nonBasicASCII)return eZ.NonBasicASCII;let o=!1,r=!1;if(t)for(let e of t){let t=e.codePointAt(0),i=(0,sm.isBasicASCII)(e);o=o||i,i||this.ambiguousCharacters.isAmbiguous(t)||sm.InvisibleCharacters.isInvisibleCharacter(t)||(r=!0)}return!o&&r?eZ.None:this.options.invisibleCharacters&&!sC(e)&&sm.InvisibleCharacters.isInvisibleCharacter(i)?eZ.Invisible:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(i)?eZ.Ambiguous:eZ.None}}function sC(e){return" "===e||"\n"===e||" "===e}(J=eZ||(eZ={}))[J.None=0]="None",J[J.NonBasicASCII=1]="NonBasicASCII",J[J.Invisible=2]="Invisible",J[J.Ambiguous=3]="Ambiguous",e.s(["UnicodeHighlighterReasonKind",0,eX,"UnicodeTextModelHighlighter",0,sf],787197);var sS=e.i(400579),sb=e.i(498702),sI=e.i(159556),sE=e.i(619122),sw=e.i(144881);function sD(e){let t=[];for(let i of e){let e=Number(i);(e||0===e&&""!==i.replace(/\s/g,""))&&t.push(e)}return t}function sA(e,t,i,o){return{red:e/255,blue:i/255,green:t/255,alpha:o}}function sx(e,t){let i=t.index,o=t[0].length;if(void 0===i)return;let r=e.positionAt(i);return{startLineNumber:r.lineNumber,startColumn:r.column,endLineNumber:r.lineNumber,endColumn:r.column+o}}function sk(e,t,i){if(!e||1!==t.length)return;let o=sD(t[0].values());return{range:e,color:sA(o[0],o[1],o[2],i?o[3]:1)}}function sT(e,t,i){if(!e||1!==t.length)return;let o=sD(t[0].values()),r=new sw.Color(new sw.HSLA(o[0],o[1]/100,o[2]/100,i?o[3]:1));return{range:e,color:sA(r.rgba.r,r.rgba.g,r.rgba.b,r.rgba.a)}}function sM(e,t){return"string"==typeof e?[...e.matchAll(t)]:e.findMatches(t)}let sP=/^-+|-+$/g;var sR=e2,sL=e.i(615316);class sN{constructor(e,t,i,o){this._uri=e,this._lines=t,this._eol=i,this._versionId=o,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return null===this._cachedTextValue&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(e){for(let t of(e.eol&&e.eol!==this._eol&&(this._eol=e.eol,this._lineStarts=null),e.changes))this._acceptDeleteRange(t.range),this._acceptInsertText(new n7.Position(t.range.startLineNumber,t.range.startColumn),t.text);this._versionId=e.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){let e=this._eol.length,t=this._lines.length,i=new Uint32Array(t);for(let o=0;o<t;o++)i[o]=this._lines[o].length+e;this._lineStarts=new sL.PrefixSumComputer(i)}}_setLineText(e,t){this._lines[e]=t,this._lineStarts&&this._lineStarts.setValue(e,this._lines[e].length+this._eol.length)}_acceptDeleteRange(e){if(e.startLineNumber===e.endLineNumber){if(e.startColumn===e.endColumn)return;this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.startLineNumber-1].substring(e.endColumn-1));return}this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.endLineNumber-1].substring(e.endColumn-1)),this._lines.splice(e.startLineNumber,e.endLineNumber-e.startLineNumber),this._lineStarts&&this._lineStarts.removeValues(e.startLineNumber,e.endLineNumber-e.startLineNumber)}_acceptInsertText(e,t){if(0===t.length)return;let i=(0,sm.splitLines)(t);if(1===i.length)return void this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+i[0]+this._lines[e.lineNumber-1].substring(e.column-1));i[i.length-1]+=this._lines[e.lineNumber-1].substring(e.column-1),this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+i[0]);let o=new Uint32Array(i.length-1);for(let t=1;t<i.length;t++)this._lines.splice(e.lineNumber+t-1,0,i[t]),o[t-1]=i[t].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(e.lineNumber,o)}}e.s(["MirrorTextModel",0,sN],644497);let sO="workerTextModelSync";class sF extends sR.Disposable{static create(e,t){return new sF(e.getChannel(sO),t)}constructor(e,t,i=!1){if(super(),this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),this._proxy=e,this._modelService=t,!i){const e=new nl.IntervalTimer;e.cancelAndSet(()=>this._checkStopModelSync(),Math.round(3e4)),this._register(e)}}dispose(){for(let e in this._syncedModels)(0,sR.dispose)(this._syncedModels[e]);this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),super.dispose()}ensureSyncedResources(e,t=!1){for(let i of e){let e=i.toString();this._syncedModels[e]||this._beginModelSync(i,t),this._syncedModels[e]&&(this._syncedModelsLastUsedTime[e]=new Date().getTime())}}_checkStopModelSync(){let e=new Date().getTime(),t=[];for(let i in this._syncedModelsLastUsedTime)e-this._syncedModelsLastUsedTime[i]>6e4&&t.push(i);for(let e of t)this._stopModelSync(e)}_beginModelSync(e,t){let i=this._modelService.getModel(e);if(!i||!t&&i.isTooLargeForSyncing())return;let o=e.toString();this._proxy.$acceptNewModel({url:i.uri.toString(),lines:i.getLinesContent(),EOL:i.getEOL(),versionId:i.getVersionId()});let r=new sR.DisposableStore;r.add(i.onDidChangeContent(e=>{this._proxy.$acceptModelChanged(o.toString(),e)})),r.add(i.onWillDispose(()=>{this._stopModelSync(o)})),r.add((0,sR.toDisposable)(()=>{this._proxy.$acceptRemovedModel(o)})),this._syncedModels[o]=r}_stopModelSync(e){let t=this._syncedModels[e];delete this._syncedModels[e],delete this._syncedModelsLastUsedTime[e],(0,sR.dispose)(t)}}class sK{constructor(){this._models=Object.create(null)}bindToServer(e){e.setChannel(sO,this)}getModel(e){return this._models[e]}getModels(){let e=[];return Object.keys(this._models).forEach(t=>e.push(this._models[t])),e}$acceptNewModel(e){this._models[e.url]=new sW(e6.URI.parse(e.url),e.lines,e.EOL,e.versionId)}$acceptModelChanged(e,t){this._models[e]&&this._models[e].onEvents(t)}$acceptRemovedModel(e){this._models[e]&&delete this._models[e]}}class sW extends sN{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}findMatches(e){let t=[];for(let i=0;i<this._lines.length;i++){let o=this._lines[i],r=this.offsetAt(new n7.Position(i+1,1));for(let i of o.matchAll(e))(i.index||0===i.index)&&(i.index=i.index+r),t.push(i)}return t}getLinesContent(){return this._lines.slice(0)}getLineCount(){return this._lines.length}getLineContent(e){return this._lines[e-1]}getWordAtPosition(e,t){let i=(0,sy.getWordAtText)(e.column,(0,sy.ensureValidWordDefinition)(t),this._lines[e.lineNumber-1],0);return i?new n8.Range(e.lineNumber,i.startColumn,e.lineNumber,i.endColumn):null}getWordUntilPosition(e,t){let i=this.getWordAtPosition(e,t);return i?{word:this._lines[e.lineNumber-1].substring(i.startColumn-1,e.column-1),startColumn:i.startColumn,endColumn:e.column}:{word:"",startColumn:e.column,endColumn:e.column}}words(e){let t=this._lines,i=this._wordenize.bind(this),o=0,r="",n=0,s=[];return{*[Symbol.iterator](){for(;;)if(n<s.length){let e=r.substring(s[n].start,s[n].end);n+=1,yield e}else if(o<t.length)s=i(r=t[o],e),n=0,o+=1;else break}}}getLineWords(e,t){let i=this._lines[e-1],o=this._wordenize(i,t),r=[];for(let e of o)r.push({word:i.substring(e.start,e.end),startColumn:e.start+1,endColumn:e.end+1});return r}_wordenize(e,t){let i,o=[];for(t.lastIndex=0;(i=t.exec(e))&&0!==i[0].length;)o.push({start:i.index,end:i.index+i[0].length});return o}getValueInRange(e){if((e=this._validateRange(e)).startLineNumber===e.endLineNumber)return this._lines[e.startLineNumber-1].substring(e.startColumn-1,e.endColumn-1);let t=this._eol,i=e.startLineNumber-1,o=e.endLineNumber-1,r=[];r.push(this._lines[i].substring(e.startColumn-1));for(let e=i+1;e<o;e++)r.push(this._lines[e]);return r.push(this._lines[o].substring(0,e.endColumn-1)),r.join(t)}offsetAt(e){return e=this._validatePosition(e),this._ensureLineStarts(),this._lineStarts.getPrefixSum(e.lineNumber-2)+(e.column-1)}positionAt(e){e=Math.max(0,e=Math.floor(e)),this._ensureLineStarts();let t=this._lineStarts.getIndexOf(e),i=this._lines[t.index].length;return{lineNumber:1+t.index,column:1+Math.min(t.remainder,i)}}_validateRange(e){let t=this._validatePosition({lineNumber:e.startLineNumber,column:e.startColumn}),i=this._validatePosition({lineNumber:e.endLineNumber,column:e.endColumn});return t.lineNumber!==e.startLineNumber||t.column!==e.startColumn||i.lineNumber!==e.endLineNumber||i.column!==e.endColumn?{startLineNumber:t.lineNumber,startColumn:t.column,endLineNumber:i.lineNumber,endColumn:i.column}:e}_validatePosition(e){if(!n7.Position.isIPosition(e))throw Error("bad position");let{lineNumber:t,column:i}=e,o=!1;if(t<1)t=1,i=1,o=!0;else if(t>this._lines.length)t=this._lines.length,i=this._lines[t-1].length+1,o=!0;else{let e=this._lines[t-1].length+1;i<1?(i=1,o=!0):i>e&&(i=e,o=!0)}return o?{lineNumber:t,column:i}:e}}var sz=e.i(371095);e.i(469421);class sV{constructor(e=null){this._foreignModule=e,this._requestHandlerBrand=void 0,this._workerTextModelSyncServer=new sK}dispose(){}async $ping(){return"pong"}_getModel(e){return this._workerTextModelSyncServer.getModel(e)}getModels(){return this._workerTextModelSyncServer.getModels()}$acceptNewModel(e){this._workerTextModelSyncServer.$acceptNewModel(e)}$acceptModelChanged(e,t){this._workerTextModelSyncServer.$acceptModelChanged(e,t)}$acceptRemovedModel(e){this._workerTextModelSyncServer.$acceptRemovedModel(e)}async $computeUnicodeHighlights(e,t,i){let o=this._getModel(e);return o?sf.computeUnicodeHighlights(o,t,i):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}}async $findSectionHeaders(e,t){let i=this._getModel(e);if(!i)return[];let o=[];if(t.findRegionSectionHeaders&&t.foldingRules?.markers){let e=function(e,t){let i=[],o=e.getLineCount();for(let r=1;r<=o;r++){let o=e.getLineContent(r),n=o.match(t.foldingRules.markers.start);if(n){let e={startLineNumber:r,startColumn:n[0].length+1,endLineNumber:r,endColumn:o.length+1};if(e.endColumn>e.startColumn){let t={range:e,...function(e){let t=(e=e.trim()).startsWith("-");return{text:e=e.replace(sP,""),hasSeparatorLine:t}}(o.substring(n[0].length)),shouldBeInComments:!1};(t.text||t.hasSeparatorLine)&&i.push(t)}}}return i}(i,t);o=o.concat(e)}if(t.findMarkSectionHeaders){let e=function(e,t){let i=[],o=e.getLineCount();if(!t.markSectionHeaderRegex||""===t.markSectionHeaderRegex.trim())return i;let r=(0,sg.isMultilineRegexSource)(t.markSectionHeaderRegex),n=RegExp(t.markSectionHeaderRegex,`gdm${r?"s":""}`);if((0,sm.regExpLeadsToEndlessLoop)(n))return i;for(let t=1;t<=o;t+=95){let r,s=Math.min(t+100-1,o),a=[];for(let i=t;i<=s;i++)a.push(e.getLineContent(i));let d=a.join("\n");for(n.lastIndex=0;null!==(r=n.exec(d));){let e=d.substring(0,r.index),o=t+(e.match(/\n/g)||[]).length,s=r[0].split("\n"),a=s.length,c=o+a-1,l=e.lastIndexOf("\n")+1,u=r.index-l+1,h=s[s.length-1],p=1===a?u+r[0].length:h.length+1,g={range:{startLineNumber:o,startColumn:u,endLineNumber:c,endColumn:p},text:(r.groups??{}).label??"",hasSeparatorLine:((r.groups??{}).separator??"")!=="",shouldBeInComments:!0};(g.text||g.hasSeparatorLine)&&(0===i.length||i[i.length-1].range.endLineNumber<g.range.startLineNumber)&&i.push(g),n.lastIndex=r.index+r[0].length}}return i}(i,t);o=o.concat(e)}return o}async $computeDiff(e,t,i,o){let r=this._getModel(e),n=this._getModel(t);return r&&n?sV.computeDiff(r,n,i,o):null}static computeDiff(e,t,i,o){let r="advanced"===o?sI.linesDiffComputers.getDefault():sI.linesDiffComputers.getLegacy(),n=e.getLinesContent(),s=t.getLinesContent(),a=r.computeDiff(n,s,i);function d(e){return e.map(e=>[e.original.startLineNumber,e.original.endLineNumberExclusive,e.modified.startLineNumber,e.modified.endLineNumberExclusive,e.innerChanges?.map(e=>[e.originalRange.startLineNumber,e.originalRange.startColumn,e.originalRange.endLineNumber,e.originalRange.endColumn,e.modifiedRange.startLineNumber,e.modifiedRange.startColumn,e.modifiedRange.endLineNumber,e.modifiedRange.endColumn])])}return{identical:!(a.changes.length>0)&&this._modelsAreIdentical(e,t),quitEarly:a.hitTimeout,changes:d(a.changes),moves:a.moves.map(e=>[e.lineRangeMapping.original.startLineNumber,e.lineRangeMapping.original.endLineNumberExclusive,e.lineRangeMapping.modified.startLineNumber,e.lineRangeMapping.modified.endLineNumberExclusive,d(e.changes)])}}static _modelsAreIdentical(e,t){let i=e.getLineCount();if(i!==t.getLineCount())return!1;for(let o=1;o<=i;o++)if(e.getLineContent(o)!==t.getLineContent(o))return!1;return!0}async $computeDirtyDiff(e,t,i){let o=this._getModel(e),r=this._getModel(t);if(!o||!r)return null;let n=o.getLinesContent(),s=r.getLinesContent();return new sS.DiffComputer(n,s,{shouldComputeCharChanges:!1,shouldPostProcessCharChanges:!1,shouldIgnoreTrimWhitespace:i,shouldMakePrettyDiff:!0,maxComputationTime:1e3}).computeDiff().changes}$computeStringDiff(e,t,i,o){var r,n,s;let a,d,c,l,u,h,p;return(r=e,n=t,s=i,a="advanced"===o?sI.linesDiffComputers.getDefault():sI.linesDiffComputers.getLegacy(),c=(d=new sz.StringText(r)).getLines(),u=(l=new sz.StringText(n)).getLines(),h=a.computeDiff(c,u,{ignoreTrimWhitespace:!1,maxComputationTimeMs:s.maxComputationTimeMs,computeMoves:!1,extendToSubwords:!1}),p=sb.DetailedLineRangeMapping.toTextEdit(h.changes,l),d.getTransformer().getStringEdit(p)).toJson()}static{this._diffLimit=1e5}async $computeMoreMinimalEdits(e,t,i){let o,r=this._getModel(e);if(!r)return t;let n=[];t=t.slice(0).sort((e,t)=>e.range&&t.range?n8.Range.compareRangesUsingStarts(e.range,t.range):!e.range-!t.range);let s=0;for(let e=1;e<t.length;e++)n8.Range.getEndPosition(t[s].range).equals(n8.Range.getStartPosition(t[e].range))?(t[s].range=n8.Range.fromPositions(n8.Range.getStartPosition(t[s].range),n8.Range.getEndPosition(t[e].range)),t[s].text+=t[e].text):t[++s]=t[e];for(let{range:e,text:a,eol:d}of(t.length=s+1,t)){if("number"==typeof d&&(o=d),n8.Range.isEmpty(e)&&!a)continue;let t=r.getValueInRange(e);if(t===(a=a.replace(/\r\n|\n|\r/g,r.eol)))continue;if(Math.max(a.length,t.length)>sV._diffLimit){n.push({range:e,text:a});continue}let s=(0,n6.stringDiff)(t,a,i),c=r.offsetAt(n8.Range.lift(e).getStartPosition());for(let e of s){let t=r.positionAt(c+e.originalStart),i=r.positionAt(c+e.originalStart+e.originalLength),o={text:a.substr(e.modifiedStart,e.modifiedLength),range:{startLineNumber:t.lineNumber,startColumn:t.column,endLineNumber:i.lineNumber,endColumn:i.column}};r.getValueInRange(o.range)!==o.text&&n.push(o)}}return"number"==typeof o&&n.push({eol:o,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),n}$computeHumanReadableDiff(e,t,i){let o,r=this._getModel(e);if(!r)return t;let n=[];for(let{range:e,text:a,eol:d}of t=t.slice(0).sort((e,t)=>e.range&&t.range?n8.Range.compareRangesUsingStarts(e.range,t.range):!e.range-!t.range)){if("number"==typeof d&&(o=d),n8.Range.isEmpty(e)&&!a)continue;let t=r.getValueInRange(e);if(t===(a=a.replace(/\r\n|\n|\r/g,r.eol)))continue;if(Math.max(a.length,t.length)>sV._diffLimit){n.push({range:e,text:a});continue}let c=t.split(/\r\n|\n|\r/),l=a.split(/\r\n|\n|\r/),u=sI.linesDiffComputers.getDefault().computeDiff(c,l,i),h=n8.Range.lift(e).getStartPosition();function s(e,t){return new n7.Position(e.lineNumber+t.lineNumber-1,1===t.lineNumber?e.column+t.column-1:t.column)}for(let e of u.changes)if(e.innerChanges)for(let t of e.innerChanges)n.push({range:n8.Range.fromPositions(s(h,t.originalRange.getStartPosition()),s(h,t.originalRange.getEndPosition())),text:(function(e,t){let i=[];for(let o=t.startLineNumber;o<=t.endLineNumber;o++){let r=e[o-1];o===t.startLineNumber&&o===t.endLineNumber?i.push(r.substring(t.startColumn-1,t.endColumn-1)):o===t.startLineNumber?i.push(r.substring(t.startColumn-1)):o===t.endLineNumber?i.push(r.substring(0,t.endColumn-1)):i.push(r)}return i})(l,t.modifiedRange).join(r.eol)});else throw new sE.BugIndicatingError("The experimental diff algorithm always produces inner changes")}return"number"==typeof o&&n.push({eol:o,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),n}async $computeLinks(e){let t=this._getModel(e);return t?ss(t):null}async $computeDefaultDocumentColors(e){let t=this._getModel(e);return t?t&&"function"==typeof t.getValue&&"function"==typeof t.positionAt?function(e){let t=[],i=sM(e,/\b(rgb|rgba|hsl|hsla)(\([0-9\s,.\%\/]*\))|^(#)([A-Fa-f0-9]{3})\b|^(#)([A-Fa-f0-9]{4})\b|^(#)([A-Fa-f0-9]{6})\b|^(#)([A-Fa-f0-9]{8})\b|(?<=['"\s])(#)([A-Fa-f0-9]{3})\b|(?<=['"\s])(#)([A-Fa-f0-9]{4})\b|(?<=['"\s])(#)([A-Fa-f0-9]{6})\b|(?<=['"\s])(#)([A-Fa-f0-9]{8})\b/gm);if(i.length>0)for(let o of i){let i,r=o.filter(e=>void 0!==e),n=r[1],s=r[2];if(s){if("rgb"===n){let t=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*[\s,]\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*[\s,]\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*\)$/gm;i=sk(sx(e,o),sM(s,t),!1)}else if("rgba"===n){let t=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*[\s,]\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*[\s,]\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*(?:[\s,]|[\s]*\/)\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;i=sk(sx(e,o),sM(s,t),!0)}else if("hsl"===n){let t=/^\(\s*((?:360(?:\.0+)?|(?:36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])(?:\.\d+)?))\s*[\s,]\s*(100(?:\.0+)?|\d{1,2}[.]\d*|\d{1,2})%\s*[\s,]\s*(100(?:\.0+)?|\d{1,2}[.]\d*|\d{1,2})%\s*\)$/gm;i=sT(sx(e,o),sM(s,t),!1)}else if("hsla"===n){let t=/^\(\s*((?:360(?:\.0+)?|(?:36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])(?:\.\d+)?))\s*[\s,]\s*(100(?:\.0+)?|\d{1,2}[.]\d*|\d{1,2})%\s*[\s,]\s*(100(?:\.0+)?|\d{1,2}[.]\d*|\d{1,2})%\s*(?:[\s,]|[\s]*\/)\s*(0[.][0-9]+|[.][0-9]+|[01][.]0*|[01])\s*\)$/gm;i=sT(sx(e,o),sM(s,t),!0)}else"#"===n&&(i=function(e,t){if(!e)return;let i=sw.Color.Format.CSS.parseHex(t);if(i)return{range:e,color:sA(i.rgba.r,i.rgba.g,i.rgba.b,i.rgba.a)}}(sx(e,o),n+s));i&&t.push(i)}}return t}(t):[]:null}static{this._suggestionsLimit=1e4}async $textualSuggest(e,t,i,o){let r=new sp.StopWatch,n=new RegExp(i,o),s=new Set;t:for(let i of e){let e=this._getModel(i);if(e){for(let i of e.words(n))if(i!==t&&isNaN(Number(i))&&(s.add(i),s.size>sV._suggestionsLimit))break t}}return{words:Array.from(s),duration:r.elapsed()}}async $computeWordRanges(e,t,i,o){let r=this._getModel(e);if(!r)return Object.create(null);let n=new RegExp(i,o),s=Object.create(null);for(let e=t.startLineNumber;e<t.endLineNumber;e++)for(let t of r.getLineWords(e,n)){if(!isNaN(Number(t.word)))continue;let i=s[t.word];i||(i=[],s[t.word]=i),i.push({startLineNumber:e,startColumn:t.startColumn,endLineNumber:e,endColumn:t.endColumn})}return s}async $navigateValueSet(e,t,i,o,r){let n=this._getModel(e);if(!n)return null;let s=new RegExp(o,r);t.startColumn===t.endColumn&&(t={startLineNumber:t.startLineNumber,startColumn:t.startColumn,endLineNumber:t.endLineNumber,endColumn:t.endColumn+1});let a=n.getValueInRange(t),d=n.getWordAtPosition({lineNumber:t.startLineNumber,column:t.startColumn},s);if(!d)return null;let c=n.getValueInRange(d);return sa.INSTANCE.navigateValueSet(t,a,d,c,i)}$fmr(e,t){if(!this._foreignModule||"function"!=typeof this._foreignModule[e])return Promise.reject(Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._foreignModule[e].apply(this._foreignModule,t))}catch(e){return Promise.reject(e)}}}"function"==typeof importScripts&&(globalThis.monaco=sh());var sB=e.i(554250),sU=e.i(454514),sH=e.i(690093),sq=e.i(194558),sG=e.i(850887);class s${static{this.CHANNEL_NAME="editorWorkerHost"}static getChannel(e){return e.getChannel(s$.CHANNEL_NAME)}static setChannel(e,t){e.setChannel(s$.CHANNEL_NAME,t)}}var sQ=e.i(443665),sj=e.i(103346);function sY(e,t){let i=e.getModel(t);return!(!i||i.isTooLargeForSyncing())}let sX=class extends n0.Disposable{constructor(e,t,i,o,r,n){super(),this._languageConfigurationService=o,this._webWorkerService=n,this._modelService=e;const s=new n2.WebWorkerDescriptor({label:"editorWorkerService"});this._workerManager=this._register(new sJ(s,this._modelService,this._webWorkerService)),this._logService=i,this._register(r.linkProvider.register({language:"*",hasAccessToAllModels:!0},{provideLinks:async(e,t)=>{if(!sY(this._modelService,e.uri))return Promise.resolve({links:[]});let i=await this._workerWithResources([e.uri]),o=await i.$computeLinks(e.uri.toString());return o&&{links:o}}})),this._register(r.completionProvider.register("*",new sZ(this._workerManager,t,this._modelService,this._languageConfigurationService,this._logService,r)))}dispose(){super.dispose()}canComputeUnicodeHighlights(e){return sY(this._modelService,e)}async computedUnicodeHighlights(e,t,i){return(await this._workerWithResources([e])).$computeUnicodeHighlights(e.toString(),t,i)}async computeDiff(e,t,i,o){let r=await this._workerWithResources([e,t],!0),n=await r.$computeDiff(e.toString(),t.toString(),i,o);if(!n)return null;return{identical:n.identical,quitEarly:n.quitEarly,changes:s(n.changes),moves:n.moves.map(e=>new sH.MovedText(new sb.LineRangeMapping(new sq.LineRange(e[0],e[1]),new sq.LineRange(e[2],e[3])),s(e[4])))};function s(e){return e.map(e=>new sb.DetailedLineRangeMapping(new sq.LineRange(e[0],e[1]),new sq.LineRange(e[2],e[3]),e[4]?.map(e=>new sb.RangeMapping(new n8.Range(e[0],e[1],e[2],e[3]),new n8.Range(e[4],e[5],e[6],e[7])))))}}canComputeDirtyDiff(e,t){return sY(this._modelService,e)&&sY(this._modelService,t)}async computeDirtyDiff(e,t,i){return(await this._workerWithResources([e,t])).$computeDirtyDiff(e.toString(),t.toString(),i)}async computeMoreMinimalEdits(e,t,i=!1){if(!(0,sU.isNonEmptyArray)(t))return Promise.resolve(void 0);{if(!sY(this._modelService,e))return Promise.resolve(t);let o=sp.StopWatch.create(),r=this._workerWithResources([e]).then(o=>o.$computeMoreMinimalEdits(e.toString(),t,i));return r.finally(()=>this._logService.trace("FORMAT#computeMoreMinimalEdits",e.toString(!0),o.elapsed())),Promise.race([r,(0,nl.timeout)(1e3).then(()=>t)])}}computeHumanReadableDiff(e,t){if(!(0,sU.isNonEmptyArray)(t))return Promise.resolve(void 0);{if(!sY(this._modelService,e))return Promise.resolve(t);let i=sp.StopWatch.create(),o={ignoreTrimWhitespace:!1,maxComputationTimeMs:1e3,computeMoves:!1},r=this._workerWithResources([e]).then(i=>i.$computeHumanReadableDiff(e.toString(),t,o)).catch(i=>((0,sE.onUnexpectedError)(i),this.computeMoreMinimalEdits(e,t,!0)));return r.finally(()=>this._logService.trace("FORMAT#computeHumanReadableDiff",e.toString(!0),i.elapsed())),r}}async computeStringEditFromDiff(e,t,i,o){try{let r=await this._workerWithResources([]),n=await r.$computeStringDiff(e,t,i,o);return sQ.StringEdit.fromJson(n)}catch(i){return(0,sE.onUnexpectedError)(i),sQ.StringEdit.replace(sj.OffsetRange.ofLength(e.length),t)}}canNavigateValueSet(e){return sY(this._modelService,e)}async navigateValueSet(e,t,i){let o=this._modelService.getModel(e);if(!o)return null;let r=this._languageConfigurationService.getLanguageConfiguration(o.getLanguageId()).getWordDefinition(),n=r.source,s=r.flags;return(await this._workerWithResources([e])).$navigateValueSet(e.toString(),t,i,n,s)}canComputeWordRanges(e){return sY(this._modelService,e)}async computeWordRanges(e,t){let i=this._modelService.getModel(e);if(!i)return Promise.resolve(null);let o=this._languageConfigurationService.getLanguageConfiguration(i.getLanguageId()).getWordDefinition(),r=o.source,n=o.flags;return(await this._workerWithResources([e])).$computeWordRanges(e.toString(),t,r,n)}async findSectionHeaders(e,t){return(await this._workerWithResources([e])).$findSectionHeaders(e.toString(),t)}async computeDefaultDocumentColors(e){return(await this._workerWithResources([e])).$computeDefaultDocumentColors(e.toString())}async _workerWithResources(e,t=!1){let i=await this._workerManager.withWorker();return await i.workerWithSyncedResources(e,t)}};sX=(0,eJ.__decorate)([(0,eJ.__param)(0,td.IModelService),(0,eJ.__param)(1,sB.ITextResourceConfigurationService),(0,eJ.__param)(2,t8.ILogService),(0,eJ.__param)(3,to.ILanguageConfigurationService),(0,eJ.__param)(4,ts.ILanguageFeaturesService),(0,eJ.__param)(5,n3.IWebWorkerService)],sX);class sZ{constructor(e,t,i,o,r,n){this.languageConfigurationService=o,this.logService=r,this.languageFeaturesService=n,this._debugDisplayName="wordbasedCompletions",this._workerManager=e,this._configurationService=t,this._modelService=i}async provideCompletionItems(e,t){let i=this._configurationService.getValue(e.uri,t,"editor");if("off"===i.wordBasedSuggestions||"offWithInlineSuggestions"===i.wordBasedSuggestions&&this.languageFeaturesService.inlineCompletionsProvider.has(e))return;let o=[];if("currentDocument"===i.wordBasedSuggestions)sY(this._modelService,e.uri)&&o.push(e.uri);else for(let t of this._modelService.getModels())sY(this._modelService,t.uri)&&(t===e?o.unshift(t.uri):("allDocuments"===i.wordBasedSuggestions||t.getLanguageId()===e.getLanguageId())&&o.push(t.uri));if(0===o.length)return;let r=this.languageConfigurationService.getLanguageConfiguration(e.getLanguageId()).getWordDefinition(),n=e.getWordAtPosition(t),s=n?new n8.Range(t.lineNumber,n.startColumn,t.lineNumber,n.endColumn):n8.Range.fromPositions(t),a=s.setEndPosition(t.lineNumber,t.column);this.logService.trace("[WordBasedCompletionItemProvider]",`word: "${n?.word||""}", wordDef: "${r}", replace: [${s.toString()}], insert: [${a.toString()}]`);let d=await this._workerManager.withWorker(),c=await d.textualSuggest(o,n?.word,r);if(c)return{duration:c.duration,suggestions:c.words.map(e=>({kind:n5.CompletionItemKind.Text,label:e,insertText:e,range:{insert:a,replace:s}}))}}}let sJ=class extends n0.Disposable{constructor(e,t,i){super(),this._workerDescriptor=e,this._modelService=t,this._webWorkerService=i,this._editorWorkerClient=null,this._lastWorkerUsedTime=new Date().getTime(),this._register(new sG.WindowIntervalTimer).cancelAndSet(()=>this._checkStopIdleWorker(),Math.round(15e4),e0.mainWindow),this._register(this._modelService.onModelRemoved(e=>this._checkStopEmptyWorker()))}dispose(){this._editorWorkerClient&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null),super.dispose()}_checkStopEmptyWorker(){this._editorWorkerClient&&0===this._modelService.getModels().length&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)}_checkStopIdleWorker(){!this._editorWorkerClient||new Date().getTime()-this._lastWorkerUsedTime>3e5&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)}withWorker(){return this._lastWorkerUsedTime=new Date().getTime(),this._editorWorkerClient||(this._editorWorkerClient=new s1(this._workerDescriptor,!1,this._modelService,this._webWorkerService)),Promise.resolve(this._editorWorkerClient)}};sJ=(0,eJ.__decorate)([(0,eJ.__param)(1,td.IModelService),(0,eJ.__param)(2,n3.IWebWorkerService)],sJ);class s0{constructor(e){this._instance=e,this.proxy=this._instance}dispose(){this._instance.dispose()}setChannel(e,t){throw Error("Not supported")}getChannel(e){throw Error("Not supported")}}let s1=class extends n0.Disposable{constructor(e,t,i,o){super(),this._workerDescriptorOrWorker=e,this._disposed=!1,this._modelService=i,this._webWorkerService=o,this._keepIdleModels=t,this._worker=null,this._modelManager=null}fhr(e,t){throw Error("Not implemented!")}_getOrCreateWorker(){if(!this._worker)try{this._worker=this._register(this._webWorkerService.createWorkerClient(this._workerDescriptorOrWorker)),s$.setChannel(this._worker,this._createEditorWorkerHost())}catch(e){(0,n1.logOnceWebWorkerWarning)(e),this._worker=this._createFallbackLocalWorker()}return this._worker}async _getProxy(){try{let e=this._getOrCreateWorker().proxy;return await e.$ping(),e}catch(e){return(0,n1.logOnceWebWorkerWarning)(e),this._worker=this._createFallbackLocalWorker(),this._worker.proxy}}_createFallbackLocalWorker(){return new s0(new sV(null))}_createEditorWorkerHost(){return{$fhr:(e,t)=>this.fhr(e,t)}}_getOrCreateModelManager(e){return this._modelManager||(this._modelManager=this._register(new sF(e,this._modelService,this._keepIdleModels))),this._modelManager}async workerWithSyncedResources(e,t=!1){if(this._disposed)return Promise.reject((0,sE.canceled)());let i=await this._getProxy();return this._getOrCreateModelManager(i).ensureSyncedResources(e,t),i}async textualSuggest(e,t,i){let o=await this.workerWithSyncedResources(e),r=i.source,n=i.flags;return o.$textualSuggest(e.map(e=>e.toString()),t,r,n)}dispose(){super.dispose(),this._disposed=!0}};s1=(0,eJ.__decorate)([(0,eJ.__param)(2,td.IModelService),(0,eJ.__param)(3,n3.IWebWorkerService)],s1),e.s(["EditorWorkerClient",0,s1,"EditorWorkerService",0,sX],347470);var s2=e.i(107707),s3=e.i(912220),s8=e.i(425761),s5=e.i(320945);function s6(e,t,i){function o(){throw Error(`Unsupported: ${e.constructor.name}.${t} is not supported. You are using a feature without registering the corresponding service override.`)}null!=i?null!=i.value?i.value=o:null!=i.get&&(i.get=o):Object.defineProperty(e,t,{get(){o()},set(){},configurable:!0,enumerable:!0})}(0,t0.registerSingleton)(to.ILanguageConfigurationService,ti.LanguageConfigurationService,t0.InstantiationType.Delayed),(0,t0.registerSingleton)(tc.ISemanticTokensStylingService,tl.SemanticTokensStylingService,t0.InstantiationType.Delayed),(0,t0.registerSingleton)(tn.ILanguageFeatureDebounceService,tr.LanguageFeatureDebounceService,t0.InstantiationType.Delayed),(0,t0.registerSingleton)(ts.ILanguageFeaturesService,ta.LanguageFeaturesService,t0.InstantiationType.Delayed),(0,t0.registerSingleton)(e7.ICodeEditorService,rC.CodeEditorService,t0.InstantiationType.Delayed),(0,t0.registerSingleton)(tt.IDiffProviderFactoryService,te.WorkerBasedDiffProviderFactoryService,t0.InstantiationType.Delayed),(0,t0.registerSingleton)(tI.ISymbolNavigationService,tb.SymbolNavigationService,t0.InstantiationType.Delayed),(0,t0.registerSingleton)(t_.IEditorCancellationTokens,tf.EditorCancellationTokens,t0.InstantiationType.Delayed),(0,t0.registerSingleton)(tA.IPeekViewService,tD.PeekViewService,t0.InstantiationType.Delayed),(0,t0.registerSingleton)(ty.IOutlineModelService,tv.OutlineModelService,t0.InstantiationType.Delayed),(0,t0.registerSingleton)(tS.IMarkerNavigationService,tC.MarkerNavigationService,t0.InstantiationType.Delayed),(0,t0.registerSingleton)(tk.ISuggestMemoryService,tx.SuggestMemoryService,t0.InstantiationType.Delayed),(0,t0.registerSingleton)(tm.ICodeLensCache,tg.CodeLensCache,t0.InstantiationType.Delayed),(0,t0.registerSingleton)(tZ.IHoverService,tJ.HoverService,t0.InstantiationType.Delayed),(0,t0.registerSingleton)(tw.IInlayHintsCache,tE.InlayHintsCache,t0.InstantiationType.Delayed),(0,t0.registerSingleton)(tR.IActionWidgetService,tP.ActionWidgetService,t0.InstantiationType.Delayed),(0,t0.registerSingleton)(ih.IUndoRedoService,ip.UndoRedoService,t0.InstantiationType.Delayed),(0,t0.registerSingleton)(e4.IInlineCompletionsService,e9.InlineCompletionsService,t0.InstantiationType.Delayed),(0,t0.registerSingleton)(s2.IEditorWorkerService,sX,t0.InstantiationType.Eager),(0,t0.registerSingleton)(t8.ILoggerService,class extends t3.AbstractLoggerService{constructor(){super(t3.LogLevel.Info,e6.URI.file("logs.log"))}doCreateLogger(){return new t3.NullLogger}},t0.InstantiationType.Eager);class s7{constructor(){this._serviceBrand=void 0,this.getVisibleTextEditorControls=()=>[],this.onWillOpenEditor=e1.Event.None,this.onDidActiveEditorChange=e1.Event.None,this.onDidVisibleEditorsChange=e1.Event.None,this.onDidEditorsChange=e1.Event.None,this.onDidCloseEditor=e1.Event.None,this.activeEditorPane=void 0,this.activeEditor=void 0,this.activeTextEditorLanguageId=void 0,this.visibleEditorPanes=[],this.visibleEditors=[],this.visibleTextEditorControls=[],this.editors=[],this.count=0,this.getEditors=()=>[],this.openEditor=s8.unsupported,this.openEditors=s8.unsupported,this.replaceEditors=async()=>{},this.isOpened=()=>!1,this.isVisible=()=>!1,this.closeEditor=async()=>{},this.closeEditors=async()=>{},this.findEditors=()=>[],this.save=async()=>({success:!1,editors:[]}),this.saveAll=async()=>({success:!1,editors:[]}),this.revert=async()=>!1,this.revertAll=async()=>!1,this.createScoped=()=>this}get activeTextEditorControl(){return tT.StandaloneServices.get(e7.ICodeEditorService).getFocusedCodeEditor()??void 0}}(0,eJ.__decorate)([s6],s7.prototype,"openEditor",void 0),(0,eJ.__decorate)([s6],s7.prototype,"openEditors",void 0),(0,t0.registerSingleton)(rD.IEditorService,s7,t0.InstantiationType.Eager);class s9{constructor(){this._serviceBrand=void 0,this.getPaneCompositeIds=()=>[],this.onDidPaneCompositeOpen=e1.Event.None,this.onDidPaneCompositeClose=e1.Event.None,this.openPaneComposite=async()=>void 0,this.getActivePaneComposite=()=>void 0,this.getPaneComposite=()=>void 0,this.getPaneComposites=()=>[],this.getPinnedPaneCompositeIds=()=>[],this.getVisiblePaneCompositeIds=()=>[],this.getProgressIndicator=()=>void 0,this.hideActivePaneComposite=()=>{},this.getLastActivePaneCompositeId=s8.unsupported}}(0,eJ.__decorate)([s6],s9.prototype,"getLastActivePaneCompositeId",void 0),(0,t0.registerSingleton)(rJ.IPaneCompositePartService,s9,t0.InstantiationType.Eager),(0,t0.registerSingleton)(iv.IUriIdentityService,iy.UriIdentityService,t0.InstantiationType.Delayed);class s4{constructor(){this.resolveDecoding=s8.unsupported,this.resolveEncoding=s8.unsupported,this.validateDetectedEncoding=s8.unsupported,this.getEncoding=s8.unsupported,this.isDirty=s8.unsupported,this.save=s8.unsupported,this.saveAs=s8.unsupported,this.revert=s8.unsupported,this.read=s8.unsupported,this.readStream=s8.unsupported,this.write=s8.unsupported,this.create=s8.unsupported,this.getEncodedReadable=s8.unsupported,this.getDecodedStream=s8.unsupported,this.dispose=s8.unsupported}get files(){return(0,s8.unsupported)()}get untitled(){return(0,s8.unsupported)()}get encoding(){return(0,s8.unsupported)()}}(0,eJ.__decorate)([s6],s4.prototype,"resolveDecoding",void 0),(0,eJ.__decorate)([s6],s4.prototype,"resolveEncoding",void 0),(0,eJ.__decorate)([s6],s4.prototype,"validateDetectedEncoding",void 0),(0,eJ.__decorate)([s6],s4.prototype,"getEncoding",void 0),(0,eJ.__decorate)([s6],s4.prototype,"files",null),(0,eJ.__decorate)([s6],s4.prototype,"untitled",null),(0,eJ.__decorate)([s6],s4.prototype,"encoding",null),(0,eJ.__decorate)([s6],s4.prototype,"isDirty",void 0),(0,eJ.__decorate)([s6],s4.prototype,"save",void 0),(0,eJ.__decorate)([s6],s4.prototype,"saveAs",void 0),(0,eJ.__decorate)([s6],s4.prototype,"revert",void 0),(0,eJ.__decorate)([s6],s4.prototype,"read",void 0),(0,eJ.__decorate)([s6],s4.prototype,"readStream",void 0),(0,eJ.__decorate)([s6],s4.prototype,"write",void 0),(0,eJ.__decorate)([s6],s4.prototype,"create",void 0),(0,eJ.__decorate)([s6],s4.prototype,"getEncodedReadable",void 0),(0,eJ.__decorate)([s6],s4.prototype,"getDecodedStream",void 0),(0,eJ.__decorate)([s6],s4.prototype,"dispose",void 0),(0,t0.registerSingleton)(ne.ITextFileService,s4,t0.InstantiationType.Eager);class ae{constructor(){this._serviceBrand=void 0,this.onDidChangeFileSystemProviderRegistrations=e1.Event.None,this.onDidChangeFileSystemProviderCapabilities=e1.Event.None,this.onWillActivateFileSystemProvider=e1.Event.None,this.registerProvider=s8.unsupported,this.getProvider=function(){},this.activateProvider=async()=>{},this.canHandleResource=async()=>!1,this.hasProvider=()=>!1,this.hasCapability=()=>!1,this.listCapabilities=()=>[],this.onDidFilesChange=e1.Event.None,this.onDidRunOperation=e1.Event.None,this.resolve=s8.unsupported,this.resolveAll=s8.unsupported,this.stat=s8.unsupported,this.exists=async()=>!1,this.readFile=s8.unsupported,this.readFileStream=s8.unsupported,this.writeFile=s8.unsupported,this.move=s8.unsupported,this.canMove=s8.unsupported,this.copy=s8.unsupported,this.canCopy=s8.unsupported,this.cloneFile=s8.unsupported,this.createFile=s8.unsupported,this.canCreateFile=s8.unsupported,this.createFolder=s8.unsupported,this.del=s8.unsupported,this.canDelete=s8.unsupported,this.onDidWatchError=e1.Event.None,this.watch=s8.unsupported,this.createWatcher=s8.unsupported,this.realpath=async()=>{},this.dispose=()=>{}}}(0,eJ.__decorate)([s6],ae.prototype,"registerProvider",void 0),(0,eJ.__decorate)([s6],ae.prototype,"resolve",void 0),(0,eJ.__decorate)([s6],ae.prototype,"resolveAll",void 0),(0,eJ.__decorate)([s6],ae.prototype,"stat",void 0),(0,eJ.__decorate)([s6],ae.prototype,"readFile",void 0),(0,eJ.__decorate)([s6],ae.prototype,"readFileStream",void 0),(0,eJ.__decorate)([s6],ae.prototype,"writeFile",void 0),(0,eJ.__decorate)([s6],ae.prototype,"move",void 0),(0,eJ.__decorate)([s6],ae.prototype,"canMove",void 0),(0,eJ.__decorate)([s6],ae.prototype,"copy",void 0),(0,eJ.__decorate)([s6],ae.prototype,"canCopy",void 0),(0,eJ.__decorate)([s6],ae.prototype,"cloneFile",void 0),(0,eJ.__decorate)([s6],ae.prototype,"createFile",void 0),(0,eJ.__decorate)([s6],ae.prototype,"canCreateFile",void 0),(0,eJ.__decorate)([s6],ae.prototype,"createFolder",void 0),(0,eJ.__decorate)([s6],ae.prototype,"del",void 0),(0,eJ.__decorate)([s6],ae.prototype,"canDelete",void 0),(0,eJ.__decorate)([s6],ae.prototype,"watch",void 0),(0,eJ.__decorate)([s6],ae.prototype,"createWatcher",void 0),(0,t0.registerSingleton)(tX.IFileService,ae,t0.InstantiationType.Eager);class at{constructor(){this.selectedEditors=[],this.isSelected=()=>!1,this.setSelection=s8.unsupported,this.isTransient=()=>!1,this.windowId=e0.mainWindow.vscodeWindowId,this.notifyLabelChanged=()=>{},this.createEditorActions=s8.unsupported,this.onDidFocus=e1.Event.None,this.onDidOpenEditorFail=e1.Event.None,this.whenRestored=Promise.resolve(),this.disposed=!1,this.setActive=s8.unsupported,this.notifyIndexChanged=s8.unsupported,this.relayout=s8.unsupported,this.dispose=s8.unsupported,this.toJSON=s8.unsupported,this.minimumWidth=0,this.maximumWidth=1/0,this.minimumHeight=0,this.maximumHeight=1/0,this.onDidChange=e1.Event.None,this.layout=s8.unsupported,this.onDidModelChange=e1.Event.None,this.onWillDispose=e1.Event.None,this.onDidActiveEditorChange=e1.Event.None,this.onWillCloseEditor=e1.Event.None,this.onDidCloseEditor=e1.Event.None,this.onWillMoveEditor=e1.Event.None,this.onWillOpenEditor=e1.Event.None,this.id=0,this.index=0,this.label="main",this.ariaLabel="main",this.activeEditorPane=void 0,this.activeEditor=null,this.previewEditor=null,this.count=0,this.isEmpty=!1,this.isLocked=!1,this.stickyCount=0,this.editors=[],this.getEditors=()=>[],this.findEditors=()=>[],this.getEditorByIndex=()=>void 0,this.getIndexOfEditor=s8.unsupported,this.openEditor=s8.unsupported,this.openEditors=s8.unsupported,this.isPinned=()=>!1,this.isSticky=()=>!1,this.isActive=()=>!1,this.contains=()=>!1,this.moveEditor=s8.unsupported,this.moveEditors=s8.unsupported,this.copyEditor=s8.unsupported,this.copyEditors=s8.unsupported,this.closeEditor=s8.unsupported,this.closeEditors=s8.unsupported,this.closeAllEditors=s8.unsupported,this.replaceEditors=s8.unsupported,this.pinEditor=()=>{},this.stickEditor=()=>{},this.unstickEditor=()=>{},this.lock=()=>{},this.focus=()=>{},this.isFirst=s8.unsupported,this.isLast=s8.unsupported}get groupsView(){return(0,s8.unsupported)()}get titleHeight(){return(0,s8.unsupported)()}get element(){return(0,s8.unsupported)()}get scopedContextKeyService(){return tT.StandaloneServices.get(tN.IContextKeyService)}}(0,eJ.__decorate)([s6],at.prototype,"setSelection",void 0),(0,eJ.__decorate)([s6],at.prototype,"groupsView",null),(0,eJ.__decorate)([s6],at.prototype,"createEditorActions",void 0),(0,eJ.__decorate)([s6],at.prototype,"titleHeight",null),(0,eJ.__decorate)([s6],at.prototype,"setActive",void 0),(0,eJ.__decorate)([s6],at.prototype,"notifyIndexChanged",void 0),(0,eJ.__decorate)([s6],at.prototype,"relayout",void 0),(0,eJ.__decorate)([s6],at.prototype,"dispose",void 0),(0,eJ.__decorate)([s6],at.prototype,"toJSON",void 0),(0,eJ.__decorate)([s6],at.prototype,"element",null),(0,eJ.__decorate)([s6],at.prototype,"layout",void 0),(0,eJ.__decorate)([s6],at.prototype,"getIndexOfEditor",void 0),(0,eJ.__decorate)([s6],at.prototype,"openEditor",void 0),(0,eJ.__decorate)([s6],at.prototype,"openEditors",void 0),(0,eJ.__decorate)([s6],at.prototype,"moveEditor",void 0),(0,eJ.__decorate)([s6],at.prototype,"moveEditors",void 0),(0,eJ.__decorate)([s6],at.prototype,"copyEditor",void 0),(0,eJ.__decorate)([s6],at.prototype,"copyEditors",void 0),(0,eJ.__decorate)([s6],at.prototype,"closeEditor",void 0),(0,eJ.__decorate)([s6],at.prototype,"closeEditors",void 0),(0,eJ.__decorate)([s6],at.prototype,"closeAllEditors",void 0),(0,eJ.__decorate)([s6],at.prototype,"replaceEditors",void 0),(0,eJ.__decorate)([s6],at.prototype,"isFirst",void 0),(0,eJ.__decorate)([s6],at.prototype,"isLast",void 0);let ai=new at;class ao{constructor(){this.onWillDispose=e1.Event.None,this.windowId=e0.mainWindow.vscodeWindowId,this.hasMaximizedGroup=()=>!1,this.onDidLayout=e1.Event.None,this.onDidScroll=e1.Event.None,this.isReady=!0,this.whenReady=Promise.resolve(),this.whenRestored=Promise.resolve(),this.hasRestorableState=!1,this.centerLayout=s8.unsupported,this.isLayoutCentered=s8.unsupported,this.enforcePartOptions=s8.unsupported,this.onDidChangeActiveGroup=e1.Event.None,this.onDidAddGroup=e1.Event.None,this.onDidRemoveGroup=e1.Event.None,this.onDidMoveGroup=e1.Event.None,this.onDidActivateGroup=e1.Event.None,this.onDidChangeGroupIndex=e1.Event.None,this.onDidChangeGroupLocked=e1.Event.None,this.onDidChangeGroupMaximized=e1.Event.None,this.activeGroup=ai,this.groups=[ai],this.count=0,this.orientation=rb.GroupOrientation.HORIZONTAL,this.getGroups=()=>[],this.getGroup=()=>void 0,this.activateGroup=s8.unsupported,this.getSize=s8.unsupported,this.setSize=s8.unsupported,this.arrangeGroups=s8.unsupported,this.toggleMaximizeGroup=s8.unsupported,this.toggleExpandGroup=s8.unsupported,this.applyLayout=s8.unsupported,this.getLayout=s8.unsupported,this.setGroupOrientation=s8.unsupported,this.findGroup=()=>void 0,this.addGroup=s8.unsupported,this.removeGroup=s8.unsupported,this.moveGroup=s8.unsupported,this.mergeGroup=s8.unsupported,this.mergeAllGroups=s8.unsupported,this.copyGroup=s8.unsupported,this.partOptions=iF.DEFAULT_EDITOR_PART_OPTIONS,this.onDidChangeEditorPartOptions=e1.Event.None,this.createEditorDropTarget=s8.unsupported}get contentDimension(){return(0,s8.unsupported)()}get sideGroup(){return(0,s8.unsupported)()}}(0,eJ.__decorate)([s6],ao.prototype,"contentDimension",null),(0,eJ.__decorate)([s6],ao.prototype,"centerLayout",void 0),(0,eJ.__decorate)([s6],ao.prototype,"isLayoutCentered",void 0),(0,eJ.__decorate)([s6],ao.prototype,"enforcePartOptions",void 0),(0,eJ.__decorate)([s6],ao.prototype,"sideGroup",null),(0,eJ.__decorate)([s6],ao.prototype,"activateGroup",void 0),(0,eJ.__decorate)([s6],ao.prototype,"getSize",void 0),(0,eJ.__decorate)([s6],ao.prototype,"setSize",void 0),(0,eJ.__decorate)([s6],ao.prototype,"arrangeGroups",void 0),(0,eJ.__decorate)([s6],ao.prototype,"toggleMaximizeGroup",void 0),(0,eJ.__decorate)([s6],ao.prototype,"toggleExpandGroup",void 0),(0,eJ.__decorate)([s6],ao.prototype,"applyLayout",void 0),(0,eJ.__decorate)([s6],ao.prototype,"getLayout",void 0),(0,eJ.__decorate)([s6],ao.prototype,"setGroupOrientation",void 0),(0,eJ.__decorate)([s6],ao.prototype,"addGroup",void 0),(0,eJ.__decorate)([s6],ao.prototype,"removeGroup",void 0),(0,eJ.__decorate)([s6],ao.prototype,"moveGroup",void 0),(0,eJ.__decorate)([s6],ao.prototype,"mergeGroup",void 0),(0,eJ.__decorate)([s6],ao.prototype,"mergeAllGroups",void 0),(0,eJ.__decorate)([s6],ao.prototype,"copyGroup",void 0),(0,eJ.__decorate)([s6],ao.prototype,"createEditorDropTarget",void 0);class ar{constructor(){this.getScopedInstantiationService=s8.unsupported,this.registerContextKeyProvider=s8.unsupported,this.saveWorkingSet=s8.unsupported,this.getWorkingSets=s8.unsupported,this.applyWorkingSet=s8.unsupported,this.deleteWorkingSet=s8.unsupported,this.onDidCreateAuxiliaryEditorPart=e1.Event.None,this.mainPart=new ao,this.parts=[this.mainPart],this.getPart=s8.unsupported,this.createAuxiliaryEditorPart=s8.unsupported,this.onDidChangeGroupMaximized=e1.Event.None,this.toggleMaximizeGroup=s8.unsupported,this.toggleExpandGroup=s8.unsupported,this.partOptions=iF.DEFAULT_EDITOR_PART_OPTIONS,this.createEditorDropTarget=s8.unsupported,this._serviceBrand=void 0,this.getLayout=s8.unsupported,this.onDidChangeActiveGroup=e1.Event.None,this.onDidAddGroup=e1.Event.None,this.onDidRemoveGroup=e1.Event.None,this.onDidMoveGroup=e1.Event.None,this.onDidActivateGroup=e1.Event.None,this.onDidChangeGroupIndex=e1.Event.None,this.onDidChangeGroupLocked=e1.Event.None,this.activeGroup=ai,this.groups=[ai],this.count=0,this.orientation=rb.GroupOrientation.HORIZONTAL,this.isReady=!1,this.whenReady=Promise.resolve(),this.whenRestored=Promise.resolve(),this.hasRestorableState=!1,this.getGroups=()=>[],this.getGroup=()=>void 0,this.activateGroup=s8.unsupported,this.getSize=s8.unsupported,this.setSize=s8.unsupported,this.arrangeGroups=s8.unsupported,this.applyLayout=s8.unsupported,this.setGroupOrientation=s8.unsupported,this.findGroup=()=>void 0,this.addGroup=s8.unsupported,this.removeGroup=s8.unsupported,this.moveGroup=s8.unsupported,this.mergeGroup=s8.unsupported,this.mergeAllGroups=s8.unsupported,this.copyGroup=s8.unsupported,this.onDidChangeEditorPartOptions=e1.Event.None,this.enforcePartOptions=s8.unsupported}get sideGroup(){return(0,s8.unsupported)()}}(0,eJ.__decorate)([s6],ar.prototype,"getScopedInstantiationService",void 0),(0,eJ.__decorate)([s6],ar.prototype,"registerContextKeyProvider",void 0),(0,eJ.__decorate)([s6],ar.prototype,"saveWorkingSet",void 0),(0,eJ.__decorate)([s6],ar.prototype,"getWorkingSets",void 0),(0,eJ.__decorate)([s6],ar.prototype,"applyWorkingSet",void 0),(0,eJ.__decorate)([s6],ar.prototype,"deleteWorkingSet",void 0),(0,eJ.__decorate)([s6],ar.prototype,"getPart",void 0),(0,eJ.__decorate)([s6],ar.prototype,"createAuxiliaryEditorPart",void 0),(0,eJ.__decorate)([s6],ar.prototype,"toggleMaximizeGroup",void 0),(0,eJ.__decorate)([s6],ar.prototype,"toggleExpandGroup",void 0),(0,eJ.__decorate)([s6],ar.prototype,"createEditorDropTarget",void 0),(0,eJ.__decorate)([s6],ar.prototype,"getLayout",void 0),(0,eJ.__decorate)([s6],ar.prototype,"sideGroup",null),(0,eJ.__decorate)([s6],ar.prototype,"activateGroup",void 0),(0,eJ.__decorate)([s6],ar.prototype,"getSize",void 0),(0,eJ.__decorate)([s6],ar.prototype,"setSize",void 0),(0,eJ.__decorate)([s6],ar.prototype,"arrangeGroups",void 0),(0,eJ.__decorate)([s6],ar.prototype,"applyLayout",void 0),(0,eJ.__decorate)([s6],ar.prototype,"setGroupOrientation",void 0),(0,eJ.__decorate)([s6],ar.prototype,"addGroup",void 0),(0,eJ.__decorate)([s6],ar.prototype,"removeGroup",void 0),(0,eJ.__decorate)([s6],ar.prototype,"moveGroup",void 0),(0,eJ.__decorate)([s6],ar.prototype,"mergeGroup",void 0),(0,eJ.__decorate)([s6],ar.prototype,"mergeAllGroups",void 0),(0,eJ.__decorate)([s6],ar.prototype,"copyGroup",void 0),(0,eJ.__decorate)([s6],ar.prototype,"enforcePartOptions",void 0),(0,t0.registerSingleton)(rI.IEditorGroupsService,ar,t0.InstantiationType.Eager),(0,t0.registerSingleton)(rg.IBannerService,class{constructor(){this.focus=()=>{},this.focusNextAction=()=>{},this.focusPreviousAction=()=>{},this.hide=()=>{},this.show=()=>{}}},t0.InstantiationType.Eager);class an{constructor(){this.getPart=s8.unsupported,this.createAuxiliaryTitlebarPart=s8.unsupported,this.dispose=s8.unsupported,this.onMenubarVisibilityChange=e1.Event.None,this.updateProperties=()=>{},this.registerVariables=()=>{}}}(0,eJ.__decorate)([s6],an.prototype,"getPart",void 0),(0,eJ.__decorate)([s6],an.prototype,"createAuxiliaryTitlebarPart",void 0),(0,eJ.__decorate)([s6],an.prototype,"dispose",void 0),(0,t0.registerSingleton)(no.ITitleService,an,t0.InstantiationType.Eager);class as{constructor(){this.onWillRunWorkingCopyFileOperation=e1.Event.None,this.onDidFailWorkingCopyFileOperation=e1.Event.None,this.onDidRunWorkingCopyFileOperation=e1.Event.None,this.addFileOperationParticipant=s8.unsupported,this.hasSaveParticipants=!1,this.addSaveParticipant=s8.unsupported,this.runSaveParticipants=s8.unsupported,this.create=s8.unsupported,this.createFolder=s8.unsupported,this.move=s8.unsupported,this.copy=s8.unsupported,this.delete=s8.unsupported,this.registerWorkingCopyProvider=s8.unsupported,this.getDirty=()=>[]}}(0,eJ.__decorate)([s6],as.prototype,"addFileOperationParticipant",void 0),(0,eJ.__decorate)([s6],as.prototype,"addSaveParticipant",void 0),(0,eJ.__decorate)([s6],as.prototype,"runSaveParticipants",void 0),(0,eJ.__decorate)([s6],as.prototype,"create",void 0),(0,eJ.__decorate)([s6],as.prototype,"createFolder",void 0),(0,eJ.__decorate)([s6],as.prototype,"move",void 0),(0,eJ.__decorate)([s6],as.prototype,"copy",void 0),(0,eJ.__decorate)([s6],as.prototype,"delete",void 0),(0,eJ.__decorate)([s6],as.prototype,"registerWorkingCopyProvider",void 0),(0,t0.registerSingleton)(nw.IWorkingCopyFileService,as,t0.InstantiationType.Eager);class aa{constructor(){this.defaultUriScheme="file",this.fileURI=s8.unsupported,this.userHome=s8.unsupported,this.hasValidBasename=s8.unsupported,this.resolvedUserHome=void 0}get path(){return(0,s8.unsupported)()}}(0,eJ.__decorate)([s6],aa.prototype,"path",null),(0,eJ.__decorate)([s6],aa.prototype,"fileURI",void 0),(0,eJ.__decorate)([s6],aa.prototype,"userHome",void 0),(0,eJ.__decorate)([s6],aa.prototype,"hasValidBasename",void 0),(0,t0.registerSingleton)(r0.IPathService,aa,t0.InstantiationType.Delayed),(0,t0.registerSingleton)(t4.IProductService,class{constructor(){this._serviceBrand=void 0,this.version="unknown",this.commit="unknown",this.quality="oss",this.nameShort="Code - OSS Dev",this.nameLong="Code - OSS Dev",this.applicationName="code-oss",this.dataFolderName=".vscode-oss",this.urlProtocol="code-oss",this.reportIssueUrl="https://github.com/microsoft/vscode/issues/new",this.licenseUrl="https://github.com/microsoft/vscode/blob/main/LICENSE.txt",this.serverApplicationName="code-server-oss",this.extensionProperties={}}},t0.InstantiationType.Eager),(0,t0.registerSingleton)(tH.IExtensionTipsService,class{constructor(){this._serviceBrand=void 0,this.getConfigBasedTips=async()=>[],this.getImportantExecutableBasedTips=async()=>[],this.getOtherExecutableBasedTips=async()=>[]}},t0.InstantiationType.Eager);class ad{constructor(){this.onDidChange=e1.Event.None,this.addStatus=s8.unsupported,this.getLanguageStatus=s8.unsupported}}(0,eJ.__decorate)([s6],ad.prototype,"addStatus",void 0),(0,eJ.__decorate)([s6],ad.prototype,"getLanguageStatus",void 0),(0,t0.registerSingleton)(rq.ILanguageStatusService,ad,t0.InstantiationType.Delayed);class ac{constructor(){this.getNativeWindowHandle=async()=>void 0,this.getScreenshot=async()=>void 0,this.onDidChangeFullScreen=e1.Event.None,this.onDidChangeFocus=e1.Event.None,this.hasFocus=!1,this.hadLastFocus=async()=>!1,this.focus=s8.unsupported,this.onDidChangeActiveWindow=e1.Event.None,this.openWindow=s8.unsupported,this.toggleFullScreen=s8.unsupported,this.moveTop=s8.unsupported,this.getCursorScreenPoint=s8.unsupported,this.restart=s8.unsupported,this.reload=s8.unsupported,this.close=s8.unsupported,this.withExpectedShutdown=s8.unsupported,this.getWindows=async()=>[]}}(0,eJ.__decorate)([s6],ac.prototype,"focus",void 0),(0,eJ.__decorate)([s6],ac.prototype,"openWindow",void 0),(0,eJ.__decorate)([s6],ac.prototype,"toggleFullScreen",void 0),(0,eJ.__decorate)([s6],ac.prototype,"moveTop",void 0),(0,eJ.__decorate)([s6],ac.prototype,"getCursorScreenPoint",void 0),(0,eJ.__decorate)([s6],ac.prototype,"restart",void 0),(0,eJ.__decorate)([s6],ac.prototype,"reload",void 0),(0,eJ.__decorate)([s6],ac.prototype,"close",void 0),(0,eJ.__decorate)([s6],ac.prototype,"withExpectedShutdown",void 0),(0,t0.registerSingleton)(rz.IHostService,ac,t0.InstantiationType.Eager);class al extends r$.AbstractLifecycleService{shutdown(){(0,s8.unsupported)()}}(0,eJ.__decorate)([s6],al.prototype,"shutdown",null),(0,t0.registerSingleton)(rG.ILifecycleService,al,t0.InstantiationType.Eager),(0,t0.registerSingleton)(rH.ILanguageDetectionService,class{constructor(){this.isEnabledForLanguage=()=>!1,this.detectLanguage=async()=>{}}},t0.InstantiationType.Eager),(0,t0.registerSingleton)(rO.IExtensionService,rN.NullExtensionService,t0.InstantiationType.Eager),(0,t0.registerSingleton)(t1.IKeyboardLayoutService,class{constructor(){this.onDidChangeKeyboardLayout=e1.Event.None,this.getRawKeyboardMapping=()=>null,this.getCurrentKeyboardLayout=()=>null,this.getAllKeyboardLayouts=()=>[],this.getKeyboardMapper=()=>new rB.FallbackKeyboardMapper(!1,e8.OS),this.validateCurrentKeyboardMapping=()=>{}}},t0.InstantiationType.Delayed),(0,t0.registerSingleton)(ns.IUserDataInitializationService,class{constructor(){this.requiresInitialization=async()=>!1,this.whenInitializationFinished=async()=>{},this.initializeRequiredResources=async()=>{},this.initializeInstalledExtensions=async()=>{},this.initializeOtherResources=async()=>{}}},t0.InstantiationType.Eager),(0,t0.registerSingleton)(nt.IHostColorSchemeService,class{constructor(){this.dark=!1,this.highContrast=!1,this.onDidChangeColorScheme=e1.Event.None}},t0.InstantiationType.Eager);let au=class{constructor(e){this.profileService=e,this.onDidDefaultSettingsContentChanged=e1.Event.None,this.getDefaultSettingsContent=()=>void 0,this.hasDefaultSettingsContent=()=>!1,this.getSetting=()=>void 0,this.userSettingsResource=this.profileService.currentProfile.settingsResource,this.workspaceSettingsResource=null,this.getFolderSettingsResource=s8.unsupported,this.createPreferencesEditorModel=s8.unsupported,this.createSettings2EditorModel=s8.unsupported,this.openRawDefaultSettings=s8.unsupported,this.openSettings=s8.unsupported,this.openUserSettings=s8.unsupported,this.openRemoteSettings=s8.unsupported,this.openWorkspaceSettings=s8.unsupported,this.openFolderSettings=s8.unsupported,this.openGlobalKeybindingSettings=s8.unsupported,this.openDefaultKeybindingsFile=s8.unsupported,this.getEditableSettingsURI=s8.unsupported,this.createSplitJsonEditorInput=s8.unsupported,this.openApplicationSettings=s8.unsupported,this.openLanguageSpecificSettings=s8.unsupported,this.openPreferences=async()=>void 0}};(0,eJ.__decorate)([s6],au.prototype,"getFolderSettingsResource",void 0),(0,eJ.__decorate)([s6],au.prototype,"createPreferencesEditorModel",void 0),(0,eJ.__decorate)([s6],au.prototype,"createSettings2EditorModel",void 0),(0,eJ.__decorate)([s6],au.prototype,"openRawDefaultSettings",void 0),(0,eJ.__decorate)([s6],au.prototype,"openSettings",void 0),(0,eJ.__decorate)([s6],au.prototype,"openUserSettings",void 0),(0,eJ.__decorate)([s6],au.prototype,"openRemoteSettings",void 0),(0,eJ.__decorate)([s6],au.prototype,"openWorkspaceSettings",void 0),(0,eJ.__decorate)([s6],au.prototype,"openFolderSettings",void 0),(0,eJ.__decorate)([s6],au.prototype,"openGlobalKeybindingSettings",void 0),(0,eJ.__decorate)([s6],au.prototype,"openDefaultKeybindingsFile",void 0),(0,eJ.__decorate)([s6],au.prototype,"getEditableSettingsURI",void 0),(0,eJ.__decorate)([s6],au.prototype,"createSplitJsonEditorInput",void 0),(0,eJ.__decorate)([s6],au.prototype,"openApplicationSettings",void 0),(0,eJ.__decorate)([s6],au.prototype,"openLanguageSpecificSettings",void 0),au=(0,eJ.__decorate)([(0,eJ.__param)(0,nc.IUserDataProfileService)],au),(0,t0.registerSingleton)(r1.IPreferencesService,au,t0.InstantiationType.Eager);class ah{constructor(){this.startDebugMode=s8.unsupported,this.createTokenizer=s8.unsupported}}(0,eJ.__decorate)([s6],ah.prototype,"startDebugMode",void 0),(0,eJ.__decorate)([s6],ah.prototype,"createTokenizer",void 0),(0,t0.registerSingleton)(r9.ITextMateTokenizationService,ah,t0.InstantiationType.Eager);let ap=class{constructor(e){this.profileService=e,this.onDidResetWorkspaces=e1.Event.None,this.createNamedProfile=s8.unsupported,this.createTransientProfile=s8.unsupported,this.resetWorkspaces=s8.unsupported,this.cleanUp=s8.unsupported,this.cleanUpTransientProfiles=s8.unsupported,this.defaultProfile=this.profileService.currentProfile,this.onDidChangeProfiles=e1.Event.None,this.profiles=[this.profileService.currentProfile],this.createProfile=s8.unsupported,this.updateProfile=s8.unsupported,this.setProfileForWorkspace=s8.unsupported,this.removeProfile=s8.unsupported}get profilesHome(){return(0,s8.unsupported)()}};(0,eJ.__decorate)([s6],ap.prototype,"createNamedProfile",void 0),(0,eJ.__decorate)([s6],ap.prototype,"createTransientProfile",void 0),(0,eJ.__decorate)([s6],ap.prototype,"resetWorkspaces",void 0),(0,eJ.__decorate)([s6],ap.prototype,"cleanUp",void 0),(0,eJ.__decorate)([s6],ap.prototype,"cleanUpTransientProfiles",void 0),(0,eJ.__decorate)([s6],ap.prototype,"profilesHome",null),(0,eJ.__decorate)([s6],ap.prototype,"createProfile",void 0),(0,eJ.__decorate)([s6],ap.prototype,"updateProfile",void 0),(0,eJ.__decorate)([s6],ap.prototype,"setProfileForWorkspace",void 0),(0,eJ.__decorate)([s6],ap.prototype,"removeProfile",void 0),ap=(0,eJ.__decorate)([(0,eJ.__param)(0,nc.IUserDataProfileService)],ap),(0,t0.registerSingleton)(iS.IUserDataProfilesService,ap,t0.InstantiationType.Eager);class ag{constructor(){this.onDidChange=e1.Event.None,this.readStorageData=s8.unsupported,this.updateStorageData=s8.unsupported,this.withProfileScopedStorageService=s8.unsupported}}(0,eJ.__decorate)([s6],ag.prototype,"readStorageData",void 0),(0,eJ.__decorate)([s6],ag.prototype,"updateStorageData",void 0),(0,eJ.__decorate)([s6],ag.prototype,"withProfileScopedStorageService",void 0),(0,t0.registerSingleton)(ib.IUserDataProfileStorageService,ag,t0.InstantiationType.Eager);let am=class extends np{constructor(e){super({...(0,iC.toUserDataProfile)("__default__profile__","Default",e.userRoamingDataHome,(0,e5.joinPath)(e.cacheHome,"CachedProfilesData")),isDefault:!0})}};am=(0,eJ.__decorate)([(0,eJ.__param)(0,tB.IEnvironmentService)],am),(0,t0.registerSingleton)(nc.IUserDataProfileService,am,t0.InstantiationType.Eager),(0,t0.registerSingleton)(t9.IPolicyService,t7.NullPolicyService,t0.InstantiationType.Eager);class av{constructor(){this.getSnippetFiles=s8.unsupported,this.isEnabled=s8.unsupported,this.updateEnablement=s8.unsupported,this.updateUsageTimestamp=s8.unsupported,this.getSnippets=async()=>[],this.getSnippetsSync=s8.unsupported}}(0,eJ.__decorate)([s6],av.prototype,"getSnippetFiles",void 0),(0,eJ.__decorate)([s6],av.prototype,"isEnabled",void 0),(0,eJ.__decorate)([s6],av.prototype,"updateEnablement",void 0),(0,eJ.__decorate)([s6],av.prototype,"updateUsageTimestamp",void 0),(0,eJ.__decorate)([s6],av.prototype,"getSnippetsSync",void 0),(0,t0.registerSingleton)(oO.ISnippetsService,av,t0.InstantiationType.Eager);let ay={getSession:()=>void 0,getSessions:()=>[],getBreakpoints:()=>[],areBreakpointsActivated:()=>!1,getFunctionBreakpoints:()=>[],getDataBreakpoints:()=>[],getExceptionBreakpoints:()=>[],getExceptionBreakpointsForSession:()=>[],getInstructionBreakpoints:()=>[],getWatchExpressions:()=>[],onDidChangeBreakpoints:e1.Event.None,onDidChangeCallStack:e1.Event.None,onDidChangeWatchExpressions:e1.Event.None,fetchCallstack:s8.unsupported,getId:s8.unsupported,registerBreakpointModes:s8.unsupported,getBreakpointModes:()=>[],onDidChangeWatchExpressionValue:e1.Event.None};class af{constructor(){this.setVisualizedExpression=s8.unsupported,this.getVisualizedExpression=()=>void 0,this.onDidChangeVisualization=e1.Event.None,this.getId=s8.unsupported,this.focusedSession=void 0,this.focusedThread=void 0,this.focusedStackFrame=void 0,this.getSelectedExpression=s8.unsupported,this.setSelectedExpression=s8.unsupported,this.updateViews=s8.unsupported,this.isMultiSessionView=s8.unsupported,this.onDidFocusSession=e1.Event.None,this.onDidFocusStackFrame=e1.Event.None,this.onDidSelectExpression=e1.Event.None,this.onDidEvaluateLazyExpression=e1.Event.None,this.onWillUpdateViews=e1.Event.None,this.onDidFocusThread=e1.Event.None,this.evaluateLazyExpression=s8.unsupported}}(0,eJ.__decorate)([s6],af.prototype,"setVisualizedExpression",void 0),(0,eJ.__decorate)([s6],af.prototype,"getId",void 0),(0,eJ.__decorate)([s6],af.prototype,"getSelectedExpression",void 0),(0,eJ.__decorate)([s6],af.prototype,"setSelectedExpression",void 0),(0,eJ.__decorate)([s6],af.prototype,"updateViews",void 0),(0,eJ.__decorate)([s6],af.prototype,"isMultiSessionView",void 0),(0,eJ.__decorate)([s6],af.prototype,"evaluateLazyExpression",void 0);class a_{constructor(){this.onDidRegisterDebugger=e1.Event.None,this.hasEnabledDebuggers=()=>!1,this.getDebugAdapterDescriptor=s8.unsupported,this.getDebuggerLabel=s8.unsupported,this.someDebuggerInterestedInLanguage=()=>!1,this.getDebugger=()=>void 0,this.activateDebuggers=s8.unsupported,this.registerDebugAdapterFactory=()=>e2.Disposable.None,this.createDebugAdapter=s8.unsupported,this.registerDebugAdapterDescriptorFactory=s8.unsupported,this.unregisterDebugAdapterDescriptorFactory=s8.unsupported,this.substituteVariables=s8.unsupported,this.runInTerminal=s8.unsupported,this.getEnabledDebugger=s8.unsupported,this.guessDebugger=s8.unsupported,this.onDidDebuggersExtPointRead=e1.Event.None}}(0,eJ.__decorate)([s6],a_.prototype,"getDebugAdapterDescriptor",void 0),(0,eJ.__decorate)([s6],a_.prototype,"getDebuggerLabel",void 0),(0,eJ.__decorate)([s6],a_.prototype,"activateDebuggers",void 0),(0,eJ.__decorate)([s6],a_.prototype,"createDebugAdapter",void 0),(0,eJ.__decorate)([s6],a_.prototype,"registerDebugAdapterDescriptorFactory",void 0),(0,eJ.__decorate)([s6],a_.prototype,"unregisterDebugAdapterDescriptorFactory",void 0),(0,eJ.__decorate)([s6],a_.prototype,"substituteVariables",void 0),(0,eJ.__decorate)([s6],a_.prototype,"runInTerminal",void 0),(0,eJ.__decorate)([s6],a_.prototype,"getEnabledDebugger",void 0),(0,eJ.__decorate)([s6],a_.prototype,"guessDebugger",void 0);class aC{constructor(){this.initializingOptions=void 0,this.sendBreakpoints=s8.unsupported,this.updateDataBreakpoint=s8.unsupported,this.onDidChangeState=e1.Event.None,this.onDidNewSession=e1.Event.None,this.onWillNewSession=e1.Event.None,this.onDidEndSession=e1.Event.None,this.getConfigurationManager=s8.unsupported,this.getAdapterManager=()=>new a_,this.focusStackFrame=s8.unsupported,this.canSetBreakpointsIn=s8.unsupported,this.addBreakpoints=s8.unsupported,this.updateBreakpoints=s8.unsupported,this.enableOrDisableBreakpoints=s8.unsupported,this.setBreakpointsActivated=s8.unsupported,this.removeBreakpoints=s8.unsupported,this.addFunctionBreakpoint=s8.unsupported,this.updateFunctionBreakpoint=s8.unsupported,this.removeFunctionBreakpoints=s8.unsupported,this.addDataBreakpoint=s8.unsupported,this.removeDataBreakpoints=s8.unsupported,this.addInstructionBreakpoint=s8.unsupported,this.removeInstructionBreakpoints=s8.unsupported,this.setExceptionBreakpointCondition=s8.unsupported,this.setExceptionBreakpointsForSession=s8.unsupported,this.sendAllBreakpoints=s8.unsupported,this.addWatchExpression=s8.unsupported,this.renameWatchExpression=s8.unsupported,this.moveWatchExpression=s8.unsupported,this.removeWatchExpressions=s8.unsupported,this.startDebugging=s8.unsupported,this.restartSession=s8.unsupported,this.stopSession=s8.unsupported,this.sourceIsNotAvailable=s8.unsupported,this.getModel=()=>ay,this.getViewModel=()=>new af,this.runTo=s8.unsupported}get state(){return(0,s8.unsupported)()}}(0,eJ.__decorate)([s6],aC.prototype,"sendBreakpoints",void 0),(0,eJ.__decorate)([s6],aC.prototype,"updateDataBreakpoint",void 0),(0,eJ.__decorate)([s6],aC.prototype,"state",null),(0,eJ.__decorate)([s6],aC.prototype,"getConfigurationManager",void 0),(0,eJ.__decorate)([s6],aC.prototype,"focusStackFrame",void 0),(0,eJ.__decorate)([s6],aC.prototype,"canSetBreakpointsIn",void 0),(0,eJ.__decorate)([s6],aC.prototype,"addBreakpoints",void 0),(0,eJ.__decorate)([s6],aC.prototype,"updateBreakpoints",void 0),(0,eJ.__decorate)([s6],aC.prototype,"enableOrDisableBreakpoints",void 0),(0,eJ.__decorate)([s6],aC.prototype,"setBreakpointsActivated",void 0),(0,eJ.__decorate)([s6],aC.prototype,"removeBreakpoints",void 0),(0,eJ.__decorate)([s6],aC.prototype,"addFunctionBreakpoint",void 0),(0,eJ.__decorate)([s6],aC.prototype,"updateFunctionBreakpoint",void 0),(0,eJ.__decorate)([s6],aC.prototype,"removeFunctionBreakpoints",void 0),(0,eJ.__decorate)([s6],aC.prototype,"addDataBreakpoint",void 0),(0,eJ.__decorate)([s6],aC.prototype,"removeDataBreakpoints",void 0),(0,eJ.__decorate)([s6],aC.prototype,"addInstructionBreakpoint",void 0),(0,eJ.__decorate)([s6],aC.prototype,"removeInstructionBreakpoints",void 0),(0,eJ.__decorate)([s6],aC.prototype,"setExceptionBreakpointCondition",void 0),(0,eJ.__decorate)([s6],aC.prototype,"setExceptionBreakpointsForSession",void 0),(0,eJ.__decorate)([s6],aC.prototype,"sendAllBreakpoints",void 0),(0,eJ.__decorate)([s6],aC.prototype,"addWatchExpression",void 0),(0,eJ.__decorate)([s6],aC.prototype,"renameWatchExpression",void 0),(0,eJ.__decorate)([s6],aC.prototype,"moveWatchExpression",void 0),(0,eJ.__decorate)([s6],aC.prototype,"removeWatchExpressions",void 0),(0,eJ.__decorate)([s6],aC.prototype,"startDebugging",void 0),(0,eJ.__decorate)([s6],aC.prototype,"restartSession",void 0),(0,eJ.__decorate)([s6],aC.prototype,"stopSession",void 0),(0,eJ.__decorate)([s6],aC.prototype,"sourceIsNotAvailable",void 0),(0,eJ.__decorate)([s6],aC.prototype,"runTo",void 0),(0,t0.registerSingleton)(i7.IDebugService,aC,t0.InstantiationType.Eager);class aS{constructor(){this.lookupAuthorization=s8.unsupported,this.lookupKerberosAuthorization=s8.unsupported,this.request=s8.unsupported,this.resolveProxy=s8.unsupported,this.loadCertificates=s8.unsupported}}(0,eJ.__decorate)([s6],aS.prototype,"lookupAuthorization",void 0),(0,eJ.__decorate)([s6],aS.prototype,"lookupKerberosAuthorization",void 0),(0,eJ.__decorate)([s6],aS.prototype,"request",void 0),(0,eJ.__decorate)([s6],aS.prototype,"resolveProxy",void 0),(0,eJ.__decorate)([s6],aS.prototype,"loadCertificates",void 0),(0,t0.registerSingleton)(io.IRequestService,aS,t0.InstantiationType.Eager);class ab{constructor(){this.onDidInitiateOpenFilesTrustRequest=e1.Event.None,this.onDidInitiateWorkspaceTrustRequest=e1.Event.None,this.onDidInitiateWorkspaceTrustRequestOnStartup=e1.Event.None,this.completeOpenFilesTrustRequest=s8.unsupported,this.requestOpenFilesTrust=async()=>iP.WorkspaceTrustUriResponse.Open,this.cancelWorkspaceTrustRequest=s8.unsupported,this.completeWorkspaceTrustRequest=s8.unsupported,this.requestWorkspaceTrust=async()=>!0,this.requestWorkspaceTrustOnStartup=()=>null}}(0,eJ.__decorate)([s6],ab.prototype,"completeOpenFilesTrustRequest",void 0),(0,eJ.__decorate)([s6],ab.prototype,"cancelWorkspaceTrustRequest",void 0),(0,eJ.__decorate)([s6],ab.prototype,"completeWorkspaceTrustRequest",void 0),(0,t0.registerSingleton)(iR.IWorkspaceTrustRequestService,ab,t0.InstantiationType.Eager);class aI{constructor(){this.onDidChangeActivity=e1.Event.None,this.getViewContainerActivities=s8.unsupported,this.getActivity=s8.unsupported,this.showViewContainerActivity=()=>e2.Disposable.None,this.showViewActivity=()=>e2.Disposable.None,this.showAccountsActivity=()=>e2.Disposable.None,this.showGlobalActivity=()=>e2.Disposable.None}}(0,eJ.__decorate)([s6],aI.prototype,"getViewContainerActivities",void 0),(0,eJ.__decorate)([s6],aI.prototype,"getActivity",void 0),(0,t0.registerSingleton)(rt.IActivityService,aI,t0.InstantiationType.Eager);class aE{constructor(){this.reload=s8.unsupported,this.onReload=e1.Event.None,this.close=s8.unsupported,this.onClose=e1.Event.None,this.attachSession=s8.unsupported,this.onAttachSession=e1.Event.None,this.terminateSession=s8.unsupported,this.onTerminateSession=e1.Event.None,this.openExtensionDevelopmentHostWindow=s8.unsupported,this.attachToCurrentWindowRenderer=s8.unsupported}}(0,eJ.__decorate)([s6],aE.prototype,"reload",void 0),(0,eJ.__decorate)([s6],aE.prototype,"close",void 0),(0,eJ.__decorate)([s6],aE.prototype,"attachSession",void 0),(0,eJ.__decorate)([s6],aE.prototype,"terminateSession",void 0),(0,eJ.__decorate)([s6],aE.prototype,"openExtensionDevelopmentHostWindow",void 0),(0,eJ.__decorate)([s6],aE.prototype,"attachToCurrentWindowRenderer",void 0),(0,t0.registerSingleton)(tO.IExtensionHostDebugService,aE,t0.InstantiationType.Eager);class aw{constructor(){this.getFocusedView=()=>null,this.isViewContainerActive=()=>!1,this.getFocusedViewName=s8.unsupported,this.onDidChangeFocusedView=e1.Event.None,this.onDidChangeViewContainerVisibility=e1.Event.None,this.isViewContainerVisible=()=>!1,this.openViewContainer=s8.unsupported,this.closeViewContainer=s8.unsupported,this.getVisibleViewContainer=s8.unsupported,this.getActiveViewPaneContainerWithId=()=>null,this.onDidChangeViewVisibility=e1.Event.None,this.isViewVisible=()=>!1,this.openView=async()=>null,this.closeView=s8.unsupported,this.getActiveViewWithId=()=>null,this.getViewWithId=()=>null,this.getViewProgressIndicator=()=>void 0}}(0,eJ.__decorate)([s6],aw.prototype,"getFocusedViewName",void 0),(0,eJ.__decorate)([s6],aw.prototype,"openViewContainer",void 0),(0,eJ.__decorate)([s6],aw.prototype,"closeViewContainer",void 0),(0,eJ.__decorate)([s6],aw.prototype,"getVisibleViewContainer",void 0),(0,eJ.__decorate)([s6],aw.prototype,"closeView",void 0),(0,t0.registerSingleton)(nb.IViewsService,aw,t0.InstantiationType.Eager);class aD{constructor(){this.viewContainers=[],this.onDidChangeViewContainers=e1.Event.None,this.getDefaultViewContainer=()=>void 0,this.getViewContainerById=()=>null,this.isViewContainerRemovedPermanently=s8.unsupported,this.getDefaultViewContainerLocation=()=>null,this.getViewContainerLocation=()=>null,this.getViewContainersByLocation=s8.unsupported,this.getViewContainerModel=()=>({onDidChangeAllViewDescriptors:e1.Event.None,visibleViewDescriptors:[]}),this.onDidChangeContainerLocation=e1.Event.None,this.moveViewContainerToLocation=s8.unsupported,this.getViewContainerBadgeEnablementState=s8.unsupported,this.setViewContainerBadgeEnablementState=s8.unsupported,this.getViewDescriptorById=()=>null,this.getViewContainerByViewId=()=>null,this.getDefaultContainerById=()=>null,this.getViewLocationById=()=>null,this.onDidChangeContainer=e1.Event.None,this.moveViewsToContainer=s8.unsupported,this.onDidChangeLocation=e1.Event.None,this.moveViewToLocation=()=>null,this.reset=()=>null}}(0,eJ.__decorate)([s6],aD.prototype,"isViewContainerRemovedPermanently",void 0),(0,eJ.__decorate)([s6],aD.prototype,"getViewContainersByLocation",void 0),(0,eJ.__decorate)([s6],aD.prototype,"moveViewContainerToLocation",void 0),(0,eJ.__decorate)([s6],aD.prototype,"getViewContainerBadgeEnablementState",void 0),(0,eJ.__decorate)([s6],aD.prototype,"setViewContainerBadgeEnablementState",void 0),(0,eJ.__decorate)([s6],aD.prototype,"moveViewsToContainer",void 0),(0,t0.registerSingleton)(iK.IViewDescriptorService,aD,t0.InstantiationType.Eager);class aA{constructor(){this.goForward=s8.unsupported,this.goBack=s8.unsupported,this.goPrevious=s8.unsupported,this.goLast=s8.unsupported,this.reopenLastClosedEditor=s8.unsupported,this.getHistory=()=>[],this.removeFromHistory=s8.unsupported,this.getLastActiveWorkspaceRoot=()=>void 0,this.getLastActiveFile=()=>void 0,this.openNextRecentlyUsedEditor=s8.unsupported,this.openPreviouslyUsedEditor=s8.unsupported,this.clear=s8.unsupported,this.clearRecentlyOpened=s8.unsupported}}(0,eJ.__decorate)([s6],aA.prototype,"goForward",void 0),(0,eJ.__decorate)([s6],aA.prototype,"goBack",void 0),(0,eJ.__decorate)([s6],aA.prototype,"goPrevious",void 0),(0,eJ.__decorate)([s6],aA.prototype,"goLast",void 0),(0,eJ.__decorate)([s6],aA.prototype,"reopenLastClosedEditor",void 0),(0,eJ.__decorate)([s6],aA.prototype,"removeFromHistory",void 0),(0,eJ.__decorate)([s6],aA.prototype,"openNextRecentlyUsedEditor",void 0),(0,eJ.__decorate)([s6],aA.prototype,"openPreviouslyUsedEditor",void 0),(0,eJ.__decorate)([s6],aA.prototype,"clear",void 0),(0,eJ.__decorate)([s6],aA.prototype,"clearRecentlyOpened",void 0),(0,t0.registerSingleton)(rW.IHistoryService,aA,t0.InstantiationType.Eager);class ax{constructor(){this.onDidChangeTaskProviders=e1.Event.None,this.getKnownTasks=async()=>[],this.onDidChangeTaskConfig=e1.Event.None,this.onDidStateChange=e1.Event.None,this.supportsMultipleTaskExecutions=!1,this.configureAction=s8.unsupported,this.rerun=s8.unsupported,this.run=s8.unsupported,this.inTerminal=()=>!1,this.getActiveTasks=async()=>[],this.getBusyTasks=s8.unsupported,this.terminate=s8.unsupported,this.tasks=s8.unsupported,this.taskTypes=s8.unsupported,this.getWorkspaceTasks=s8.unsupported,this.getSavedTasks=s8.unsupported,this.removeRecentlyUsedTask=s8.unsupported,this.getTask=s8.unsupported,this.tryResolveTask=s8.unsupported,this.createSorter=s8.unsupported,this.getTaskDescription=s8.unsupported,this.customize=s8.unsupported,this.openConfig=s8.unsupported,this.registerTaskProvider=s8.unsupported,this.registerTaskSystem=()=>{},this.onDidChangeTaskSystemInfo=e1.Event.None,this.hasTaskSystemInfo=!1,this.registerSupportedExecutions=()=>{},this.extensionCallbackTaskComplete=s8.unsupported,this.isReconnected=!1,this.onDidReconnectToTasks=e1.Event.None,this.getTerminalsForTasks=()=>void 0,this.getTaskProblems=()=>void 0}}(0,eJ.__decorate)([s6],ax.prototype,"configureAction",void 0),(0,eJ.__decorate)([s6],ax.prototype,"rerun",void 0),(0,eJ.__decorate)([s6],ax.prototype,"run",void 0),(0,eJ.__decorate)([s6],ax.prototype,"getBusyTasks",void 0),(0,eJ.__decorate)([s6],ax.prototype,"terminate",void 0),(0,eJ.__decorate)([s6],ax.prototype,"tasks",void 0),(0,eJ.__decorate)([s6],ax.prototype,"taskTypes",void 0),(0,eJ.__decorate)([s6],ax.prototype,"getWorkspaceTasks",void 0),(0,eJ.__decorate)([s6],ax.prototype,"getSavedTasks",void 0),(0,eJ.__decorate)([s6],ax.prototype,"removeRecentlyUsedTask",void 0),(0,eJ.__decorate)([s6],ax.prototype,"getTask",void 0),(0,eJ.__decorate)([s6],ax.prototype,"tryResolveTask",void 0),(0,eJ.__decorate)([s6],ax.prototype,"createSorter",void 0),(0,eJ.__decorate)([s6],ax.prototype,"getTaskDescription",void 0),(0,eJ.__decorate)([s6],ax.prototype,"customize",void 0),(0,eJ.__decorate)([s6],ax.prototype,"openConfig",void 0),(0,eJ.__decorate)([s6],ax.prototype,"registerTaskProvider",void 0),(0,eJ.__decorate)([s6],ax.prototype,"extensionCallbackTaskComplete",void 0),(0,t0.registerSingleton)(oz.ITaskService,ax,t0.InstantiationType.Eager);class ak{constructor(){this.resolvableVariables=new Set,this.resolveWithEnvironment=s8.unsupported,this.resolveAsync=s8.unsupported,this.resolveWithInteractionReplace=s8.unsupported,this.resolveWithInteraction=s8.unsupported,this.contributeVariable=s8.unsupported}}(0,eJ.__decorate)([s6],ak.prototype,"resolveWithEnvironment",void 0),(0,eJ.__decorate)([s6],ak.prototype,"resolveAsync",void 0),(0,eJ.__decorate)([s6],ak.prototype,"resolveWithInteractionReplace",void 0),(0,eJ.__decorate)([s6],ak.prototype,"resolveWithInteraction",void 0),(0,eJ.__decorate)([s6],ak.prototype,"contributeVariable",void 0),(0,t0.registerSingleton)(rf.IConfigurationResolverService,ak,t0.InstantiationType.Eager);class aT{constructor(){this.endConnection=s8.unsupported,this.getConnection=()=>null,this.getEnvironment=async()=>null,this.getRawEnvironment=async()=>null,this.getExtensionHostExitInfo=async()=>null,this.getRoundTripTime=async()=>void 0,this.getDiagnosticInfo=async()=>void 0,this.updateTelemetryLevel=async()=>void 0,this.logTelemetry=async()=>void 0,this.flushTelemetry=async()=>void 0}}(0,eJ.__decorate)([s6],aT.prototype,"endConnection",void 0),(0,t0.registerSingleton)(r2.IRemoteAgentService,aT,t0.InstantiationType.Eager),(0,t0.registerSingleton)(ia.ICustomEndpointTelemetryService,id.NullEndpointTelemetryService,t0.InstantiationType.Eager);let aM=class{constructor(e){this.modelService=e,this.schemeHasFileSearchProvider=()=>!1,this.getAIName=async()=>void 0,this.aiTextSearch=s8.unsupported,this.textSearchSplitSyncAsync=s8.unsupported,this.textSearch=async()=>({results:[],messages:[]}),this.fileSearch=async()=>({results:this.modelService.getModels().map(e=>({resource:e.uri})),messages:[]}),this.clearCache=async()=>{},this.registerSearchResultProvider=s8.unsupported}};(0,eJ.__decorate)([s6],aM.prototype,"aiTextSearch",void 0),(0,eJ.__decorate)([s6],aM.prototype,"textSearchSplitSyncAsync",void 0),(0,eJ.__decorate)([s6],aM.prototype,"registerSearchResultProvider",void 0),aM=(0,eJ.__decorate)([(0,eJ.__param)(0,td.IModelService)],aM),(0,t0.registerSingleton)(r5.ISearchService,aM,t0.InstantiationType.Eager),(0,t0.registerSingleton)(iM.IEditSessionIdentityService,class{constructor(){this.registerEditSessionIdentityProvider=()=>e2.Disposable.None,this.getEditSessionIdentifier=async()=>void 0,this.provideEditSessionIdentityMatch=async()=>void 0,this.addEditSessionIdentityCreateParticipant=()=>e2.Disposable.None,this.onWillCreateEditSessionIdentity=async()=>{}}},t0.InstantiationType.Eager);class aP{constructor(){this.addFolders=s8.unsupported,this.removeFolders=s8.unsupported,this.updateFolders=s8.unsupported,this.enterWorkspace=s8.unsupported,this.createAndEnterWorkspace=s8.unsupported,this.saveAndEnterWorkspace=s8.unsupported,this.copyWorkspaceSettings=s8.unsupported,this.pickNewWorkspacePath=s8.unsupported}}(0,eJ.__decorate)([s6],aP.prototype,"addFolders",void 0),(0,eJ.__decorate)([s6],aP.prototype,"removeFolders",void 0),(0,eJ.__decorate)([s6],aP.prototype,"updateFolders",void 0),(0,eJ.__decorate)([s6],aP.prototype,"enterWorkspace",void 0),(0,eJ.__decorate)([s6],aP.prototype,"createAndEnterWorkspace",void 0),(0,eJ.__decorate)([s6],aP.prototype,"saveAndEnterWorkspace",void 0),(0,eJ.__decorate)([s6],aP.prototype,"copyWorkspaceSettings",void 0),(0,eJ.__decorate)([s6],aP.prototype,"pickNewWorkspacePath",void 0),(0,t0.registerSingleton)(nx.IWorkspaceEditingService,aP,t0.InstantiationType.Eager);class aR{constructor(){this.getStartTime=s8.unsupported,this.whenReady=s8.unsupported,this.setPerformanceMarks=()=>{},this.getPerformanceMarks=s8.unsupported,this.getDuration=s8.unsupported}get perfBaseline(){return(0,s8.unsupported)()}get startupMetrics(){return(0,s8.unsupported)()}}(0,eJ.__decorate)([s6],aR.prototype,"getStartTime",void 0),(0,eJ.__decorate)([s6],aR.prototype,"whenReady",void 0),(0,eJ.__decorate)([s6],aR.prototype,"perfBaseline",null),(0,eJ.__decorate)([s6],aR.prototype,"startupMetrics",null),(0,eJ.__decorate)([s6],aR.prototype,"getPerformanceMarks",void 0),(0,eJ.__decorate)([s6],aR.prototype,"getDuration",void 0),(0,t0.registerSingleton)(ni.ITimerService,aR,t0.InstantiationType.Eager);class aL{constructor(){this.downloadVSIX=s8.unsupported,this.updateAutoUpdateForAllExtensions=s8.unsupported,this.openSearch=s8.unsupported,this.getExtensionRuntimeStatus=()=>void 0,this.onDidChangeExtensionsNotification=e1.Event.None,this.getExtensionsNotification=()=>void 0,this.shouldRequireConsentToUpdate=async()=>void 0,this.getResourceExtensions=s8.unsupported,this.updateRunningExtensions=s8.unsupported,this.togglePreRelease=s8.unsupported,this.isAutoUpdateEnabledFor=s8.unsupported,this.updateAutoUpdateEnablementFor=s8.unsupported,this.getAutoUpdateValue=s8.unsupported,this.updateAll=s8.unsupported,this.toggleApplyExtensionToAllProfiles=s8.unsupported,this.whenInitialized=Promise.resolve(),this.onChange=e1.Event.None,this.onReset=e1.Event.None,this.local=[],this.installed=[],this.outdated=[],this.queryLocal=s8.unsupported,this.queryGallery=s8.unsupported,this.getExtensions=s8.unsupported,this.canInstall=s8.unsupported,this.install=s8.unsupported,this.installInServer=s8.unsupported,this.uninstall=s8.unsupported,this.canSetLanguage=s8.unsupported,this.setLanguage=s8.unsupported,this.setEnablement=s8.unsupported,this.open=s8.unsupported,this.checkForUpdates=s8.unsupported,this.isExtensionIgnoredToSync=s8.unsupported,this.toggleExtensionIgnoredToSync=s8.unsupported}}(0,eJ.__decorate)([s6],aL.prototype,"downloadVSIX",void 0),(0,eJ.__decorate)([s6],aL.prototype,"updateAutoUpdateForAllExtensions",void 0),(0,eJ.__decorate)([s6],aL.prototype,"openSearch",void 0),(0,eJ.__decorate)([s6],aL.prototype,"getResourceExtensions",void 0),(0,eJ.__decorate)([s6],aL.prototype,"updateRunningExtensions",void 0),(0,eJ.__decorate)([s6],aL.prototype,"togglePreRelease",void 0),(0,eJ.__decorate)([s6],aL.prototype,"isAutoUpdateEnabledFor",void 0),(0,eJ.__decorate)([s6],aL.prototype,"updateAutoUpdateEnablementFor",void 0),(0,eJ.__decorate)([s6],aL.prototype,"getAutoUpdateValue",void 0),(0,eJ.__decorate)([s6],aL.prototype,"updateAll",void 0),(0,eJ.__decorate)([s6],aL.prototype,"toggleApplyExtensionToAllProfiles",void 0),(0,eJ.__decorate)([s6],aL.prototype,"queryLocal",void 0),(0,eJ.__decorate)([s6],aL.prototype,"queryGallery",void 0),(0,eJ.__decorate)([s6],aL.prototype,"getExtensions",void 0),(0,eJ.__decorate)([s6],aL.prototype,"canInstall",void 0),(0,eJ.__decorate)([s6],aL.prototype,"install",void 0),(0,eJ.__decorate)([s6],aL.prototype,"installInServer",void 0),(0,eJ.__decorate)([s6],aL.prototype,"uninstall",void 0),(0,eJ.__decorate)([s6],aL.prototype,"canSetLanguage",void 0),(0,eJ.__decorate)([s6],aL.prototype,"setLanguage",void 0),(0,eJ.__decorate)([s6],aL.prototype,"setEnablement",void 0),(0,eJ.__decorate)([s6],aL.prototype,"open",void 0),(0,eJ.__decorate)([s6],aL.prototype,"checkForUpdates",void 0),(0,eJ.__decorate)([s6],aL.prototype,"isExtensionIgnoredToSync",void 0),(0,eJ.__decorate)([s6],aL.prototype,"toggleExtensionIgnoredToSync",void 0),(0,t0.registerSingleton)(oe.IExtensionsWorkbenchService,aL,t0.InstantiationType.Eager);class aN{constructor(){this._serviceBrand=void 0,this.localExtensionManagementServer=null,this.remoteExtensionManagementServer=null,this.webExtensionManagementServer=null,this.getExtensionManagementServer=s8.unsupported,this.getExtensionInstallLocation=s8.unsupported}}(0,eJ.__decorate)([s6],aN.prototype,"getExtensionManagementServer",void 0),(0,eJ.__decorate)([s6],aN.prototype,"getExtensionInstallLocation",void 0),(0,t0.registerSingleton)(rT.IExtensionManagementServerService,aN,t0.InstantiationType.Eager),(0,t0.registerSingleton)(rM.IExtensionRecommendationsService,class{constructor(){this.onDidChangeRecommendations=e1.Event.None,this.getAllRecommendationsWithReason=()=>({}),this.getImportantRecommendations=async()=>[],this.getOtherRecommendations=async()=>[],this.getFileBasedRecommendations=()=>[],this.getExeBasedRecommendations=async()=>({important:[],others:[]}),this.getConfigBasedRecommendations=async()=>({important:[],others:[]}),this.getWorkspaceRecommendations=async()=>[],this.getKeymapRecommendations=()=>[],this.getLanguageRecommendations=()=>[],this.getRemoteRecommendations=()=>[]}},t0.InstantiationType.Eager);class aO{constructor(){this.onError=e1.Event.None,this.turnOn=s8.unsupported,this.turnOff=s8.unsupported,this.triggerSync=s8.unsupported}}(0,eJ.__decorate)([s6],aO.prototype,"turnOn",void 0),(0,eJ.__decorate)([s6],aO.prototype,"turnOff",void 0),(0,eJ.__decorate)([s6],aO.prototype,"triggerSync",void 0),(0,t0.registerSingleton)(iw.IUserDataAutoSyncService,aO,t0.InstantiationType.Eager);class aF{constructor(){this.getIgnoredExtensions=()=>[],this.hasToNeverSyncExtension=()=>!1,this.hasToAlwaysSyncExtension=()=>!1,this.updateIgnoredExtensions=s8.unsupported,this.updateSynchronizedExtensions=s8.unsupported}}(0,eJ.__decorate)([s6],aF.prototype,"updateIgnoredExtensions",void 0),(0,eJ.__decorate)([s6],aF.prototype,"updateSynchronizedExtensions",void 0),(0,t0.registerSingleton)(iI.IIgnoredExtensionsManagementService,aF,t0.InstantiationType.Eager);class aK{constructor(){this.ignoredRecommendations=[],this.hasToIgnoreRecommendationNotifications=()=>!1,this.promptImportantExtensionsInstallNotification=s8.unsupported,this.promptWorkspaceRecommendations=s8.unsupported}}(0,eJ.__decorate)([s6],aK.prototype,"promptImportantExtensionsInstallNotification",void 0),(0,eJ.__decorate)([s6],aK.prototype,"promptWorkspaceRecommendations",void 0),(0,t0.registerSingleton)(tQ.IExtensionRecommendationNotificationService,aK,t0.InstantiationType.Eager);class aW{constructor(){this.scanSystemExtensions=async()=>[],this.scanUserExtensions=async()=>[],this.scanExtensionsUnderDevelopment=async()=>[],this.scanExistingExtension=async()=>null,this.addExtension=s8.unsupported,this.addExtensionFromGallery=s8.unsupported,this.removeExtension=async()=>{},this.copyExtensions=async()=>{},this.updateMetadata=s8.unsupported,this.scanExtensionManifest=async()=>null}}(0,eJ.__decorate)([s6],aW.prototype,"addExtension",void 0),(0,eJ.__decorate)([s6],aW.prototype,"addExtensionFromGallery",void 0),(0,eJ.__decorate)([s6],aW.prototype,"updateMetadata",void 0),(0,t0.registerSingleton)(rT.IWebExtensionsScannerService,aW,t0.InstantiationType.Eager);class az{constructor(){this.onDidChangeCache=e1.Event.None,this.scanAllExtensions=async()=>[],this.scanSystemExtensions=async()=>[],this.scanUserExtensions=async()=>[],this.scanExtensionsUnderDevelopment=s8.unsupported,this.scanExistingExtension=s8.unsupported,this.scanOneOrMultipleExtensions=s8.unsupported,this.scanMultipleExtensions=s8.unsupported,this.scanAllUserExtensions=s8.unsupported,this.initializeDefaultProfileExtensions=s8.unsupported,this.updateManifestMetadata=s8.unsupported}get systemExtensionsLocation(){return(0,s8.unsupported)()}get userExtensionsLocation(){return(0,s8.unsupported)()}}(0,eJ.__decorate)([s6],az.prototype,"systemExtensionsLocation",null),(0,eJ.__decorate)([s6],az.prototype,"userExtensionsLocation",null),(0,eJ.__decorate)([s6],az.prototype,"scanAllExtensions",void 0),(0,eJ.__decorate)([s6],az.prototype,"scanSystemExtensions",void 0),(0,eJ.__decorate)([s6],az.prototype,"scanUserExtensions",void 0),(0,eJ.__decorate)([s6],az.prototype,"scanExtensionsUnderDevelopment",void 0),(0,eJ.__decorate)([s6],az.prototype,"scanExistingExtension",void 0),(0,eJ.__decorate)([s6],az.prototype,"scanOneOrMultipleExtensions",void 0),(0,eJ.__decorate)([s6],az.prototype,"scanMultipleExtensions",void 0),(0,eJ.__decorate)([s6],az.prototype,"scanAllUserExtensions",void 0),(0,eJ.__decorate)([s6],az.prototype,"initializeDefaultProfileExtensions",void 0),(0,eJ.__decorate)([s6],az.prototype,"updateManifestMetadata",void 0),(0,t0.registerSingleton)(t$.IExtensionsScannerService,az,t0.InstantiationType.Eager);class aV{constructor(){this.onAddExtensions=e1.Event.None,this.onDidAddExtensions=e1.Event.None,this.onRemoveExtensions=e1.Event.None,this.onDidRemoveExtensions=e1.Event.None,this.scanProfileExtensions=s8.unsupported,this.addExtensionsToProfile=s8.unsupported,this.updateMetadata=s8.unsupported,this.removeExtensionsFromProfile=s8.unsupported}}(0,eJ.__decorate)([s6],aV.prototype,"scanProfileExtensions",void 0),(0,eJ.__decorate)([s6],aV.prototype,"addExtensionsToProfile",void 0),(0,eJ.__decorate)([s6],aV.prototype,"updateMetadata",void 0),(0,eJ.__decorate)([s6],aV.prototype,"removeExtensionsFromProfile",void 0),(0,t0.registerSingleton)(tG.IExtensionsProfileScannerService,aV,t0.InstantiationType.Eager);class aB{constructor(){this.onDidChangeIgnoredRecommendations=e1.Event.None,this.ignoredRecommendations=[],this.onDidChangeGlobalIgnoredRecommendation=e1.Event.None,this.globalIgnoredRecommendations=[],this.toggleGlobalIgnoredRecommendation=s8.unsupported}}(0,eJ.__decorate)([s6],aB.prototype,"toggleGlobalIgnoredRecommendation",void 0),(0,t0.registerSingleton)(rM.IExtensionIgnoredRecommendationsService,aB,t0.InstantiationType.Eager);class aU{constructor(){this.onDidChangeExtensionsConfigs=e1.Event.None,this.getExtensionsConfigs=s8.unsupported,this.getRecommendations=s8.unsupported,this.getUnwantedRecommendations=s8.unsupported,this.toggleRecommendation=s8.unsupported,this.toggleUnwantedRecommendation=s8.unsupported}}(0,eJ.__decorate)([s6],aU.prototype,"getExtensionsConfigs",void 0),(0,eJ.__decorate)([s6],aU.prototype,"getRecommendations",void 0),(0,eJ.__decorate)([s6],aU.prototype,"getUnwantedRecommendations",void 0),(0,eJ.__decorate)([s6],aU.prototype,"toggleRecommendation",void 0),(0,eJ.__decorate)([s6],aU.prototype,"toggleUnwantedRecommendation",void 0),(0,t0.registerSingleton)(rP.IWorkspaceExtensionsConfigService,aU,t0.InstantiationType.Eager);class aH{constructor(){this.getEnablementStates=e=>e.map(()=>rk.EnablementState.EnabledGlobally),this.onEnablementChanged=e1.Event.None,this.getEnablementState=()=>rk.EnablementState.EnabledGlobally,this.getDependenciesEnablementStates=()=>[],this.canChangeEnablement=()=>!1,this.canChangeWorkspaceEnablement=()=>!1,this.isEnabled=()=>!0,this.isEnabledEnablementState=()=>!0,this.isDisabledGlobally=()=>!1,this.setEnablement=s8.unsupported,this.updateExtensionsEnablementsWhenWorkspaceTrustChanges=s8.unsupported}}(0,eJ.__decorate)([s6],aH.prototype,"setEnablement",void 0),(0,eJ.__decorate)([s6],aH.prototype,"updateExtensionsEnablementsWhenWorkspaceTrustChanges",void 0),(0,t0.registerSingleton)(rT.IWorkbenchExtensionEnablementService,aH,t0.InstantiationType.Eager);class aq{constructor(){this.canChangeProtocol=!1,this.tunnels=Promise.resolve([]),this.canChangePrivacy=!1,this.privacyOptions=[],this.onTunnelOpened=e1.Event.None,this.onTunnelClosed=e1.Event.None,this.canElevate=!1,this.hasTunnelProvider=!1,this.onAddedTunnelProvider=e1.Event.None,this.canTunnel=()=>!1,this.openTunnel=s8.unsupported,this.getExistingTunnel=async()=>void 0,this.setEnvironmentTunnel=s8.unsupported,this.closeTunnel=s8.unsupported,this.setTunnelProvider=s8.unsupported,this.setTunnelFeatures=s8.unsupported,this.isPortPrivileged=()=>!1}}(0,eJ.__decorate)([s6],aq.prototype,"openTunnel",void 0),(0,eJ.__decorate)([s6],aq.prototype,"setEnvironmentTunnel",void 0),(0,eJ.__decorate)([s6],aq.prototype,"closeTunnel",void 0),(0,eJ.__decorate)([s6],aq.prototype,"setTunnelProvider",void 0),(0,eJ.__decorate)([s6],aq.prototype,"setTunnelFeatures",void 0),(0,t0.registerSingleton)(iu.ITunnelService,aq,t0.InstantiationType.Eager);class aG{constructor(){this.onDidChangeAutoSaveConfiguration=e1.Event.None,this.onDidChangeAutoSaveDisabled=e1.Event.None,this.hasShortAutoSaveDelay=()=>!1,this.disableAutoSave=s8.unsupported,this.enableAutoSaveAfterShortDelay=s8.unsupported,this.onDidChangeReadonly=e1.Event.None,this.onDidChangeFilesAssociation=e1.Event.None,this.getAutoSaveConfiguration=s8.unsupported,this.getAutoSaveMode=s8.unsupported,this.toggleAutoSave=s8.unsupported,this.isReadonly=s8.unsupported,this.updateReadonly=s8.unsupported,this.isHotExitEnabled=!0,this.hotExitConfiguration=void 0,this.preventSaveConflicts=s8.unsupported}}(0,eJ.__decorate)([s6],aG.prototype,"disableAutoSave",void 0),(0,eJ.__decorate)([s6],aG.prototype,"enableAutoSaveAfterShortDelay",void 0),(0,eJ.__decorate)([s6],aG.prototype,"getAutoSaveConfiguration",void 0),(0,eJ.__decorate)([s6],aG.prototype,"getAutoSaveMode",void 0),(0,eJ.__decorate)([s6],aG.prototype,"toggleAutoSave",void 0),(0,eJ.__decorate)([s6],aG.prototype,"isReadonly",void 0),(0,eJ.__decorate)([s6],aG.prototype,"updateReadonly",void 0),(0,eJ.__decorate)([s6],aG.prototype,"preventSaveConflicts",void 0),(0,t0.registerSingleton)(rK.IFilesConfigurationService,aG,t0.InstantiationType.Eager);class a${constructor(){this.onDidSave=e1.Event.None,this.onDidCreate=e1.Event.None,this.canDispose=()=>!0,this.isUntitledWithAssociatedResource=()=>!1,this.onDidChangeDirty=e1.Event.None,this.onDidChangeEncoding=e1.Event.None,this.onDidChangeLabel=e1.Event.None,this.onWillDispose=e1.Event.None,this.create=s8.unsupported,this.get=()=>void 0,this.getValue=()=>void 0,this.resolve=s8.unsupported}}(0,eJ.__decorate)([s6],a$.prototype,"create",void 0),(0,eJ.__decorate)([s6],a$.prototype,"resolve",void 0),(0,t0.registerSingleton)(nr.IUntitledTextEditorService,a$,t0.InstantiationType.Eager),(0,t0.registerSingleton)(nI.IWorkingCopyBackupService,class{constructor(){this.hasBackupSync=()=>!1,this.getBackups=async()=>[],this.resolve=async()=>{},this.backup=async()=>{},this.discardBackup=async()=>{},this.discardBackups=async()=>{}}},t0.InstantiationType.Eager),(0,t0.registerSingleton)(nA.IWorkingCopyService,class{constructor(){this.onDidRegister=e1.Event.None,this.onDidUnregister=e1.Event.None,this.onDidChangeDirty=e1.Event.None,this.onDidChangeContent=e1.Event.None,this.onDidSave=e1.Event.None,this.dirtyCount=0,this.dirtyWorkingCopies=[],this.modifiedCount=0,this.modifiedWorkingCopies=[],this.hasDirty=!1,this.isDirty=()=>!1,this.workingCopies=[],this.registerWorkingCopy=()=>e2.Disposable.None,this.has=()=>!1,this.get=()=>void 0,this.getAll=()=>void 0}},t0.InstantiationType.Eager);class aQ{constructor(){this.onDidChangeDecorations=e1.Event.None,this.registerDecorationsProvider=s8.unsupported,this.getDecoration=()=>void 0}}(0,eJ.__decorate)([s6],aQ.prototype,"registerDecorationsProvider",void 0),(0,t0.registerSingleton)(r_.IDecorationsService,aQ,t0.InstantiationType.Eager);class aj{constructor(){this.isSupported=()=>!1,this.writeFileElevated=s8.unsupported}}(0,eJ.__decorate)([s6],aj.prototype,"writeFileElevated",void 0),(0,t0.registerSingleton)(rF.IElevatedFileService,aj,t0.InstantiationType.Eager);class aY{constructor(){this.preferredHome=s8.unsupported,this.defaultFilePath=s8.unsupported,this.defaultFolderPath=s8.unsupported,this.defaultWorkspacePath=s8.unsupported,this.pickFileFolderAndOpen=s8.unsupported,this.pickFileAndOpen=s8.unsupported,this.pickFolderAndOpen=s8.unsupported,this.pickWorkspaceAndOpen=s8.unsupported,this.pickFileToSave=s8.unsupported,this.showSaveDialog=s8.unsupported,this.showSaveConfirm=s8.unsupported,this.showOpenDialog=s8.unsupported}}(0,eJ.__decorate)([s6],aY.prototype,"preferredHome",void 0),(0,eJ.__decorate)([s6],aY.prototype,"defaultFilePath",void 0),(0,eJ.__decorate)([s6],aY.prototype,"defaultFolderPath",void 0),(0,eJ.__decorate)([s6],aY.prototype,"defaultWorkspacePath",void 0),(0,eJ.__decorate)([s6],aY.prototype,"pickFileFolderAndOpen",void 0),(0,eJ.__decorate)([s6],aY.prototype,"pickFileAndOpen",void 0),(0,eJ.__decorate)([s6],aY.prototype,"pickFolderAndOpen",void 0),(0,eJ.__decorate)([s6],aY.prototype,"pickWorkspaceAndOpen",void 0),(0,eJ.__decorate)([s6],aY.prototype,"pickFileToSave",void 0),(0,eJ.__decorate)([s6],aY.prototype,"showSaveDialog",void 0),(0,eJ.__decorate)([s6],aY.prototype,"showSaveConfirm",void 0),(0,eJ.__decorate)([s6],aY.prototype,"showOpenDialog",void 0),(0,t0.registerSingleton)(tW.IFileDialogService,aY,t0.InstantiationType.Eager);class aX{constructor(){this.write=s8.unsupported}}(0,eJ.__decorate)([s6],aX.prototype,"write",void 0),(0,t0.registerSingleton)(ry.IJSONEditingService,aX,t0.InstantiationType.Delayed);class aZ{constructor(){this.enterWorkspace=s8.unsupported,this.createUntitledWorkspace=s8.unsupported,this.deleteUntitledWorkspace=s8.unsupported,this.getWorkspaceIdentifier=s8.unsupported,this.onDidChangeRecentlyOpened=e1.Event.None,this.addRecentlyOpened=s8.unsupported,this.removeRecentlyOpened=s8.unsupported,this.clearRecentlyOpened=s8.unsupported,this.getRecentlyOpened=s8.unsupported,this.getDirtyWorkspaces=s8.unsupported}}(0,eJ.__decorate)([s6],aZ.prototype,"enterWorkspace",void 0),(0,eJ.__decorate)([s6],aZ.prototype,"createUntitledWorkspace",void 0),(0,eJ.__decorate)([s6],aZ.prototype,"deleteUntitledWorkspace",void 0),(0,eJ.__decorate)([s6],aZ.prototype,"getWorkspaceIdentifier",void 0),(0,eJ.__decorate)([s6],aZ.prototype,"addRecentlyOpened",void 0),(0,eJ.__decorate)([s6],aZ.prototype,"removeRecentlyOpened",void 0),(0,eJ.__decorate)([s6],aZ.prototype,"clearRecentlyOpened",void 0),(0,eJ.__decorate)([s6],aZ.prototype,"getRecentlyOpened",void 0),(0,eJ.__decorate)([s6],aZ.prototype,"getDirtyWorkspaces",void 0),(0,t0.registerSingleton)(iL.IWorkspacesService,aZ,t0.InstantiationType.Delayed);class aJ{constructor(){this.createTextEditor=s8.unsupported,this.resolveTextEditor=s8.unsupported}}(0,eJ.__decorate)([s6],aJ.prototype,"createTextEditor",void 0),(0,eJ.__decorate)([s6],aJ.prototype,"resolveTextEditor",void 0),(0,t0.registerSingleton)(r4.ITextEditorService,aJ,t0.InstantiationType.Eager);class a0{constructor(){this.getAllUserAssociations=s8.unsupported,this.getAssociationsForResource=s8.unsupported,this.updateUserAssociations=s8.unsupported,this.onDidChangeEditorRegistrations=e1.Event.None,this.bufferChangeEvents=s8.unsupported,this.registerEditor=()=>({dispose:()=>{}}),this.resolveEditor=s8.unsupported,this.getEditors=()=>[]}}(0,eJ.__decorate)([s6],a0.prototype,"getAllUserAssociations",void 0),(0,eJ.__decorate)([s6],a0.prototype,"getAssociationsForResource",void 0),(0,eJ.__decorate)([s6],a0.prototype,"updateUserAssociations",void 0),(0,eJ.__decorate)([s6],a0.prototype,"bufferChangeEvents",void 0),(0,eJ.__decorate)([s6],a0.prototype,"resolveEditor",void 0),(0,t0.registerSingleton)(rw.IEditorResolverService,a0,t0.InstantiationType.Eager);class a1{constructor(){this.canSetLogLevel=()=>!1,this.getLogLevel=()=>void 0,this.setLogLevel=()=>{},this.getChannel=()=>{},this.registerCompoundLogChannel=s8.unsupported,this.saveOutputAs=s8.unsupported,this.getChannelDescriptor=()=>{},this.getChannelDescriptors=()=>[],this.getActiveChannel=()=>{},this.showChannel=async()=>{},this.onActiveOutputChannel=e1.Event.None}get filters(){return(0,s8.unsupported)()}}(0,eJ.__decorate)([s6],a1.prototype,"filters",null),(0,eJ.__decorate)([s6],a1.prototype,"registerCompoundLogChannel",void 0),(0,eJ.__decorate)([s6],a1.prototype,"saveOutputAs",void 0),(0,t0.registerSingleton)(rZ.IOutputService,a1,t0.InstantiationType.Delayed);class a2{constructor(){this.readExtensionResource=s8.unsupported,this.supportsExtensionGalleryResources=async()=>!1,this.isExtensionGalleryResource=async()=>!1,this.getExtensionGalleryResourceURL=s8.unsupported}}(0,eJ.__decorate)([s6],a2.prototype,"readExtensionResource",void 0),(0,eJ.__decorate)([s6],a2.prototype,"getExtensionGalleryResourceURL",void 0),(0,t0.registerSingleton)(tj.IExtensionResourceLoaderService,a2,t0.InstantiationType.Eager),(0,t0.registerSingleton)(tY.IBuiltinExtensionsScannerService,class{constructor(){this.scanBuiltinExtensions=()=>Promise.resolve([])}},t0.InstantiationType.Eager);class a3{constructor(){this.roots=[],this.getContext=s8.unsupported,this.hasViewFocus=s8.unsupported,this.setEditable=s8.unsupported,this.getEditable=s8.unsupported,this.getEditableData=s8.unsupported,this.isEditable=s8.unsupported,this.findClosest=s8.unsupported,this.findClosestRoot=s8.unsupported,this.refresh=s8.unsupported,this.setToCopy=s8.unsupported,this.isCut=s8.unsupported,this.applyBulkEdit=s8.unsupported,this.select=s8.unsupported,this.registerView=s8.unsupported}get sortOrderConfiguration(){return(0,s8.unsupported)()}}(0,eJ.__decorate)([s6],a3.prototype,"sortOrderConfiguration",null),(0,eJ.__decorate)([s6],a3.prototype,"getContext",void 0),(0,eJ.__decorate)([s6],a3.prototype,"hasViewFocus",void 0),(0,eJ.__decorate)([s6],a3.prototype,"setEditable",void 0),(0,eJ.__decorate)([s6],a3.prototype,"getEditable",void 0),(0,eJ.__decorate)([s6],a3.prototype,"getEditableData",void 0),(0,eJ.__decorate)([s6],a3.prototype,"isEditable",void 0),(0,eJ.__decorate)([s6],a3.prototype,"findClosest",void 0),(0,eJ.__decorate)([s6],a3.prototype,"findClosestRoot",void 0),(0,eJ.__decorate)([s6],a3.prototype,"refresh",void 0),(0,eJ.__decorate)([s6],a3.prototype,"setToCopy",void 0),(0,eJ.__decorate)([s6],a3.prototype,"isCut",void 0),(0,eJ.__decorate)([s6],a3.prototype,"applyBulkEdit",void 0),(0,eJ.__decorate)([s6],a3.prototype,"select",void 0),(0,eJ.__decorate)([s6],a3.prototype,"registerView",void 0),(0,t0.registerSingleton)(oi.IExplorerService,a3,t0.InstantiationType.Delayed);class a8{constructor(){this.getExtensionState=()=>void 0,this.getExtensionStateRaw=()=>void 0,this.setExtensionState=s8.unsupported,this.onDidChangeExtensionStorageToSync=e1.Event.None,this.setKeysForSync=s8.unsupported,this.getKeysForSync=()=>void 0,this.addToMigrationList=s8.unsupported,this.getSourceExtensionToMigrate=()=>void 0}}(0,eJ.__decorate)([s6],a8.prototype,"setExtensionState",void 0),(0,eJ.__decorate)([s6],a8.prototype,"setKeysForSync",void 0),(0,eJ.__decorate)([s6],a8.prototype,"addToMigrationList",void 0),(0,t0.registerSingleton)(tq.IExtensionStorageService,a8,t0.InstantiationType.Delayed),(0,t0.registerSingleton)(tH.IGlobalExtensionEnablementService,class{constructor(){this.onDidChangeEnablement=e1.Event.None,this.getDisabledExtensions=()=>[],this.enableExtension=()=>Promise.resolve(!0),this.disableExtension=()=>Promise.resolve(!0)}},t0.InstantiationType.Delayed),(0,t0.registerSingleton)(t2.ILanguagePackService,class{constructor(){this.getAvailableLanguages=async()=>[],this.getInstalledLanguages=async()=>[],this.getBuiltInExtensionTranslationsUri=async(e,t)=>{let i=(0,s3.getBuiltInExtensionTranslationsUris)(t)?.[e];return null!=i?e6.URI.parse(i):void 0}}},t0.InstantiationType.Delayed);class a5{constructor(){this.removeDragOperationTransfer=s8.unsupported,this.addDragOperationTransfer=s8.unsupported}}(0,eJ.__decorate)([s6],a5.prototype,"removeDragOperationTransfer",void 0),(0,eJ.__decorate)([s6],a5.prototype,"addDragOperationTransfer",void 0),(0,t0.registerSingleton)(tp.ITreeViewsDnDService,a5,t0.InstantiationType.Delayed);class a6{constructor(){this.register=s8.unsupported,this.getWidget=()=>void 0}}(0,eJ.__decorate)([s6],a6.prototype,"register",void 0),(0,t0.registerSingleton)(iO.IBreadcrumbsService,a6,t0.InstantiationType.Eager);class a7{constructor(){this.onDidChange=e1.Event.None,this.canCreateOutline=()=>!1,this.createOutline=async()=>void 0,this.registerOutlineCreator=s8.unsupported}}(0,eJ.__decorate)([s6],a7.prototype,"registerOutlineCreator",void 0),(0,t0.registerSingleton)(rX.IOutlineService,a7,t0.InstantiationType.Eager);class a9{constructor(){this.onStateChange=e1.Event.None,this.state=ig.State.Uninitialized,this.checkForUpdates=s8.unsupported,this.downloadUpdate=s8.unsupported,this.applyUpdate=s8.unsupported,this.quitAndInstall=s8.unsupported,this.isLatestVersion=async()=>!0,this._applySpecificUpdate=s8.unsupported}}(0,eJ.__decorate)([s6],a9.prototype,"checkForUpdates",void 0),(0,eJ.__decorate)([s6],a9.prototype,"downloadUpdate",void 0),(0,eJ.__decorate)([s6],a9.prototype,"applyUpdate",void 0),(0,eJ.__decorate)([s6],a9.prototype,"quitAndInstall",void 0),(0,eJ.__decorate)([s6],a9.prototype,"_applySpecificUpdate",void 0),(0,t0.registerSingleton)(im.IUpdateService,a9,t0.InstantiationType.Eager);class a4{constructor(){this.overrideEntry=s8.unsupported,this.getPart=s8.unsupported,this.createAuxiliaryStatusbarPart=s8.unsupported,this.createScoped=s8.unsupported,this.dispose=s8.unsupported,this.onDidChangeEntryVisibility=e1.Event.None,this.addEntry=()=>({dispose:()=>{},update:()=>{}}),this.isEntryVisible=()=>!1,this.updateEntryVisibility=()=>{},this.focus=()=>{},this.focusNextEntry=()=>{},this.focusPreviousEntry=()=>{},this.isEntryFocused=()=>!1,this.overrideStyle=()=>e2.Disposable.None}}(0,eJ.__decorate)([s6],a4.prototype,"overrideEntry",void 0),(0,eJ.__decorate)([s6],a4.prototype,"getPart",void 0),(0,eJ.__decorate)([s6],a4.prototype,"createAuxiliaryStatusbarPart",void 0),(0,eJ.__decorate)([s6],a4.prototype,"createScoped",void 0),(0,eJ.__decorate)([s6],a4.prototype,"dispose",void 0),(0,t0.registerSingleton)(r6.IStatusbarService,a4,t0.InstantiationType.Eager);class de{constructor(){this.isEnabled=()=>!1,this.query=s8.unsupported,this.getExtensions=s8.unsupported,this.isExtensionCompatible=s8.unsupported,this.getCompatibleExtension=s8.unsupported,this.getAllCompatibleVersions=s8.unsupported,this.download=s8.unsupported,this.downloadSignatureArchive=s8.unsupported,this.reportStatistic=s8.unsupported,this.getReadme=s8.unsupported,this.getManifest=s8.unsupported,this.getChangelog=s8.unsupported,this.getCoreTranslation=s8.unsupported,this.getExtensionsControlManifest=s8.unsupported,this.getAllVersions=async()=>[]}}(0,eJ.__decorate)([s6],de.prototype,"query",void 0),(0,eJ.__decorate)([s6],de.prototype,"getExtensions",void 0),(0,eJ.__decorate)([s6],de.prototype,"isExtensionCompatible",void 0),(0,eJ.__decorate)([s6],de.prototype,"getCompatibleExtension",void 0),(0,eJ.__decorate)([s6],de.prototype,"getAllCompatibleVersions",void 0),(0,eJ.__decorate)([s6],de.prototype,"download",void 0),(0,eJ.__decorate)([s6],de.prototype,"downloadSignatureArchive",void 0),(0,eJ.__decorate)([s6],de.prototype,"reportStatistic",void 0),(0,eJ.__decorate)([s6],de.prototype,"getReadme",void 0),(0,eJ.__decorate)([s6],de.prototype,"getManifest",void 0),(0,eJ.__decorate)([s6],de.prototype,"getChangelog",void 0),(0,eJ.__decorate)([s6],de.prototype,"getCoreTranslation",void 0),(0,eJ.__decorate)([s6],de.prototype,"getExtensionsControlManifest",void 0),(0,t0.registerSingleton)(tH.IExtensionGalleryService,de,t0.InstantiationType.Eager);class dt{constructor(){this.onAnyInstanceAddedCapabilityType=e1.Event.None,this.onAnyInstanceShellTypeChanged=e1.Event.None,this.revealTerminal=s8.unsupported,this.focusInstance=s8.unsupported,this.createOnInstanceCapabilityEvent=()=>({event:e1.Event.None,dispose(){}}),this.onAnyInstanceData=e1.Event.None,this.moveIntoNewEditor=s8.unsupported,this.detachedInstances=[],this.onAnyInstanceDataInput=e1.Event.None,this.onAnyInstanceIconChange=e1.Event.None,this.onAnyInstanceMaximumDimensionsChange=e1.Event.None,this.onAnyInstancePrimaryStatusChange=e1.Event.None,this.onAnyInstanceProcessIdReady=e1.Event.None,this.onAnyInstanceSelectionChange=e1.Event.None,this.onAnyInstanceTitleChange=e1.Event.None,this.createOnInstanceEvent=e=>new e1.DynamicListEventMultiplexer(this.instances,this.onDidCreateInstance,this.onDidDisposeInstance,e),this.createDetachedTerminal=s8.unsupported,this.whenConnected=Promise.resolve(),this.restoredGroupCount=0,this.instances=[],this.revealActiveTerminal=s8.unsupported,this.isProcessSupportRegistered=!1,this.connectionState=oV.TerminalConnectionState.Connected,this.onDidChangeActiveGroup=e1.Event.None,this.onDidCreateInstance=e1.Event.None,this.onDidChangeInstanceDimensions=e1.Event.None,this.onDidRequestStartExtensionTerminal=e1.Event.None,this.onDidRegisterProcessSupport=e1.Event.None,this.onDidChangeConnectionState=e1.Event.None,this.createTerminal=s8.unsupported,this.getInstanceFromId=s8.unsupported,this.getReconnectedTerminals=()=>void 0,this.getActiveOrCreateInstance=s8.unsupported,this.moveToEditor=s8.unsupported,this.moveToTerminalView=s8.unsupported,this.getPrimaryBackend=s8.unsupported,this.refreshActiveGroup=s8.unsupported,this.registerProcessSupport=()=>{},this.showProfileQuickPick=s8.unsupported,this.setContainers=s8.unsupported,this.requestStartExtensionTerminal=s8.unsupported,this.isAttachedToTerminal=s8.unsupported,this.safeDisposeTerminal=s8.unsupported,this.getDefaultInstanceHost=s8.unsupported,this.getInstanceHost=s8.unsupported,this.resolveLocation=s8.unsupported,this.setNativeDelegate=s8.unsupported,this.activeInstance=void 0,this.onDidDisposeInstance=e1.Event.None,this.onDidFocusInstance=e1.Event.None,this.onDidChangeActiveInstance=e1.Event.None,this.onDidChangeInstances=e1.Event.None,this.onDidChangeInstanceCapability=e1.Event.None,this.setActiveInstance=s8.unsupported,this.focusActiveInstance=s8.unsupported,this.getInstanceFromResource=s8.unsupported,this.createAndFocusTerminal=s8.unsupported,this.foregroundInstances=[],this.showBackgroundTerminal=s8.unsupported,this.openResource=s8.unsupported,this.setNextCommandId=async()=>{}}}(0,eJ.__decorate)([s6],dt.prototype,"revealTerminal",void 0),(0,eJ.__decorate)([s6],dt.prototype,"focusInstance",void 0),(0,eJ.__decorate)([s6],dt.prototype,"moveIntoNewEditor",void 0),(0,eJ.__decorate)([s6],dt.prototype,"createDetachedTerminal",void 0),(0,eJ.__decorate)([s6],dt.prototype,"revealActiveTerminal",void 0),(0,eJ.__decorate)([s6],dt.prototype,"createTerminal",void 0),(0,eJ.__decorate)([s6],dt.prototype,"getInstanceFromId",void 0),(0,eJ.__decorate)([s6],dt.prototype,"getReconnectedTerminals",void 0),(0,eJ.__decorate)([s6],dt.prototype,"getActiveOrCreateInstance",void 0),(0,eJ.__decorate)([s6],dt.prototype,"moveToEditor",void 0),(0,eJ.__decorate)([s6],dt.prototype,"moveToTerminalView",void 0),(0,eJ.__decorate)([s6],dt.prototype,"getPrimaryBackend",void 0),(0,eJ.__decorate)([s6],dt.prototype,"refreshActiveGroup",void 0),(0,eJ.__decorate)([s6],dt.prototype,"showProfileQuickPick",void 0),(0,eJ.__decorate)([s6],dt.prototype,"setContainers",void 0),(0,eJ.__decorate)([s6],dt.prototype,"requestStartExtensionTerminal",void 0),(0,eJ.__decorate)([s6],dt.prototype,"isAttachedToTerminal",void 0),(0,eJ.__decorate)([s6],dt.prototype,"safeDisposeTerminal",void 0),(0,eJ.__decorate)([s6],dt.prototype,"getDefaultInstanceHost",void 0),(0,eJ.__decorate)([s6],dt.prototype,"getInstanceHost",void 0),(0,eJ.__decorate)([s6],dt.prototype,"resolveLocation",void 0),(0,eJ.__decorate)([s6],dt.prototype,"setNativeDelegate",void 0),(0,eJ.__decorate)([s6],dt.prototype,"setActiveInstance",void 0),(0,eJ.__decorate)([s6],dt.prototype,"focusActiveInstance",void 0),(0,eJ.__decorate)([s6],dt.prototype,"getInstanceFromResource",void 0),(0,eJ.__decorate)([s6],dt.prototype,"createAndFocusTerminal",void 0),(0,eJ.__decorate)([s6],dt.prototype,"showBackgroundTerminal",void 0),(0,eJ.__decorate)([s6],dt.prototype,"openResource",void 0),(0,t0.registerSingleton)(oB.ITerminalService,dt,t0.InstantiationType.Delayed);class di{constructor(){this.defaultLocation=ic.TerminalLocation.Panel,this.onConfigChanged=e1.Event.None,this.setPanelContainer=s8.unsupported,this.configFontIsMonospace=s8.unsupported,this.getFont=s8.unsupported}get config(){return(0,s8.unsupported)()}}(0,eJ.__decorate)([s6],di.prototype,"config",null),(0,eJ.__decorate)([s6],di.prototype,"setPanelContainer",void 0),(0,eJ.__decorate)([s6],di.prototype,"configFontIsMonospace",void 0),(0,eJ.__decorate)([s6],di.prototype,"getFont",void 0),(0,t0.registerSingleton)(oB.ITerminalConfigurationService,di,t0.InstantiationType.Delayed);class dr{constructor(){this.focusInstance=s8.unsupported,this.instances=[],this.openEditor=s8.unsupported,this.detachInstance=s8.unsupported,this.splitInstance=s8.unsupported,this.revealActiveEditor=s8.unsupported,this.resolveResource=s8.unsupported,this.reviveInput=s8.unsupported,this.getInputFromResource=s8.unsupported,this.activeInstance=void 0,this.onDidDisposeInstance=e1.Event.None,this.onDidFocusInstance=e1.Event.None,this.onDidChangeActiveInstance=e1.Event.None,this.onDidChangeInstances=e1.Event.None,this.onDidChangeInstanceCapability=e1.Event.None,this.setActiveInstance=s8.unsupported,this.focusActiveInstance=s8.unsupported,this.getInstanceFromResource=s8.unsupported}}(0,eJ.__decorate)([s6],dr.prototype,"focusInstance",void 0),(0,eJ.__decorate)([s6],dr.prototype,"openEditor",void 0),(0,eJ.__decorate)([s6],dr.prototype,"detachInstance",void 0),(0,eJ.__decorate)([s6],dr.prototype,"splitInstance",void 0),(0,eJ.__decorate)([s6],dr.prototype,"revealActiveEditor",void 0),(0,eJ.__decorate)([s6],dr.prototype,"resolveResource",void 0),(0,eJ.__decorate)([s6],dr.prototype,"reviveInput",void 0),(0,eJ.__decorate)([s6],dr.prototype,"getInputFromResource",void 0),(0,eJ.__decorate)([s6],dr.prototype,"setActiveInstance",void 0),(0,eJ.__decorate)([s6],dr.prototype,"focusActiveInstance",void 0),(0,eJ.__decorate)([s6],dr.prototype,"getInstanceFromResource",void 0),(0,t0.registerSingleton)(oB.ITerminalEditorService,dr,t0.InstantiationType.Delayed);class dn{constructor(){this.focusInstance=s8.unsupported,this.lastAccessedMenu="inline-tab",this.instances=[],this.groups=[],this.activeGroup=void 0,this.activeGroupIndex=0,this.onDidChangeActiveGroup=e1.Event.None,this.onDidDisposeGroup=e1.Event.None,this.onDidChangeGroups=e1.Event.None,this.onDidShow=e1.Event.None,this.onDidChangePanelOrientation=e1.Event.None,this.createGroup=s8.unsupported,this.getGroupForInstance=s8.unsupported,this.moveGroup=s8.unsupported,this.moveGroupToEnd=s8.unsupported,this.moveInstance=s8.unsupported,this.unsplitInstance=s8.unsupported,this.joinInstances=s8.unsupported,this.instanceIsSplit=s8.unsupported,this.getGroupLabels=s8.unsupported,this.setActiveGroupByIndex=s8.unsupported,this.setActiveGroupToNext=s8.unsupported,this.setActiveGroupToPrevious=s8.unsupported,this.setActiveInstanceByIndex=s8.unsupported,this.setContainer=s8.unsupported,this.showPanel=s8.unsupported,this.hidePanel=s8.unsupported,this.focusTabs=s8.unsupported,this.focusHover=s8.unsupported,this.updateVisibility=s8.unsupported,this.onDidDisposeInstance=e1.Event.None,this.onDidFocusInstance=e1.Event.None,this.onDidChangeActiveInstance=e1.Event.None,this.onDidChangeInstances=e1.Event.None,this.onDidChangeInstanceCapability=e1.Event.None,this.setActiveInstance=s8.unsupported,this.focusActiveInstance=s8.unsupported,this.getInstanceFromResource=s8.unsupported}}(0,eJ.__decorate)([s6],dn.prototype,"focusInstance",void 0),(0,eJ.__decorate)([s6],dn.prototype,"createGroup",void 0),(0,eJ.__decorate)([s6],dn.prototype,"getGroupForInstance",void 0),(0,eJ.__decorate)([s6],dn.prototype,"moveGroup",void 0),(0,eJ.__decorate)([s6],dn.prototype,"moveGroupToEnd",void 0),(0,eJ.__decorate)([s6],dn.prototype,"moveInstance",void 0),(0,eJ.__decorate)([s6],dn.prototype,"unsplitInstance",void 0),(0,eJ.__decorate)([s6],dn.prototype,"joinInstances",void 0),(0,eJ.__decorate)([s6],dn.prototype,"instanceIsSplit",void 0),(0,eJ.__decorate)([s6],dn.prototype,"getGroupLabels",void 0),(0,eJ.__decorate)([s6],dn.prototype,"setActiveGroupByIndex",void 0),(0,eJ.__decorate)([s6],dn.prototype,"setActiveGroupToNext",void 0),(0,eJ.__decorate)([s6],dn.prototype,"setActiveGroupToPrevious",void 0),(0,eJ.__decorate)([s6],dn.prototype,"setActiveInstanceByIndex",void 0),(0,eJ.__decorate)([s6],dn.prototype,"setContainer",void 0),(0,eJ.__decorate)([s6],dn.prototype,"showPanel",void 0),(0,eJ.__decorate)([s6],dn.prototype,"hidePanel",void 0),(0,eJ.__decorate)([s6],dn.prototype,"focusTabs",void 0),(0,eJ.__decorate)([s6],dn.prototype,"focusHover",void 0),(0,eJ.__decorate)([s6],dn.prototype,"updateVisibility",void 0),(0,eJ.__decorate)([s6],dn.prototype,"setActiveInstance",void 0),(0,eJ.__decorate)([s6],dn.prototype,"focusActiveInstance",void 0),(0,eJ.__decorate)([s6],dn.prototype,"getInstanceFromResource",void 0),(0,t0.registerSingleton)(oB.ITerminalGroupService,dn,t0.InstantiationType.Delayed);class ds{constructor(){this.onDidRegisterBackend=e1.Event.None,this.getRegisteredBackends=()=>[].values(),this.onDidCreateInstance=e1.Event.None,this.convertProfileToShellLaunchConfig=s8.unsupported,this.createInstance=s8.unsupported,this.getBackend=s8.unsupported,this.didRegisterBackend=s8.unsupported}}(0,eJ.__decorate)([s6],ds.prototype,"convertProfileToShellLaunchConfig",void 0),(0,eJ.__decorate)([s6],ds.prototype,"createInstance",void 0),(0,eJ.__decorate)([s6],ds.prototype,"getBackend",void 0),(0,eJ.__decorate)([s6],ds.prototype,"didRegisterBackend",void 0),(0,t0.registerSingleton)(oB.ITerminalInstanceService,ds,t0.InstantiationType.Delayed);class da{constructor(){this.availableProfiles=[],this.contributedProfiles=[],this.profilesReady=Promise.resolve(),this.getPlatformKey=s8.unsupported,this.refreshAvailableProfiles=s8.unsupported,this.getDefaultProfileName=()=>void 0,this.getDefaultProfile=()=>void 0,this.onDidChangeAvailableProfiles=e1.Event.None,this.getContributedDefaultProfile=s8.unsupported,this.registerContributedProfile=s8.unsupported,this.getContributedProfileProvider=s8.unsupported,this.registerTerminalProfileProvider=s8.unsupported}}(0,eJ.__decorate)([s6],da.prototype,"getPlatformKey",void 0),(0,eJ.__decorate)([s6],da.prototype,"refreshAvailableProfiles",void 0),(0,eJ.__decorate)([s6],da.prototype,"getContributedDefaultProfile",void 0),(0,eJ.__decorate)([s6],da.prototype,"registerContributedProfile",void 0),(0,eJ.__decorate)([s6],da.prototype,"getContributedProfileProvider",void 0),(0,eJ.__decorate)([s6],da.prototype,"registerTerminalProfileProvider",void 0),(0,t0.registerSingleton)(oH.ITerminalProfileService,da,t0.InstantiationType.Delayed);class dd{constructor(){this.onDidChangeLogLevel=e1.Event.None,this.getLevel=s8.unsupported,this.setLevel=s8.unsupported,this.trace=s8.unsupported,this.debug=s8.unsupported,this.info=s8.unsupported,this.warn=s8.unsupported,this.error=s8.unsupported,this.flush=s8.unsupported,this.dispose=s8.unsupported}}(0,eJ.__decorate)([s6],dd.prototype,"getLevel",void 0),(0,eJ.__decorate)([s6],dd.prototype,"setLevel",void 0),(0,eJ.__decorate)([s6],dd.prototype,"trace",void 0),(0,eJ.__decorate)([s6],dd.prototype,"debug",void 0),(0,eJ.__decorate)([s6],dd.prototype,"info",void 0),(0,eJ.__decorate)([s6],dd.prototype,"warn",void 0),(0,eJ.__decorate)([s6],dd.prototype,"error",void 0),(0,eJ.__decorate)([s6],dd.prototype,"flush",void 0),(0,eJ.__decorate)([s6],dd.prototype,"dispose",void 0),(0,t0.registerSingleton)(il.ITerminalLogService,dd,t0.InstantiationType.Delayed);class dc{constructor(){this.linkProviders=new Set([]),this.onDidAddLinkProvider=e1.Event.None,this.onDidRemoveLinkProvider=e1.Event.None,this.registerLinkProvider=s8.unsupported}}(0,eJ.__decorate)([s6],dc.prototype,"registerLinkProvider",void 0),(0,t0.registerSingleton)(oG.ITerminalLinkProviderService,dc,t0.InstantiationType.Delayed),(0,t0.registerSingleton)(oq.ITerminalContributionService,class{constructor(){this.terminalProfiles=[],this.terminalCompletionProviders=[],this.onDidChangeTerminalCompletionProviders=e1.Event.None}},t0.InstantiationType.Delayed);class dl{constructor(){this.resolveIcon=s8.unsupported,this.resolveShellLaunchConfig=s8.unsupported,this.getDefaultProfile=async()=>({profileName:"bash",path:"/bin/bash",isDefault:!0}),this.getDefaultShell=s8.unsupported,this.getDefaultShellArgs=s8.unsupported,this.getDefaultIcon=s8.unsupported,this.getEnvironment=s8.unsupported}}(0,eJ.__decorate)([s6],dl.prototype,"resolveIcon",void 0),(0,eJ.__decorate)([s6],dl.prototype,"resolveShellLaunchConfig",void 0),(0,eJ.__decorate)([s6],dl.prototype,"getDefaultShell",void 0),(0,eJ.__decorate)([s6],dl.prototype,"getDefaultShellArgs",void 0),(0,eJ.__decorate)([s6],dl.prototype,"getDefaultIcon",void 0),(0,eJ.__decorate)([s6],dl.prototype,"getEnvironment",void 0),(0,t0.registerSingleton)(oH.ITerminalProfileResolverService,dl,t0.InstantiationType.Delayed);class du{constructor(){this.collections=new Map,this.onDidChangeCollections=e1.Event.None,this.set=()=>{},this.delete=()=>{}}get mergedCollection(){return(0,s8.unsupported)()}}(0,eJ.__decorate)([s6],du.prototype,"mergedCollection",null),(0,t0.registerSingleton)(oU.IEnvironmentVariableService,du,t0.InstantiationType.Delayed);class dh{constructor(){this.onDidRegisterProvider=e1.Event.None,this.onDidRegisterCommandSelector=e1.Event.None,this.onDidUnregisterProvider=e1.Event.None,this.extensionQuickFixes=Promise.resolve([]),this.providers=new Map,this.registerQuickFixProvider=s8.unsupported,this.registerCommandSelector=s8.unsupported}}(0,eJ.__decorate)([s6],dh.prototype,"registerQuickFixProvider",void 0),(0,eJ.__decorate)([s6],dh.prototype,"registerCommandSelector",void 0),(0,t0.registerSingleton)(o$.ITerminalQuickFixService,dh,t0.InstantiationType.Delayed);class dp{constructor(){this.onDidTurnOnSync=e1.Event.None,this.enabled=!1,this.authenticationProviders=[],this.current=void 0,this.accountStatus=ee.Unavailable,this.onDidChangeAccountStatus=e1.Event.None,this.turnOn=s8.unsupported,this.turnoff=s8.unsupported,this.signIn=s8.unsupported,this.resetSyncedData=s8.unsupported,this.showSyncActivity=s8.unsupported,this.syncNow=s8.unsupported,this.synchroniseUserDataSyncStoreType=s8.unsupported,this.showConflicts=s8.unsupported,this.accept=s8.unsupported,this.getAllLogResources=s8.unsupported,this.downloadSyncActivity=s8.unsupported}}(0,eJ.__decorate)([s6],dp.prototype,"turnOn",void 0),(0,eJ.__decorate)([s6],dp.prototype,"turnoff",void 0),(0,eJ.__decorate)([s6],dp.prototype,"signIn",void 0),(0,eJ.__decorate)([s6],dp.prototype,"resetSyncedData",void 0),(0,eJ.__decorate)([s6],dp.prototype,"showSyncActivity",void 0),(0,eJ.__decorate)([s6],dp.prototype,"syncNow",void 0),(0,eJ.__decorate)([s6],dp.prototype,"synchroniseUserDataSyncStoreType",void 0),(0,eJ.__decorate)([s6],dp.prototype,"showConflicts",void 0),(0,eJ.__decorate)([s6],dp.prototype,"accept",void 0),(0,eJ.__decorate)([s6],dp.prototype,"getAllLogResources",void 0),(0,eJ.__decorate)([s6],dp.prototype,"downloadSyncActivity",void 0),(0,t0.registerSingleton)(nS,dp,t0.InstantiationType.Delayed);class dg{constructor(){this.onDidChangeEnablement=e1.Event.None,this.isEnabled=()=>!1,this.canToggleEnablement=()=>!1,this.setEnablement=s8.unsupported,this.isResourceEnablementConfigured=()=>!1,this.onDidChangeResourceEnablement=e1.Event.None,this.isResourceEnabled=()=>!1,this.setResourceEnablement=s8.unsupported,this.getResourceSyncStateVersion=()=>void 0}}(0,eJ.__decorate)([s6],dg.prototype,"setEnablement",void 0),(0,eJ.__decorate)([s6],dg.prototype,"setResourceEnablement",void 0),(0,t0.registerSingleton)(iw.IUserDataSyncEnablementService,dg,t0.InstantiationType.Delayed);class dm{constructor(){this.addKeybinding=s8.unsupported,this.editKeybinding=s8.unsupported,this.removeKeybinding=s8.unsupported,this.resetKeybinding=s8.unsupported}}(0,eJ.__decorate)([s6],dm.prototype,"addKeybinding",void 0),(0,eJ.__decorate)([s6],dm.prototype,"editKeybinding",void 0),(0,eJ.__decorate)([s6],dm.prototype,"removeKeybinding",void 0),(0,eJ.__decorate)([s6],dm.prototype,"resetKeybinding",void 0),(0,t0.registerSingleton)(rU.IKeybindingEditingService,dm,t0.InstantiationType.Delayed);class dv{constructor(){this.getLocalSearchProvider=s8.unsupported,this.getRemoteSearchProvider=s8.unsupported,this.getAiSearchProvider=s8.unsupported}}(0,eJ.__decorate)([s6],dv.prototype,"getLocalSearchProvider",void 0),(0,eJ.__decorate)([s6],dv.prototype,"getRemoteSearchProvider",void 0),(0,eJ.__decorate)([s6],dv.prototype,"getAiSearchProvider",void 0),(0,t0.registerSingleton)(oD.IPreferencesSearchService,dv,t0.InstantiationType.Delayed);class dy{constructor(){this.createNotebookTextDocumentSnapshot=s8.unsupported,this.restoreNotebookTextModelFromSnapshot=s8.unsupported,this.hasSupportedNotebooks=s8.unsupported,this.tryGetDataProviderSync=()=>void 0,this.canResolve=async()=>!1,this.onAddViewType=e1.Event.None,this.onWillRemoveViewType=e1.Event.None,this.onDidChangeOutputRenderers=e1.Event.None,this.onWillAddNotebookDocument=e1.Event.None,this.onDidAddNotebookDocument=e1.Event.None,this.onWillRemoveNotebookDocument=e1.Event.None,this.onDidRemoveNotebookDocument=e1.Event.None,this.registerNotebookSerializer=s8.unsupported,this.withNotebookDataProvider=s8.unsupported,this.getOutputMimeTypeInfo=s8.unsupported,this.getViewTypeProvider=()=>void 0,this.getRendererInfo=()=>void 0,this.getRenderers=()=>[],this.getStaticPreloads=s8.unsupported,this.updateMimePreferredRenderer=s8.unsupported,this.saveMimeDisplayOrder=s8.unsupported,this.createNotebookTextModel=s8.unsupported,this.getNotebookTextModel=()=>void 0,this.getNotebookTextModels=s8.unsupported,this.listNotebookDocuments=()=>[],this.registerContributedNotebookType=s8.unsupported,this.getContributedNotebookType=()=>void 0,this.getContributedNotebookTypes=()=>[],this.getNotebookProviderResourceRoots=()=>[],this.setToCopy=s8.unsupported,this.getToCopy=s8.unsupported,this.clearEditorCache=s8.unsupported}}(0,eJ.__decorate)([s6],dy.prototype,"createNotebookTextDocumentSnapshot",void 0),(0,eJ.__decorate)([s6],dy.prototype,"restoreNotebookTextModelFromSnapshot",void 0),(0,eJ.__decorate)([s6],dy.prototype,"hasSupportedNotebooks",void 0),(0,eJ.__decorate)([s6],dy.prototype,"registerNotebookSerializer",void 0),(0,eJ.__decorate)([s6],dy.prototype,"withNotebookDataProvider",void 0),(0,eJ.__decorate)([s6],dy.prototype,"getOutputMimeTypeInfo",void 0),(0,eJ.__decorate)([s6],dy.prototype,"getStaticPreloads",void 0),(0,eJ.__decorate)([s6],dy.prototype,"updateMimePreferredRenderer",void 0),(0,eJ.__decorate)([s6],dy.prototype,"saveMimeDisplayOrder",void 0),(0,eJ.__decorate)([s6],dy.prototype,"createNotebookTextModel",void 0),(0,eJ.__decorate)([s6],dy.prototype,"getNotebookTextModels",void 0),(0,eJ.__decorate)([s6],dy.prototype,"registerContributedNotebookType",void 0),(0,eJ.__decorate)([s6],dy.prototype,"setToCopy",void 0),(0,eJ.__decorate)([s6],dy.prototype,"getToCopy",void 0),(0,eJ.__decorate)([s6],dy.prototype,"clearEditorCache",void 0),(0,t0.registerSingleton)(oE.INotebookService,dy,t0.InstantiationType.Delayed);class df{constructor(){this.replace=s8.unsupported,this.openReplacePreview=s8.unsupported,this.updateReplacePreview=s8.unsupported}}(0,eJ.__decorate)([s6],df.prototype,"replace",void 0),(0,eJ.__decorate)([s6],df.prototype,"openReplacePreview",void 0),(0,eJ.__decorate)([s6],df.prototype,"updateReplacePreview",void 0),(0,t0.registerSingleton)(oM.IReplaceService,df,t0.InstantiationType.Delayed);class d_{constructor(){this.onDidClearHistory=e1.Event.None,this.clearHistory=s8.unsupported,this.load=s8.unsupported,this.save=s8.unsupported}}(0,eJ.__decorate)([s6],d_.prototype,"clearHistory",void 0),(0,eJ.__decorate)([s6],d_.prototype,"load",void 0),(0,eJ.__decorate)([s6],d_.prototype,"save",void 0),(0,t0.registerSingleton)(oL.ISearchHistoryService,d_,t0.InstantiationType.Delayed);class dC{constructor(){this.updateReplContextKey=s8.unsupported,this.retrieveWidget=s8.unsupported,this.retrieveExistingWidgetFromURI=()=>void 0,this.retrieveAllExistingWidgets=()=>[],this.onDidAddNotebookEditor=e1.Event.None,this.onDidRemoveNotebookEditor=e1.Event.None,this.addNotebookEditor=s8.unsupported,this.removeNotebookEditor=s8.unsupported,this.getNotebookEditor=()=>void 0,this.listNotebookEditors=()=>[],this.getNotebookForPossibleCell=()=>void 0}}(0,eJ.__decorate)([s6],dC.prototype,"updateReplContextKey",void 0),(0,eJ.__decorate)([s6],dC.prototype,"retrieveWidget",void 0),(0,eJ.__decorate)([s6],dC.prototype,"addNotebookEditor",void 0),(0,eJ.__decorate)([s6],dC.prototype,"removeNotebookEditor",void 0),(0,t0.registerSingleton)(og.INotebookEditorService,dC,t0.InstantiationType.Delayed);class dS{get searchModel(){return(0,s8.unsupported)()}}(0,eJ.__decorate)([s6],dS.prototype,"searchModel",null),(0,t0.registerSingleton)(oP.ISearchViewModelWorkbenchService,dS,t0.InstantiationType.Delayed);class db{constructor(){this.createUntitledNotebookTextModel=s8.unsupported,this.onDidSaveNotebook=e1.Event.None,this.onDidChangeDirty=e1.Event.None,this.onWillFailWithConflict=e1.Event.None,this.isDirty=s8.unsupported,this.resolve=s8.unsupported}}(0,eJ.__decorate)([s6],db.prototype,"createUntitledNotebookTextModel",void 0),(0,eJ.__decorate)([s6],db.prototype,"isDirty",void 0),(0,eJ.__decorate)([s6],db.prototype,"resolve",void 0),(0,t0.registerSingleton)(oy.INotebookEditorModelResolverService,db,t0.InstantiationType.Delayed),(0,t0.registerSingleton)(nE.IWorkingCopyEditorService,class{constructor(){this.onDidRegisterHandler=e1.Event.None,this.registerHandler=()=>e2.Disposable.None,this.findEditor=()=>void 0}},t0.InstantiationType.Delayed);class dI{constructor(){this.isActive=!1,this.onDidChangeIsActive=e1.Event.None,this.markActive=s8.unsupported}}(0,eJ.__decorate)([s6],dI.prototype,"markActive",void 0),(0,t0.registerSingleton)(nn.IUserActivityService,dI,t0.InstantiationType.Delayed);class dE{constructor(){this.registerCanonicalUriProvider=s8.unsupported}}(0,eJ.__decorate)([s6],dE.prototype,"registerCanonicalUriProvider",void 0),(0,t0.registerSingleton)(iT.ICanonicalUriService,dE,t0.InstantiationType.Delayed),(0,t0.registerSingleton)(iN.IExtensionStatusBarItemService,class{constructor(){this.onDidChange=e1.Event.None,this.setOrUpdateEntry=()=>iN.StatusBarUpdateKind.DidUpdate,this.unsetEntry=()=>{},this.getEntries=()=>[]}},t0.InstantiationType.Delayed),(0,t0.registerSingleton)(rr.IWorkbenchAssignmentService,class{constructor(){this.onDidRefetchAssignments=e1.Event.None,this.getCurrentExperiments=async()=>[],this.getTreatment=async()=>void 0,this.addTelemetryAssignmentFilter=()=>{}}},t0.InstantiationType.Delayed);class dw{constructor(){this.activateDefaultAgent=s8.unsupported,this.getChatStorageFolder=s8.unsupported,this.logChatIndex=s8.unsupported,this.setChatSessionTitle=s8.unsupported,this.adoptRequest=s8.unsupported,this.isEnabled=()=>!1,this.resendRequest=s8.unsupported,this.clearAllHistoryEntries=s8.unsupported,this.hasSessions=()=>!1,this.onDidDisposeSession=e1.Event.None,this.transferChatSession=s8.unsupported,this.startSession=s8.unsupported,this.getSession=()=>void 0,this.getOrRestoreSession=async()=>void 0,this.loadSessionFromContent=()=>void 0,this.sendRequest=s8.unsupported,this.removeRequest=s8.unsupported,this.cancelCurrentRequestForSession=s8.unsupported,this.addCompleteRequest=s8.unsupported,this.removeHistoryEntry=s8.unsupported,this.onDidPerformUserAction=e1.Event.None,this.notifyUserAction=s8.unsupported,this.onDidSubmitRequest=e1.Event.None,this.loadSessionForResource=s8.unsupported,this.requestInProgressObs=(0,s5.constObservable)(!1),this.edits2Enabled=!1,this.editingSessions=[],this.getChatSessionFromInternalUri=()=>void 0,this.getLocalSessionHistory=async()=>[],this.chatModels=(0,s5.constObservable)([]),this.getActiveSessionReference=()=>void 0,this.getLiveSessionItems=async()=>[],this.getHistorySessionItems=async()=>[],this.getMetadataForSession=async()=>void 0,this.waitForModelDisposals=async()=>{},this.setSaveModelsEnabled=s8.unsupported,this.appendProgress=s8.unsupported,this.setTitle=s8.unsupported,this.transferredSessionResource=void 0,this.getSessionTitle=()=>void 0}}(0,eJ.__decorate)([s6],dw.prototype,"activateDefaultAgent",void 0),(0,eJ.__decorate)([s6],dw.prototype,"getChatStorageFolder",void 0),(0,eJ.__decorate)([s6],dw.prototype,"logChatIndex",void 0),(0,eJ.__decorate)([s6],dw.prototype,"setChatSessionTitle",void 0),(0,eJ.__decorate)([s6],dw.prototype,"adoptRequest",void 0),(0,eJ.__decorate)([s6],dw.prototype,"resendRequest",void 0),(0,eJ.__decorate)([s6],dw.prototype,"clearAllHistoryEntries",void 0),(0,eJ.__decorate)([s6],dw.prototype,"transferChatSession",void 0),(0,eJ.__decorate)([s6],dw.prototype,"startSession",void 0),(0,eJ.__decorate)([s6],dw.prototype,"sendRequest",void 0),(0,eJ.__decorate)([s6],dw.prototype,"removeRequest",void 0),(0,eJ.__decorate)([s6],dw.prototype,"cancelCurrentRequestForSession",void 0),(0,eJ.__decorate)([s6],dw.prototype,"addCompleteRequest",void 0),(0,eJ.__decorate)([s6],dw.prototype,"removeHistoryEntry",void 0),(0,eJ.__decorate)([s6],dw.prototype,"notifyUserAction",void 0),(0,eJ.__decorate)([s6],dw.prototype,"loadSessionForResource",void 0),(0,eJ.__decorate)([s6],dw.prototype,"setSaveModelsEnabled",void 0),(0,eJ.__decorate)([s6],dw.prototype,"appendProgress",void 0),(0,eJ.__decorate)([s6],dw.prototype,"setTitle",void 0),(0,t0.registerSingleton)(i$.IChatService,dw,t0.InstantiationType.Delayed);class dD{constructor(){this.lastFocusedAnchor=void 0,this.register=s8.unsupported}}(0,eJ.__decorate)([s6],dD.prototype,"register",void 0),(0,t0.registerSingleton)(iV.IChatMarkdownAnchorService,dD,t0.InstantiationType.Delayed);class dA{constructor(){this.update=s8.unsupported}}(0,eJ.__decorate)([s6],dA.prototype,"update",void 0),(0,t0.registerSingleton)(i1.ILanguageModelStatsService,dA,t0.InstantiationType.Delayed);class dx{constructor(){this.focused=!1,this.onDidClose=e1.Event.None,this.enabled=!1,this.toggle=s8.unsupported,this.focus=s8.unsupported,this.open=s8.unsupported,this.close=s8.unsupported,this.openInChatView=s8.unsupported}}(0,eJ.__decorate)([s6],dx.prototype,"toggle",void 0),(0,eJ.__decorate)([s6],dx.prototype,"focus",void 0),(0,eJ.__decorate)([s6],dx.prototype,"open",void 0),(0,eJ.__decorate)([s6],dx.prototype,"close",void 0),(0,eJ.__decorate)([s6],dx.prototype,"openInChatView",void 0),(0,t0.registerSingleton)(iW.IQuickChatService,dx,t0.InstantiationType.Delayed);class dk{constructor(){this._serviceBrand=void 0,this.hasToolsAgent=!1,this.registerChatParticipantDetectionProvider=s8.unsupported,this.detectAgentOrCommand=async()=>void 0,this.hasChatParticipantDetectionProviders=()=>!1,this.getChatTitle=async()=>void 0,this.agentHasDupeName=()=>!1,this.registerAgentCompletionProvider=s8.unsupported,this.getAgentCompletionItems=async()=>[],this.getAgentByFullyQualifiedId=()=>void 0,this.getContributedDefaultAgent=()=>void 0,this.registerAgentImplementation=s8.unsupported,this.registerDynamicAgent=s8.unsupported,this.getActivatedAgents=()=>[],this.getAgentsByName=()=>[],this.getFollowups=async()=>[],this.getDefaultAgent=()=>void 0,this.updateAgent=s8.unsupported,this.onDidChangeAgents=e1.Event.None,this.registerAgent=s8.unsupported,this.invokeAgent=s8.unsupported,this.getAgents=()=>[],this.getAgent=()=>void 0,this.getChatSummary=async()=>void 0,this.setRequestTools=s8.unsupported}}(0,eJ.__decorate)([s6],dk.prototype,"registerChatParticipantDetectionProvider",void 0),(0,eJ.__decorate)([s6],dk.prototype,"registerAgentCompletionProvider",void 0),(0,eJ.__decorate)([s6],dk.prototype,"registerAgentImplementation",void 0),(0,eJ.__decorate)([s6],dk.prototype,"registerDynamicAgent",void 0),(0,eJ.__decorate)([s6],dk.prototype,"updateAgent",void 0),(0,eJ.__decorate)([s6],dk.prototype,"registerAgent",void 0),(0,eJ.__decorate)([s6],dk.prototype,"invokeAgent",void 0),(0,eJ.__decorate)([s6],dk.prototype,"setRequestTools",void 0),(0,t0.registerSingleton)(iH.IChatAgentService,dk,t0.InstantiationType.Delayed),(0,t0.registerSingleton)(iH.IChatAgentNameService,class{constructor(){this.getAgentNameRestriction=()=>!0}},t0.InstantiationType.Delayed);class dT{constructor(){this.onDidCreateTerminal=e1.Event.None,this.createTerminal=s8.unsupported}}(0,eJ.__decorate)([s6],dT.prototype,"createTerminal",void 0),(0,t0.registerSingleton)(r7.IEmbedderTerminalService,dT,t0.InstantiationType.Delayed);class dM{constructor(){this.getCustomEditor=s8.unsupported,this.getAllCustomEditors=s8.unsupported,this.getContributedCustomEditors=s8.unsupported,this.getUserConfiguredCustomEditors=s8.unsupported,this.registerCustomEditorCapabilities=()=>e2.Disposable.None,this.getCustomEditorCapabilities=()=>void 0}get models(){return(0,s8.unsupported)()}}(0,eJ.__decorate)([s6],dM.prototype,"models",null),(0,eJ.__decorate)([s6],dM.prototype,"getCustomEditor",void 0),(0,eJ.__decorate)([s6],dM.prototype,"getAllCustomEditors",void 0),(0,eJ.__decorate)([s6],dM.prototype,"getContributedCustomEditors",void 0),(0,eJ.__decorate)([s6],dM.prototype,"getUserConfiguredCustomEditors",void 0),(0,t0.registerSingleton)(i6.ICustomEditorService,dM,t0.InstantiationType.Delayed);class dP{constructor(){this.webviews=[],this.onDidChangeActiveWebview=e1.Event.None,this.createWebviewElement=s8.unsupported,this.createWebviewOverlay=s8.unsupported}}(0,eJ.__decorate)([s6],dP.prototype,"createWebviewElement",void 0),(0,eJ.__decorate)([s6],dP.prototype,"createWebviewOverlay",void 0),(0,t0.registerSingleton)(o6.IWebviewService,dP,t0.InstantiationType.Delayed);class dR{constructor(){this.onNewResolverRegistered=e1.Event.None,this.register=s8.unsupported,this.resolve=s8.unsupported}}(0,eJ.__decorate)([s6],dR.prototype,"register",void 0),(0,eJ.__decorate)([s6],dR.prototype,"resolve",void 0),(0,t0.registerSingleton)(o9.IWebviewViewService,dR,t0.InstantiationType.Delayed);class dL{constructor(){this.setLocale=s8.unsupported,this.clearLocalePreference=()=>Promise.resolve()}}(0,eJ.__decorate)([s6],dL.prototype,"setLocale",void 0),(0,t0.registerSingleton)(rQ.ILocaleService,dL,t0.InstantiationType.Delayed);class dN{constructor(){this.onDidChangeActiveWebviewEditor=e1.Event.None,this.openWebview=s8.unsupported,this.openRevivedWebview=s8.unsupported,this.revealWebview=s8.unsupported,this.registerResolver=()=>e2.Disposable.None,this.shouldPersist=s8.unsupported,this.resolveWebview=s8.unsupported}}(0,eJ.__decorate)([s6],dN.prototype,"openWebview",void 0),(0,eJ.__decorate)([s6],dN.prototype,"openRevivedWebview",void 0),(0,eJ.__decorate)([s6],dN.prototype,"revealWebview",void 0),(0,eJ.__decorate)([s6],dN.prototype,"shouldPersist",void 0),(0,eJ.__decorate)([s6],dN.prototype,"resolveWebview",void 0),(0,t0.registerSingleton)(o7.IWebviewWorkbenchService,dN,t0.InstantiationType.Delayed);class dO{constructor(){this.onDidChangeConnectionData=e1.Event.None,this.resolveAuthority=s8.unsupported,this.getConnectionData=s8.unsupported,this.getCanonicalURI=s8.unsupported,this._clearResolvedAuthority=s8.unsupported,this._setResolvedAuthority=s8.unsupported,this._setResolvedAuthorityError=s8.unsupported,this._setAuthorityConnectionToken=s8.unsupported,this._setCanonicalURIProvider=s8.unsupported}}(0,eJ.__decorate)([s6],dO.prototype,"resolveAuthority",void 0),(0,eJ.__decorate)([s6],dO.prototype,"getConnectionData",void 0),(0,eJ.__decorate)([s6],dO.prototype,"getCanonicalURI",void 0),(0,eJ.__decorate)([s6],dO.prototype,"_clearResolvedAuthority",void 0),(0,eJ.__decorate)([s6],dO.prototype,"_setResolvedAuthority",void 0),(0,eJ.__decorate)([s6],dO.prototype,"_setResolvedAuthorityError",void 0),(0,eJ.__decorate)([s6],dO.prototype,"_setAuthorityConnectionToken",void 0),(0,eJ.__decorate)([s6],dO.prototype,"_setCanonicalURIProvider",void 0),(0,t0.registerSingleton)(ie.IRemoteAuthorityResolverService,dO,t0.InstantiationType.Delayed),(0,t0.registerSingleton)(ot.IExternalUriOpenerService,class{constructor(){this.registerExternalOpenerProvider=()=>e2.Disposable.None,this.getOpener=async()=>void 0}},t0.InstantiationType.Delayed);class dF{constructor(){this.configureKeybindings=s8.unsupported,this.openHelpLink=s8.unsupported,this.navigateToCodeBlock=s8.unsupported,this.getCodeBlockContext=()=>void 0,this.showLastProvider=s8.unsupported,this.showAccessibleViewHelp=s8.unsupported,this.goToSymbol=s8.unsupported,this.disableHint=s8.unsupported,this.next=s8.unsupported,this.previous=s8.unsupported,this.getOpenAriaHint=s8.unsupported,this.show=s8.unsupported,this.getPosition=s8.unsupported,this.setPosition=s8.unsupported,this.getLastPosition=s8.unsupported}}(0,eJ.__decorate)([s6],dF.prototype,"configureKeybindings",void 0),(0,eJ.__decorate)([s6],dF.prototype,"openHelpLink",void 0),(0,eJ.__decorate)([s6],dF.prototype,"navigateToCodeBlock",void 0),(0,eJ.__decorate)([s6],dF.prototype,"showLastProvider",void 0),(0,eJ.__decorate)([s6],dF.prototype,"showAccessibleViewHelp",void 0),(0,eJ.__decorate)([s6],dF.prototype,"goToSymbol",void 0),(0,eJ.__decorate)([s6],dF.prototype,"disableHint",void 0),(0,eJ.__decorate)([s6],dF.prototype,"next",void 0),(0,eJ.__decorate)([s6],dF.prototype,"previous",void 0),(0,eJ.__decorate)([s6],dF.prototype,"getOpenAriaHint",void 0),(0,eJ.__decorate)([s6],dF.prototype,"show",void 0),(0,eJ.__decorate)([s6],dF.prototype,"getPosition",void 0),(0,eJ.__decorate)([s6],dF.prototype,"setPosition",void 0),(0,eJ.__decorate)([s6],dF.prototype,"getLastPosition",void 0),(0,t0.registerSingleton)(tM.IAccessibleViewService,dF,t0.InstantiationType.Delayed),(0,t0.registerSingleton)(re.IAccessibleViewInformationService,class{constructor(){this.hasShownAccessibleView=()=>!1}},t0.InstantiationType.Delayed);class dK{constructor(){this.preferPreReleases=!1,this.onProfileAwareDidInstallExtensions=e1.Event.None,this.onProfileAwareDidUninstallExtension=e1.Event.None,this.onProfileAwareDidUpdateExtensionMetadata=e1.Event.None,this.toggleApplicationScope=s8.unsupported,this.uninstallExtensions=s8.unsupported,this.resetPinnedStateForAllUserExtensions=s8.unsupported,this.getInstalledWorkspaceExtensionLocations=()=>[],this.onDidEnableExtensions=e1.Event.None,this.getExtensions=async()=>[],this.getInstalledWorkspaceExtensions=async()=>[],this.installResourceExtension=s8.unsupported,this.onInstallExtension=e1.Event.None,this.onDidInstallExtensions=e1.Event.None,this.onUninstallExtension=e1.Event.None,this.onDidUninstallExtension=e1.Event.None,this.onDidChangeProfile=e1.Event.None,this.installVSIX=s8.unsupported,this.installFromLocation=s8.unsupported,this.updateFromGallery=s8.unsupported,this.onDidUpdateExtensionMetadata=e1.Event.None,this.zip=s8.unsupported,this.getManifest=s8.unsupported,this.install=s8.unsupported,this.canInstall=s8.unsupported,this.installFromGallery=s8.unsupported,this.installGalleryExtensions=s8.unsupported,this.installExtensionsFromProfile=s8.unsupported,this.uninstall=s8.unsupported,this.getInstalled=async()=>[],this.getExtensionsControlManifest=s8.unsupported,this.copyExtensions=s8.unsupported,this.updateMetadata=s8.unsupported,this.download=s8.unsupported,this.registerParticipant=s8.unsupported,this.getTargetPlatform=s8.unsupported,this.cleanUp=s8.unsupported,this.getInstallableServers=async()=>[],this.isPublisherTrusted=()=>!1,this.getTrustedPublishers=()=>[],this.requestPublisherTrust=s8.unsupported,this.trustPublishers=s8.unsupported,this.untrustPublishers=s8.unsupported}}(0,eJ.__decorate)([s6],dK.prototype,"toggleApplicationScope",void 0),(0,eJ.__decorate)([s6],dK.prototype,"uninstallExtensions",void 0),(0,eJ.__decorate)([s6],dK.prototype,"resetPinnedStateForAllUserExtensions",void 0),(0,eJ.__decorate)([s6],dK.prototype,"installResourceExtension",void 0),(0,eJ.__decorate)([s6],dK.prototype,"installVSIX",void 0),(0,eJ.__decorate)([s6],dK.prototype,"installFromLocation",void 0),(0,eJ.__decorate)([s6],dK.prototype,"updateFromGallery",void 0),(0,eJ.__decorate)([s6],dK.prototype,"zip",void 0),(0,eJ.__decorate)([s6],dK.prototype,"getManifest",void 0),(0,eJ.__decorate)([s6],dK.prototype,"install",void 0),(0,eJ.__decorate)([s6],dK.prototype,"canInstall",void 0),(0,eJ.__decorate)([s6],dK.prototype,"installFromGallery",void 0),(0,eJ.__decorate)([s6],dK.prototype,"installGalleryExtensions",void 0),(0,eJ.__decorate)([s6],dK.prototype,"installExtensionsFromProfile",void 0),(0,eJ.__decorate)([s6],dK.prototype,"uninstall",void 0),(0,eJ.__decorate)([s6],dK.prototype,"getExtensionsControlManifest",void 0),(0,eJ.__decorate)([s6],dK.prototype,"copyExtensions",void 0),(0,eJ.__decorate)([s6],dK.prototype,"updateMetadata",void 0),(0,eJ.__decorate)([s6],dK.prototype,"download",void 0),(0,eJ.__decorate)([s6],dK.prototype,"registerParticipant",void 0),(0,eJ.__decorate)([s6],dK.prototype,"getTargetPlatform",void 0),(0,eJ.__decorate)([s6],dK.prototype,"cleanUp",void 0),(0,eJ.__decorate)([s6],dK.prototype,"requestPublisherTrust",void 0),(0,eJ.__decorate)([s6],dK.prototype,"trustPublishers",void 0),(0,eJ.__decorate)([s6],dK.prototype,"untrustPublishers",void 0),(0,t0.registerSingleton)(rT.IWorkbenchExtensionManagementService,dK,t0.InstantiationType.Delayed);class dW{constructor(){this.prefersExecuteOnUI=s8.unsupported,this.prefersExecuteOnWorkspace=s8.unsupported,this.prefersExecuteOnWeb=s8.unsupported,this.canExecuteOnUI=s8.unsupported,this.canExecuteOnWorkspace=s8.unsupported,this.canExecuteOnWeb=s8.unsupported,this.getExtensionKind=s8.unsupported,this.getUserConfiguredExtensionKind=s8.unsupported,this.getExtensionUntrustedWorkspaceSupportType=s8.unsupported,this.getExtensionVirtualWorkspaceSupportType=s8.unsupported}}(0,eJ.__decorate)([s6],dW.prototype,"prefersExecuteOnUI",void 0),(0,eJ.__decorate)([s6],dW.prototype,"prefersExecuteOnWorkspace",void 0),(0,eJ.__decorate)([s6],dW.prototype,"prefersExecuteOnWeb",void 0),(0,eJ.__decorate)([s6],dW.prototype,"canExecuteOnUI",void 0),(0,eJ.__decorate)([s6],dW.prototype,"canExecuteOnWorkspace",void 0),(0,eJ.__decorate)([s6],dW.prototype,"canExecuteOnWeb",void 0),(0,eJ.__decorate)([s6],dW.prototype,"getExtensionKind",void 0),(0,eJ.__decorate)([s6],dW.prototype,"getUserConfiguredExtensionKind",void 0),(0,eJ.__decorate)([s6],dW.prototype,"getExtensionUntrustedWorkspaceSupportType",void 0),(0,eJ.__decorate)([s6],dW.prototype,"getExtensionVirtualWorkspaceSupportType",void 0),(0,t0.registerSingleton)(rL.IExtensionManifestPropertiesService,dW,t0.InstantiationType.Delayed),(0,t0.registerSingleton)(iR.IWorkspaceTrustEnablementService,class{constructor(){this.isWorkspaceTrustEnabled=()=>!1}},t0.InstantiationType.Delayed);class dz{constructor(){this.whenExtensionsReady=s8.unsupported,this.scanExtensions=async()=>[]}}(0,eJ.__decorate)([s6],dz.prototype,"whenExtensionsReady",void 0),(0,t0.registerSingleton)(it.IRemoteExtensionsScannerService,dz,t0.InstantiationType.Delayed);class dV{constructor(){this.create=s8.unsupported,this.open=async()=>!1,this.registerHandler=s8.unsupported}}(0,eJ.__decorate)([s6],dV.prototype,"create",void 0),(0,eJ.__decorate)([s6],dV.prototype,"registerHandler",void 0),(0,t0.registerSingleton)(i_.IURLService,dV,t0.InstantiationType.Delayed);class dB{constructor(){this.register=s8.unsupported,this.connect=s8.unsupported}}(0,eJ.__decorate)([s6],dB.prototype,"register",void 0),(0,eJ.__decorate)([s6],dB.prototype,"connect",void 0),(0,t0.registerSingleton)(ii.IRemoteSocketFactoryService,dB,t0.InstantiationType.Delayed);class dU{constructor(){this.onDidChangeQuickDiffProviders=e1.Event.None,this.providers=[],this.isQuickDiffProviderVisible=()=>!1,this.addQuickDiffProvider=s8.unsupported,this.toggleQuickDiffProviderVisibility=s8.unsupported,this.getQuickDiffs=s8.unsupported}}(0,eJ.__decorate)([s6],dU.prototype,"addQuickDiffProvider",void 0),(0,eJ.__decorate)([s6],dU.prototype,"toggleQuickDiffProviderVisibility",void 0),(0,eJ.__decorate)([s6],dU.prototype,"getQuickDiffs",void 0),(0,t0.registerSingleton)(ok.IQuickDiffService,dU,t0.InstantiationType.Delayed);class dH{constructor(){this.onDidAddRepository=e1.Event.None,this.onDidRemoveRepository=e1.Event.None,this.repositories=[],this.repositoryCount=0,this.registerSCMProvider=s8.unsupported,this.getRepository=s8.unsupported}}(0,eJ.__decorate)([s6],dH.prototype,"registerSCMProvider",void 0),(0,eJ.__decorate)([s6],dH.prototype,"getRepository",void 0),(0,t0.registerSingleton)(oT.ISCMService,dH,t0.InstantiationType.Delayed);class dq{constructor(){this.download=s8.unsupported}}(0,eJ.__decorate)([s6],dq.prototype,"download",void 0),(0,t0.registerSingleton)(tz.IDownloadService,dq,t0.InstantiationType.Delayed);class dG{constructor(){this.registerExtensionHandler=s8.unsupported,this.unregisterExtensionHandler=s8.unsupported}}(0,eJ.__decorate)([s6],dG.prototype,"registerExtensionHandler",void 0),(0,eJ.__decorate)([s6],dG.prototype,"unregisterExtensionHandler",void 0),(0,t0.registerSingleton)(rR.IExtensionUrlHandler,dG,t0.InstantiationType.Delayed);class d${constructor(){this.lastActiveCommentcontroller=void 0,this.onResourceHasCommentingRanges=e1.Event.None,this.resourceHasCommentingRanges=()=>!1,this.onDidChangeActiveEditingCommentThread=e1.Event.None,this.setActiveEditingCommentThread=s8.unsupported,this.setActiveCommentAndThread=s8.unsupported,this.onDidSetResourceCommentInfos=e1.Event.None,this.onDidSetAllCommentThreads=e1.Event.None,this.onDidUpdateCommentThreads=e1.Event.None,this.onDidUpdateNotebookCommentThreads=e1.Event.None,this.onDidChangeCurrentCommentThread=e1.Event.None,this.onDidUpdateCommentingRanges=e1.Event.None,this.onDidChangeActiveCommentingRange=e1.Event.None,this.onDidSetDataProvider=e1.Event.None,this.onDidDeleteDataProvider=e1.Event.None,this.onDidChangeCommentingEnabled=e1.Event.None,this.isCommentingEnabled=!1,this.setDocumentComments=s8.unsupported,this.setWorkspaceComments=s8.unsupported,this.removeWorkspaceComments=s8.unsupported,this.registerCommentController=s8.unsupported,this.unregisterCommentController=()=>{},this.getCommentController=s8.unsupported,this.createCommentThreadTemplate=s8.unsupported,this.updateCommentThreadTemplate=s8.unsupported,this.getCommentMenus=s8.unsupported,this.updateComments=s8.unsupported,this.updateNotebookComments=s8.unsupported,this.disposeCommentThread=s8.unsupported,this.getDocumentComments=async()=>[],this.getNotebookComments=async()=>[],this.updateCommentingRanges=s8.unsupported,this.hasReactionHandler=s8.unsupported,this.toggleReaction=s8.unsupported,this.setCurrentCommentThread=s8.unsupported,this.enableCommenting=s8.unsupported,this.registerContinueOnCommentProvider=s8.unsupported,this.removeContinueOnComment=s8.unsupported}get commentsModel(){return(0,s8.unsupported)()}}(0,eJ.__decorate)([s6],d$.prototype,"commentsModel",null),(0,eJ.__decorate)([s6],d$.prototype,"setActiveEditingCommentThread",void 0),(0,eJ.__decorate)([s6],d$.prototype,"setActiveCommentAndThread",void 0),(0,eJ.__decorate)([s6],d$.prototype,"setDocumentComments",void 0),(0,eJ.__decorate)([s6],d$.prototype,"setWorkspaceComments",void 0),(0,eJ.__decorate)([s6],d$.prototype,"removeWorkspaceComments",void 0),(0,eJ.__decorate)([s6],d$.prototype,"registerCommentController",void 0),(0,eJ.__decorate)([s6],d$.prototype,"getCommentController",void 0),(0,eJ.__decorate)([s6],d$.prototype,"createCommentThreadTemplate",void 0),(0,eJ.__decorate)([s6],d$.prototype,"updateCommentThreadTemplate",void 0),(0,eJ.__decorate)([s6],d$.prototype,"getCommentMenus",void 0),(0,eJ.__decorate)([s6],d$.prototype,"updateComments",void 0),(0,eJ.__decorate)([s6],d$.prototype,"updateNotebookComments",void 0),(0,eJ.__decorate)([s6],d$.prototype,"disposeCommentThread",void 0),(0,eJ.__decorate)([s6],d$.prototype,"updateCommentingRanges",void 0),(0,eJ.__decorate)([s6],d$.prototype,"hasReactionHandler",void 0),(0,eJ.__decorate)([s6],d$.prototype,"toggleReaction",void 0),(0,eJ.__decorate)([s6],d$.prototype,"setCurrentCommentThread",void 0),(0,eJ.__decorate)([s6],d$.prototype,"enableCommenting",void 0),(0,eJ.__decorate)([s6],d$.prototype,"registerContinueOnCommentProvider",void 0),(0,eJ.__decorate)([s6],d$.prototype,"removeContinueOnComment",void 0),(0,t0.registerSingleton)(i5.ICommentService,d$,t0.InstantiationType.Delayed);class dQ{constructor(){this.onDidChangeProviders=e1.Event.None,this.onDidChangeItems=e1.Event.None,this.registerCellStatusBarItemProvider=s8.unsupported,this.getStatusBarItemsForCell=s8.unsupported}}(0,eJ.__decorate)([s6],dQ.prototype,"registerCellStatusBarItemProvider",void 0),(0,eJ.__decorate)([s6],dQ.prototype,"getStatusBarItemsForCell",void 0),(0,t0.registerSingleton)(ov.INotebookCellStatusBarService,dQ,t0.InstantiationType.Delayed);class dj{constructor(){this.onDidNotebookVariablesUpdate=e1.Event.None,this.notifyVariablesChange=s8.unsupported,this.onDidAddKernel=e1.Event.None,this.onDidRemoveKernel=e1.Event.None,this.onDidChangeSelectedNotebooks=e1.Event.None,this.onDidChangeNotebookAffinity=e1.Event.None,this.registerKernel=s8.unsupported,this.getMatchingKernel=s8.unsupported,this.getSelectedOrSuggestedKernel=s8.unsupported,this.selectKernelForNotebook=s8.unsupported,this.preselectKernelForNotebook=s8.unsupported,this.updateKernelNotebookAffinity=s8.unsupported,this.onDidChangeKernelDetectionTasks=e1.Event.None,this.registerNotebookKernelDetectionTask=s8.unsupported,this.getKernelDetectionTasks=s8.unsupported,this.onDidChangeSourceActions=e1.Event.None,this.getSourceActions=s8.unsupported,this.getRunningSourceActions=s8.unsupported,this.registerKernelSourceActionProvider=s8.unsupported,this.getKernelSourceActions2=s8.unsupported}}(0,eJ.__decorate)([s6],dj.prototype,"notifyVariablesChange",void 0),(0,eJ.__decorate)([s6],dj.prototype,"registerKernel",void 0),(0,eJ.__decorate)([s6],dj.prototype,"getMatchingKernel",void 0),(0,eJ.__decorate)([s6],dj.prototype,"getSelectedOrSuggestedKernel",void 0),(0,eJ.__decorate)([s6],dj.prototype,"selectKernelForNotebook",void 0),(0,eJ.__decorate)([s6],dj.prototype,"preselectKernelForNotebook",void 0),(0,eJ.__decorate)([s6],dj.prototype,"updateKernelNotebookAffinity",void 0),(0,eJ.__decorate)([s6],dj.prototype,"registerNotebookKernelDetectionTask",void 0),(0,eJ.__decorate)([s6],dj.prototype,"getKernelDetectionTasks",void 0),(0,eJ.__decorate)([s6],dj.prototype,"getSourceActions",void 0),(0,eJ.__decorate)([s6],dj.prototype,"getRunningSourceActions",void 0),(0,eJ.__decorate)([s6],dj.prototype,"registerKernelSourceActionProvider",void 0),(0,eJ.__decorate)([s6],dj.prototype,"getKernelSourceActions2",void 0),(0,t0.registerSingleton)(oC.INotebookKernelService,dj,t0.InstantiationType.Delayed);class dY{constructor(){this.onShouldPostMessage=e1.Event.None,this.prepare=s8.unsupported,this.getScoped=s8.unsupported,this.receiveMessage=s8.unsupported}}(0,eJ.__decorate)([s6],dY.prototype,"prepare",void 0),(0,eJ.__decorate)([s6],dY.prototype,"getScoped",void 0),(0,eJ.__decorate)([s6],dY.prototype,"receiveMessage",void 0),(0,t0.registerSingleton)(oI.INotebookRendererMessagingService,dY,t0.InstantiationType.Delayed);class dX{constructor(){this.matchesCurrent=()=>!1,this.addToHistory=s8.unsupported,this.getPreviousValue=s8.unsupported,this.getNextValue=s8.unsupported,this.replaceLast=s8.unsupported,this.clearHistory=s8.unsupported,this.has=s8.unsupported}}(0,eJ.__decorate)([s6],dX.prototype,"addToHistory",void 0),(0,eJ.__decorate)([s6],dX.prototype,"getPreviousValue",void 0),(0,eJ.__decorate)([s6],dX.prototype,"getNextValue",void 0),(0,eJ.__decorate)([s6],dX.prototype,"replaceLast",void 0),(0,eJ.__decorate)([s6],dX.prototype,"clearHistory",void 0),(0,eJ.__decorate)([s6],dX.prototype,"has",void 0),(0,t0.registerSingleton)(on.IInteractiveHistoryService,dX,t0.InstantiationType.Delayed);class dZ{constructor(){this.onWillAddInteractiveDocument=e1.Event.None,this.onWillRemoveInteractiveDocument=e1.Event.None,this.willCreateInteractiveDocument=s8.unsupported,this.willRemoveInteractiveDocument=s8.unsupported}}(0,eJ.__decorate)([s6],dZ.prototype,"willCreateInteractiveDocument",void 0),(0,eJ.__decorate)([s6],dZ.prototype,"willRemoveInteractiveDocument",void 0),(0,t0.registerSingleton)(or.IInteractiveDocumentService,dZ,t0.InstantiationType.Delayed),(0,t0.registerSingleton)(rQ.IActiveLanguagePackService,class{constructor(){this.getExtensionIdProvidingCurrentLocale=async()=>(0,s3.getExtensionIdProvidingCurrentLocale)()}},t0.InstantiationType.Eager);class dJ{constructor(){this.getRemoteProfiles=async()=>[],this.getRemoteProfile=s8.unsupported}}(0,eJ.__decorate)([s6],dJ.prototype,"getRemoteProfile",void 0),(0,t0.registerSingleton)(nd,dJ,t0.InstantiationType.Eager);class d0{constructor(){this.isDisabledByBisect=()=>!1,this.isActive=!1,this.disabledCount=0,this.start=s8.unsupported,this.next=s8.unsupported,this.reset=s8.unsupported}}(0,eJ.__decorate)([s6],d0.prototype,"start",void 0),(0,eJ.__decorate)([s6],d0.prototype,"next",void 0),(0,eJ.__decorate)([s6],d0.prototype,"reset",void 0),(0,t0.registerSingleton)(rA.IExtensionBisectService,d0,t0.InstantiationType.Eager),(0,t0.registerSingleton)(iD.IUserDataSyncAccountService,class{constructor(){this.onTokenFailed=e1.Event.None,this.account=void 0,this.onDidChangeAccount=e1.Event.None,this.updateAccount=()=>Promise.resolve()}},t0.InstantiationType.Eager);class d1{constructor(){this.getWidgetsByLocations=()=>[],this.onDidAddWidget=e1.Event.None,this.onDidBackgroundSession=e1.Event.None,this.getAllWidgets=()=>[],this.lastFocusedWidget=void 0,this.getWidgetByInputUri=s8.unsupported,this.getWidgetBySessionResource=()=>void 0,this.reveal=s8.unsupported,this.revealWidget=s8.unsupported,this.openSession=s8.unsupported,this.register=()=>e2.Disposable.None}}(0,eJ.__decorate)([s6],d1.prototype,"getWidgetByInputUri",void 0),(0,eJ.__decorate)([s6],d1.prototype,"reveal",void 0),(0,eJ.__decorate)([s6],d1.prototype,"revealWidget",void 0),(0,eJ.__decorate)([s6],d1.prototype,"openSession",void 0),(0,eJ.__decorate)([s6],d1.prototype,"register",void 0),(0,t0.registerSingleton)(iW.IChatWidgetService,d1,t0.InstantiationType.Delayed);class d2{constructor(){this.onDidChangeHelpInformation=e1.Event.None,this.onDidChangeTargetType=e1.Event.None,this.targetType=[],this.onDidChangeEditable=e1.Event.None,this.setEditable=s8.unsupported,this.getEditableData=s8.unsupported,this.forward=s8.unsupported,this.close=s8.unsupported,this.setTunnelInformation=s8.unsupported,this.setCandidateFilter=s8.unsupported,this.onFoundNewCandidates=s8.unsupported,this.restore=s8.unsupported,this.enablePortsFeatures=s8.unsupported,this.onEnabledPortsFeatures=e1.Event.None,this.portsFeaturesEnabled=r3.PortsEnablement.Disabled,this.namedProcesses=new Map}get helpInformation(){return(0,s8.unsupported)()}get tunnelModel(){return(0,s8.unsupported)()}}(0,eJ.__decorate)([s6],d2.prototype,"helpInformation",null),(0,eJ.__decorate)([s6],d2.prototype,"tunnelModel",null),(0,eJ.__decorate)([s6],d2.prototype,"setEditable",void 0),(0,eJ.__decorate)([s6],d2.prototype,"getEditableData",void 0),(0,eJ.__decorate)([s6],d2.prototype,"forward",void 0),(0,eJ.__decorate)([s6],d2.prototype,"close",void 0),(0,eJ.__decorate)([s6],d2.prototype,"setTunnelInformation",void 0),(0,eJ.__decorate)([s6],d2.prototype,"setCandidateFilter",void 0),(0,eJ.__decorate)([s6],d2.prototype,"onFoundNewCandidates",void 0),(0,eJ.__decorate)([s6],d2.prototype,"restore",void 0),(0,eJ.__decorate)([s6],d2.prototype,"enablePortsFeatures",void 0),(0,t0.registerSingleton)(r8.IRemoteExplorerService,d2,t0.InstantiationType.Delayed);class d3{constructor(){this.getAccounts=async()=>[],this.onDidRegisterAuthenticationProvider=e1.Event.None,this.onDidUnregisterAuthenticationProvider=e1.Event.None,this.onDidChangeSessions=e1.Event.None,this.onDidChangeDeclaredProviders=e1.Event.None,this.declaredProviders=[],this.registerDeclaredAuthenticationProvider=s8.unsupported,this.unregisterDeclaredAuthenticationProvider=s8.unsupported,this.isAuthenticationProviderRegistered=()=>!1,this.registerAuthenticationProvider=s8.unsupported,this.unregisterAuthenticationProvider=s8.unsupported,this.getProviderIds=()=>[],this.getProvider=s8.unsupported,this.getSessions=s8.unsupported,this.createSession=s8.unsupported,this.removeSession=s8.unsupported,this.getOrActivateProviderIdForServer=async()=>void 0,this.registerAuthenticationProviderHostDelegate=()=>e2.Disposable.None,this.createDynamicAuthenticationProvider=async()=>void 0,this.isDynamicAuthenticationProvider=()=>!1}}(0,eJ.__decorate)([s6],d3.prototype,"registerDeclaredAuthenticationProvider",void 0),(0,eJ.__decorate)([s6],d3.prototype,"unregisterDeclaredAuthenticationProvider",void 0),(0,eJ.__decorate)([s6],d3.prototype,"registerAuthenticationProvider",void 0),(0,eJ.__decorate)([s6],d3.prototype,"unregisterAuthenticationProvider",void 0),(0,eJ.__decorate)([s6],d3.prototype,"getProvider",void 0),(0,eJ.__decorate)([s6],d3.prototype,"getSessions",void 0),(0,eJ.__decorate)([s6],d3.prototype,"createSession",void 0),(0,eJ.__decorate)([s6],d3.prototype,"removeSession",void 0),(0,t0.registerSingleton)(rl.IAuthenticationService,d3,t0.InstantiationType.Delayed);class d8{constructor(){this.onDidChangeExtensionSessionAccess=e1.Event.None,this.isAccessAllowed=()=>!1,this.readAllowedExtensions=()=>[],this.updateAllowedExtensions=s8.unsupported,this.removeAllowedExtensions=s8.unsupported}}(0,eJ.__decorate)([s6],d8.prototype,"updateAllowedExtensions",void 0),(0,eJ.__decorate)([s6],d8.prototype,"removeAllowedExtensions",void 0),(0,t0.registerSingleton)(rn.IAuthenticationAccessService,d8,t0.InstantiationType.Delayed);class d5{constructor(){this.onDidChangeAccountPreference=e1.Event.None,this.getAccountPreference=()=>void 0,this.updateAccountPreference=s8.unsupported,this.removeAccountPreference=s8.unsupported,this.updateSessionPreference=s8.unsupported,this.getSessionPreference=()=>void 0,this.removeSessionPreference=s8.unsupported,this.selectSession=s8.unsupported,this.requestSessionAccess=s8.unsupported,this.requestNewSession=s8.unsupported,this.updateNewSessionRequests=s8.unsupported}}(0,eJ.__decorate)([s6],d5.prototype,"updateAccountPreference",void 0),(0,eJ.__decorate)([s6],d5.prototype,"removeAccountPreference",void 0),(0,eJ.__decorate)([s6],d5.prototype,"updateSessionPreference",void 0),(0,eJ.__decorate)([s6],d5.prototype,"removeSessionPreference",void 0),(0,eJ.__decorate)([s6],d5.prototype,"selectSession",void 0),(0,eJ.__decorate)([s6],d5.prototype,"requestSessionAccess",void 0),(0,eJ.__decorate)([s6],d5.prototype,"requestNewSession",void 0),(0,eJ.__decorate)([s6],d5.prototype,"updateNewSessionRequests",void 0),(0,t0.registerSingleton)(rl.IAuthenticationExtensionsService,d5,t0.InstantiationType.Delayed);class d6{constructor(){this.initializeExtensionUsageCache=s8.unsupported,this.extensionUsesAuth=async()=>!1,this.readAccountUsages=s8.unsupported,this.removeAccountUsage=s8.unsupported,this.addAccountUsage=s8.unsupported}}(0,eJ.__decorate)([s6],d6.prototype,"initializeExtensionUsageCache",void 0),(0,eJ.__decorate)([s6],d6.prototype,"readAccountUsages",void 0),(0,eJ.__decorate)([s6],d6.prototype,"removeAccountUsage",void 0),(0,eJ.__decorate)([s6],d6.prototype,"addAccountUsage",void 0),(0,t0.registerSingleton)(rc.IAuthenticationUsageService,d6,t0.InstantiationType.Delayed);class d7{constructor(){this.onDidChangeProviders=e1.Event.None,this.onDidChangeTimeline=e1.Event.None,this.onDidChangeUri=e1.Event.None,this.registerTimelineProvider=s8.unsupported,this.unregisterTimelineProvider=s8.unsupported,this.getSources=()=>[],this.getTimeline=s8.unsupported,this.setUri=s8.unsupported}}(0,eJ.__decorate)([s6],d7.prototype,"registerTimelineProvider",void 0),(0,eJ.__decorate)([s6],d7.prototype,"unregisterTimelineProvider",void 0),(0,eJ.__decorate)([s6],d7.prototype,"getTimeline",void 0),(0,eJ.__decorate)([s6],d7.prototype,"setUri",void 0),(0,t0.registerSingleton)(o8.ITimelineService,d7,t0.InstantiationType.Delayed);class d9{constructor(){this.getTestsRelatedToCode=async()=>[],this.getCodeRelatedToTest=async()=>[],this.registerExtHost=()=>e2.Disposable.None,this.provideTestFollowups=s8.unsupported,this.onDidCancelTestRun=e1.Event.None,this.onWillProcessDiff=e1.Event.None,this.onDidProcessDiff=e1.Event.None,this.registerTestController=s8.unsupported,this.getTestController=()=>void 0,this.refreshTests=s8.unsupported,this.cancelRefreshTests=s8.unsupported,this.startContinuousRun=s8.unsupported,this.runTests=s8.unsupported,this.runResolvedTests=s8.unsupported,this.syncTests=s8.unsupported,this.cancelTestRun=s8.unsupported,this.publishDiff=s8.unsupported}get excluded(){return(0,s8.unsupported)()}get collection(){return(0,s8.unsupported)()}get showInlineOutput(){return(0,s8.unsupported)()}}(0,eJ.__decorate)([s6],d9.prototype,"provideTestFollowups",void 0),(0,eJ.__decorate)([s6],d9.prototype,"excluded",null),(0,eJ.__decorate)([s6],d9.prototype,"collection",null),(0,eJ.__decorate)([s6],d9.prototype,"showInlineOutput",null),(0,eJ.__decorate)([s6],d9.prototype,"registerTestController",void 0),(0,eJ.__decorate)([s6],d9.prototype,"refreshTests",void 0),(0,eJ.__decorate)([s6],d9.prototype,"cancelRefreshTests",void 0),(0,eJ.__decorate)([s6],d9.prototype,"startContinuousRun",void 0),(0,eJ.__decorate)([s6],d9.prototype,"runTests",void 0),(0,eJ.__decorate)([s6],d9.prototype,"runResolvedTests",void 0),(0,eJ.__decorate)([s6],d9.prototype,"syncTests",void 0),(0,eJ.__decorate)([s6],d9.prototype,"cancelTestRun",void 0),(0,eJ.__decorate)([s6],d9.prototype,"publishDiff",void 0),(0,t0.registerSingleton)(o0.ITestService,d9,t0.InstantiationType.Delayed);class d4{constructor(){this.onDidChangeSecret=e1.Event.None,this.type="in-memory",this.get=async()=>void 0,this.set=s8.unsupported,this.delete=s8.unsupported}}(0,eJ.__decorate)([s6],d4.prototype,"set",void 0),(0,eJ.__decorate)([s6],d4.prototype,"delete",void 0),(0,t0.registerSingleton)(ir.ISecretStorageService,d4,t0.InstantiationType.Delayed);class ce{constructor(){this.registerShareProvider=s8.unsupported,this.getShareActions=()=>[],this.provideShare=async()=>void 0}}(0,eJ.__decorate)([s6],ce.prototype,"registerShareProvider",void 0),(0,t0.registerSingleton)(oN.IShareService,ce,t0.InstantiationType.Delayed);class ct{constructor(){this.createProfileFromTemplate=async()=>void 0,this.resolveProfileTemplate=async()=>null,this.createFromProfile=s8.unsupported,this.registerProfileContentHandler=()=>e2.Disposable.None,this.unregisterProfileContentHandler=()=>{},this.exportProfile=s8.unsupported,this.createTroubleshootProfile=s8.unsupported}}(0,eJ.__decorate)([s6],ct.prototype,"createFromProfile",void 0),(0,eJ.__decorate)([s6],ct.prototype,"exportProfile",void 0),(0,eJ.__decorate)([s6],ct.prototype,"createTroubleshootProfile",void 0),(0,t0.registerSingleton)(nc.IUserDataProfileImportExportService,ct,t0.InstantiationType.Delayed);class ci{constructor(){this.openReporter=s8.unsupported}}(0,eJ.__decorate)([s6],ci.prototype,"openReporter",void 0),(0,t0.registerSingleton)(oa.IWorkbenchIssueService,ci,t0.InstantiationType.Delayed);class co{constructor(){this.repositories=[],this.onDidChangeRepositories=e1.Event.None,this.visibleRepositories=[],this.onDidChangeVisibleRepositories=e1.Event.None,this.isVisible=()=>!1,this.toggleVisibility=s8.unsupported,this.toggleSortKey=s8.unsupported,this.focusedRepository=void 0,this.onDidFocusRepository=e1.Event.None,this.focus=s8.unsupported,this.pinActiveRepository=s8.unsupported,this.selectionModeConfig=(0,s5.constObservable)(nQ.ISCMRepositorySelectionMode.Single),this.explorerEnabledConfig=(0,s5.constObservable)(!1),this.graphShowIncomingChangesConfig=(0,s5.constObservable)(!1),this.graphShowOutgoingChangesConfig=(0,s5.constObservable)(!1),this.toggleSelectionMode=s8.unsupported,this.didFinishLoadingRepositories=(0,s5.constObservable)(!0)}get activeRepository(){return(0,s8.unsupported)()}get menus(){return(0,s8.unsupported)()}}(0,eJ.__decorate)([s6],co.prototype,"activeRepository",null),(0,eJ.__decorate)([s6],co.prototype,"menus",null),(0,eJ.__decorate)([s6],co.prototype,"toggleVisibility",void 0),(0,eJ.__decorate)([s6],co.prototype,"toggleSortKey",void 0),(0,eJ.__decorate)([s6],co.prototype,"focus",void 0),(0,eJ.__decorate)([s6],co.prototype,"pinActiveRepository",void 0),(0,eJ.__decorate)([s6],co.prototype,"toggleSelectionMode",void 0),(0,t0.registerSingleton)(oT.ISCMViewService,co,t0.InstantiationType.Delayed);class cr{constructor(){this.getLastCompletedCellForNotebook=()=>void 0,this.onDidChangeExecution=e1.Event.None,this.onDidChangeLastRunFailState=e1.Event.None,this.forceCancelNotebookExecutions=s8.unsupported,this.getCellExecutionsForNotebook=s8.unsupported,this.getCellExecutionsByHandleForNotebook=s8.unsupported,this.getCellExecution=s8.unsupported,this.createCellExecution=s8.unsupported,this.getExecution=s8.unsupported,this.createExecution=s8.unsupported,this.getLastFailedCellForNotebook=s8.unsupported}}(0,eJ.__decorate)([s6],cr.prototype,"forceCancelNotebookExecutions",void 0),(0,eJ.__decorate)([s6],cr.prototype,"getCellExecutionsForNotebook",void 0),(0,eJ.__decorate)([s6],cr.prototype,"getCellExecutionsByHandleForNotebook",void 0),(0,eJ.__decorate)([s6],cr.prototype,"getCellExecution",void 0),(0,eJ.__decorate)([s6],cr.prototype,"createCellExecution",void 0),(0,eJ.__decorate)([s6],cr.prototype,"getExecution",void 0),(0,eJ.__decorate)([s6],cr.prototype,"createExecution",void 0),(0,eJ.__decorate)([s6],cr.prototype,"getLastFailedCellForNotebook",void 0),(0,t0.registerSingleton)(o_.INotebookExecutionStateService,cr,t0.InstantiationType.Delayed);class cn{constructor(){this.getDefaultProfileForTest=()=>void 0,this.onDidChange=e1.Event.None,this.addProfile=s8.unsupported,this.updateProfile=s8.unsupported,this.removeProfile=s8.unsupported,this.capabilitiesForTest=s8.unsupported,this.configure=s8.unsupported,this.all=()=>[],this.getGroupDefaultProfiles=()=>[],this.setGroupDefaultProfiles=s8.unsupported,this.getControllerProfiles=()=>[]}}(0,eJ.__decorate)([s6],cn.prototype,"addProfile",void 0),(0,eJ.__decorate)([s6],cn.prototype,"updateProfile",void 0),(0,eJ.__decorate)([s6],cn.prototype,"removeProfile",void 0),(0,eJ.__decorate)([s6],cn.prototype,"capabilitiesForTest",void 0),(0,eJ.__decorate)([s6],cn.prototype,"configure",void 0),(0,eJ.__decorate)([s6],cn.prototype,"setGroupDefaultProfiles",void 0),(0,t0.registerSingleton)(oX.ITestProfileService,cn,t0.InstantiationType.Delayed);class cs{constructor(){this.setUsePlainTextEncryption=s8.unsupported,this.getKeyStorageProvider=s8.unsupported,this.encrypt=s8.unsupported,this.decrypt=s8.unsupported,this.isEncryptionAvailable=s8.unsupported}}(0,eJ.__decorate)([s6],cs.prototype,"setUsePlainTextEncryption",void 0),(0,eJ.__decorate)([s6],cs.prototype,"getKeyStorageProvider",void 0),(0,eJ.__decorate)([s6],cs.prototype,"encrypt",void 0),(0,eJ.__decorate)([s6],cs.prototype,"decrypt",void 0),(0,eJ.__decorate)([s6],cs.prototype,"isEncryptionAvailable",void 0),(0,t0.registerSingleton)(tV.IEncryptionService,cs,t0.InstantiationType.Delayed);class ca{constructor(){this.onResultsChanged=e1.Event.None,this.onTestChanged=e1.Event.None,this.results=[],this.clear=s8.unsupported,this.createLiveResult=s8.unsupported,this.push=s8.unsupported,this.getResult=()=>void 0,this.getStateById=()=>void 0}}(0,eJ.__decorate)([s6],ca.prototype,"clear",void 0),(0,eJ.__decorate)([s6],ca.prototype,"createLiveResult",void 0),(0,eJ.__decorate)([s6],ca.prototype,"push",void 0),(0,t0.registerSingleton)(oZ.ITestResultService,ca,t0.InstantiationType.Delayed);class cd{constructor(){this.read=s8.unsupported,this.persist=s8.unsupported}}(0,eJ.__decorate)([s6],cd.prototype,"read",void 0),(0,eJ.__decorate)([s6],cd.prototype,"persist",void 0),(0,t0.registerSingleton)(oJ.ITestResultStorage,cd,t0.InstantiationType.Delayed);class cc{constructor(){this.updateDecorationsAlternateAction=s8.unsupported,this.onDidChange=e1.Event.None,this.invalidateResultMessage=s8.unsupported,this.syncDecorations=s8.unsupported,this.getDecoratedTestPosition=s8.unsupported}}(0,eJ.__decorate)([s6],cc.prototype,"updateDecorationsAlternateAction",void 0),(0,eJ.__decorate)([s6],cc.prototype,"invalidateResultMessage",void 0),(0,eJ.__decorate)([s6],cc.prototype,"syncDecorations",void 0),(0,eJ.__decorate)([s6],cc.prototype,"getDecoratedTestPosition",void 0),(0,t0.registerSingleton)(o2.ITestingDecorationsService,cc,t0.InstantiationType.Delayed),(0,t0.registerSingleton)(ns.IUserDataInitializationService,class{constructor(){this.requiresInitialization=async()=>!1,this.whenInitializationFinished=async()=>{},this.initializeRequiredResources=async()=>{},this.initializeInstalledExtensions=async()=>{},this.initializeOtherResources=async()=>{}}},t0.InstantiationType.Delayed),(0,t0.registerSingleton)(tK.IDiagnosticsService,tF.NullDiagnosticsService,t0.InstantiationType.Delayed),(0,t0.registerSingleton)(oR.INotebookSearchService,class{constructor(){this.notebookSearch=()=>({openFilesToScan:new e3.ResourceSet,completeData:Promise.resolve({results:[],messages:[]}),allScannedFiles:Promise.resolve(new e3.ResourceSet)})}},t0.InstantiationType.Delayed);class cl{constructor(){this.sendChatRequest=s8.unsupported,this.selectLanguageModels=s8.unsupported,this.computeTokenLength=s8.unsupported,this.onDidChangeLanguageModels=e1.Event.None,this.getLanguageModelIds=()=>[],this.lookupLanguageModel=()=>void 0,this.updateModelPickerPreference=s8.unsupported,this.getVendors=()=>[],this.registerLanguageModelProvider=()=>e2.Disposable.None}}(0,eJ.__decorate)([s6],cl.prototype,"sendChatRequest",void 0),(0,eJ.__decorate)([s6],cl.prototype,"selectLanguageModels",void 0),(0,eJ.__decorate)([s6],cl.prototype,"computeTokenLength",void 0),(0,eJ.__decorate)([s6],cl.prototype,"updateModelPickerPreference",void 0),(0,t0.registerSingleton)(i3.ILanguageModelsService,cl,t0.InstantiationType.Delayed);class cu{constructor(){this.onDidChangeCommands=s8.unsupported,this.registerSlashCommand=s8.unsupported,this.executeCommand=s8.unsupported,this.getCommands=s8.unsupported,this.hasCommand=s8.unsupported}}(0,eJ.__decorate)([s6],cu.prototype,"onDidChangeCommands",void 0),(0,eJ.__decorate)([s6],cu.prototype,"registerSlashCommand",void 0),(0,eJ.__decorate)([s6],cu.prototype,"executeCommand",void 0),(0,eJ.__decorate)([s6],cu.prototype,"getCommands",void 0),(0,eJ.__decorate)([s6],cu.prototype,"hasCommand",void 0),(0,t0.registerSingleton)(ij.IChatSlashCommandService,cu,t0.InstantiationType.Delayed);class ch{constructor(){this.getDynamicVariables=s8.unsupported,this.getSelectedToolAndToolSets=s8.unsupported}}(0,eJ.__decorate)([s6],ch.prototype,"getDynamicVariables",void 0),(0,eJ.__decorate)([s6],ch.prototype,"getSelectedToolAndToolSets",void 0),(0,t0.registerSingleton)(iZ.IChatVariablesService,ch,t0.InstantiationType.Delayed);class cp{constructor(){this.isEnabled=()=>!1,this.getRelatedInformation=s8.unsupported,this.registerAiRelatedInformationProvider=s8.unsupported}}(0,eJ.__decorate)([s6],cp.prototype,"getRelatedInformation",void 0),(0,eJ.__decorate)([s6],cp.prototype,"registerAiRelatedInformationProvider",void 0),(0,t0.registerSingleton)(ro.IAiRelatedInformationService,cp,t0.InstantiationType.Delayed);class cg{constructor(){this.isEnabled=()=>!1,this.getEmbeddingVector=s8.unsupported,this.registerAiEmbeddingVectorProvider=s8.unsupported}}(0,eJ.__decorate)([s6],cg.prototype,"getEmbeddingVector",void 0),(0,eJ.__decorate)([s6],cg.prototype,"registerAiEmbeddingVectorProvider",void 0),(0,t0.registerSingleton)(ri.IAiEmbeddingVectorService,cg,t0.InstantiationType.Delayed);class cm{constructor(){this.isEnabled=()=>!1,this.startSearch=s8.unsupported,this.getEmbeddingsResults=async()=>[],this.getLLMRankedResults=async()=>[],this.registerSettingsSearchProvider=s8.unsupported,this.handleSearchResult=s8.unsupported,this.onProviderRegistered=e1.Event.None}}(0,eJ.__decorate)([s6],cm.prototype,"startSearch",void 0),(0,eJ.__decorate)([s6],cm.prototype,"registerSettingsSearchProvider",void 0),(0,eJ.__decorate)([s6],cm.prototype,"handleSearchResult",void 0),(0,t0.registerSingleton)(nT.IAiSettingsSearchService,cm,t0.InstantiationType.Delayed);class cv{constructor(){this.createNewMessage=async e=>({id:String(cv._nextId++),data:e}),this.validate=async()=>!0,this.sign=async e=>e}}cv._nextId=1,(0,t0.registerSingleton)(is.ISignService,cv,t0.InstantiationType.Delayed);class cy{constructor(){this.isEnabledForProfile=s8.unsupported,this.stopProfile=s8.unsupported,this.lastRunProfileIds=new Set,this.onDidChange=e1.Event.None,this.isSpecificallyEnabledFor=()=>!1,this.isEnabledForAParentOf=()=>!1,this.isEnabledForAChildOf=()=>!1,this.isEnabled=()=>!1,this.start=s8.unsupported,this.stop=s8.unsupported}}(0,eJ.__decorate)([s6],cy.prototype,"isEnabledForProfile",void 0),(0,eJ.__decorate)([s6],cy.prototype,"stopProfile",void 0),(0,eJ.__decorate)([s6],cy.prototype,"start",void 0),(0,eJ.__decorate)([s6],cy.prototype,"stop",void 0),(0,t0.registerSingleton)(o1.ITestingContinuousRunService,cy,t0.InstantiationType.Delayed);class cf{constructor(){this.onDidSelectTestInExplorer=e1.Event.None,this.didSelectTestInExplorer=s8.unsupported,this.onDidRequestInputFocus=e1.Event.None,this.focusInput=s8.unsupported,this.setText=s8.unsupported,this.isFilteringFor=()=>!1,this.toggleFilteringFor=s8.unsupported}get text(){return(0,s8.unsupported)()}get reveal(){return(0,s8.unsupported)()}get globList(){return(0,s8.unsupported)()}get includeTags(){return(0,s8.unsupported)()}get excludeTags(){return(0,s8.unsupported)()}get fuzzy(){return(0,s8.unsupported)()}}(0,eJ.__decorate)([s6],cf.prototype,"didSelectTestInExplorer",void 0),(0,eJ.__decorate)([s6],cf.prototype,"text",null),(0,eJ.__decorate)([s6],cf.prototype,"reveal",null),(0,eJ.__decorate)([s6],cf.prototype,"globList",null),(0,eJ.__decorate)([s6],cf.prototype,"includeTags",null),(0,eJ.__decorate)([s6],cf.prototype,"excludeTags",null),(0,eJ.__decorate)([s6],cf.prototype,"fuzzy",null),(0,eJ.__decorate)([s6],cf.prototype,"focusInput",void 0),(0,eJ.__decorate)([s6],cf.prototype,"setText",void 0),(0,eJ.__decorate)([s6],cf.prototype,"toggleFilteringFor",void 0),(0,t0.registerSingleton)(oY.ITestExplorerFilterState,cf,t0.InstantiationType.Delayed);class c_{constructor(){this.tryPeekFirstError=s8.unsupported,this.peekUri=s8.unsupported,this.openCurrentInEditor=s8.unsupported,this.open=s8.unsupported,this.closeAllPeeks=s8.unsupported}get historyVisible(){return(0,s8.unsupported)()}}(0,eJ.__decorate)([s6],c_.prototype,"historyVisible",null),(0,eJ.__decorate)([s6],c_.prototype,"tryPeekFirstError",void 0),(0,eJ.__decorate)([s6],c_.prototype,"peekUri",void 0),(0,eJ.__decorate)([s6],c_.prototype,"openCurrentInEditor",void 0),(0,eJ.__decorate)([s6],c_.prototype,"open",void 0),(0,eJ.__decorate)([s6],c_.prototype,"closeAllPeeks",void 0),(0,t0.registerSingleton)(o3.ITestingPeekOpener,c_,t0.InstantiationType.Delayed);class cC{constructor(){this.getWindow=()=>void 0,this.onDidOpenAuxiliaryWindow=e1.Event.None,this.open=s8.unsupported}}(0,eJ.__decorate)([s6],cC.prototype,"open",void 0),(0,t0.registerSingleton)(rp.IAuxiliaryWindowService,cC,t0.InstantiationType.Delayed);class cS{constructor(){this.onDidStartTextToSpeechSession=e1.Event.None,this.onDidEndTextToSpeechSession=e1.Event.None,this.hasActiveTextToSpeechSession=!1,this.createTextToSpeechSession=s8.unsupported,this.onDidChangeHasSpeechProvider=e1.Event.None,this.onDidStartSpeechToTextSession=e1.Event.None,this.onDidEndSpeechToTextSession=e1.Event.None,this.hasActiveSpeechToTextSession=!1,this.onDidStartKeywordRecognition=e1.Event.None,this.onDidEndKeywordRecognition=e1.Event.None,this.hasActiveKeywordRecognition=!1,this.recognizeKeyword=s8.unsupported,this.hasSpeechProvider=!1,this.registerSpeechProvider=s8.unsupported,this.createSpeechToTextSession=s8.unsupported}}(0,eJ.__decorate)([s6],cS.prototype,"createTextToSpeechSession",void 0),(0,eJ.__decorate)([s6],cS.prototype,"recognizeKeyword",void 0),(0,eJ.__decorate)([s6],cS.prototype,"registerSpeechProvider",void 0),(0,eJ.__decorate)([s6],cS.prototype,"createSpeechToTextSession",void 0),(0,t0.registerSingleton)(oF.ISpeechService,cS,t0.InstantiationType.Delayed);class cb{constructor(){this.openCoverage=s8.unsupported,this.closeCoverage=s8.unsupported}get showInline(){return(0,s8.unsupported)()}get filterToTest(){return(0,s8.unsupported)()}get selected(){return(0,s8.unsupported)()}}(0,eJ.__decorate)([s6],cb.prototype,"showInline",null),(0,eJ.__decorate)([s6],cb.prototype,"filterToTest",null),(0,eJ.__decorate)([s6],cb.prototype,"selected",null),(0,eJ.__decorate)([s6],cb.prototype,"openCoverage",void 0),(0,eJ.__decorate)([s6],cb.prototype,"closeCoverage",void 0),(0,t0.registerSingleton)(oj.ITestCoverageService,cb,t0.InstantiationType.Delayed);class cI{constructor(){this.acceptRequest=s8.unsupported,this.acceptResponse=s8.unsupported,this.acceptElicitation=s8.unsupported,this.disposeRequest=s8.unsupported}}(0,eJ.__decorate)([s6],cI.prototype,"acceptRequest",void 0),(0,eJ.__decorate)([s6],cI.prototype,"acceptResponse",void 0),(0,eJ.__decorate)([s6],cI.prototype,"acceptElicitation",void 0),(0,eJ.__decorate)([s6],cI.prototype,"disposeRequest",void 0),(0,t0.registerSingleton)(iW.IChatAccessibilityService,cI,t0.InstantiationType.Delayed);class cE{constructor(){this.clearHistory=s8.unsupported,this.getHistory=()=>[],this.onDidChangeHistory=e1.Event.None,this.append=s8.unsupported}}(0,eJ.__decorate)([s6],cE.prototype,"clearHistory",void 0),(0,eJ.__decorate)([s6],cE.prototype,"append",void 0),(0,t0.registerSingleton)(iJ.IChatWidgetHistoryService,cE,t0.InstantiationType.Delayed),(0,t0.registerSingleton)(iW.IChatCodeBlockContextProviderService,class{constructor(){this.providers=[],this.registerProvider=()=>e2.Disposable.None}},t0.InstantiationType.Delayed);class cw{constructor(){this.onDidMoveSession=e1.Event.None,this.onDidStashSession=e1.Event.None,this.moveSession=s8.unsupported,this.getCodeEditor=s8.unsupported,this.stashSession=s8.unsupported,this.onWillStartSession=e1.Event.None,this.onDidEndSession=e1.Event.None,this.createSession=s8.unsupported,this.getSession=()=>void 0,this.releaseSession=s8.unsupported,this.registerSessionKeyComputer=s8.unsupported,this.dispose=s8.unsupported,this.createSession2=s8.unsupported,this.getSession2=()=>void 0,this.onDidChangeSessions=e1.Event.None,this.getSessionBySessionUri=()=>void 0}}(0,eJ.__decorate)([s6],cw.prototype,"moveSession",void 0),(0,eJ.__decorate)([s6],cw.prototype,"getCodeEditor",void 0),(0,eJ.__decorate)([s6],cw.prototype,"stashSession",void 0),(0,eJ.__decorate)([s6],cw.prototype,"createSession",void 0),(0,eJ.__decorate)([s6],cw.prototype,"releaseSession",void 0),(0,eJ.__decorate)([s6],cw.prototype,"registerSessionKeyComputer",void 0),(0,eJ.__decorate)([s6],cw.prototype,"dispose",void 0),(0,eJ.__decorate)([s6],cw.prototype,"createSession2",void 0),(0,t0.registerSingleton)(oo.IInlineChatSessionService,cw,t0.InstantiationType.Delayed);class cD{constructor(){this.canComputeDiff=()=>!1,this.computeDiff=s8.unsupported,this.canPromptRecommendation=async()=>!1}}(0,eJ.__decorate)([s6],cD.prototype,"computeDiff",void 0),(0,t0.registerSingleton)(ow.INotebookEditorWorkerService,cD,t0.InstantiationType.Delayed);class cA{constructor(){this.getKernels=s8.unsupported,this.addMostRecentKernel=s8.unsupported}}(0,eJ.__decorate)([s6],cA.prototype,"getKernels",void 0),(0,eJ.__decorate)([s6],cA.prototype,"addMostRecentKernel",void 0),(0,t0.registerSingleton)(oC.INotebookKernelHistoryService,cA,t0.InstantiationType.Delayed);class cx{constructor(){this.executeNotebookCells=s8.unsupported,this.cancelNotebookCells=s8.unsupported,this.cancelNotebookCellHandles=s8.unsupported,this.registerExecutionParticipant=s8.unsupported}}(0,eJ.__decorate)([s6],cx.prototype,"executeNotebookCells",void 0),(0,eJ.__decorate)([s6],cx.prototype,"cancelNotebookCells",void 0),(0,eJ.__decorate)([s6],cx.prototype,"cancelNotebookCellHandles",void 0),(0,eJ.__decorate)([s6],cx.prototype,"registerExecutionParticipant",void 0),(0,t0.registerSingleton)(of.INotebookExecutionService,cx,t0.InstantiationType.Delayed),(0,t0.registerSingleton)(oS.INotebookKeymapService,class{},t0.InstantiationType.Delayed);class ck{constructor(){this.info=s8.unsupported,this.debug=s8.unsupported,this.warn=s8.unsupported,this.error=s8.unsupported,this.trace=s8.unsupported}}(0,eJ.__decorate)([s6],ck.prototype,"info",void 0),(0,eJ.__decorate)([s6],ck.prototype,"debug",void 0),(0,eJ.__decorate)([s6],ck.prototype,"warn",void 0),(0,eJ.__decorate)([s6],ck.prototype,"error",void 0),(0,eJ.__decorate)([s6],ck.prototype,"trace",void 0),(0,t0.registerSingleton)(ob.INotebookLoggingService,ck,t0.InstantiationType.Delayed);class cT{constructor(){this.onDidAddWalkthrough=e1.Event.None,this.onDidRemoveWalkthrough=e1.Event.None,this.onDidChangeWalkthrough=e1.Event.None,this.onDidProgressStep=e1.Event.None,this.getWalkthroughs=s8.unsupported,this.getWalkthrough=s8.unsupported,this.registerWalkthrough=s8.unsupported,this.progressByEvent=s8.unsupported,this.progressStep=s8.unsupported,this.deprogressStep=s8.unsupported,this.markWalkthroughOpened=s8.unsupported}}(0,eJ.__decorate)([s6],cT.prototype,"getWalkthroughs",void 0),(0,eJ.__decorate)([s6],cT.prototype,"getWalkthrough",void 0),(0,eJ.__decorate)([s6],cT.prototype,"registerWalkthrough",void 0),(0,eJ.__decorate)([s6],cT.prototype,"progressByEvent",void 0),(0,eJ.__decorate)([s6],cT.prototype,"progressStep",void 0),(0,eJ.__decorate)([s6],cT.prototype,"deprogressStep",void 0),(0,eJ.__decorate)([s6],cT.prototype,"markWalkthroughOpened",void 0),(0,t0.registerSingleton)(o4.IWalkthroughsService,cT,t0.InstantiationType.Delayed);class cM{constructor(){this.onDidChangeUserDataSyncStore=e1.Event.None,this.userDataSyncStore=void 0,this.switch=s8.unsupported,this.getPreviousUserDataSyncStore=s8.unsupported}}(0,eJ.__decorate)([s6],cM.prototype,"switch",void 0),(0,eJ.__decorate)([s6],cM.prototype,"getPreviousUserDataSyncStore",void 0),(0,t0.registerSingleton)(iw.IUserDataSyncStoreManagementService,cM,t0.InstantiationType.Delayed);class cP{constructor(){this.onDidChangeDonotMakeRequestsUntil=e1.Event.None,this.donotMakeRequestsUntil=void 0,this.onTokenFailed=e1.Event.None,this.onTokenSucceed=e1.Event.None,this.setAuthToken=s8.unsupported,this.manifest=s8.unsupported,this.readResource=s8.unsupported,this.writeResource=s8.unsupported,this.deleteResource=s8.unsupported,this.getAllResourceRefs=s8.unsupported,this.resolveResourceContent=s8.unsupported,this.getAllCollections=s8.unsupported,this.createCollection=s8.unsupported,this.deleteCollection=s8.unsupported,this.getActivityData=s8.unsupported,this.clear=s8.unsupported,this.getLatestData=async()=>null}}(0,eJ.__decorate)([s6],cP.prototype,"setAuthToken",void 0),(0,eJ.__decorate)([s6],cP.prototype,"manifest",void 0),(0,eJ.__decorate)([s6],cP.prototype,"readResource",void 0),(0,eJ.__decorate)([s6],cP.prototype,"writeResource",void 0),(0,eJ.__decorate)([s6],cP.prototype,"deleteResource",void 0),(0,eJ.__decorate)([s6],cP.prototype,"getAllResourceRefs",void 0),(0,eJ.__decorate)([s6],cP.prototype,"resolveResourceContent",void 0),(0,eJ.__decorate)([s6],cP.prototype,"getAllCollections",void 0),(0,eJ.__decorate)([s6],cP.prototype,"createCollection",void 0),(0,eJ.__decorate)([s6],cP.prototype,"deleteCollection",void 0),(0,eJ.__decorate)([s6],cP.prototype,"getActivityData",void 0),(0,eJ.__decorate)([s6],cP.prototype,"clear",void 0),(0,t0.registerSingleton)(iw.IUserDataSyncStoreService,cP,t0.InstantiationType.Delayed);class cR{constructor(){this.onDidChangeLogLevel=e1.Event.None,this.getLevel=s8.unsupported,this.setLevel=s8.unsupported,this.trace=s8.unsupported,this.debug=s8.unsupported,this.info=s8.unsupported,this.warn=s8.unsupported,this.error=s8.unsupported,this.flush=s8.unsupported,this.dispose=s8.unsupported}}(0,eJ.__decorate)([s6],cR.prototype,"getLevel",void 0),(0,eJ.__decorate)([s6],cR.prototype,"setLevel",void 0),(0,eJ.__decorate)([s6],cR.prototype,"trace",void 0),(0,eJ.__decorate)([s6],cR.prototype,"debug",void 0),(0,eJ.__decorate)([s6],cR.prototype,"info",void 0),(0,eJ.__decorate)([s6],cR.prototype,"warn",void 0),(0,eJ.__decorate)([s6],cR.prototype,"error",void 0),(0,eJ.__decorate)([s6],cR.prototype,"flush",void 0),(0,eJ.__decorate)([s6],cR.prototype,"dispose",void 0),(0,t0.registerSingleton)(iw.IUserDataSyncLogService,cR,t0.InstantiationType.Delayed);class cL{constructor(){this.status=iE.SyncStatus.Uninitialized,this.onDidChangeStatus=e1.Event.None,this.conflicts=[],this.onDidChangeConflicts=e1.Event.None,this.onDidChangeLocal=e1.Event.None,this.onSyncErrors=e1.Event.None,this.onDidChangeLastSyncTime=e1.Event.None,this.onDidResetRemote=e1.Event.None,this.onDidResetLocal=e1.Event.None,this.createSyncTask=s8.unsupported,this.createManualSyncTask=s8.unsupported,this.resolveContent=s8.unsupported,this.accept=s8.unsupported,this.reset=s8.unsupported,this.resetRemote=s8.unsupported,this.cleanUpRemoteData=s8.unsupported,this.resetLocal=s8.unsupported,this.hasLocalData=s8.unsupported,this.hasPreviouslySynced=s8.unsupported,this.replace=s8.unsupported,this.saveRemoteActivityData=s8.unsupported,this.extractActivityData=s8.unsupported}}(0,eJ.__decorate)([s6],cL.prototype,"createSyncTask",void 0),(0,eJ.__decorate)([s6],cL.prototype,"createManualSyncTask",void 0),(0,eJ.__decorate)([s6],cL.prototype,"resolveContent",void 0),(0,eJ.__decorate)([s6],cL.prototype,"accept",void 0),(0,eJ.__decorate)([s6],cL.prototype,"reset",void 0),(0,eJ.__decorate)([s6],cL.prototype,"resetRemote",void 0),(0,eJ.__decorate)([s6],cL.prototype,"cleanUpRemoteData",void 0),(0,eJ.__decorate)([s6],cL.prototype,"resetLocal",void 0),(0,eJ.__decorate)([s6],cL.prototype,"hasLocalData",void 0),(0,eJ.__decorate)([s6],cL.prototype,"hasPreviouslySynced",void 0),(0,eJ.__decorate)([s6],cL.prototype,"replace",void 0),(0,eJ.__decorate)([s6],cL.prototype,"saveRemoteActivityData",void 0),(0,eJ.__decorate)([s6],cL.prototype,"extractActivityData",void 0),(0,t0.registerSingleton)(iw.IUserDataSyncService,cL,t0.InstantiationType.Delayed);class cN{constructor(){this.onDidChange=e1.Event.None,this.getMachines=s8.unsupported,this.addCurrentMachine=s8.unsupported,this.removeCurrentMachine=s8.unsupported,this.renameMachine=s8.unsupported,this.setEnablements=s8.unsupported}}(0,eJ.__decorate)([s6],cN.prototype,"getMachines",void 0),(0,eJ.__decorate)([s6],cN.prototype,"addCurrentMachine",void 0),(0,eJ.__decorate)([s6],cN.prototype,"removeCurrentMachine",void 0),(0,eJ.__decorate)([s6],cN.prototype,"renameMachine",void 0),(0,eJ.__decorate)([s6],cN.prototype,"setEnablements",void 0),(0,t0.registerSingleton)(iA.IUserDataSyncMachinesService,cN,t0.InstantiationType.Delayed);class cO{constructor(){this.getRemoteSyncedProfiles=s8.unsupported,this.getLocalSyncedProfiles=s8.unsupported,this.getRemoteSyncResourceHandles=s8.unsupported,this.getLocalSyncResourceHandles=s8.unsupported,this.getAssociatedResources=s8.unsupported,this.getMachineId=s8.unsupported,this.getLocalSyncedMachines=s8.unsupported,this.resolveContent=s8.unsupported,this.resolveUserDataSyncResource=s8.unsupported}}(0,eJ.__decorate)([s6],cO.prototype,"getRemoteSyncedProfiles",void 0),(0,eJ.__decorate)([s6],cO.prototype,"getLocalSyncedProfiles",void 0),(0,eJ.__decorate)([s6],cO.prototype,"getRemoteSyncResourceHandles",void 0),(0,eJ.__decorate)([s6],cO.prototype,"getLocalSyncResourceHandles",void 0),(0,eJ.__decorate)([s6],cO.prototype,"getAssociatedResources",void 0),(0,eJ.__decorate)([s6],cO.prototype,"getMachineId",void 0),(0,eJ.__decorate)([s6],cO.prototype,"getLocalSyncedMachines",void 0),(0,eJ.__decorate)([s6],cO.prototype,"resolveContent",void 0),(0,eJ.__decorate)([s6],cO.prototype,"resolveUserDataSyncResource",void 0),(0,t0.registerSingleton)(iw.IUserDataSyncResourceProviderService,cO,t0.InstantiationType.Delayed);class cF{constructor(){this.writeResource=s8.unsupported,this.getAllResourceRefs=s8.unsupported,this.resolveResourceContent=s8.unsupported}}(0,eJ.__decorate)([s6],cF.prototype,"writeResource",void 0),(0,eJ.__decorate)([s6],cF.prototype,"getAllResourceRefs",void 0),(0,eJ.__decorate)([s6],cF.prototype,"resolveResourceContent",void 0),(0,t0.registerSingleton)(iw.IUserDataSyncLocalStoreService,cF,t0.InstantiationType.Delayed);class cK{constructor(){this.resolveDefaultCoreIgnoredSettings=async()=>[],this.resolveUserBindings=s8.unsupported,this.resolveFormattingOptions=s8.unsupported}}(0,eJ.__decorate)([s6],cK.prototype,"resolveUserBindings",void 0),(0,eJ.__decorate)([s6],cK.prototype,"resolveFormattingOptions",void 0),(0,t0.registerSingleton)(iw.IUserDataSyncUtilService,cK,t0.InstantiationType.Delayed);class cW{constructor(){this.getDefaultProfileToUse=s8.unsupported,this.createProfile=s8.unsupported,this.createAndEnterProfile=s8.unsupported,this.createAndEnterTransientProfile=s8.unsupported,this.removeProfile=s8.unsupported,this.updateProfile=s8.unsupported,this.switchProfile=s8.unsupported,this.getBuiltinProfileTemplates=s8.unsupported}}(0,eJ.__decorate)([s6],cW.prototype,"getDefaultProfileToUse",void 0),(0,eJ.__decorate)([s6],cW.prototype,"createProfile",void 0),(0,eJ.__decorate)([s6],cW.prototype,"createAndEnterProfile",void 0),(0,eJ.__decorate)([s6],cW.prototype,"createAndEnterTransientProfile",void 0),(0,eJ.__decorate)([s6],cW.prototype,"removeProfile",void 0),(0,eJ.__decorate)([s6],cW.prototype,"updateProfile",void 0),(0,eJ.__decorate)([s6],cW.prototype,"switchProfile",void 0),(0,eJ.__decorate)([s6],cW.prototype,"getBuiltinProfileTemplates",void 0),(0,t0.registerSingleton)(nc.IUserDataProfileManagementService,cW,t0.InstantiationType.Delayed);class cz{constructor(){this.onDidAddEntry=e1.Event.None,this.onDidChangeEntry=e1.Event.None,this.onDidReplaceEntry=e1.Event.None,this.onDidRemoveEntry=e1.Event.None,this.onDidMoveEntries=e1.Event.None,this.onDidRemoveEntries=e1.Event.None,this.addEntry=s8.unsupported,this.updateEntry=s8.unsupported,this.removeEntry=s8.unsupported,this.moveEntries=s8.unsupported,this.getEntries=async()=>[],this.getAll=async()=>[],this.removeAll=s8.unsupported}}(0,eJ.__decorate)([s6],cz.prototype,"addEntry",void 0),(0,eJ.__decorate)([s6],cz.prototype,"updateEntry",void 0),(0,eJ.__decorate)([s6],cz.prototype,"removeEntry",void 0),(0,eJ.__decorate)([s6],cz.prototype,"moveEntries",void 0),(0,eJ.__decorate)([s6],cz.prototype,"removeAll",void 0),(0,t0.registerSingleton)(nD,cz,t0.InstantiationType.Delayed);class cV{constructor(){this.getNotebook=()=>void 0,this.addNotebookDocument=s8.unsupported,this.removeNotebookDocument=s8.unsupported}}(0,eJ.__decorate)([s6],cV.prototype,"addNotebookDocument",void 0),(0,eJ.__decorate)([s6],cV.prototype,"removeNotebookDocument",void 0),(0,t0.registerSingleton)(rY.INotebookDocumentService,cV,t0.InstantiationType.Delayed);class cB{constructor(){this.registerTree=s8.unsupported,this.getVisualizedNodeFor=s8.unsupported,this.getVisualizedChildren=s8.unsupported,this.editTreeItem=s8.unsupported,this.getApplicableFor=s8.unsupported,this.register=s8.unsupported}}(0,eJ.__decorate)([s6],cB.prototype,"registerTree",void 0),(0,eJ.__decorate)([s6],cB.prototype,"getVisualizedNodeFor",void 0),(0,eJ.__decorate)([s6],cB.prototype,"getVisualizedChildren",void 0),(0,eJ.__decorate)([s6],cB.prototype,"editTreeItem",void 0),(0,eJ.__decorate)([s6],cB.prototype,"getApplicableFor",void 0),(0,eJ.__decorate)([s6],cB.prototype,"register",void 0),(0,t0.registerSingleton)(i9.IDebugVisualizerService,cB,t0.InstantiationType.Delayed);class cU{constructor(){this.onDidChangeLogLevel=e1.Event.None,this.getLevel=s8.unsupported,this.setLevel=s8.unsupported,this.trace=s8.unsupported,this.debug=s8.unsupported,this.info=s8.unsupported,this.warn=s8.unsupported,this.error=s8.unsupported,this.flush=s8.unsupported,this.dispose=s8.unsupported}}(0,eJ.__decorate)([s6],cU.prototype,"getLevel",void 0),(0,eJ.__decorate)([s6],cU.prototype,"setLevel",void 0),(0,eJ.__decorate)([s6],cU.prototype,"trace",void 0),(0,eJ.__decorate)([s6],cU.prototype,"debug",void 0),(0,eJ.__decorate)([s6],cU.prototype,"info",void 0),(0,eJ.__decorate)([s6],cU.prototype,"warn",void 0),(0,eJ.__decorate)([s6],cU.prototype,"error",void 0),(0,eJ.__decorate)([s6],cU.prototype,"flush",void 0),(0,eJ.__decorate)([s6],cU.prototype,"dispose",void 0),(0,t0.registerSingleton)(i4.IEditSessionsLogService,cU,t0.InstantiationType.Delayed);class cH{constructor(){this.SIZE_LIMIT=0,this.isSignedIn=!1,this.onDidSignIn=e1.Event.None,this.onDidSignOut=e1.Event.None,this.storeClient=void 0,this.lastReadResources=new Map,this.lastWrittenResources=new Map,this.initialize=s8.unsupported,this.read=s8.unsupported,this.write=s8.unsupported,this.delete=s8.unsupported,this.list=s8.unsupported,this.getMachineById=s8.unsupported}}(0,eJ.__decorate)([s6],cH.prototype,"initialize",void 0),(0,eJ.__decorate)([s6],cH.prototype,"read",void 0),(0,eJ.__decorate)([s6],cH.prototype,"write",void 0),(0,eJ.__decorate)([s6],cH.prototype,"delete",void 0),(0,eJ.__decorate)([s6],cH.prototype,"list",void 0),(0,eJ.__decorate)([s6],cH.prototype,"getMachineById",void 0),(0,t0.registerSingleton)(i4.IEditSessionsStorageService,cH,t0.InstantiationType.Delayed),(0,t0.registerSingleton)(ou.IMultiDiffSourceResolverService,class{constructor(){this.registerResolver=()=>e2.Disposable.None,this.resolve=async()=>void 0}},t0.InstantiationType.Delayed),(0,t0.registerSingleton)(oW.IWorkspaceTagsService,oK.NoOpWorkspaceTagsService,t0.InstantiationType.Delayed);class cq{constructor(){this.getAllAccessDataForExtension=()=>new Map,this.onDidChangeEnablement=e1.Event.None,this.isEnabled=()=>!0,this.setEnablement=s8.unsupported,this.getEnablementData=s8.unsupported,this.getAccess=s8.unsupported,this.onDidChangeAccessData=e1.Event.None,this.getAccessData=()=>void 0,this.setStatus=s8.unsupported}}(0,eJ.__decorate)([s6],cq.prototype,"setEnablement",void 0),(0,eJ.__decorate)([s6],cq.prototype,"getEnablementData",void 0),(0,eJ.__decorate)([s6],cq.prototype,"getAccess",void 0),(0,eJ.__decorate)([s6],cq.prototype,"setStatus",void 0),(0,t0.registerSingleton)(rx.IExtensionFeaturesManagementService,cq,t0.InstantiationType.Delayed),(0,t0.registerSingleton)(rE.IEditorPaneService,class{constructor(){this.onWillInstantiateEditorPane=e1.Event.None,this.didInstantiateEditorPane=()=>!1}},t0.InstantiationType.Delayed);class cG{constructor(){this.matches=s8.unsupported,this.getWorkspaceStateFolders=s8.unsupported}}(0,eJ.__decorate)([s6],cG.prototype,"matches",void 0),(0,eJ.__decorate)([s6],cG.prototype,"getWorkspaceStateFolders",void 0),(0,t0.registerSingleton)(nk,cG,t0.InstantiationType.Delayed);class c${constructor(){this.onDidChangeDefaultLogLevels=e1.Event.None,this.getDefaultLogLevel=()=>t3.LogLevel.Off,this.setDefaultLogLevel=s8.unsupported,this.defaultLogLevels={default:t3.LogLevel.Off,extensions:[]}}}(0,eJ.__decorate)([s6],c$.prototype,"setDefaultLogLevel",void 0),(0,t0.registerSingleton)(od.IDefaultLogLevelsService,c$,t0.InstantiationType.Delayed),(0,t0.registerSingleton)(rS.ICustomEditorLabelService,class{constructor(){this.onDidChange=e1.Event.None,this.getName=()=>void 0}},t0.InstantiationType.Delayed);class cQ{constructor(){this.isActive=()=>!1,this.start=s8.unsupported,this.resume=s8.unsupported,this.stop=s8.unsupported}}(0,eJ.__decorate)([s6],cQ.prototype,"start",void 0),(0,eJ.__decorate)([s6],cQ.prototype,"resume",void 0),(0,eJ.__decorate)([s6],cQ.prototype,"stop",void 0),(0,t0.registerSingleton)(os.ITroubleshootIssueService,cQ,t0.InstantiationType.Delayed),(0,t0.registerSingleton)(rV.IIntegrityService,class{constructor(){this.isPure=async()=>({isPure:!1,proof:[]})}},t0.InstantiationType.Delayed),(0,t0.registerSingleton)(o5.ITrustedDomainService,class{constructor(){this.onDidChangeTrustedDomains=e1.Event.None,this.isValid=()=>!1,this.trustedDomains=[]}},t0.InstantiationType.Delayed);class cj{constructor(){this.getTool=()=>void 0,this.getToolByName=()=>void 0,this.onDidChangeTools=e1.Event.None,this.registerToolData=()=>e2.Disposable.None,this.registerToolImplementation=()=>e2.Disposable.None,this.registerTool=()=>e2.Disposable.None,this.getTools=()=>[],this.invokeTool=s8.unsupported,this.cancelToolCallsForRequest=s8.unsupported,this.getToolSetByName=()=>void 0,this.createToolSet=s8.unsupported,this.toolSets=(0,s5.constObservable)([]),this.toToolAndToolSetEnablementMap=s8.unsupported,this.getToolSet=()=>void 0,this.toToolReferences=()=>[],this.onDidPrepareToolCallBecomeUnresponsive=e1.Event.None,this.flushToolUpdates=s8.unsupported,this.vscodeToolSet=new nU.ToolSet("vscode",nU.VSCodeToolReference.vscode,nv.Codicon.tools,nU.ToolDataSource.Internal),this.executeToolSet=new nU.ToolSet("execute",nU.VSCodeToolReference.vscode,nv.Codicon.terminal,nU.ToolDataSource.Internal),this.readToolSet=new nU.ToolSet("read",nU.VSCodeToolReference.vscode,nv.Codicon.eye,nU.ToolDataSource.Internal),this.toolsObservable=(0,s5.constObservable)([]),this.getFullReferenceNames=()=>[],this.getFullReferenceName=e=>e.displayName,this.getToolByFullReferenceName=()=>void 0,this.getDeprecatedFullReferenceNames=()=>new Map,this.toFullReferenceNames=()=>[]}}(0,eJ.__decorate)([s6],cj.prototype,"invokeTool",void 0),(0,eJ.__decorate)([s6],cj.prototype,"cancelToolCallsForRequest",void 0),(0,eJ.__decorate)([s6],cj.prototype,"createToolSet",void 0),(0,eJ.__decorate)([s6],cj.prototype,"toToolAndToolSetEnablementMap",void 0),(0,eJ.__decorate)([s6],cj.prototype,"flushToolUpdates",void 0),(0,t0.registerSingleton)(i2.ILanguageModelToolsService,cj,t0.InstantiationType.Delayed);class cY{constructor(){this.openReporter=s8.unsupported,this.reloadWithExtensionsDisabled=s8.unsupported,this.showConfirmCloseDialog=s8.unsupported,this.showClipboardDialog=s8.unsupported,this.sendReporterMenu=s8.unsupported,this.closeReporter=s8.unsupported}}(0,eJ.__decorate)([s6],cY.prototype,"openReporter",void 0),(0,eJ.__decorate)([s6],cY.prototype,"reloadWithExtensionsDisabled",void 0),(0,eJ.__decorate)([s6],cY.prototype,"showConfirmCloseDialog",void 0),(0,eJ.__decorate)([s6],cY.prototype,"showClipboardDialog",void 0),(0,eJ.__decorate)([s6],cY.prototype,"sendReporterMenu",void 0),(0,eJ.__decorate)([s6],cY.prototype,"closeReporter",void 0),(0,t0.registerSingleton)(oa.IIssueFormService,cY,t0.InstantiationType.Delayed);class cX{constructor(){this.providers=[],this.registerCodeMapperProvider=s8.unsupported,this.mapCode=async()=>void 0}}(0,eJ.__decorate)([s6],cX.prototype,"registerCodeMapperProvider",void 0),(0,t0.registerSingleton)(iq.ICodeMapperService,cX,t0.InstantiationType.Delayed);class cZ{constructor(){this.editingSessionsObs=(0,s5.constObservable)([]),this.hasRelatedFilesProviders=()=>!1,this.registerRelatedFilesProvider=()=>(0,s8.unsupported)(),this.getRelatedFiles=async()=>void 0,this.getEditingSession=()=>void 0,this.startOrContinueGlobalEditingSession=s8.unsupported,this.createEditingSession=s8.unsupported,this.transferEditingSession=s8.unsupported}}(0,eJ.__decorate)([s6],cZ.prototype,"registerRelatedFilesProvider",void 0),(0,eJ.__decorate)([s6],cZ.prototype,"startOrContinueGlobalEditingSession",void 0),(0,eJ.__decorate)([s6],cZ.prototype,"createEditingSession",void 0),(0,eJ.__decorate)([s6],cZ.prototype,"transferEditingSession",void 0),(0,t0.registerSingleton)(iG.IChatEditingService,cZ,t0.InstantiationType.Delayed);class cJ{constructor(){this.onDidChange=e1.Event.None,this.register=s8.unsupported,this.lookUp=()=>void 0}}(0,eJ.__decorate)([s6],cJ.prototype,"register",void 0),(0,t0.registerSingleton)(tL.IActionViewItemService,cJ,t0.InstantiationType.Delayed);class c0{constructor(){this.fileIsIgnored=async()=>!1,this.registerIgnoredFileProvider=s8.unsupported}}(0,eJ.__decorate)([s6],c0.prototype,"registerIgnoredFileProvider",void 0),(0,t0.registerSingleton)(i0.ILanguageModelIgnoredFilesService,c0,t0.InstantiationType.Delayed),(0,t0.registerSingleton)(tH.IAllowedExtensionsService,class{constructor(){this.onDidChangeAllowedExtensionsConfigValue=e1.Event.None,this.isAllowed=()=>!0}},t0.InstantiationType.Delayed);class c1{constructor(){this.checkAndSetTransferredWorkspaceTrust=s8.unsupported,this.addWorkspaceToTransferred=s8.unsupported}}(0,eJ.__decorate)([s6],c1.prototype,"checkAndSetTransferredWorkspaceTrust",void 0),(0,eJ.__decorate)([s6],c1.prototype,"addWorkspaceToTransferred",void 0),(0,t0.registerSingleton)(iX.IChatTransferService,c1,t0.InstantiationType.Delayed);class c2{constructor(){this.onDidChange=e1.Event.None,this.setOrUpdateEntry=s8.unsupported,this.deleteEntry=s8.unsupported,this.getEntries=s8.unsupported}}(0,eJ.__decorate)([s6],c2.prototype,"setOrUpdateEntry",void 0),(0,eJ.__decorate)([s6],c2.prototype,"deleteEntry",void 0),(0,eJ.__decorate)([s6],c2.prototype,"getEntries",void 0),(0,t0.registerSingleton)(nW.IChatStatusItemService,c2,t0.InstantiationType.Delayed);class c3{constructor(){this.getOrCreate=s8.unsupported}}(0,eJ.__decorate)([s6],c3.prototype,"getOrCreate",void 0),(0,t0.registerSingleton)(oh.INotebookOriginalCellModelFactory,c3,t0.InstantiationType.Delayed);class c8{constructor(){this.getOrCreate=s8.unsupported}}(0,eJ.__decorate)([s6],c8.prototype,"getOrCreate",void 0),(0,t0.registerSingleton)(op.INotebookOriginalModelReferenceFactory,c8,t0.InstantiationType.Delayed);class c5{constructor(){this.getOrCreate=s8.unsupported}}(0,eJ.__decorate)([s6],c5.prototype,"getOrCreate",void 0),(0,t0.registerSingleton)(om.INotebookCellOutlineDataSourceFactory,c5,t0.InstantiationType.Delayed);class c6{constructor(){this.getOutlineEntries=()=>[],this.cacheSymbols=s8.unsupported}}(0,eJ.__decorate)([s6],c6.prototype,"cacheSymbols",void 0),(0,t0.registerSingleton)(n$,c6,t0.InstantiationType.Delayed),(0,t0.registerSingleton)(ox.IQuickDiffModelService,class{constructor(){this.createQuickDiffModelReference=()=>void 0}},t0.InstantiationType.Delayed);class c7{constructor(){this.onDidChangeProviders=e1.Event.None,this.registerTerminalCompletionProvider=s8.unsupported,this.provideCompletions=s8.unsupported}get providers(){return(0,s8.unsupported)()}}(0,eJ.__decorate)([s6],c7.prototype,"providers",null),(0,eJ.__decorate)([s6],c7.prototype,"registerTerminalCompletionProvider",void 0),(0,eJ.__decorate)([s6],c7.prototype,"provideCompletions",void 0),(0,t0.registerSingleton)(oQ.ITerminalCompletionService,c7,t0.InstantiationType.Delayed);class c9{constructor(){this.getEditableData=()=>void 0,this.setEditable=s8.unsupported,this.isEditable=()=>!1,this.getEditingTerminal=()=>void 0,this.setEditingTerminal=s8.unsupported}}(0,eJ.__decorate)([s6],c9.prototype,"setEditable",void 0),(0,eJ.__decorate)([s6],c9.prototype,"setEditingTerminal",void 0),(0,t0.registerSingleton)(oB.ITerminalEditingService,c9,t0.InstantiationType.Delayed);class c4{constructor(){this.organisations=void 0,this.isInternal=!1,this.sku=void 0,this.onDidChangeEntitlement=e1.Event.None,this.onDidChangeQuotaExceeded=e1.Event.None,this.onDidChangeQuotaRemaining=e1.Event.None,this.onDidChangeSentiment=e1.Event.None,this.entitlement=nj.ChatEntitlement.Unknown,this.quotas={},this.sentiment={installed:!1,hidden:!0,disabled:!0,untrusted:!1,later:!1,registered:!1},this.update=s8.unsupported,this.entitlementObs=(0,s5.constObservable)(this.entitlement),this.sentimentObs=(0,s5.constObservable)(this.sentiment),this.onDidChangeAnonymous=e1.Event.None,this.anonymous=!1,this.anonymousObs=(0,s5.constObservable)(!1)}}(0,eJ.__decorate)([s6],c4.prototype,"update",void 0),(0,t0.registerSingleton)(rv.IChatEntitlementService,c4,t0.InstantiationType.Eager);class le{constructor(){this.listPromptFiles=async()=>[],this.getSourceFolders=()=>[],this.dispose=()=>{},this.resolvePromptSlashCommand=async()=>void 0,this.getParsedPromptFile=s8.unsupported,this.listPromptFilesForStorage=async()=>[],this.parseNew=s8.unsupported,this.registerContributedFile=()=>e2.Disposable.None,this.getPromptLocationLabel=s8.unsupported,this.findAgentMDsInWorkspace=async()=>[],this.onDidChangeCustomAgents=e1.Event.None,this.getCustomAgents=async()=>[],this.listAgentMDs=async()=>[],this.listCopilotInstructionsMDs=async()=>[],this.getAgentFileURIFromModeFile=()=>void 0,this.getDisabledPromptFiles=()=>new e3.ResourceSet,this.setDisabledPromptFiles=s8.unsupported,this.isValidSlashCommandName=()=>!1,this.onDidChangeSlashCommands=e1.Event.None,this.getPromptSlashCommands=async()=>[],this.getPromptSlashCommandName=s8.unsupported,this.registerCustomAgentsProvider=()=>e2.Disposable.None,this.findAgentSkills=async()=>void 0}}(0,eJ.__decorate)([s6],le.prototype,"getParsedPromptFile",void 0),(0,eJ.__decorate)([s6],le.prototype,"parseNew",void 0),(0,eJ.__decorate)([s6],le.prototype,"getPromptLocationLabel",void 0),(0,eJ.__decorate)([s6],le.prototype,"setDisabledPromptFiles",void 0),(0,eJ.__decorate)([s6],le.prototype,"getPromptSlashCommandName",void 0),(0,t0.registerSingleton)(i8.IPromptsService,le,t0.InstantiationType.Eager);class lt{constructor(){this.onDidChangeInputs=e1.Event.None,this.collections=(0,s5.constObservable)([]),this.lazyCollectionState=(0,s5.constObservable)({collections:[],state:nG.LazyCollectionState.AllKnown}),this.delegates=(0,s5.constObservable)([]),this.discoverCollections=async()=>[],this.registerCollection=()=>e2.Disposable.None,this.clearSavedInputs=s8.unsupported,this.editSavedInput=s8.unsupported,this.getSavedInputs=async()=>({}),this.resolveConnection=async()=>void 0,this.registerDelegate=()=>e2.Disposable.None,this.setSavedInput=s8.unsupported,this.getServerDefinition=()=>(0,s5.constObservable)({server:void 0,collection:void 0})}}(0,eJ.__decorate)([s6],lt.prototype,"clearSavedInputs",void 0),(0,eJ.__decorate)([s6],lt.prototype,"editSavedInput",void 0),(0,eJ.__decorate)([s6],lt.prototype,"setSavedInput",void 0),(0,eJ.__decorate)([s6],lt.prototype,"getServerDefinition",void 0),(0,t0.registerSingleton)(oc.IMcpRegistry,lt,t0.InstantiationType.Eager);class li{constructor(){this.resetCaches=s8.unsupported,this.activateCollections=s8.unsupported,this.resetTrust=s8.unsupported,this.autostart=s8.unsupported,this.cancelAutostart=s8.unsupported}get servers(){return(0,s8.unsupported)()}get lazyCollectionState(){return(0,s8.unsupported)()}}(0,eJ.__decorate)([s6],li.prototype,"servers",null),(0,eJ.__decorate)([s6],li.prototype,"lazyCollectionState",null),(0,eJ.__decorate)([s6],li.prototype,"resetCaches",void 0),(0,eJ.__decorate)([s6],li.prototype,"activateCollections",void 0),(0,eJ.__decorate)([s6],li.prototype,"resetTrust",void 0),(0,eJ.__decorate)([s6],li.prototype,"autostart",void 0),(0,eJ.__decorate)([s6],li.prototype,"cancelAutostart",void 0),(0,t0.registerSingleton)(ol.IMcpService,li,t0.InstantiationType.Eager);class lo{constructor(){this.onDidChangeExtensionGalleryManifest=e1.Event.None,this.onDidChangeExtensionGalleryManifestStatus=e1.Event.None,this.getExtensionGalleryManifest=async()=>null}get extensionGalleryManifestStatus(){return(0,s8.unsupported)()}}(0,eJ.__decorate)([s6],lo.prototype,"extensionGalleryManifestStatus",null),(0,t0.registerSingleton)(tU.IExtensionGalleryManifestService,lo,t0.InstantiationType.Eager),(0,t0.registerSingleton)(ik.IWebContentExtractorService,ix.NullWebContentExtractorService,t0.InstantiationType.Delayed),(0,t0.registerSingleton)(ik.ISharedWebContentExtractorService,ix.NullSharedWebContentExtractorService,t0.InstantiationType.Delayed);class lr extends e2.Disposable{constructor(){super(...arguments),this.onDidChangeDefaultAccount=e1.Event.None,this.getDefaultAccount=async()=>null,this.setDefaultAccount=()=>{}}}(0,t0.registerSingleton)(nR.IDefaultAccountService,lr,t0.InstantiationType.Delayed);class ln{constructor(){this.getClientRegistration=async()=>void 0,this.storeClientRegistration=s8.unsupported,this.getInteractedProviders=()=>[],this.removeDynamicProvider=async()=>void 0,this.getSessionsForDynamicAuthProvider=async()=>void 0,this.setSessionsForDynamicAuthProvider=async()=>void 0,this.onDidChangeTokens=e1.Event.None}}(0,eJ.__decorate)([s6],ln.prototype,"storeClientRegistration",void 0),(0,t0.registerSingleton)(rh.IDynamicAuthenticationProviderStorageService,ln,t0.InstantiationType.Eager);class ls{constructor(){this.onDidChangeAccountPreference=e1.Event.None,this.getAccountPreference=()=>void 0,this.updateAccountPreference=()=>void 0,this.removeAccountPreference=()=>void 0,this.updateSessionPreference=()=>void 0,this.getSessionPreference=()=>void 0,this.removeSessionPreference=()=>void 0,this.requestSessionAccess=()=>void 0,this.requestNewSession=async()=>void 0,this.selectSession=s8.unsupported}}(0,eJ.__decorate)([s6],ls.prototype,"selectSession",void 0),(0,t0.registerSingleton)(ra.IAuthenticationMcpService,ls,t0.InstantiationType.Eager),(0,t0.registerSingleton)(rs.IAuthenticationMcpAccessService,class{constructor(){this.onDidChangeMcpSessionAccess=e1.Event.None,this.isAccessAllowed=()=>void 0,this.readAllowedMcpServers=()=>[],this.updateAllowedMcpServers=()=>void 0,this.removeAllowedMcpServers=()=>void 0}},t0.InstantiationType.Eager),(0,t0.registerSingleton)(rd.IAuthenticationMcpUsageService,class{constructor(){this.initializeUsageCache=async()=>void 0,this.hasUsedAuth=async()=>!1,this.readAccountUsages=()=>[],this.removeAccountUsage=()=>void 0,this.addAccountUsage=()=>void 0}},t0.InstantiationType.Eager);class la{constructor(){this.onChange=e1.Event.None,this.local=[],this.queryLocal=async()=>[],this.queryGallery=s8.unsupported,this.install=s8.unsupported,this.uninstall=async()=>void 0,this.open=async()=>void 0,this.onReset=e1.Event.None,this.getMcpConfigPath=s8.unsupported,this.getEnabledLocalMcpServers=()=>[],this.canInstall=s8.unsupported,this.openSearch=s8.unsupported}}(0,eJ.__decorate)([s6],la.prototype,"queryGallery",void 0),(0,eJ.__decorate)([s6],la.prototype,"install",void 0),(0,eJ.__decorate)([s6],la.prototype,"getMcpConfigPath",void 0),(0,eJ.__decorate)([s6],la.prototype,"canInstall",void 0),(0,eJ.__decorate)([s6],la.prototype,"openSearch",void 0),(0,t0.registerSingleton)(ol.IMcpWorkbenchService,la,t0.InstantiationType.Eager);class ld{constructor(){this.isEnabled=()=>!1,this.query=s8.unsupported,this.getReadme=s8.unsupported,this.getMcpServersFromGallery=async()=>[],this.getMcpServer=async()=>void 0}}(0,eJ.__decorate)([s6],ld.prototype,"query",void 0),(0,eJ.__decorate)([s6],ld.prototype,"getReadme",void 0),(0,t0.registerSingleton)(t5.IMcpGalleryService,ld,t0.InstantiationType.Eager);class lc{constructor(){this.sample=s8.unsupported,this.hasLogs=()=>!1,this.getLogText=s8.unsupported,this.getConfig=s8.unsupported,this.updateConfig=s8.unsupported}}(0,eJ.__decorate)([s6],lc.prototype,"sample",void 0),(0,eJ.__decorate)([s6],lc.prototype,"getLogText",void 0),(0,eJ.__decorate)([s6],lc.prototype,"getConfig",void 0),(0,eJ.__decorate)([s6],lc.prototype,"updateConfig",void 0),(0,t0.registerSingleton)(ol.IMcpSamplingService,lc,t0.InstantiationType.Eager);class ll{constructor(){this.scanMcpServers=s8.unsupported,this.addMcpServers=s8.unsupported,this.removeMcpServers=s8.unsupported}}(0,eJ.__decorate)([s6],ll.prototype,"scanMcpServers",void 0),(0,eJ.__decorate)([s6],ll.prototype,"addMcpServers",void 0),(0,eJ.__decorate)([s6],ll.prototype,"removeMcpServers",void 0),(0,t0.registerSingleton)(t6.IMcpResourceScannerService,ll,t0.InstantiationType.Eager),(0,t0.registerSingleton)(iB.IChatContextPickService,class{constructor(){this.items=[],this.registerChatContextItem=()=>e2.Disposable.None}},t0.InstantiationType.Eager),(0,t0.registerSingleton)(rm.IBrowserElementsService,class{constructor(){this.getElementData=async()=>void 0,this.startDebugSession=async()=>void 0}},t0.InstantiationType.Eager);class lu{constructor(){this.onChange=(0,s5.constObservable)(void 0),this.findMetadata=s8.unsupported}}(0,eJ.__decorate)([s6],lu.prototype,"findMetadata",void 0),(0,t0.registerSingleton)(th.ITreeSitterThemeService,lu,t0.InstantiationType.Eager);class lh{constructor(){this.getParserClass=s8.unsupported,this.supportsLanguage=()=>!1,this.getLanguage=()=>void 0,this.getInjectionQueries=()=>void 0,this.getHighlightingQueries=()=>void 0,this.getLanguagePromise=async()=>void 0,this.createQuery=s8.unsupported}}(0,eJ.__decorate)([s6],lh.prototype,"getParserClass",void 0),(0,eJ.__decorate)([s6],lh.prototype,"createQuery",void 0),(0,t0.registerSingleton)(tu.ITreeSitterLibraryService,lh,t0.InstantiationType.Eager);class lp{constructor(){this.resolveEditorAttachContext=s8.unsupported,this.resolveUntitledEditorAttachContext=s8.unsupported,this.resolveResourceAttachContext=s8.unsupported,this.resolveImageEditorAttachContext=s8.unsupported,this.resolveImageAttachContext=s8.unsupported,this.resolveMarkerAttachContext=s8.unsupported,this.resolveSymbolsAttachContext=s8.unsupported,this.resolveNotebookOutputAttachContext=s8.unsupported,this.resolveSourceControlHistoryItemAttachContext=s8.unsupported}}(0,eJ.__decorate)([s6],lp.prototype,"resolveEditorAttachContext",void 0),(0,eJ.__decorate)([s6],lp.prototype,"resolveUntitledEditorAttachContext",void 0),(0,eJ.__decorate)([s6],lp.prototype,"resolveResourceAttachContext",void 0),(0,eJ.__decorate)([s6],lp.prototype,"resolveImageEditorAttachContext",void 0),(0,eJ.__decorate)([s6],lp.prototype,"resolveImageAttachContext",void 0),(0,eJ.__decorate)([s6],lp.prototype,"resolveMarkerAttachContext",void 0),(0,eJ.__decorate)([s6],lp.prototype,"resolveSymbolsAttachContext",void 0),(0,eJ.__decorate)([s6],lp.prototype,"resolveNotebookOutputAttachContext",void 0),(0,eJ.__decorate)([s6],lp.prototype,"resolveSourceControlHistoryItemAttachContext",void 0),(0,t0.registerSingleton)(iz.IChatAttachmentResolveService,lp,t0.InstantiationType.Eager);class lg{constructor(){this.elicit=s8.unsupported}}(0,eJ.__decorate)([s6],lg.prototype,"elicit",void 0),(0,t0.registerSingleton)(ol.IMcpElicitationService,lg,t0.InstantiationType.Eager);class lm{constructor(){this.registerAgent=s8.unsupported,this.getRegisteredAgents=()=>[],this.getAvailableAgents=()=>[]}}(0,eJ.__decorate)([s6],lm.prototype,"registerAgent",void 0),(0,t0.registerSingleton)(oA.IRemoteCodingAgentsService,lm,t0.InstantiationType.Eager);class lv{constructor(){this.onDidChangePreferences=e1.Event.None,this.onDidChangeAccess=e1.Event.None,this.provider=s8.unsupported,this.extension=s8.unsupported,this.mcpServer=s8.unsupported,this.getProviderIds=s8.unsupported,this.clearAllData=s8.unsupported}}(0,eJ.__decorate)([s6],lv.prototype,"provider",void 0),(0,eJ.__decorate)([s6],lv.prototype,"extension",void 0),(0,eJ.__decorate)([s6],lv.prototype,"mcpServer",void 0),(0,eJ.__decorate)([s6],lv.prototype,"getProviderIds",void 0),(0,eJ.__decorate)([s6],lv.prototype,"clearAllData",void 0),(0,t0.registerSingleton)(ru.IAuthenticationQueryService,lv,t0.InstantiationType.Eager);class ly{constructor(){this.onDidInstallMcpServers=e1.Event.None,this.onInstallMcpServerInCurrentProfile=e1.Event.None,this.onDidInstallMcpServersInCurrentProfile=e1.Event.None,this.onDidUpdateMcpServersInCurrentProfile=e1.Event.None,this.onUninstallMcpServerInCurrentProfile=e1.Event.None,this.onDidUninstallMcpServerInCurrentProfile=e1.Event.None,this.onDidChangeProfile=e1.Event.None,this.onInstallMcpServer=e1.Event.None,this.onDidUpdateMcpServers=e1.Event.None,this.onUninstallMcpServer=e1.Event.None,this.onDidUninstallMcpServer=e1.Event.None,this.getInstalled=async()=>[],this.install=s8.unsupported,this.installFromGallery=s8.unsupported,this.updateMetadata=s8.unsupported,this.uninstall=s8.unsupported,this.canInstall=s8.unsupported,this.getMcpServerConfigurationFromManifest=s8.unsupported}}(0,eJ.__decorate)([s6],ly.prototype,"install",void 0),(0,eJ.__decorate)([s6],ly.prototype,"installFromGallery",void 0),(0,eJ.__decorate)([s6],ly.prototype,"updateMetadata",void 0),(0,eJ.__decorate)([s6],ly.prototype,"uninstall",void 0),(0,eJ.__decorate)([s6],ly.prototype,"canInstall",void 0),(0,eJ.__decorate)([s6],ly.prototype,"getMcpServerConfigurationFromManifest",void 0),(0,t0.registerSingleton)(rj.IWorkbenchMcpManagementService,ly,t0.InstantiationType.Eager);class lf{constructor(){this.setTodos=s8.unsupported,this.getTodos=()=>[],this.onDidUpdateTodos=e1.Event.None}}(0,eJ.__decorate)([s6],lf.prototype,"setTodos",void 0),(0,t0.registerSingleton)(iY.IChatTodoListService,lf,t0.InstantiationType.Delayed);class l_{constructor(){this.registerRenderer=()=>e2.Disposable.None,this.renderOutputPart=s8.unsupported}}(0,eJ.__decorate)([s6],l_.prototype,"renderOutputPart",void 0),(0,t0.registerSingleton)(iU.IChatOutputRendererService,l_,t0.InstantiationType.Delayed);class lC{constructor(){this.onDidChangeInProgress=e1.Event.None,this.getAllChatSessionContributions=()=>[],this.getAllChatSessionItemProviders=()=>[],this.reportInProgress=s8.unsupported,this.notifySessionItemsChanged=s8.unsupported,this.getInProgress=()=>[],this.onDidChangeItemsProviders=e1.Event.None,this.onDidChangeSessionItems=e1.Event.None,this.onDidChangeAvailability=e1.Event.None,this.registerChatSessionItemProvider=()=>e2.Disposable.None,this.registerChatSessionContentProvider=()=>e2.Disposable.None,this.getIconForSessionType=()=>void 0,this.getWelcomeTitleForSessionType=()=>void 0,this.getWelcomeMessageForSessionType=()=>void 0,this.getInputPlaceholderForSessionType=()=>void 0,this.getAllChatSessionItems=async()=>[],this.onDidChangeContentProviderSchemes=e1.Event.None,this.getContentProviderSchemes=()=>[],this.canResolveChatSession=async()=>!1,this.getOrCreateChatSession=s8.unsupported,this.hasAnySessionOptions=()=>!1,this.getSessionOption=()=>void 0,this.setSessionOption=()=>!1,this.getCapabilitiesForSessionType=()=>void 0,this.getOptionGroupsForSessionType=()=>void 0,this.setOptionGroupsForSessionType=s8.unsupported,this.setOptionsChangeCallback=()=>{},this.notifySessionOptionsChange=s8.unsupported,this.getChatSessionContribution=()=>void 0,this.activateChatSessionItemProvider=async()=>void 0,this.onDidChangeSessionOptions=e1.Event.None,this.registerChatModelChangeListeners=()=>e2.Disposable.None,this.getInProgressSessionDescription=()=>void 0,this.onDidChangeOptionGroups=e1.Event.None}}(0,eJ.__decorate)([s6],lC.prototype,"reportInProgress",void 0),(0,eJ.__decorate)([s6],lC.prototype,"notifySessionItemsChanged",void 0),(0,eJ.__decorate)([s6],lC.prototype,"getOrCreateChatSession",void 0),(0,eJ.__decorate)([s6],lC.prototype,"setOptionGroupsForSessionType",void 0),(0,eJ.__decorate)([s6],lC.prototype,"notifySessionOptionsChange",void 0),(0,t0.registerSingleton)(iQ.IChatSessionsService,lC,t0.InstantiationType.Delayed);class lS{constructor(){this.resizeImage=s8.unsupported}}(0,eJ.__decorate)([s6],lS.prototype,"resizeImage",void 0),(0,t0.registerSingleton)(nL,lS,t0.InstantiationType.Delayed),(0,t0.registerSingleton)(nP.IDataChannelService,nM.NullDataChannelService,t0.InstantiationType.Delayed);class lb{constructor(){this.onDidChangeAllowedMcpServers=e1.Event.None,this.isAllowed=s8.unsupported}}(0,eJ.__decorate)([s6],lb.prototype,"isAllowed",void 0),(0,t0.registerSingleton)(t5.IAllowedMcpServersService,lb,t0.InstantiationType.Delayed);class lI{get fontFamily(){return(0,s8.unsupported)()}get fontSize(){return(0,s8.unsupported)()}}(0,eJ.__decorate)([s6],lI.prototype,"fontFamily",null),(0,eJ.__decorate)([s6],lI.prototype,"fontSize",null),(0,t0.registerSingleton)(nz,lI,t0.InstantiationType.Delayed);class lE{constructor(){this.createSuggestionId=s8.unsupported,this.handleCodeAccepted=()=>{}}}(0,eJ.__decorate)([s6],lE.prototype,"createSuggestionId",void 0),(0,t0.registerSingleton)(nq.IAiEditTelemetryService,lE,t0.InstantiationType.Delayed);class lw{constructor(){this.onDidStateChange=e1.Event.None}get state(){return(0,s8.unsupported)()}}(0,eJ.__decorate)([s6],lw.prototype,"state",null),(0,t0.registerSingleton)(nY.IInlineCompletionsUnificationService,lw,t0.InstantiationType.Delayed),(0,t0.registerSingleton)(nF,class{constructor(){this.mcpGalleryManifestStatus=nO.McpGalleryManifestStatus.Unavailable,this.onDidChangeMcpGalleryManifestStatus=e1.Event.None,this.onDidChangeMcpGalleryManifest=e1.Event.None,this.getMcpGalleryManifest=async()=>null}},t0.InstantiationType.Delayed);class lD{constructor(){this.onDidChangeChatModes=e1.Event.None,this.getModes=s8.unsupported,this.findModeById=()=>void 0,this.findModeByName=()=>void 0}}(0,eJ.__decorate)([s6],lD.prototype,"getModes",void 0),(0,t0.registerSingleton)(nV,lD,t0.InstantiationType.Delayed);class lA{constructor(){this.render=s8.unsupported,this.setDefaultCodeBlockRenderer=s8.unsupported}}(0,eJ.__decorate)([s6],lA.prototype,"render",void 0),(0,eJ.__decorate)([s6],lA.prototype,"setDefaultCodeBlockRenderer",void 0),(0,t0.registerSingleton)(nN.IMarkdownRendererService,lA,t0.InstantiationType.Delayed);class lx{constructor(){this.manageConfirmationPreferences=s8.unsupported,this.registerConfirmationContribution=()=>e2.Disposable.None,this.resetToolAutoConfirmation=s8.unsupported,this.getPreConfirmAction=()=>void 0,this.getPostConfirmAction=()=>void 0,this.getPreConfirmActions=()=>[],this.getPostConfirmActions=()=>[]}}(0,eJ.__decorate)([s6],lx.prototype,"manageConfirmationPreferences",void 0),(0,eJ.__decorate)([s6],lx.prototype,"resetToolAutoConfirmation",void 0),(0,t0.registerSingleton)(nB,lx,t0.InstantiationType.Delayed),(0,t0.registerSingleton)(nK.IChatContextService,class{constructor(){this.setChatContextProvider=()=>{},this.registerChatContextProvider=()=>e2.Disposable.None,this.unregisterChatContextProvider=()=>{},this.contextForResource=async()=>void 0,this.updateWorkspaceContextItems=()=>{},this.getWorkspaceContextItems=()=>[],this.resolveChatContext=async e=>e,this.dispose=()=>{}}},t0.InstantiationType.Delayed);class lk{constructor(){this.generateUuid=s8.unsupported,this.generatePrefixedUuid=s8.unsupported}}(0,eJ.__decorate)([s6],lk.prototype,"generateUuid",void 0),(0,eJ.__decorate)([s6],lk.prototype,"generatePrefixedUuid",void 0),(0,t0.registerSingleton)(nH,lk,t0.InstantiationType.Delayed),(0,t0.registerSingleton)(oB.ITerminalChatService,class{constructor(){this.onDidRegisterTerminalInstanceWithToolSession=e1.Event.None,this.registerTerminalInstanceWithToolSession=()=>{},this.getTerminalInstanceByToolSessionId=async()=>void 0,this.getToolSessionTerminalInstances=()=>[],this.getToolSessionIdForInstance=()=>void 0,this.registerTerminalInstanceWithChatSession=()=>{},this.getChatSessionIdForInstance=()=>void 0,this.isBackgroundTerminal=()=>!1,this.registerProgressPart=()=>e2.Disposable.None,this.setFocusedProgressPart=()=>{},this.clearFocusedProgressPart=()=>{},this.getFocusedProgressPart=()=>void 0,this.getMostRecentProgressPart=()=>void 0,this.setChatSessionAutoApproval=()=>{},this.hasChatSessionAutoApproval=()=>!1,this.addSessionAutoApproveRule=()=>{},this.getSessionAutoApproveRules=()=>({})}},t0.InstantiationType.Delayed);class lT{constructor(){this.onWillResolve=e1.Event.None,this.onDidResolve=e1.Event.None,this.onDidChangeSessions=e1.Event.None,this.sessions=[],this.getSession=()=>void 0,this.resolve=s8.unsupported}}(0,eJ.__decorate)([s6],lT.prototype,"resolve",void 0),(0,t0.registerSingleton)(nX,class{constructor(){this.model=new lT,this.getSession=()=>void 0}},t0.InstantiationType.Delayed),(0,t0.registerSingleton)(nZ,class{constructor(){this.isVsCodeFocused=(0,s5.constObservable)(!1),this.isUserActive=(0,s5.constObservable)(!1),this.hasUserAttention=(0,s5.constObservable)(!1),this.totalFocusTimeMs=0,this.fireAfterGivenFocusTimePassed=()=>e2.Disposable.None}},t0.InstantiationType.Delayed);class lM{constructor(){this.createModel=s8.unsupported}}(0,eJ.__decorate)([s6],lM.prototype,"createModel",void 0),(0,t0.registerSingleton)(nJ,lM,t0.InstantiationType.Delayed),e.s([],54630);class lP{validateOrThrow(e){let t=this.validate(e);if(t.error)throw Error(t.error.message);return t.content}}class lR extends lP{constructor(e){super(),this.type=e}validate(e){return typeof e!==this.type?{content:void 0,error:{message:`Expected ${this.type}, but got ${typeof e}`}}:{content:e,error:void 0}}getJSONSchema(){return{type:this.type}}}let lL=new lR("string"),lN=new lR("number"),lO=new lR("boolean"),lF=new lR("object");class lK extends lP{validate(e){return void 0!==e?{content:void 0,error:{message:`Expected undefined, but got ${typeof e}`}}:{content:void 0,error:void 0}}getJSONSchema(){return{}}}class lW{constructor(e){this.validator=e}}class lz extends lP{constructor(e){super(),this.properties=e}validate(e){if("object"!=typeof e||null===e)return{content:void 0,error:{message:"Expected object"}};let t={};for(let i in this.properties){let o=this.properties[i],r=e[i],n=o instanceof lW,s=n?o.validator:o;if(n&&void 0===r)continue;let{content:a,error:d}=s.validate(r);if(d)return{content:void 0,error:{message:`Error in property '${i}': ${d.message}`}};t[i]=a}return{content:t,error:void 0}}getJSONSchema(){let e=[],t={};for(let[i,o]of Object.entries(this.properties)){let r=o instanceof lW,n=r?o.validator:o;t[i]=n.getJSONSchema(),r||e.push(i)}return{type:"object",properties:t,...e.length>0?{required:e}:{}}}}class lV extends lP{constructor(e){super(),this.validator=e}validate(e){if(!Array.isArray(e))return{content:void 0,error:{message:"Expected array"}};let t=[];for(let i=0;i<e.length;i++){let{content:o,error:r}=this.validator.validate(e[i]);if(r)return{content:void 0,error:{message:`Error in element ${i}: ${r.message}`}};t.push(o)}return{content:t,error:void 0}}getJSONSchema(){return{type:"array",items:this.validator.getJSONSchema()}}}class lB extends lP{constructor(e){super(),this.validators=e}validate(e){let t;for(let i of this.validators){let{content:o,error:r}=i.validate(e);if(!r)return{content:o,error:void 0};t=r}return{content:void 0,error:t}}getJSONSchema(){return{oneOf:(0,sU.mapFilter)(this.validators,e=>{if(!(e instanceof lK))return e.getJSONSchema()})}}}class lU extends lP{constructor(e,t){super(),this._ref=e,this._validator=t}validate(e){return this._validator.validate(e)}getJSONSchema(){return{$ref:this._ref}}}e.s(["vArray",0,function(e){return new lV(e)},"vBoolean",0,function(){return lO},"vNumber",0,function(){return lN},"vObj",0,function(e){return new lz(e)},"vObjAny",0,function(){return lF},"vOptionalProp",0,function(e){return new lW(e)},"vString",0,function(){return lL},"vUndefined",0,function(){return new lK},"vUnion",0,function(...e){return new lB(e)},"vWithJsonSchemaRef",0,function(e,t){return new lU(e,t)}],183866);var lH=e.i(702320);let lq="vscode-cdn.net",lG=`vscode-resource.${lq}`,l$=`'self' https://*.${lq}`;e.s(["asWebviewUri",0,function(e,t){return e.scheme===lH.Schemas.http||e.scheme===lH.Schemas.https?e:(t&&t.authority&&t.isRemote&&e.scheme===lH.Schemas.file&&(e=e6.URI.from({scheme:lH.Schemas.vscodeRemote,authority:t.authority,path:e.path})),e6.URI.from({scheme:lH.Schemas.https,authority:`${e.scheme}+${e.authority.replace(/./g,e=>{let t=e.charCodeAt(0);return t>=n9.CharCode.a&&t<=n9.CharCode.z||t>=n9.CharCode.A&&t<=n9.CharCode.Z||t>=n9.CharCode.Digit0&&t<=n9.CharCode.Digit9?e:"-"+t.toString(16).padStart(4,"0")})}.${lG}`,path:e.path,fragment:e.fragment,query:e.query}))},"decodeAuthority",0,function(e){return e.replace(/-([0-9a-f]{4})/g,(e,t)=>String.fromCharCode(parseInt(t,16)))},"webviewGenericCspSource",0,l$,"webviewRootResourceAuthority",0,lG],331508)},968839,693676,325238,368086,290997,714270,e=>{"use strict";var t=e.i(281482),i=e.i(650289),o=e.i(425024),r=e.i(693162),n=e.i(535567),s=e.i(611130),a=e.i(888961),d=e.i(621826),c=e.i(526097),l=e.i(399119),u=e.i(697786),h=e.i(488259);let p=o.ExtensionsRegistry.registerExtensionPoint({extensionPoint:"jsonValidation",defaultExtensionKind:["workspace","web"],jsonSchema:{description:(0,i.localize)(2708,"Contributes json schema configuration."),type:"array",defaultSnippets:[{body:[{fileMatch:"${1:file.json}",url:"${2:url}"}]}],items:{type:"object",defaultSnippets:[{body:{fileMatch:"${1:file.json}",url:"${2:url}"}}],properties:{fileMatch:{type:["string","array"],description:(0,i.localize)(2709,'The file pattern (or an array of patterns) to match, for example "package.json" or "*.launch". Exclusion patterns start with \'!\''),items:{type:["string"]}},url:{description:(0,i.localize)(2710,"A schema URL ('http:', 'https:') or relative path to the extension folder ('./')."),type:"string"}}}}});class g{constructor(){p.setHandler(e=>{for(let t of e){let e=t.value,o=t.collector,s=t.description.extensionLocation;if(!e||!Array.isArray(e))return void o.error((0,i.localize)(2711,"'configuration.jsonValidation' must be a array"));e.forEach(e=>{if(!(0,n.isString)(e.fileMatch)&&!(Array.isArray(e.fileMatch)&&e.fileMatch.every(n.isString)))return void o.error((0,i.localize)(2712,"'configuration.jsonValidation.fileMatch' must be defined as a string or an array of strings."));let t=e.url;if(!(0,n.isString)(t))return void o.error((0,i.localize)(2713,"'configuration.jsonValidation.url' must be a URL or relative path"));if(t.startsWith("./"))try{let e=(0,r.joinPath)(s,t);(0,r.isEqualOrParent)(e,s)||o.warn((0,i.localize)(2714,"Expected `contributes.{0}.url` ({1}) to be included inside extension's folder ({2}). This might make the extension non-portable.",p.name,e.toString(),s.path))}catch(e){o.error((0,i.localize)(2715,"'configuration.jsonValidation.url' is an invalid relative URL: {0}",e.message))}else if(!/^[^:/?#]+:\/\//.test(t))return void o.error((0,i.localize)(2716,"'configuration.jsonValidation.url' must be an absolute URL or start with './' to reference schemas located in the extension."))})}})}}class m extends s.Disposable{constructor(){super(...arguments),this.type="table"}shouldRender(e){return!!e.contributes?.jsonValidation}render(e){let t=e.contributes?.jsonValidation||[];return t.length?{data:{headers:[(0,i.localize)(2717,"File Match"),(0,i.localize)(2718,"Schema")],rows:t.map(e=>[new l.MarkdownString().appendMarkdown(`\`${Array.isArray(e.fileMatch)?e.fileMatch.join(", "):e.fileMatch}\``),e.url])},dispose:()=>{}}:{data:{headers:[],rows:[]},dispose:()=>{}}}}d.Registry.as(a.Extensions.ExtensionFeaturesRegistry).registerExtensionFeature({id:"jsonValidation",label:(0,i.localize)(2719,"JSON Validation"),access:{canToggle:!1},renderer:new c.SyncDescriptor(m)});let v=class{static{this.ID="workbench.contrib.jsonValidationExtensionPoint"}constructor(e){this.instantiationService=e,this.instantiationService.createInstance(g)}};v=(0,t.__decorate)([(0,t.__param)(0,h.IInstantiationService)],v),(0,u.registerWorkbenchContribution2)(v.ID,v,u.WorkbenchPhase.BlockStartup),e.s([],968839);var y=e.i(575129);e.i(698014),e.i(140331),e.i(471999),e.i(900329),e.i(785266),e.i(181268),e.i(70177),e.i(575210),e.i(890787),e.i(67920);var f=e.i(144881),_=s;let C=d.Registry.as(y.Extensions.ColorContribution),S=C.getColorReferenceSchema(),b="^\\w+[.\\w+]*$",I=o.ExtensionsRegistry.registerExtensionPoint({extensionPoint:"colors",jsonSchema:{description:(0,i.localize)(14331,"Contributes extension defined themable colors"),type:"array",items:{type:"object",properties:{id:{type:"string",description:(0,i.localize)(14332,"The identifier of the themable color"),pattern:b,patternErrorMessage:(0,i.localize)(14333,"Identifiers must only contain letters, digits and dots and can not start with a dot")},description:{type:"string",description:(0,i.localize)(14334,"The description of the themable color")},defaults:{type:"object",properties:{light:{description:(0,i.localize)(14335,"The default color for light themes. Either a color value in hex (#RRGGBB[AA]) or the identifier of a themable color which provides the default."),type:"string",anyOf:[S,{type:"string",format:"color-hex"}]},dark:{description:(0,i.localize)(14336,"The default color for dark themes. Either a color value in hex (#RRGGBB[AA]) or the identifier of a themable color which provides the default."),type:"string",anyOf:[S,{type:"string",format:"color-hex"}]},highContrast:{description:(0,i.localize)(14337,"The default color for high contrast dark themes. Either a color value in hex (#RRGGBB[AA]) or the identifier of a themable color which provides the default. If not provided, the `dark` color is used as default for high contrast dark themes."),type:"string",anyOf:[S,{type:"string",format:"color-hex"}]},highContrastLight:{description:(0,i.localize)(14338,"The default color for high contrast light themes. Either a color value in hex (#RRGGBB[AA]) or the identifier of a themable color which provides the default. If not provided, the `light` color is used as default for high contrast light themes."),type:"string",anyOf:[S,{type:"string",format:"color-hex"}]}},required:["light","dark"]}}}}});class E{constructor(){I.setHandler((e,t)=>{for(let e of t.added){let t=e.value,o=e.collector;if(!t||!Array.isArray(t))return void o.error((0,i.localize)(14339,"'configuration.colors' must be a array"));let r=(e,t)=>{if(e.length>0)if("#"===e[0])return f.Color.Format.CSS.parseHex(e);else return e;return o.error((0,i.localize)(14340,"{0} must be either a color value in hex (#RRGGBB[AA] or #RGB[A]) or the identifier of a themable color which provides the default.",t)),f.Color.red};for(let e of t){if("string"!=typeof e.id||0===e.id.length)return void o.error((0,i.localize)(14341,"'configuration.colors.id' must be defined and can not be empty"));if(!e.id.match(b))return void o.error((0,i.localize)(14342,"'configuration.colors.id' must only contain letters, digits and dots and can not start with a dot"));if("string"!=typeof e.description||0===e.id.length)return void o.error((0,i.localize)(14343,"'configuration.colors.description' must be defined and can not be empty"));let t=e.defaults;if(!t||"object"!=typeof t||"string"!=typeof t.light||"string"!=typeof t.dark)return void o.error((0,i.localize)(14344,"'configuration.colors.defaults' must be defined and must contain 'light' and 'dark'"));if(t.highContrast&&"string"!=typeof t.highContrast)return void o.error((0,i.localize)(14345,"If defined, 'configuration.colors.defaults.highContrast' must be a string."));if(t.highContrastLight&&"string"!=typeof t.highContrastLight)return void o.error((0,i.localize)(14346,"If defined, 'configuration.colors.defaults.highContrastLight' must be a string."));C.registerColor(e.id,{light:r(t.light,"configuration.colors.defaults.light"),dark:r(t.dark,"configuration.colors.defaults.dark"),hcDark:r(t.highContrast??t.dark,"configuration.colors.defaults.highContrast"),hcLight:r(t.highContrastLight??t.light,"configuration.colors.defaults.highContrastLight")},e.description)}}for(let e of t.removed)for(let t of e.value)C.deregisterColor(t.id)})}}class w extends _.Disposable{constructor(){super(...arguments),this.type="table"}shouldRender(e){return!!e.contributes?.colors}render(e){let t=e.contributes?.colors||[];if(!t.length)return{data:{headers:[],rows:[]},dispose:()=>{}};let o=[(0,i.localize)(14347,"ID"),(0,i.localize)(14348,"Description"),(0,i.localize)(14349,"Dark Default"),(0,i.localize)(14350,"Light Default"),(0,i.localize)(14351,"High Contrast Default")],r=e=>"#"===e[0]?f.Color.fromHex(e):void 0;return{data:{headers:o,rows:t.sort((e,t)=>e.id.localeCompare(t.id)).map(e=>[new l.MarkdownString().appendMarkdown(`\`${e.id}\``),e.description,r(e.defaults.dark)??new l.MarkdownString().appendMarkdown(`\`${e.defaults.dark}\``),r(e.defaults.light)??new l.MarkdownString().appendMarkdown(`\`${e.defaults.light}\``),r(e.defaults.highContrast)??new l.MarkdownString().appendMarkdown(`\`${e.defaults.highContrast}\``)])},dispose:()=>{}}}}d.Registry.as(a.Extensions.ExtensionFeaturesRegistry).registerExtensionFeature({id:"colors",label:(0,i.localize)(14352,"Colors"),access:{canToggle:!1},renderer:new c.SyncDescriptor(w)});let D=class{static{this.ID="workbench.contrib.colorExtensionPoint"}constructor(e){this.instantiationService=e,this.instantiationService.createInstance(E)}};D=(0,t.__decorate)([(0,t.__param)(0,h.IInstantiationService)],D),(0,u.registerWorkbenchContribution2)(D.ID,D,u.WorkbenchPhase.BlockStartup),e.s([],693676);var A=e.i(321012),x=e.i(536367),k=e.i(771275);let T=d.Registry.as(A.Extensions.IconContribution),M=T.getIconReferenceSchema(),P=`^${x.ThemeIcon.iconNameSegment}(-${x.ThemeIcon.iconNameSegment})+$`,R=o.ExtensionsRegistry.registerExtensionPoint({extensionPoint:"icons",jsonSchema:{description:(0,i.localize)(14414,"Contributes extension defined themable icons"),type:"object",propertyNames:{pattern:P,description:(0,i.localize)(14415,"The identifier of the themable icon"),patternErrorMessage:(0,i.localize)(14416,"Identifiers can only contain letters, digits and minuses and need to consist of at least two segments in the form `component-iconname`.")},additionalProperties:{type:"object",properties:{description:{type:"string",description:(0,i.localize)(14417,"The description of the themable icon")},default:{anyOf:[M,{type:"object",properties:{fontPath:{description:(0,i.localize)(14418,"The path of the icon font that defines the icon."),type:"string"},fontCharacter:{description:(0,i.localize)(14419,"The character for the icon in the icon font."),type:"string"}},required:["fontPath","fontCharacter"],defaultSnippets:[{body:{fontPath:"${1:myiconfont.woff}",fontCharacter:"${2:\\\\E001}"}}]}],description:(0,i.localize)(14420,"The default of the icon. Either a reference to an existing ThemeIcon or an icon in an icon font.")}},required:["description","default"],defaultSnippets:[{body:{description:"${1:my icon}",default:{fontPath:"${2:myiconfont.woff}",fontCharacter:"${3:\\\\E001}"}}}]},defaultSnippets:[{body:{"${1:my-icon-id}":{description:"${2:my icon}",default:{fontPath:"${3:myiconfont.woff}",fontCharacter:"${4:\\\\E001}"}}}}]}});class L{constructor(){R.setHandler((e,t)=>{for(let e of t.added){let t=e.value,s=e.collector;if(!t||"object"!=typeof t)return void s.error((0,i.localize)(14421,"'configuration.icons' must be an object with the icon names as properties."));for(let a in t){if(!a.match(P))return void s.error((0,i.localize)(14422,"'configuration.icons' keys represent the icon id and can only contain letter, digits and minuses. They need to consist of at least two segments in the form `component-iconname`."));let d=t[a];if("string"!=typeof d.description||0===d.description.length)return void s.error((0,i.localize)(14423,"'configuration.icons.description' must be defined and can not be empty"));let c=d.default;if("string"==typeof c)T.registerIcon(a,{id:c},d.description);else if("object"==typeof c&&"string"==typeof c.fontPath&&"string"==typeof c.fontCharacter){var o,n;let t=(0,k.extname)(c.fontPath).substring(1),l=N[t];if(!l)return void s.warn((0,i.localize)(14424,"Expected `contributes.icons.default.fontPath` to have file extension 'woff', woff2' or 'ttf', is '{0}'.",t));let u=e.description.extensionLocation,h=(0,r.joinPath)(u,c.fontPath),p=(o=e.description,n=c.fontPath,k.posix.join(o.identifier.value,n)),g=T.registerIconFont(p,{src:[{location:h,format:l}]});if(!(0,r.isEqualOrParent)(h,u))return void s.warn((0,i.localize)(14425,"Expected `contributes.icons.default.fontPath` ({0}) to be included inside extension's folder ({0}).",h.path,u.path));T.registerIcon(a,{fontCharacter:c.fontCharacter,font:{id:p,definition:g}},d.description)}else s.error((0,i.localize)(14426,"'configuration.icons.default' must be either a reference to the id of an other theme icon (string) or a icon definition (object) with properties `fontPath` and `fontCharacter`."))}}for(let e of t.removed){let t=e.value;for(let e in t)T.deregisterIcon(e)}})}}let N={ttf:"truetype",woff:"woff",woff2:"woff2"},O=class{static{this.ID="workbench.contrib.iconExtensionPoint"}constructor(e){this.instantiationService=e,this.instantiationService.createInstance(L)}};O=(0,t.__decorate)([(0,t.__param)(0,h.IInstantiationService)],O),(0,u.registerWorkbenchContribution2)(O.ID,O,u.WorkbenchPhase.BlockStartup),e.s([],325238);var F=e.i(686380),K=e.i(262072),W=F,z=e.i(94361),V=e.i(853457);class B extends W.Action2{constructor(){super({id:"menu.resetHiddenStates",title:(0,i.localize2)(1765,"Reset All Menus"),category:K.Categories.View,f1:!0})}run(e){e.get(z.IMenuService).resetHiddenStates(),e.get(V.ILogService).info("did RESET all menu hidden states")}}e.i(553547),e.i(157255),(0,F.registerAction2)(B),e.s([],368086);var U=e.i(478697),H=e.i(79522),q=e.i(819603),G=e.i(731931),$=e.i(9753),Q=e.i(975445),j=e.i(140889);let Y=class extends q.ReferencesController{constructor(e,t,i,o,r,n,s){super(!1,e,t,i,o,r,n,s)}};Y=(0,t.__decorate)([(0,t.__param)(1,$.IContextKeyService),(0,t.__param)(2,H.ICodeEditorService),(0,t.__param)(3,Q.INotificationService),(0,t.__param)(4,h.IInstantiationService),(0,t.__param)(5,j.IStorageService),(0,t.__param)(6,G.IConfigurationService)],Y),(0,U.registerEditorContribution)(q.ReferencesController.ID,Y,U.EditorContributionInstantiation.Lazy),e.s([],290997);var X=e.i(107700),Z=e.i(631524),J=e.i(668567),ee=e.i(927842),et=e.i(84513);let ei=class extends Z.DiffEditorWidget{constructor(e,t,i,o,r,n,s,a,d,c){super(e,o.getRawOptions(),i,r,n,s,a,d,c),this._parentEditor=o,this._overwriteOptions=t,super.updateOptions(this._overwriteOptions),this._register(o.onDidChangeConfiguration(e=>this._onParentConfigurationChanged(e)))}getParentEditor(){return this._parentEditor}_onParentConfigurationChanged(e){super.updateOptions(this._parentEditor.getRawOptions()),super.updateOptions(this._overwriteOptions)}updateOptions(e){(0,X.mixin)(this._overwriteOptions,e,!0),super.updateOptions(this._overwriteOptions)}};ei=(0,t.__decorate)([(0,t.__param)(4,$.IContextKeyService),(0,t.__param)(5,h.IInstantiationService),(0,t.__param)(6,H.ICodeEditorService),(0,t.__param)(7,J.IAccessibilitySignalService),(0,t.__param)(8,ee.IEditorProgressService),(0,t.__param)(9,et.IKeybindingService)],ei),e.s(["EmbeddedDiffEditorWidget",0,ei],714270)},947413,e=>{"use strict";let t=new class{constructor(){this._implementations=[]}register(e){return this._implementations.push(e),{dispose:()=>{let t=this._implementations.indexOf(e);-1!==t&&this._implementations.splice(t,1)}}}getImplementations(){return this._implementations}};e.s(["AccessibleViewRegistry",0,t])},876081,85890,331044,565717,583183,264901,235171,594944,825288,114790,899694,531707,329471,919442,8791,792133,997163,507513,64748,345706,794019,277782,e=>{"use strict";var t,i,o,r,n,s,a,d,c,l,u,h=e.i(281482),p=e.i(611130);e.i(71224);var g=e.i(478697),m=e.i(714270),v=e.i(554250),y=e.i(650289),f=e.i(947413),_=e.i(488259),C=e.i(216822),S=e.i(975445),b=e.i(621826),I=e.i(781808),E=p,w=e.i(693162),D=e.i(163731),A=e.i(440049),x=e.i(69150),k=e.i(275906),T=e.i(98342),M=e.i(327634),P=e.i(850887),R=e.i(598720),L=p,N=e.i(2301),O=e.i(94361),F=e.i(9753),K=e.i(575129),W=e.i(698014);e.i(140331);var z=e.i(471999),V=e.i(900329);e.i(785266),e.i(181268),e.i(70177),e.i(575210),e.i(890787),e.i(67920);class B extends R.Widget{constructor(e){super(),this.label=e,this._onClick=this._register(new I.Emitter),this.onClick=this._onClick.event,this._domNode=(0,P.$)(".floating-click-widget"),this._domNode.style.padding="6px 11px",this._domNode.style.borderRadius="2px",this._domNode.style.cursor="pointer",this._domNode.style.zIndex="1"}getDomNode(){return this._domNode}render(){(0,P.clearNode)(this._domNode),this._domNode.style.backgroundColor=(0,K.asCssVariableWithDefault)(V.buttonBackground,(0,K.asCssVariable)(z.editorBackground)),this._domNode.style.color=(0,K.asCssVariableWithDefault)(V.buttonForeground,(0,K.asCssVariable)(z.editorForeground)),this._domNode.style.border=`1px solid ${(0,K.asCssVariable)(W.contrastBorder)}`,(0,P.append)(this._domNode,(0,P.$)("")).textContent=this.label,this.onclick(this._domNode,()=>this._onClick.fire())}}let U=class extends L.Disposable{get onDidRender(){return this.renderEmitter.event}constructor(e,t,i){super(),this.renderEmitter=new I.Emitter,this.menu=this._register(t.createMenu(e,i))}render(){let e=this._register(new L.DisposableStore),t=()=>{if(e.clear(),!this.isVisible())return;let t=(0,N.getFlatActionBarActions)(this.menu.getActions({renderShortTitle:!0,shouldForwardArgs:!0}));if(0===t.length)return;let[i]=t,o=this.createWidget(i,e);e.add(o),e.add(o.onClick(()=>i.run(this.getActionArg()))),o.render()};this._register(this.menu.onDidChange(t)),t()}getActionArg(){}isVisible(){return!0}};U=(0,h.__decorate)([(0,h.__param)(1,O.IMenuService),(0,h.__param)(2,F.IContextKeyService)],U);let H=class extends U{constructor(e,t,i,o){super(e.menuId,i,o),this.options=e,this.instantiationService=t,this.render()}createWidget(e,t){let i=this.instantiationService.createInstance(B,e.label),o=i.getDomNode();return this.options.container.appendChild(o),t.add((0,L.toDisposable)(()=>o.remove())),i}getActionArg(){return this.options.getActionArg()}};H=(0,h.__decorate)([(0,h.__param)(1,_.IInstantiationService),(0,h.__param)(2,O.IMenuService),(0,h.__param)(3,F.IContextKeyService)],H);var q=e.i(686380),G=e.i(84513),$=e.i(362361);let Q=class extends E.Disposable{static{r=this}constructor(e){super(),this.editorService=e,this._onHighlightRemoved=this._register(new I.Emitter),this.onHighlightRemoved=this._onHighlightRemoved.event,this.rangeHighlightDecorationId=null,this.editor=null,this.editorDisposables=this._register(new E.DisposableStore)}removeHighlightRange(){if(this.editor&&this.rangeHighlightDecorationId){let e=this.rangeHighlightDecorationId;this.editor.changeDecorations(t=>{t.removeDecoration(e)}),this._onHighlightRemoved.fire()}this.rangeHighlightDecorationId=null}highlightRange(e,t){t=t??this.getEditor(e),(0,D.isCodeEditor)(t)?this.doHighlightRange(t,e):(0,D.isCompositeEditor)(t)&&(0,D.isCodeEditor)(t.activeCodeEditor)&&this.doHighlightRange(t.activeCodeEditor,e)}doHighlightRange(e,t){this.removeHighlightRange(),e.changeDecorations(e=>{this.rangeHighlightDecorationId=e.addDecoration(t.range,this.createRangeHighlightDecoration(t.isWholeLine))}),this.setEditor(e)}getEditor(e){let t=this.editorService.activeEditor?.resource;if(t&&(0,w.isEqual)(t,e.resource)&&(0,D.isCodeEditor)(this.editorService.activeTextEditorControl))return this.editorService.activeTextEditorControl}setEditor(e){this.editor!==e&&(this.editorDisposables.clear(),this.editor=e,this.editorDisposables.add(this.editor.onDidChangeCursorPosition(e=>{(e.reason===k.CursorChangeReason.NotSet||e.reason===k.CursorChangeReason.Explicit||e.reason===k.CursorChangeReason.Undo||e.reason===k.CursorChangeReason.Redo)&&this.removeHighlightRange()})),this.editorDisposables.add(this.editor.onDidChangeModel(()=>{this.removeHighlightRange()})),this.editorDisposables.add(this.editor.onDidDispose(()=>{this.removeHighlightRange(),this.editor=null})))}static{this._WHOLE_LINE_RANGE_HIGHLIGHT=M.ModelDecorationOptions.register({description:"codeeditor-range-highlight-whole",stickiness:T.TrackedRangeStickiness.NeverGrowsWhenTypingAtEdges,className:"rangeHighlight",isWholeLine:!0})}static{this._RANGE_HIGHLIGHT=M.ModelDecorationOptions.register({description:"codeeditor-range-highlight",stickiness:T.TrackedRangeStickiness.NeverGrowsWhenTypingAtEdges,className:"rangeHighlight"})}createRangeHighlightDecoration(e=!0){return e?r._WHOLE_LINE_RANGE_HIGHLIGHT:r._RANGE_HIGHLIGHT}dispose(){super.dispose(),this.editor?.getModel()&&(this.removeHighlightRange(),this.editor=null)}};Q=r=(0,h.__decorate)([(0,h.__param)(0,$.IEditorService)],Q);let j=class extends B{constructor(e,t,i,o){super(i&&o.lookupKeybinding(i)?`${t} (${o.lookupKeybinding(i).getLabel()})`:t),this.editor=e}getId(){return"editor.overlayWidget.floatingClickWidget"}getPosition(){return{preference:D.OverlayWidgetPositionPreference.BOTTOM_RIGHT_CORNER}}render(){super.render(),this.editor.addOverlayWidget(this)}dispose(){this.editor.removeOverlayWidget(this),super.dispose()}};j=(0,h.__decorate)([(0,h.__param)(3,G.IKeybindingService)],j);let Y=class extends U{static{this.ID="editor.contrib.floatingClickMenu"}constructor(e,t,i,o){super(q.MenuId.EditorContent,i,o),this.editor=e,this.instantiationService=t,this.render()}createWidget(e){return this.instantiationService.createInstance(j,this.editor,e.label,e.id)}isVisible(){return!(this.editor instanceof A.EmbeddedCodeEditorWidget)&&this.editor?.hasModel()&&!this.editor.getOption(x.EditorOption.inDiffEditor)}getActionArg(){return this.editor.getModel()?.uri}};Y=(0,h.__decorate)([(0,h.__param)(1,_.IInstantiationService),(0,h.__param)(2,O.IMenuService),(0,h.__param)(3,F.IContextKeyService)],Y);var X=e.i(803777),Z=e.i(79522),J=e.i(155652),ee=e.i(83823),et=g,ei=e.i(631524),eo=e.i(704409),er=q,en=e.i(731931),es=e.i(568101),ea=e.i(718596);e.i(830985);class ed extends er.Action2{constructor(){super({id:"diffEditor.toggleCollapseUnchangedRegions",title:(0,y.localize2)(153,"Toggle Collapse Unchanged Regions"),icon:J.Codicon.map,toggled:es.ContextKeyExpr.has("config.diffEditor.hideUnchangedRegions.enabled"),precondition:es.ContextKeyExpr.has("isInDiffEditor"),menu:{when:es.ContextKeyExpr.has("isInDiffEditor"),id:er.MenuId.EditorTitle,order:22,group:"navigation"}})}run(e){let t=e.get(en.IConfigurationService),i=!t.getValue("diffEditor.hideUnchangedRegions.enabled");t.updateValue("diffEditor.hideUnchangedRegions.enabled",i)}}class ec extends er.Action2{constructor(){super({id:"diffEditor.toggleShowMovedCodeBlocks",title:(0,y.localize2)(154,"Toggle Show Moved Code Blocks"),precondition:es.ContextKeyExpr.has("isInDiffEditor")})}run(e){let t=e.get(en.IConfigurationService),i=!t.getValue("diffEditor.experimental.showMoves");t.updateValue("diffEditor.experimental.showMoves",i)}}class el extends er.Action2{constructor(){super({id:"diffEditor.toggleUseInlineViewWhenSpaceIsLimited",title:(0,y.localize2)(155,"Toggle Use Inline View When Space Is Limited"),precondition:es.ContextKeyExpr.has("isInDiffEditor")})}run(e){let t=e.get(en.IConfigurationService),i=!t.getValue("diffEditor.useInlineViewWhenSpaceIsLimited");t.updateValue("diffEditor.useInlineViewWhenSpaceIsLimited",i)}}let eu=(0,y.localize2)(156,"Diff Editor");class eh extends et.EditorAction2{constructor(){super({id:"diffEditor.switchSide",title:(0,y.localize2)(157,"Switch Side"),icon:J.Codicon.arrowSwap,precondition:es.ContextKeyExpr.has("isInDiffEditor"),f1:!0,category:eu})}runEditorCommand(e,t,i){let o=eC(e);if(o instanceof ei.DiffEditorWidget)if(i&&i.dryRun)return{destinationSelection:o.mapToOtherSide().destinationSelection};else o.switchSide()}}class ep extends et.EditorAction2{constructor(){super({id:"diffEditor.exitCompareMove",title:(0,y.localize2)(158,"Exit Compare Move"),icon:J.Codicon.close,precondition:eo.EditorContextKeys.comparingMovedCode,f1:!1,category:eu,keybinding:{weight:1e4,primary:ee.KeyCode.Escape}})}runEditorCommand(e,t){let i=eC(e);i instanceof ei.DiffEditorWidget&&i.exitCompareMove()}}class eg extends et.EditorAction2{constructor(){super({id:"diffEditor.collapseAllUnchangedRegions",title:(0,y.localize2)(159,"Collapse All Unchanged Regions"),icon:J.Codicon.fold,precondition:es.ContextKeyExpr.has("isInDiffEditor"),f1:!0,category:eu})}runEditorCommand(e,t){let i=eC(e);i instanceof ei.DiffEditorWidget&&i.collapseAllUnchangedRegions()}}class em extends et.EditorAction2{constructor(){super({id:"diffEditor.showAllUnchangedRegions",title:(0,y.localize2)(160,"Show All Unchanged Regions"),icon:J.Codicon.unfold,precondition:es.ContextKeyExpr.has("isInDiffEditor"),f1:!0,category:eu})}runEditorCommand(e,t){let i=eC(e);i instanceof ei.DiffEditorWidget&&i.showAllUnchangedRegions()}}class ev extends er.Action2{constructor(){super({id:"diffEditor.revert",title:(0,y.localize2)(161,"Revert"),f1:!0,category:eu,precondition:es.ContextKeyExpr.has("isInDiffEditor")})}run(e,t){return t?this.runViaToolbarContext(e,t):this.runViaCursorOrSelection(e)}runViaCursorOrSelection(e){let t=eC(e);t instanceof ei.DiffEditorWidget&&t.revertFocusedRangeMappings()}runViaToolbarContext(e,t){var i,o,r;let n=(i=e,o=t.originalUri,r=t.modifiedUri,i.get(Z.ICodeEditorService).listDiffEditors().find(e=>{let t=e.getModifiedEditor(),i=e.getOriginalEditor();return t&&t.getModel()?.uri.toString()===r.toString()&&i&&i.getModel()?.uri.toString()===o.toString()})||null);n instanceof ei.DiffEditorWidget&&n.revertRangeMappings(t.mapping.innerChanges??[])}}let ey=(0,y.localize2)(162,"Accessible Diff Viewer");class ef extends er.Action2{static{this.id="editor.action.accessibleDiffViewer.next"}constructor(){super({id:ef.id,title:(0,y.localize2)(163,"Go to Next Difference"),category:ey,precondition:es.ContextKeyExpr.has("isInDiffEditor"),keybinding:{primary:ee.KeyCode.F7,weight:ea.KeybindingWeight.EditorContrib},f1:!0})}run(e){let t=eC(e);t?.accessibleDiffViewerNext()}}class e_ extends er.Action2{static{this.id="editor.action.accessibleDiffViewer.prev"}constructor(){super({id:e_.id,title:(0,y.localize2)(164,"Go to Previous Difference"),category:ey,precondition:es.ContextKeyExpr.has("isInDiffEditor"),keybinding:{primary:ee.KeyMod.Shift|ee.KeyCode.F7,weight:ea.KeybindingWeight.EditorContrib},f1:!0})}run(e){let t=eC(e);t?.accessibleDiffViewerPrev()}}function eC(e){let t=e.get(Z.ICodeEditorService).listDiffEditors(),i=(0,P.getActiveElement)();if(i){for(let e of t)if(e.getContainerDomNode().contains(i))return e}return null}function eS(e,t){if(!t.getOption(x.EditorOption.inDiffEditor))return null;for(let i of e.get(Z.ICodeEditorService).listDiffEditors()){let e=i.getOriginalEditor(),o=i.getModifiedEditor();if(e===t||o===t)return i}return null}e.s(["AccessibleDiffViewerNext",0,ef,"AccessibleDiffViewerPrev",0,e_,"CollapseAllUnchangedRegions",0,eg,"ExitCompareMove",0,ep,"RevertHunkOrSelection",0,ev,"ShowAllUnchangedRegions",0,em,"SwitchSide",0,eh,"ToggleCollapseUnchangedRegions",0,ed,"ToggleShowMovedCodeBlocks",0,ec,"ToggleUseInlineViewWhenSpaceIsLimited",0,el,"findDiffEditorContainingCodeEditor",0,eS],85890);var eb=e.i(915550),eI=e.i(781080),eE=p,ew=e.i(33888),eD=e.i(846960),eA=(e.i(793715),e.i(436996));e.i(633434);var ex=e.i(254892),ek=e.i(172107),eT=e.i(323325),eM=e.i(789482),eP=q;class eR extends eP.Action2{static{this.ID="editor.action.toggleTabFocusMode"}constructor(){super({id:eR.ID,title:(0,y.localize2)(1628,"Toggle Tab Key Moves Focus"),precondition:void 0,keybinding:{primary:ee.KeyMod.CtrlCmd|ee.KeyCode.KeyM,mac:{primary:ee.KeyMod.WinCtrl|ee.KeyMod.Shift|ee.KeyCode.KeyM},weight:ea.KeybindingWeight.EditorContrib},metadata:{description:(0,y.localize2)(1629,"Determines whether the tab key moves focus around the workbench or inserts the tab character in the current editor. This is also called tab trapping, tab navigation, or tab focus mode.")},f1:!0})}run(){let e=!eM.TabFocus.getTabFocusMode();eM.TabFocus.setTabFocusMode(e),e?(0,eT.alert)((0,y.localize)(1630,"Pressing Tab will now move focus to the next focusable element")):(0,eT.alert)((0,y.localize)(1631,"Pressing Tab will now insert the tab character"))}}(0,eP.registerAction2)(eR),e.s(["ToggleTabFocusModeAction",0,eR],331044);(t=n||(n={})).intro=(0,y.localize)(6338,"The editor contains commentable range(s). Some useful commands include:"),t.tabFocus=(0,y.localize)(6339,"This widget contains a text area, for composition of new comments, and actions, that can be tabbed to once tab moves focus mode has been enabled with the command Toggle Tab Key Moves Focus{0}.",`<keybinding:${eR.ID}>`),t.commentCommands=(0,y.localize)(6340,"Some useful comment commands include:"),t.escape=(0,y.localize)(6341,"- Dismiss Comment (Escape)"),t.nextRange=(0,y.localize)(6342,"- Go to Next Commenting Range{0}.",`<keybinding:${ek.CommentCommandId.NextRange}>`),t.previousRange=(0,y.localize)(6343,"- Go to Previous Commenting Range{0}.",`<keybinding:${ek.CommentCommandId.PreviousRange}>`),t.nextCommentThread=(0,y.localize)(6344,"- Go to Next Comment Thread{0}.",`<keybinding:${ek.CommentCommandId.NextThread}>`),t.previousCommentThread=(0,y.localize)(6345,"- Go to Previous Comment Thread{0}.",`<keybinding:${ek.CommentCommandId.PreviousThread}>`),t.nextCommentedRange=(0,y.localize)(6346,"- Go to Next Commented Range{0}.",`<keybinding:${ek.CommentCommandId.NextCommentedRange}>`),t.previousCommentedRange=(0,y.localize)(6347,"- Go to Previous Commented Range{0}.",`<keybinding:${ek.CommentCommandId.PreviousCommentedRange}>`),t.addComment=(0,y.localize)(6348,"- Add Comment on Current Selection{0}.",`<keybinding:${ek.CommentCommandId.Add}>`),t.submitComment=(0,y.localize)(6349,"- Submit Comment{0}.",`<keybinding:${ek.CommentCommandId.Submit}>`),p.Disposable,e.i(427505),e.i(823743);var eL=e.i(193391),eN=e.i(891110),eO=e.i(591071),eF=e.i(434557),eK=e.i(83e3),eW=e.i(528337),ez=e.i(229081),eV=e.i(896344),eB=e.i(314122),eU=e.i(320945);let eH=new es.RawContextKey("chatEdits.isGlobalEditingSession",void 0,(0,y.localize)(5150,"The current editor is part of the global edit session")),eq=new es.RawContextKey("chatEdits.hasEditorModifications",void 0,(0,y.localize)(5151,"The current editor contains chat modifications")),eG=new es.RawContextKey("chatEdits.isCurrentlyBeingModified",void 0,(0,y.localize)(5152,"The current editor is currently being modified")),e$=new es.RawContextKey("chatEdits.isReviewModeEnabled",!0,(0,y.localize)(5153,"Review mode for chat changes is enabled")),eQ=new es.RawContextKey("chatEdits.isRequestInProgress",!1,(0,y.localize)(5154,"The current editor shows a file from an edit session which is still in progress")),ej=new es.RawContextKey("chatEdits.requestCount",0,(0,y.localize)(5155,"The number of turns the editing session in this editor has"));new es.RawContextKey("chatEdits.cursorInChangeRange",!1,(0,y.localize)(5156,"The cursor is inside a change range made by chat editing."));let eY=class{static{this.ID="chat.edits.editorContextKeys"}constructor(e,t){this._store=new p.DisposableStore;const i=this._store.add(new p.DisposableMap),o=(0,ez.observableFromEvent)(this,I.Event.any(t.onDidAddGroup,t.onDidRemoveGroup),()=>t.groups);this._store.add((0,eV.autorun)(t=>{let r=new Set(i.keys());for(let n of o.read(t))r.delete(n),i.has(n)||i.set(n,e.createInstance(eX,n));for(let e of r)i.deleteAndDispose(e)}))}dispose(){this._store.dispose()}};eY=(0,h.__decorate)([(0,h.__param)(0,_.IInstantiationService),(0,h.__param)(1,eN.IEditorGroupsService)],eY);let eX=class{constructor(e,t,i,o){this._store=new p.DisposableStore,this._ctxIsGlobalEditingSession=eH.bindTo(e.scopedContextKeyService),this._ctxHasEditorModification=eq.bindTo(e.scopedContextKeyService),this._ctxIsCurrentlyBeingModified=eG.bindTo(e.scopedContextKeyService),this._ctxHasRequestInProgress=eQ.bindTo(e.scopedContextKeyService),this._ctxReviewModeEnabled=e$.bindTo(e.scopedContextKeyService),this._ctxRequestCount=ej.bindTo(e.scopedContextKeyService);const r=(0,ez.observableFromEvent)(this,e.onDidModelChange,()=>e.activeEditor),n=(0,eB.derived)(e=>{let o=r.read(e),n=eL.EditorResourceAccessor.getOriginalUri(o,{supportSideBySide:eL.SideBySideEditor.PRIMARY});return n?new eZ(n,i,t).value.read(e):void this._reset()});this._store.add((0,eV.autorun)(e=>{let t=n.read(e);if(!t)return void this._reset();let{session:i,entry:r}=t,s=o.getSession(i.chatSessionResource);this._ctxHasEditorModification.set(r?.state.read(e)===eF.ModifiedFileEntryState.Modified),this._ctxIsGlobalEditingSession.set(i.isGlobalEditingSession),this._ctxReviewModeEnabled.set(!!r&&r.reviewMode.read(e)),this._ctxHasRequestInProgress.set(s?.requestInProgress.read(e)??!1),this._ctxIsCurrentlyBeingModified.set(!!r?.isCurrentlyBeingModifiedBy.read(e));let a=s?(0,ez.observableFromEvent)(this,s.onDidChange,()=>s.getRequests().length):(0,eU.constObservable)(0);this._ctxRequestCount.set(a.read(e))}))}_reset(){this._ctxIsGlobalEditingSession.reset(),this._ctxHasEditorModification.reset(),this._ctxHasRequestInProgress.reset(),this._ctxReviewModeEnabled.reset(),this._ctxRequestCount.reset()}dispose(){this._store.dispose(),this._reset()}};eX=(0,h.__decorate)([(0,h.__param)(1,eO.IInlineChatSessionService),(0,h.__param)(2,eK.IChatEditingService),(0,h.__param)(3,eW.IChatService)],eX);let eZ=class{constructor(e,t,i){const o=(0,ez.observableFromEvent)(this,i.onDidChangeSessions,()=>i.getSession2(e)),r=t.editingSessionsObs.map((t,i)=>{for(let o of t){let t=o.readEntry(e,i);if(t)return{session:o,entry:t,isInlineChat:!1}}});this.value=(0,eB.derived)(t=>{let i=o.read(t);return i?{session:i.editingSession,entry:i.editingSession.readEntry(e,t),isInlineChat:!0}:r.read(t)})}};eZ=(0,h.__decorate)([(0,h.__param)(1,eK.IChatEditingService),(0,h.__param)(2,eO.IInlineChatSessionService)],eZ);var eJ=e.i(627886);eE.Disposable;let e0=class extends eE.Disposable{onClose(){this._editor.focus()}constructor(e,t,i,o,r){super(),this._editor=e,this._keybindingService=t,this._contextKeyService=i,this.accessibilityService=o,this._configurationService=r,this.id=eb.AccessibleViewProviderId.Editor,this.options={type:eb.AccessibleViewType.Help,readMoreUrl:"https://go.microsoft.com/fwlink/?linkid=851010"},this.verbositySettingKey=eI.AccessibilityVerbositySettingId.Editor}provideContent(){var e,t,i;let o,r=this._editor.getOptions(),n=[];r.get(x.EditorOption.inDiffEditor)?r.get(x.EditorOption.readOnly)?n.push(ew.AccessibilityHelpNLS.readonlyDiffEditor):n.push(ew.AccessibilityHelpNLS.editableDiffEditor):r.get(x.EditorOption.readOnly)?n.push(ew.AccessibilityHelpNLS.readonlyEditor):n.push(ew.AccessibilityHelpNLS.editableEditor),this.accessibilityService.isScreenReaderOptimized()&&this._configurationService.getValue("accessibility.windowTitleOptimized")?n.push(ew.AccessibilityHelpNLS.defaultWindowTitleIncludesEditorState):n.push(ew.AccessibilityHelpNLS.defaultWindowTitleExcludingEditorState),n.push(ew.AccessibilityHelpNLS.toolbar);let s=(e=this._keybindingService,t=this._contextKeyService,i=this._editor,(o=t.getContext(i.getDomNode())).getValue(eq.key)?ew.AccessibilityHelpNLS.chatEditorModification+"\n"+ew.AccessibilityHelpNLS.chatEditActions:o.getValue(eQ.key)?ew.AccessibilityHelpNLS.chatEditorRequestInProgress:void 0);s&&n.push(s),n.push(ew.AccessibilityHelpNLS.listSignalSounds),n.push(ew.AccessibilityHelpNLS.listAlerts),n.push(ew.AccessibilityHelpNLS.announceCursorPosition);let a=function(e,t){if(eA.ChatContextKeys.enabled.getValue(t))return[ew.AccessibilityHelpNLS.quickChat,ew.AccessibilityHelpNLS.startInlineChat].join("\n")}(this._keybindingService,this._contextKeyService);a&&n.push(a);let d=e1(this._keybindingService,this._contextKeyService,this._editor);return d&&n.push(d),n.push(ew.AccessibilityHelpNLS.suggestActions),n.push(ew.AccessibilityHelpNLS.acceptSuggestAction),n.push(ew.AccessibilityHelpNLS.toggleSuggestionFocus),r.get(x.EditorOption.stickyScroll).enabled&&n.push(ew.AccessibilityHelpNLS.stickScroll),r.get(x.EditorOption.tabFocusMode)?n.push(ew.AccessibilityHelpNLS.tabFocusModeOnMsg):n.push(ew.AccessibilityHelpNLS.tabFocusModeOffMsg),n.push(ew.AccessibilityHelpNLS.codeFolding),n.push(ew.AccessibilityHelpNLS.intellisense),n.push(ew.AccessibilityHelpNLS.showOrFocusHover),n.push(ew.AccessibilityHelpNLS.goToSymbol),n.push(ew.AccessibilityHelpNLS.startDebugging),n.push(ew.AccessibilityHelpNLS.setBreakpoint),n.push(ew.AccessibilityHelpNLS.debugExecuteSelection),n.push(ew.AccessibilityHelpNLS.addToWatch),n.join("\n")}};function e1(e,t,i){if(t.getContext(i.getDomNode()).getValue(ex.CommentContextKeys.activeEditorHasCommentingRange.key))return[n.intro,n.addComment,n.nextCommentThread,n.previousCommentThread,n.nextRange,n.previousRange].join("\n")}e0=(0,h.__decorate)([(0,h.__param)(1,G.IKeybindingService),(0,h.__param)(2,F.IContextKeyService),(0,h.__param)(3,eJ.IAccessibilityService),(0,h.__param)(4,en.IConfigurationService)],e0);var e2=e.i(770326);let e3=class extends p.Disposable{static{this.ID="editor.contrib.diffEditorHelper"}constructor(e,t,i,o){if(super(),this._diffEditor=e,this._instantiationService=t,this._textResourceConfigurationService=i,this._notificationService=o,!(this._diffEditor instanceof m.EmbeddedDiffEditorWidget)){const e=(0,ez.observableFromEvent)(this,e=>this._diffEditor.onDidUpdateDiff(e),()=>this._diffEditor.getDiffComputationResult()).map(e=>e&&!e.identical&&0===e.changes2.length);this._register((0,eV.autorunWithStore)((t,i)=>{if(e.read(t)){let e=i.add(this._instantiationService.createInstance(j,this._diffEditor.getModifiedEditor(),(0,y.localize)(6156,"Show Whitespace Differences"),null));i.add(e.onClick(()=>{this._textResourceConfigurationService.updateValue(this._diffEditor.getModel().modified.uri,"diffEditor.ignoreTrimWhitespace",!1)})),e.render()}})),this._register(this._diffEditor.onDidUpdateDiff(()=>{let e=this._diffEditor.getDiffComputationResult();e&&e.quitEarly&&this._notificationService.prompt(e2.default.Warning,(0,y.localize)(6157,"The diff algorithm was stopped early (after {0} ms.)",this._diffEditor.maxComputationTime),[{label:(0,y.localize)(6158,"Remove Limit"),run:()=>{this._textResourceConfigurationService.updateValue(this._diffEditor.getModel().modified.uri,"diffEditor.maxComputationTime",0)}}],{})}))}}};e3=(0,h.__decorate)([(0,h.__param)(1,_.IInstantiationService),(0,h.__param)(2,v.ITextResourceConfigurationService),(0,h.__param)(3,S.INotificationService)],e3),(0,g.registerDiffEditorContribution)(e3.ID,e3),b.Registry.as(X.Extensions.ConfigurationMigration).registerConfigurationMigrations([{key:"diffEditor.experimental.collapseUnchangedRegions",migrateFn:(e,t)=>[["diffEditor.hideUnchangedRegions.enabled",{value:e}],["diffEditor.experimental.collapseUnchangedRegions",{value:void 0}]]}]),f.AccessibleViewRegistry.register(new class{constructor(){this.priority=105,this.name="diff-editor",this.when=es.ContextKeyEqualsExpr.create("isInDiffEditor",!0),this.type=eb.AccessibleViewType.Help}getProvider(e){let t=e.get($.IEditorService),i=e.get(Z.ICodeEditorService),o=e.get(G.IKeybindingService),r=e.get(F.IContextKeyService);if(!(t.activeTextEditorControl instanceof ei.DiffEditorWidget))return;let n=i.getActiveCodeEditor()||i.getFocusedCodeEditor();if(!n)return;let s=(0,y.localize)(6151,"Run the command Diff Editor: Switch Side{0} to toggle between the original and modified editors.","<keybinding:diffEditor.switchSide>"),a=(0,y.localize)(6152,"The setting, accessibility.verbosity.diffEditorActive, controls if a diff editor announcement is made when it becomes the active editor."),d=[(0,y.localize)(6153,"You are in a diff editor."),(0,y.localize)(6154,"View the next{0} or previous{1} diff in diff review mode, which is optimized for screen readers.","<keybinding:"+ef.id+">","<keybinding:"+e_.id+">"),s,a,(0,y.localize)(6155,"To control which accessibility signals should be played, the following settings can be configured: {0}.","accessibility.signals.diffLineDeleted, accessibility.signals.diffLineInserted, accessibility.signals.diffLineModified")],c=e1(o,r,n);return c&&d.push(c),new eb.AccessibleContentProvider(eb.AccessibleViewProviderId.DiffEditor,{type:eb.AccessibleViewType.Help},()=>d.join("\n"),()=>n.focus(),eI.AccessibilityVerbositySettingId.DiffEditor)}}),e.s([],876081);var e8=e.i(771275),e5=p;let e6=class extends e5.Disposable{static{this.ID="editor.contrib.largeFileOptimizationsWarner"}constructor(e,t,i){super(),this._editor=e,this._notificationService=t,this._configurationService=i,this._register(this._editor.onDidChangeModel(e=>this._update())),this._update()}_update(){let e=this._editor.getModel();if(e&&e.isTooLargeForTokenization()){let t=(0,y.localize)(6177,"{0}: tokenization, wrapping, folding, codelens, word highlighting and sticky scroll have been turned off for this large file in order to reduce memory usage and avoid freezing or crashing.",(0,e8.basename)(e.uri.path));this._notificationService.prompt(e2.default.Info,t,[{label:(0,y.localize)(6178,"Forcefully Enable Features"),run:()=>{this._configurationService.updateValue("editor.largeFileOptimizations",!1).then(()=>{this._notificationService.info((0,y.localize)(6179,"Please reopen file in order for this setting to take effect."))},e=>{this._notificationService.error(e)})}}],{neverShowAgain:{id:"editor.contrib.largeFileOptimizationsWarner"}})}}};e6=(0,h.__decorate)([(0,h.__param)(1,S.INotificationService),(0,h.__param)(2,en.IConfigurationService)],e6),(0,g.registerEditorContribution)(e6.ID,e6,g.EditorContributionInstantiation.AfterFirstRender),e.s([],565717);var e7=e.i(704994),e9=e.i(953222),e4=e.i(399119),te=p,tt=e.i(693205),ti=e.i(634303),to=e.i(315380),tr=e.i(819593),tn=e.i(166969),ts=e.i(772649),ta=e.i(407791),td=e.i(535186),tc=e.i(622649),tl=e.i(454514),tu=e.i(619122),th=e.i(751753),tp=e.i(195603),tg=e.i(535567),tm=e.i(802136),tv=e.i(946606),ty=e.i(340793),tf=e.i(600345),t_=e.i(107707),tC=e.i(905670),tS=e.i(627251);class tb{static _handleEolEdits(e,t){let i,o=[];for(let e of t)"number"==typeof e.eol&&(i=e.eol),e.range&&"string"==typeof e.text&&o.push(e);return"number"==typeof i&&e.hasModel()&&e.getModel().pushEOL(i),o}static _isFullModelReplaceEdit(e,t){if(!e.hasModel())return!1;let i=e.getModel(),o=i.validateRange(t.range);return i.getFullModelRange().equalsRange(o)}static execute(e,t,i){i&&e.pushUndoStop();let o=tS.StableEditorScrollState.capture(e),r=tb._handleEolEdits(e,t);1===r.length&&tb._isFullModelReplaceEdit(e,r[0])?e.executeEdits("formatEditsCommand",r.map(e=>to.EditOperation.replace(tn.Range.lift(e.range),e.text))):e.executeEdits("formatEditsCommand",r.map(e=>to.EditOperation.replaceMove(tn.Range.lift(e.range),e.text))),i&&e.pushUndoStop(),o.restoreRelativeVerticalPositionOfCursor(e)}}e.s(["FormattingEdit",0,tb],583183);var tI=e.i(318581),tE=e.i(608326),tw=e.i(853457),tD=e.i(888972),tA=e.i(668567);function tx(e,t,i){let o=[],r=new tE.ExtensionIdentifierSet;for(let t of e.ordered(i))o.push(t),t.extensionId&&r.add(t.extensionId);for(let e of t.ordered(i)){if(e.extensionId){if(r.has(e.extensionId))continue;r.add(e.extensionId)}o.push({displayName:e.displayName,extensionId:e.extensionId,provideDocumentFormattingEdits:(t,i,o)=>e.provideDocumentRangeFormattingEdits(t,t.getFullModelRange(),i,o)})}return o}(i=s||(s={}))[i.File=1]="File",i[i.Selection=2]="Selection",(o=a||(a={}))[o.Explicit=1]="Explicit",o[o.Silent=2]="Silent";class tk{static{this._selectors=new tp.LinkedList}static setFormatterSelector(e){return{dispose:tk._selectors.unshift(e)}}static async select(e,t,i,o){if(0===e.length)return;let r=th.Iterable.first(tk._selectors);if(r)return await r(e,t,i,o)}}async function tT(e,t,i,o,r,n,a){let d=e.get(_.IInstantiationService),{documentRangeFormattingEditProvider:c}=e.get(ta.ILanguageFeaturesService),l=(0,D.isCodeEditor)(t)?t.getModel():t,u=c.ordered(l),h=await tk.select(u,l,o,s.Selection);h&&(r.report(h),await d.invokeFunction(tM,h,t,i,n,a))}async function tM(e,t,i,o,r,n){let s,a,d=e.get(t_.IEditorWorkerService),c=e.get(tw.ILogService),l=e.get(tA.IAccessibilitySignalService);(0,D.isCodeEditor)(i)?(s=i.getModel(),a=new tv.EditorStateCancellationTokenSource(i,tv.CodeEditorStateFlag.Value|tv.CodeEditorStateFlag.Position,void 0,r)):(s=i,a=new tv.TextModelCancellationTokenSource(i,r));let u=[],h=0;for(let e of(0,tl.asArray)(o).sort(tn.Range.compareRangesUsingStarts))h>0&&tn.Range.areIntersectingOrTouching(u[h-1],e)?u[h-1]=tn.Range.fromPositions(u[h-1].getStartPosition(),e.getEndPosition()):h=u.push(e);let p=async e=>{c.trace("[format][provideDocumentRangeFormattingEdits] (request)",t.extensionId?.value,e);let i=await t.provideDocumentRangeFormattingEdits(s,e,s.getFormattingOptions(),a.token)||[];return c.trace("[format][provideDocumentRangeFormattingEdits] (response)",t.extensionId?.value,i),i},g=(e,t)=>{if(!e.length||!t.length)return!1;let i=e.reduce((e,t)=>tn.Range.plusRange(e,t.range),e[0].range);if(!t.some(e=>tn.Range.intersectRanges(i,e.range)))return!1;for(let i of e)for(let e of t)if(tn.Range.intersectRanges(i.range,e.range))return!0;return!1},m=[],v=[];try{if("function"==typeof t.provideDocumentRangesFormattingEdits){c.trace("[format][provideDocumentRangeFormattingEdits] (request)",t.extensionId?.value,u);let e=await t.provideDocumentRangesFormattingEdits(s,u,s.getFormattingOptions(),a.token)||[];c.trace("[format][provideDocumentRangeFormattingEdits] (response)",t.extensionId?.value,e),v.push(e)}else{for(let e of u){if(a.token.isCancellationRequested)return!0;v.push(await p(e))}for(let e=0;e<u.length;++e)for(let t=e+1;t<u.length;++t){if(a.token.isCancellationRequested)return!0;if(g(v[e],v[t])){let i=tn.Range.plusRange(u[e],u[t]),o=await p(i);u.splice(t,1),u.splice(e,1),u.push(i),v.splice(t,1),v.splice(e,1),v.push(o),e=0,t=0}}}for(let e of v){if(a.token.isCancellationRequested)return!0;let t=await d.computeMoreMinimalEdits(s.uri,e);t&&m.push(...t)}if(a.token.isCancellationRequested)return!0}finally{a.dispose()}if(0===m.length)return!1;if((0,D.isCodeEditor)(i))tb.execute(i,m,!0),i.revealPositionInCenterIfOutsideViewport(i.getPosition(),tf.ScrollType.Immediate);else{let[{range:e}]=m,t=new ty.Selection(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn);s.pushEditOperations([t],m.map(e=>({text:e.text,range:tn.Range.lift(e.range),forceMoveMarkers:!0})),e=>{for(let{range:i}of e)if(tn.Range.areIntersectingOrTouching(i,t))return[new ty.Selection(i.startLineNumber,i.startColumn,i.endLineNumber,i.endColumn)];return null})}return l.playSignal(tD.AccessibilitySignal.format,{userGesture:n}),!0}async function tP(e,t,i,o,r,n){let a=e.get(_.IInstantiationService),d=e.get(ta.ILanguageFeaturesService),c=(0,D.isCodeEditor)(t)?t.getModel():t,l=tx(d.documentFormattingEditProvider,d.documentRangeFormattingEditProvider,c),u=await tk.select(l,c,i,s.File);u&&(o.report(u),await a.invokeFunction(tR,u,t,i,r,n))}async function tR(e,t,i,o,r,n){let s,d,c,l=e.get(t_.IEditorWorkerService),u=e.get(tA.IAccessibilitySignalService);(0,D.isCodeEditor)(i)?(s=i.getModel(),d=new tv.EditorStateCancellationTokenSource(i,tv.CodeEditorStateFlag.Value|tv.CodeEditorStateFlag.Position,void 0,r)):(s=i,d=new tv.TextModelCancellationTokenSource(i,r));try{let e=await t.provideDocumentFormattingEdits(s,s.getFormattingOptions(),d.token);if(c=await l.computeMoreMinimalEdits(s.uri,e),d.token.isCancellationRequested)return!0}finally{d.dispose()}if(!c||0===c.length)return!1;if((0,D.isCodeEditor)(i))tb.execute(i,c,o!==a.Silent),o!==a.Silent&&i.revealPositionInCenterIfOutsideViewport(i.getPosition(),tf.ScrollType.Immediate);else{let[{range:e}]=c,t=new ty.Selection(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn);s.pushEditOperations([t],c.map(e=>({text:e.text,range:tn.Range.lift(e.range),forceMoveMarkers:!0})),e=>{for(let{range:i}of e)if(tn.Range.areIntersectingOrTouching(i,t))return[new ty.Selection(i.startLineNumber,i.startColumn,i.endLineNumber,i.endColumn)];return null})}return u.playSignal(tD.AccessibilitySignal.format,{userGesture:n}),!0}async function tL(e,t,i,o,r,n){for(let s of t.documentRangeFormattingEditProvider.ordered(i)){let t=await Promise.resolve(s.provideDocumentRangeFormattingEdits(i,o,r,n)).catch(tu.onUnexpectedExternalError);if((0,tl.isNonEmptyArray)(t))return await e.computeMoreMinimalEdits(i.uri,t)}}async function tN(e,t,i,o,r){for(let n of tx(t.documentFormattingEditProvider,t.documentRangeFormattingEditProvider,i)){let t=await Promise.resolve(n.provideDocumentFormattingEdits(i,o,r)).catch(tu.onUnexpectedExternalError);if((0,tl.isNonEmptyArray)(t))return await e.computeMoreMinimalEdits(i.uri,t)}}function tO(e,t,i,o,r,n,s){let a=t.onTypeFormattingEditProvider.ordered(i);return 0===a.length||0>a[0].autoFormatTriggerCharacters.indexOf(r)?Promise.resolve(void 0):Promise.resolve(a[0].provideOnTypeFormattingEdits(i,o,r,n,s)).catch(tu.onUnexpectedExternalError).then(t=>e.computeMoreMinimalEdits(i.uri,t))}function tF(e,t){let i;if(e&&"object"==typeof e&&"number"==typeof e.tabSize&&"boolean"==typeof e.insertSpaces)i=e;else{let e=t.object.textEditorModel.getOptions();i={tabSize:e.tabSize,insertSpaces:e.insertSpaces}}return i}tI.CommandsRegistry.registerCommand("_executeFormatRangeProvider",async function(e,...t){let[i,o,r]=t;(0,tg.assertType)(tm.URI.isUri(i)),(0,tg.assertType)(tn.Range.isIRange(o));let n=e.get(tC.ITextModelService),s=e.get(t_.IEditorWorkerService),a=e.get(ta.ILanguageFeaturesService),d=await n.createModelReference(i);try{return tL(s,a,d.object.textEditorModel,tn.Range.lift(o),tF(r,d),e7.CancellationToken.None)}finally{d.dispose()}}),tI.CommandsRegistry.registerCommand("_executeFormatDocumentProvider",async function(e,...t){let[i,o]=t;(0,tg.assertType)(tm.URI.isUri(i));let r=e.get(tC.ITextModelService),n=e.get(t_.IEditorWorkerService),s=e.get(ta.ILanguageFeaturesService),a=await r.createModelReference(i);try{return tN(n,s,a.object.textEditorModel,tF(o,a),e7.CancellationToken.None)}finally{a.dispose()}}),tI.CommandsRegistry.registerCommand("_executeFormatOnTypeProvider",async function(e,...t){let[i,o,r,n]=t;(0,tg.assertType)(tm.URI.isUri(i)),(0,tg.assertType)(tr.Position.isIPosition(o)),(0,tg.assertType)("string"==typeof r);let s=e.get(tC.ITextModelService),a=e.get(t_.IEditorWorkerService),d=e.get(ta.ILanguageFeaturesService),c=await s.createModelReference(i);try{return tO(a,d,c.object.textEditorModel,tr.Position.lift(o),r,tF(n,c),e7.CancellationToken.None)}finally{c.dispose()}}),e.s(["FormattingConflicts",0,tk,"FormattingKind",0,s,"FormattingMode",0,a,"formatDocumentRangesWithProvider",0,tM,"formatDocumentRangesWithSelectedProvider",0,tT,"formatDocumentWithProvider",0,tR,"formatDocumentWithSelectedProvider",0,tP,"getOnTypeFormattingEdits",0,tO,"getRealAndSyntheticDocumentFormattersOrdered",0,tx],264901);var tK=e.i(725288),tW=e.i(34487),tz=e.i(697786),tV=e.i(74304),tB=e.i(683578),tU=e.i(170774),tH=g,tq=e.i(921752),tG=p,t$=e.i(689318),tQ=e.i(474320),tj=e.i(701575),tY=e.i(140889);function tX(e,t){return"primary"===e.kind?-1:"primary"===t.kind?1:"secondary"===e.kind?-1:1*("secondary"===t.kind)}let tZ=class extends tG.Disposable{static{d=this}static{this.STORAGE_KEY="workbench.scm.quickDiffProviders.hidden"}get providers(){return Array.from(this.quickDiffProviders).sort(tX)}constructor(e,t){super(),this.storageService=e,this.uriIdentityService=t,this.quickDiffProviders=new Set,this._onDidChangeQuickDiffProviders=this._register(new I.Emitter),this.onDidChangeQuickDiffProviders=this._onDidChangeQuickDiffProviders.event,this.hiddenQuickDiffProviders=new Set,this.loadState()}addQuickDiffProvider(e){return this.quickDiffProviders.add(e),this._onDidChangeQuickDiffProviders.fire(),{dispose:()=>{this.quickDiffProviders.delete(e),this._onDidChangeQuickDiffProviders.fire()}}}async getQuickDiffs(e,t="",i=!1){let o=Array.from(this.quickDiffProviders).filter(t=>!t.rootUri||this.uriIdentityService.extUri.isEqualOrParent(e,t.rootUri)).sort((t,i)=>{if(t.rootUri&&!i.rootUri)return -1;if(!t.rootUri&&i.rootUri)return 1;if(!t.rootUri&&!i.rootUri)return 0;let o=(0,w.isEqualOrParent)(e,t.rootUri),r=(0,w.isEqualOrParent)(e,i.rootUri);return o&&r?tX(t,i):o?-1:1*!!r}),r=await Promise.allSettled(o.map(async o=>{let r=(o.selector?(0,t$.score)(o.selector,e,t,i,void 0,void 0):10)>0?await o.getOriginalResource(e)??void 0:void 0;return{provider:o,originalResource:r}})),n=[];for(let e of r){if("rejected"===e.status)continue;let{provider:t,originalResource:i}=e.value;i&&n.push({id:t.id,label:t.label,kind:t.kind,originalResource:i})}return n}toggleQuickDiffProviderVisibility(e){this.isQuickDiffProviderVisible(e)?this.hiddenQuickDiffProviders.add(e):this.hiddenQuickDiffProviders.delete(e),this.saveState(),this._onDidChangeQuickDiffProviders.fire()}isQuickDiffProviderVisible(e){return!this.hiddenQuickDiffProviders.has(e)}loadState(){let e=this.storageService.get(d.STORAGE_KEY,tj.StorageScope.PROFILE);if(e)try{this.hiddenQuickDiffProviders=new Set(JSON.parse(e))}catch{}}saveState(){0===this.hiddenQuickDiffProviders.size?this.storageService.remove(d.STORAGE_KEY,tj.StorageScope.PROFILE):this.storageService.store(d.STORAGE_KEY,JSON.stringify(Array.from(this.hiddenQuickDiffProviders)),tj.StorageScope.PROFILE,tj.StorageTarget.USER)}};async function tJ(e,t,i,o){let r=(await e.getQuickDiffs(t,i,o)).find(e=>"primary"===e.kind);return r?r.originalResource:null}async function t0(e,t){let i=e.get(tq.IQuickDiffService),o=e.get(t_.IEditorWorkerService),r=e.get(tC.ITextModelService),n=await tJ(i,t.uri,t.getLanguageId(),(0,T.shouldSynchronizeModel)(t));if(!n)return null;let s=[],a=await r.createModelReference(n);try{if(!o.canComputeDirtyDiff(n,t.uri))return;let e=await o.computeDirtyDiff(n,t.uri,!1);if(!(0,tl.isNonEmptyArray)(e))return;for(let i of e)s.push(t.validateRange(new tn.Range(i.modifiedStartLineNumber,1,i.modifiedEndLineNumber||i.modifiedStartLineNumber,Number.MAX_SAFE_INTEGER)))}finally{a.dispose()}return s}tZ=d=(0,h.__decorate)([(0,h.__param)(0,tY.IStorageService),(0,h.__param)(1,tQ.IUriIdentityService)],tZ),(0,tH.registerEditorAction)(class extends tH.EditorAction{constructor(){super({id:"editor.action.formatChanges",label:(0,y.localize2)(8301,"Format Modified Lines"),precondition:es.ContextKeyExpr.and(eo.EditorContextKeys.writable,eo.EditorContextKeys.hasDocumentSelectionFormattingProvider)})}async run(e,t){let i=e.get(_.IInstantiationService);if(!t.hasModel())return;let o=await i.invokeFunction(t0,t.getModel());if((0,tl.isNonEmptyArray)(o))return i.invokeFunction(tT,t,o,a.Explicit,tW.Progress.None,e7.CancellationToken.None,!0)}}),e.s(["getModifiedRanges",0,t0],235171);let t1=class{constructor(e,t){this.configurationService=e,this.codeEditorService=t}async participate(e,t){if(!e.textEditorModel)return;let i=this.configurationService.getValue("files.trimTrailingWhitespace",{overrideIdentifier:e.textEditorModel.getLanguageId(),resource:e.resource}),o=this.configurationService.getValue("files.trimTrailingWhitespaceInRegexAndStrings",{overrideIdentifier:e.textEditorModel.getLanguageId(),resource:e.resource});i&&this.doTrimTrailingWhitespace(e.textEditorModel,t.reason===eL.SaveReason.AUTO,o)}doTrimTrailingWhitespace(e,t,i){let o=[],r=[],n=t2(e,this.codeEditorService);if(n&&(o=n.getSelections(),t)){r=o.map(e=>e.getPosition());let t=tK.SnippetController2.get(n)?.getSessionEnclosingRange();if(t)for(let i=t.startLineNumber;i<=t.endLineNumber;i++)r.push(new tr.Position(i,e.getLineMaxColumn(i)))}let s=(0,ti.trimTrailingWhitespace)(e,r,i);s.length&&e.pushEditOperations(o,s,e=>o)}};function t2(e,t){let i=null;if(e.isAttachedToEditor()){for(let o of t.listCodeEditors())if(o.hasModel()&&o.getModel()===e){if(o.hasTextFocus())return o;i=o}}return i}t1=(0,h.__decorate)([(0,h.__param)(0,en.IConfigurationService),(0,h.__param)(1,Z.ICodeEditorService)],t1);let t3=class{constructor(e,t){this.configurationService=e,this.codeEditorService=t}async participate(e,t){e.textEditorModel&&this.configurationService.getValue("files.insertFinalNewline",{overrideIdentifier:e.textEditorModel.getLanguageId(),resource:e.resource})&&this.doInsertFinalNewLine(e.textEditorModel)}doInsertFinalNewLine(e){let t=e.getLineCount(),i=e.getLineContent(t),o=-1===(0,tt.lastNonWhitespaceIndex)(i);if(!t||o)return;let r=[to.EditOperation.insert(new tr.Position(t,e.getLineMaxColumn(t)),e.getEOL())],n=t2(e,this.codeEditorService);n?n.executeEdits("insertFinalNewLine",r,n.getSelections()):e.pushEditOperations([],r,()=>null)}};t3=(0,h.__decorate)([(0,h.__param)(0,en.IConfigurationService),(0,h.__param)(1,Z.ICodeEditorService)],t3);let t8=class{constructor(e,t){this.configurationService=e,this.codeEditorService=t}async participate(e,t){e.textEditorModel&&this.configurationService.getValue("files.trimFinalNewlines",{overrideIdentifier:e.textEditorModel.getLanguageId(),resource:e.resource})&&this.doTrimFinalNewLines(e.textEditorModel,t.reason===eL.SaveReason.AUTO)}findLastNonEmptyLine(e){for(let t=e.getLineCount();t>=1;t--)if(e.getLineLength(t)>0)return t;return 0}doTrimFinalNewLines(e,t){let i=e.getLineCount();if(1===i)return;let o=[],r=0,n=t2(e,this.codeEditorService);if(n&&(o=n.getSelections(),t))for(let e=0,t=o.length;e<t;e++){let t=o[e].positionLineNumber;t>r&&(r=t)}let s=Math.max(this.findLastNonEmptyLine(e)+1,r+1),a=e.validateRange(new tn.Range(s,1,i,e.getLineMaxColumn(i)));a.isEmpty()||(e.pushEditOperations(o,[to.EditOperation.delete(a)],e=>o),n?.setSelections(o))}};t8=(0,h.__decorate)([(0,h.__param)(0,en.IConfigurationService),(0,h.__param)(1,Z.ICodeEditorService)],t8);let t5=class{constructor(e,t,i){this.configurationService=e,this.codeEditorService=t,this.instantiationService=i}async participate(e,t,i,o){if(!e.textEditorModel||t.reason===eL.SaveReason.AUTO)return;let r=e.textEditorModel,n={overrideIdentifier:r.getLanguageId(),resource:r.uri},s=new tW.Progress(e=>{i.report({message:(0,y.localize)(6196,"Running '{0}' Formatter ([configure]({1})).",e.displayName||e.extensionId&&e.extensionId.value||"???",(0,e4.createCommandUri)("workbench.action.openSettings","editor.formatOnSave").toString())})});if(!this.configurationService.getValue("editor.formatOnSave",n))return;let d=t2(r,this.codeEditorService)||r,c=this.configurationService.getValue("editor.formatOnSaveMode",n);if("file"===c)await this.instantiationService.invokeFunction(tP,d,a.Silent,s,o);else{let e=await this.instantiationService.invokeFunction(t0,(0,D.isCodeEditor)(d)?d.getModel():d);null===e&&"modificationsIfAvailable"===c?await this.instantiationService.invokeFunction(tP,d,a.Silent,s,o):e&&await this.instantiationService.invokeFunction(tT,d,e,a.Silent,s,o,!1)}}};t5=(0,h.__decorate)([(0,h.__param)(0,en.IConfigurationService),(0,h.__param)(1,Z.ICodeEditorService),(0,h.__param)(2,_.IInstantiationService)],t5);let t6=class extends te.Disposable{constructor(e,t,i,o,r,n){super(),this.configurationService=e,this.instantiationService=t,this.languageFeaturesService=i,this.hostService=o,this.editorService=r,this.codeEditorService=n,this._register(this.hostService.onDidChangeFocus(()=>{this.triggerCodeActionsCommand()})),this._register(this.editorService.onDidActiveEditorChange(()=>{this.triggerCodeActionsCommand()}))}async triggerCodeActionsCommand(){if(this.configurationService.getValue("editor.codeActions.triggerOnFocusChange")&&"afterDelay"===this.configurationService.getValue("files.autoSave")){let e=this.codeEditorService.getActiveCodeEditor()?.getModel();if(!e)return;let t={overrideIdentifier:e.getLanguageId(),resource:e.uri},i=this.configurationService.getValue("editor.codeActionsOnSave",t);if(!i||Array.isArray(i))return;let o=Object.keys(i).filter(e=>i[e]&&"always"===i[e]&&tc.CodeActionKind.Source.contains(new e9.HierarchicalKind(e))),r=new e7.CancellationTokenSource,n=[];for(let e of o)n.push(new e9.HierarchicalKind(e));await this.applyOnSaveActions(e,n,[],tW.Progress.None,r.token)}}async participate(e,t,i,o){if(!e.textEditorModel)return;let r=e.textEditorModel,n={overrideIdentifier:r.getLanguageId(),resource:r.uri},s=this.configurationService.getValue("editor.codeActionsOnSave",n);if(!s||t.reason===eL.SaveReason.AUTO||t.reason!==eL.SaveReason.EXPLICIT&&Array.isArray(s))return;let a=Array.isArray(s)?s:Object.keys(s).filter(e=>s[e]&&"never"!==s[e]),d=this.createCodeActionsOnSave(a);if(Array.isArray(s)||d.sort((e,t)=>tc.CodeActionKind.SourceFixAll.contains(e)?tc.CodeActionKind.SourceFixAll.contains(t)?0:-1:+!!tc.CodeActionKind.SourceFixAll.contains(t)),!d.length)return;let c=Array.isArray(s)?[]:Object.keys(s).filter(e=>"never"===s[e]).map(e=>new e9.HierarchicalKind(e));i.report({message:(0,y.localize)(6197,"Quick Fixes")});let l=Array.isArray(s)?d:d.filter(e=>"always"===s[e.value]||("explicit"===s[e.value]||!0===s[e.value])&&t.reason===eL.SaveReason.EXPLICIT);await this.applyOnSaveActions(r,l,c,i,o)}createCodeActionsOnSave(e){let t=e.map(e=>new e9.HierarchicalKind(e));return t.filter(e=>t.every(t=>t.equals(e)||!t.contains(e)))}async applyOnSaveActions(e,t,i,o,r){let n=new class{constructor(){this._names=new Set}_report(){o.report({message:(0,y.localize)(6198,"Getting code actions from {0} ([configure]({1})).",[...this._names].map(e=>`'${e}'`).join(", "),(0,e4.createCommandUri)("workbench.action.openSettings","editor.codeActionsOnSave").toString())})}report(e){e.displayName&&!this._names.has(e.displayName)&&(this._names.add(e.displayName),this._report())}};for(let s of t){let t=await this.getActionsToRun(e,s,i,n,r);if(r.isCancellationRequested)return void t.dispose();try{for(let e of t.validActions)if(o.report({message:(0,y.localize)(6199,"Applying code action '{0}'.",e.action.title)}),await this.instantiationService.invokeFunction(td.applyCodeAction,e,td.ApplyCodeActionReason.OnSave,{},r),r.isCancellationRequested)return}catch{}finally{t.dispose()}}}getActionsToRun(e,t,i,o,r){return(0,td.getCodeActions)(this.languageFeaturesService.codeActionProvider,e,e.getFullModelRange(),{type:ts.CodeActionTriggerType.Auto,triggerAction:tc.CodeActionTriggerSource.OnSave,filter:{include:t,excludes:i,includeSourceActions:!0}},o,r)}};t6=(0,h.__decorate)([(0,h.__param)(0,en.IConfigurationService),(0,h.__param)(1,_.IInstantiationService),(0,h.__param)(2,ta.ILanguageFeaturesService),(0,h.__param)(3,tV.IHostService),(0,h.__param)(4,$.IEditorService),(0,h.__param)(5,Z.ICodeEditorService)],t6);let t7=class extends te.Disposable{constructor(e,t){super(),this.instantiationService=e,this.textFileService=t,this.registerSaveParticipants()}registerSaveParticipants(){this._register(this.textFileService.files.addSaveParticipant(this.instantiationService.createInstance(t1))),this._register(this.textFileService.files.addSaveParticipant(this.instantiationService.createInstance(t6))),this._register(this.textFileService.files.addSaveParticipant(this.instantiationService.createInstance(t5))),this._register(this.textFileService.files.addSaveParticipant(this.instantiationService.createInstance(t3))),this._register(this.textFileService.files.addSaveParticipant(this.instantiationService.createInstance(t8)))}};t7=(0,h.__decorate)([(0,h.__param)(0,_.IInstantiationService),(0,h.__param)(1,tU.ITextFileService)],t7),b.Registry.as(tz.Extensions.Workbench).registerWorkbenchContribution(t7,tB.LifecyclePhase.Restored),e.s([],594944);var t9=q,t4=e.i(262072);class ie extends t9.Action2{static{this.ID="editor.action.toggleMinimap"}constructor(){super({id:ie.ID,title:{...(0,y.localize2)(6200,"Toggle Minimap"),mnemonicTitle:(0,y.localize)(6201,"&&Minimap")},category:t4.Categories.View,f1:!0,toggled:es.ContextKeyExpr.equals("config.editor.minimap.enabled",!0),menu:{id:t9.MenuId.MenubarAppearanceMenu,group:"4_editor",order:1}})}async run(e){let t=e.get(en.IConfigurationService),i=!t.getValue("editor.minimap.enabled");return t.updateValue("editor.minimap.enabled",i)}}(0,t9.registerAction2)(ie),e.s([],825288);var it=p,ii=e.i(354244),io=q;class ir extends io.Action2{static{this.ID="workbench.action.toggleMultiCursorModifier"}static{this.multiCursorModifierConfigurationKey="editor.multiCursorModifier"}constructor(){super({id:ir.ID,title:(0,y.localize2)(6202,"Toggle Multi-Cursor Modifier"),f1:!0})}run(e){let t=e.get(en.IConfigurationService),i="ctrlCmd"===t.getValue("editor").multiCursorModifier?"alt":"ctrlCmd";return t.updateValue(ir.multiCursorModifierConfigurationKey,i)}}let is=new es.RawContextKey("multiCursorModifier","altKey"),ia=class extends it.Disposable{constructor(e,t){super(),this.configurationService=e,this._multiCursorModifier=is.bindTo(t),this._update(),this._register(e.onDidChangeConfiguration(e=>{e.affectsConfiguration("editor.multiCursorModifier")&&this._update()}))}_update(){let e="ctrlCmd"===this.configurationService.getValue("editor").multiCursorModifier?"ctrlCmd":"altKey";this._multiCursorModifier.set(e)}};ia=(0,h.__decorate)([(0,h.__param)(0,en.IConfigurationService),(0,h.__param)(1,F.IContextKeyService)],ia),b.Registry.as(tz.Extensions.Workbench).registerWorkbenchContribution(ia,tB.LifecyclePhase.Restored),(0,io.registerAction2)(ir),io.MenuRegistry.appendMenuItem(io.MenuId.MenubarSelectionMenu,{group:"4_config",command:{id:ir.ID,title:(0,y.localize)(6203,"Switch to Alt+Click for Multi-Cursor")},when:is.isEqualTo("ctrlCmd"),order:1}),io.MenuRegistry.appendMenuItem(io.MenuId.MenubarSelectionMenu,{group:"4_config",command:{id:ir.ID,title:ii.isMacintosh?(0,y.localize)(6204,"Switch to Cmd+Click for Multi-Cursor"):(0,y.localize)(6205,"Switch to Ctrl+Click for Multi-Cursor")},when:is.isEqualTo("altKey"),order:1}),e.s([],114790);var id=q;class ic extends id.Action2{static{this.ID="editor.action.toggleRenderControlCharacter"}constructor(){super({id:ic.ID,title:{...(0,y.localize2)(6206,"Toggle Control Characters"),mnemonicTitle:(0,y.localize)(6207,"Render &&Control Characters")},category:t4.Categories.View,f1:!0,toggled:es.ContextKeyExpr.equals("config.editor.renderControlCharacters",!0),menu:{id:id.MenuId.MenubarAppearanceMenu,group:"4_editor",order:5}})}run(e){let t=e.get(en.IConfigurationService),i=!t.getValue("editor.renderControlCharacters");return t.updateValue("editor.renderControlCharacters",i)}}(0,id.registerAction2)(ic),e.s([],899694);var il=e.i(865562),iu=p,ih=g;let ip="transientWordWrapState",ig="isWordWrapMinified",im="isDominatedByLongLines",iv=new es.RawContextKey("canToggleWordWrap",!1,!0),iy=new es.RawContextKey("editorWordWrap",!1,(0,y.localize)(6210,"Whether the editor is currently using word wrapping."));function i_(e,t,i){i.setTransientModelProperty(e,ip,t)}function iC(e,t){return t.getTransientModelProperty(e,ip)}let iS="editor.action.toggleWordWrap";class ib extends ih.EditorAction{constructor(){super({id:iS,label:(0,y.localize2)(6211,"View: Toggle Word Wrap"),precondition:void 0,kbOpts:{kbExpr:null,primary:ee.KeyMod.Alt|ee.KeyCode.KeyZ,weight:ea.KeybindingWeight.EditorContrib}})}run(e,t){let i,o=e.get(Z.ICodeEditorService),r=e.get(_.IInstantiationService);if(!iw(o,t))return;let n=t.getModel();i=iC(n,o)?null:{wordWrapOverride:-1===t.getOption(x.EditorOption.wrappingInfo).wrappingColumn?"on":"off"},i_(n,i,o);let s=r.invokeFunction(eS,t);if(s){let e=s.getOriginalEditor(),r=s.getModifiedEditor(),n=e===t?r:e;iw(o,n)&&(i_(n.getModel(),i,o),s.updateOptions({}))}}}let iI=class extends iu.Disposable{static{this.ID="editor.contrib.toggleWordWrapController"}constructor(e,t,i){super(),this._editor=e,this._contextKeyService=t,this._codeEditorService=i;const o=this._editor.getOptions().get(x.EditorOption.wrappingInfo),r=this._contextKeyService.createKey(ig,o.isWordWrapMinified),n=this._contextKeyService.createKey(im,o.isDominatedByLongLines);let s=!1;this._register(e.onDidChangeConfiguration(e=>{if(!e.hasChanged(x.EditorOption.wrappingInfo))return;let t=this._editor.getOptions().get(x.EditorOption.wrappingInfo);r.set(t.isWordWrapMinified),n.set(t.isDominatedByLongLines),s||a()})),this._register(e.onDidChangeModel(e=>{a()})),this._register(i.onDidChangeTransientModelProperty(()=>{a()}));const a=()=>{if(!iw(this._codeEditorService,this._editor))return;let e=iC(this._editor.getModel(),this._codeEditorService);try{s=!0,this._applyWordWrapState(e)}finally{s=!1}}}_applyWordWrapState(e){let t=e?e.wordWrapOverride:"inherit";this._editor.updateOptions({wordWrapOverride2:t})}};iI=(0,h.__decorate)([(0,h.__param)(1,F.IContextKeyService),(0,h.__param)(2,Z.ICodeEditorService)],iI);let iE=class extends iu.Disposable{static{this.ID="diffeditor.contrib.toggleWordWrapController"}constructor(e,t){super(),this._diffEditor=e,this._codeEditorService=t,this._register(this._diffEditor.onDidChangeModel(()=>{this._ensureSyncedWordWrapToggle()}))}_ensureSyncedWordWrapToggle(){let e=this._diffEditor.getOriginalEditor(),t=this._diffEditor.getModifiedEditor();if(!e.hasModel()||!t.hasModel())return;let i=iC(e.getModel(),this._codeEditorService),o=iC(t.getModel(),this._codeEditorService);i&&!o&&iw(this._codeEditorService,e)&&(i_(t.getModel(),i,this._codeEditorService),this._diffEditor.updateOptions({})),!i&&o&&iw(this._codeEditorService,t)&&(i_(e.getModel(),o,this._codeEditorService),this._diffEditor.updateOptions({}))}};function iw(e,t){if(!t||t.isSimpleWidget||!t.getModel())return!1;if(t.getOption(x.EditorOption.inDiffEditor)){for(let i of e.listDiffEditors())if(i.getOriginalEditor()===t&&!i.renderSideBySide)return!1}return!0}iE=(0,h.__decorate)([(0,h.__param)(1,Z.ICodeEditorService)],iE);let iD=class extends iu.Disposable{static{this.ID="workbench.contrib.editorWordWrapContextKeyTracker"}constructor(e,t,i){super(),this._editorService=e,this._codeEditorService=t,this._contextService=i,this._register(I.Event.runAndSubscribe(P.onDidRegisterWindow,({window:e,disposables:t})=>{t.add((0,P.addDisposableListener)(e,"focus",()=>this._update(),!0)),t.add((0,P.addDisposableListener)(e,"blur",()=>this._update(),!0))},{window:il.mainWindow,disposables:this._store})),this._register(this._editorService.onDidActiveEditorChange(()=>this._update())),this._canToggleWordWrap=iv.bindTo(this._contextService),this._editorWordWrap=iy.bindTo(this._contextService),this._activeEditor=null,this._activeEditorListener=new iu.DisposableStore,this._update()}_update(){let e=this._codeEditorService.getFocusedCodeEditor()||this._codeEditorService.getActiveCodeEditor();this._activeEditor!==e&&(this._activeEditorListener.clear(),this._activeEditor=e,e&&(this._activeEditorListener.add(e.onDidChangeModel(()=>this._updateFromCodeEditor())),this._activeEditorListener.add(e.onDidChangeConfiguration(e=>{e.hasChanged(x.EditorOption.wrappingInfo)&&this._updateFromCodeEditor()})),this._updateFromCodeEditor()))}_updateFromCodeEditor(){if(!iw(this._codeEditorService,this._activeEditor))return this._setValues(!1,!1);{let e=this._activeEditor.getOption(x.EditorOption.wrappingInfo);this._setValues(!0,-1!==e.wrappingColumn)}}_setValues(e,t){this._canToggleWordWrap.set(e),this._editorWordWrap.set(t)}};iD=(0,h.__decorate)([(0,h.__param)(0,$.IEditorService),(0,h.__param)(1,Z.ICodeEditorService),(0,h.__param)(2,F.IContextKeyService)],iD),(0,tz.registerWorkbenchContribution2)(iD.ID,iD,tz.WorkbenchPhase.AfterRestored),(0,ih.registerEditorContribution)(iI.ID,iI,ih.EditorContributionInstantiation.Eager),(0,ih.registerDiffEditorContribution)(iE.ID,iE),(0,ih.registerEditorAction)(ib),q.MenuRegistry.appendMenuItem(q.MenuId.EditorTitle,{command:{id:iS,title:(0,y.localize)(6212,"Disable wrapping for this file"),icon:J.Codicon.wordWrap},group:"navigation",order:1,when:es.ContextKeyExpr.and(es.ContextKeyExpr.has(im),es.ContextKeyExpr.has(ig))}),q.MenuRegistry.appendMenuItem(q.MenuId.EditorTitle,{command:{id:iS,title:(0,y.localize)(6213,"Enable wrapping for this file"),icon:J.Codicon.wordWrap},group:"navigation",order:1,when:es.ContextKeyExpr.and(eo.EditorContextKeys.inDiffEditor.negate(),es.ContextKeyExpr.has(im),es.ContextKeyExpr.not(ig))}),q.MenuRegistry.appendMenuItem(q.MenuId.MenubarViewMenu,{command:{id:iS,title:(0,y.localize)(6214,"&&Word Wrap"),toggled:iy,precondition:iv},order:1,group:"6_editor"}),e.s(["readTransientState",0,iC,"writeTransientState",0,i_],531707);var iA=q;class ix extends iA.Action2{static{this.ID="editor.action.toggleRenderWhitespace"}constructor(){super({id:ix.ID,title:{...(0,y.localize2)(6208,"Toggle Render Whitespace"),mnemonicTitle:(0,y.localize)(6209,"&&Render Whitespace")},category:t4.Categories.View,f1:!0,toggled:es.ContextKeyExpr.notEquals("config.editor.renderWhitespace","none"),menu:{id:iA.MenuId.MenubarAppearanceMenu,group:"4_editor",order:4}})}run(e){let t,i=e.get(en.IConfigurationService);return t="none"===i.getValue("editor.renderWhitespace")?"all":"none",i.updateValue("editor.renderWhitespace",t)}}(0,iA.registerAction2)(ix),e.s([],329471);var ik=e.i(701898),iT=p,iM=e.i(919101),iP=e.i(16046);b.Registry.add("gutterActionsRegistry",new class{constructor(){this._registeredGutterActionsGenerators=new Set}registerGutterActionsGenerator(e){return this._registeredGutterActionsGenerators.add(e),{dispose:()=>{this._registeredGutterActionsGenerators.delete(e)}}}getGutterActionsGenerators(){return Array.from(this._registeredGutterActionsGenerators.values())}});let iR=b.Registry.as("gutterActionsRegistry"),iL=class extends iT.Disposable{static{this.ID="workbench.contrib.editorLineNumberContextMenu"}constructor(e,t,i,o,r){super(),this.editor=e,this.contextMenuService=t,this.menuService=i,this.contextKeyService=o,this.instantiationService=r,this._register(this.editor.onMouseDown(e=>this.doShow(e,!1)))}show(e){this.doShow(e,!0)}doShow(e,t){let i=this.editor.getModel();if(!e.event.rightButton&&!(ii.isMacintosh&&e.event.leftButton&&e.event.ctrlKey)&&!t||e.target.type!==D.MouseTargetType.GUTTER_LINE_NUMBERS&&e.target.type!==D.MouseTargetType.GUTTER_GLYPH_MARGIN||!e.target.position||!i)return;let o=e.target.position.lineNumber,r=this.contextKeyService.createOverlay([["editorLineNumber",o]]),n=this.menuService.createMenu(q.MenuId.EditorLineNumberContext,r),s=[];this.instantiationService.invokeFunction(t=>{for(let e of iR.getGutterActionsGenerators()){let i=new Map;for(let[r,n]of(e({lineNumber:o,editor:this.editor,accessor:t},{push:(e,t="navigation")=>{let o=i.get(t)??[];o.push(e),i.set(t,o)}}),i.entries()))s.push([r,n])}s.sort((e,t)=>e[0].localeCompare(t[0]));let r=n.getActions({arg:{lineNumber:o,uri:i.uri},shouldForwardArgs:!0});if(s.push(...r),e.target.type===D.MouseTargetType.GUTTER_LINE_NUMBERS){let e=this.editor.getSelections(),t={startLineNumber:o,endLineNumber:o,startColumn:1,endColumn:i.getLineLength(o)+1};e?.some(e=>!e.isEmpty()&&null!==e.intersectRanges(t))||this.editor.setSelection(t,iP.TextEditorSelectionSource.PROGRAMMATIC)}this.contextMenuService.showContextMenu({getAnchor:()=>e.event,getActions:()=>ik.Separator.join(...s.map(e=>e[1])),onHide:()=>n.dispose()})})}};iL=(0,h.__decorate)([(0,h.__param)(1,iM.IContextMenuService),(0,h.__param)(2,O.IMenuService),(0,h.__param)(3,F.IContextKeyService),(0,h.__param)(4,_.IInstantiationService)],iL),(0,g.registerEditorContribution)(iL.ID,iL,g.EditorContributionInstantiation.AfterFirstRender),e.s([],919442);var iN=g,iO=e.i(428048),iF=e.i(2267),iK=e.i(774260),iW=e.i(981399),iz=p,iV=e.i(58762),iB=e.i(325501),iU=e.i(936915),iH=e.i(324726),iq=e.i(508898),iG=e.i(193409);let i$=class extends iz.Disposable{static{c=this}static{this.configName="editor.defaultFormatter"}static{this.extensionIds=[]}static{this.extensionItemLabels=[]}static{this.extensionDescriptions=[]}constructor(e,t,i,o,r,n,s,a,d,l){super(),this._extensionService=e,this._extensionEnablementService=t,this._configService=i,this._notificationService=o,this._dialogService=r,this._quickInputService=n,this._languageService=s,this._languageFeaturesService=a,this._languageStatusService=d,this._editorService=l,this._languageStatusStore=this._store.add(new iz.DisposableStore),this._store.add(this._extensionService.onDidChangeExtensions(this._updateConfigValues,this)),this._store.add(tk.setFormatterSelector((e,t,i,o)=>this._selectFormatter(e,t,i,o))),this._store.add(l.onDidActiveEditorChange(this._updateStatus,this)),this._store.add(a.documentFormattingEditProvider.onDidChange(this._updateStatus,this)),this._store.add(a.documentRangeFormattingEditProvider.onDidChange(this._updateStatus,this)),this._store.add(a.documentFormattingEditProvider.onDidChange(this._updateConfigValues,this)),this._store.add(a.documentRangeFormattingEditProvider.onDidChange(this._updateConfigValues,this)),this._store.add(i.onDidChangeConfiguration(e=>e.affectsConfiguration(c.configName)&&this._updateStatus())),this._updateConfigValues()}async _updateConfigValues(){await this._extensionService.whenInstalledExtensionsRegistered();let e=[...this._extensionService.extensions],t=this._languageFeaturesService.documentFormattingEditProvider.allNoModel(),i=this._languageFeaturesService.documentRangeFormattingEditProvider.allNoModel(),o=new Set;for(let e of t)e.extensionId&&o.add(tE.ExtensionIdentifier.toKey(e.extensionId));for(let e of i)e.extensionId&&o.add(tE.ExtensionIdentifier.toKey(e.extensionId));for(let t of(e=e.sort((e,t)=>{let i=o.has(tE.ExtensionIdentifier.toKey(e.identifier)),r=o.has(tE.ExtensionIdentifier.toKey(t.identifier));if(i&&!r)return -1;if(!i&&r)return 1;let n=e.categories?.find(e=>"Formatters"===e||"Programming Languages"===e),s=t.categories?.find(e=>"Formatters"===e||"Programming Languages"===e);return n&&!s?-1:!n&&s?1:e.name.localeCompare(t.name)}),c.extensionIds.length=0,c.extensionItemLabels.length=0,c.extensionDescriptions.length=0,c.extensionIds.push(null),c.extensionItemLabels.push((0,y.localize)(8278,"None")),c.extensionDescriptions.push((0,y.localize)(8279,"None")),e))(t.main||t.browser)&&(c.extensionIds.push(t.identifier.value),c.extensionItemLabels.push(t.displayName??""),c.extensionDescriptions.push(t.description??""))}static _maybeQuotes(e){return e.match(/\s/)?`'${e}'`:e}async _analyzeFormatter(e,t,i){let o=this._configService.getValue(c.configName,{resource:i.uri,overrideIdentifier:i.getLanguageId()});if(o){let r=t.find(e=>tE.ExtensionIdentifier.equals(e.extensionId,o));if(r)return r;let n=await this._extensionService.getExtension(o);if(n&&this._extensionEnablementService.isEnabled((0,iK.toExtension)(n))){let t=this._languageService.getLanguageName(i.getLanguageId())||i.getLanguageId();return e===s.File?(0,y.localize)(8280,"Extension '{0}' is configured as formatter but it cannot format '{1}'-files",n.displayName||n.name,t):(0,y.localize)(8281,"Extension '{0}' is configured as formatter but it can only format '{1}'-files as a whole, not selections or parts of it.",n.displayName||n.name,t)}}else if(1===t.length)return t[0];let r=this._languageService.getLanguageName(i.getLanguageId())||i.getLanguageId();return o?(0,y.localize)(8283,"Extension '{0}' is configured as formatter but not available. Select a different default formatter to continue.",o):(0,y.localize)(8282,"There are multiple formatters for '{0}' files. One of them should be configured as default formatter.",c._maybeQuotes(r))}async _selectFormatter(e,t,i,o){let r=await this._analyzeFormatter(o,e,t);if("string"!=typeof r)return r;if(i!==a.Silent){let{confirmed:i}=await this._dialogService.confirm({message:(0,y.localize)(8284,"Configure Default Formatter"),detail:r,primaryButton:(0,y.localize)(8285,"&&Configure...")});if(i)return this._pickAndPersistDefaultFormatter(e,t)}else this._notificationService.prompt(e2.default.Info,r,[{label:(0,y.localize)(8286,"Configure..."),run:()=>this._pickAndPersistDefaultFormatter(e,t)}],{priority:C.NotificationPriority.SILENT})}async _pickAndPersistDefaultFormatter(e,t){let i=e.map((e,t)=>({index:t,label:e.displayName||(e.extensionId?e.extensionId.value:"?"),description:e.extensionId&&e.extensionId.value})),o=this._languageService.getLanguageName(t.getLanguageId())||t.getLanguageId(),r=await this._quickInputService.pick(i,{placeHolder:(0,y.localize)(8287,"Select a default formatter for '{0}' files",c._maybeQuotes(o))});if(r&&e[r.index].extensionId)return this._configService.updateValue(c.configName,e[r.index].extensionId.value,{resource:t.uri,overrideIdentifier:t.getLanguageId()}),e[r.index]}_updateStatus(){this._languageStatusStore.clear();let e=(0,D.getCodeEditor)(this._editorService.activeTextEditorControl);if(!e||!e.hasModel())return;let t=e.getModel(),i=tx(this._languageFeaturesService.documentFormattingEditProvider,this._languageFeaturesService.documentRangeFormattingEditProvider,t);if(0===i.length)return;let o=new e7.CancellationTokenSource;this._languageStatusStore.add((0,iz.toDisposable)(()=>o.dispose(!0))),this._analyzeFormatter(s.File,i,t).then(e=>{if(o.token.isCancellationRequested||"string"!=typeof e)return;let r={id:`formatter/configure/dfl/${(0,iG.generateUuid)()}`,title:(0,y.localize)(8288,"Configure...")};this._languageStatusStore.add(tI.CommandsRegistry.registerCommand(r.id,()=>this._pickAndPersistDefaultFormatter(i,t))),this._languageStatusStore.add(this._languageStatusService.addStatus({id:"formatter.conflict",name:(0,y.localize)(8289,"Formatter Conflicts"),selector:{language:t.getLanguageId(),pattern:t.uri.fsPath},severity:e2.default.Error,label:(0,y.localize)(8290,"Formatting"),detail:e,busy:!1,source:"",command:r,accessibilityInfo:void 0}))})}};async function iQ(e,t,i){let o,r=e.get(iO.IQuickInputService),n=e.get(en.IConfigurationService),s=e.get(iV.ILanguageService),a={resource:t.uri,overrideIdentifier:t.getLanguageId()},d=n.getValue(i$.configName,a),c=i.map((e,t)=>{let i=tE.ExtensionIdentifier.equals(e.extensionId,d),r={index:t,label:e.displayName||"",description:i?(0,y.localize)(8292,"(default)"):void 0};return i&&(o=r),r}),l={label:(0,y.localize)(8293,"Configure Default Formatter...")},u=await r.pick([...c,{type:"separator"},l],{placeHolder:(0,y.localize)(8294,"Select a formatter"),activeItem:o});if(u){if(u!==l)return u.index;{let e=s.getLanguageName(t.getLanguageId())||t.getLanguageId(),o=await r.pick(c,{placeHolder:(0,y.localize)(8287,"Select a default formatter for '{0}' files",i$._maybeQuotes(e))});o&&i[o.index].extensionId&&n.updateValue(i$.configName,i[o.index].extensionId.value,a);return}}}i$=c=(0,h.__decorate)([(0,h.__param)(0,iW.IExtensionService),(0,h.__param)(1,iB.IWorkbenchExtensionEnablementService),(0,h.__param)(2,en.IConfigurationService),(0,h.__param)(3,S.INotificationService),(0,h.__param)(4,iH.IDialogService),(0,h.__param)(5,iO.IQuickInputService),(0,h.__param)(6,iV.ILanguageService),(0,h.__param)(7,ta.ILanguageFeaturesService),(0,h.__param)(8,iq.ILanguageStatusService),(0,h.__param)(9,$.IEditorService)],i$),b.Registry.as(tz.Extensions.Workbench).registerWorkbenchContribution(i$,tB.LifecyclePhase.Restored),b.Registry.as(iF.Extensions.Configuration).registerConfiguration({...iU.editorConfigurationBaseNode,properties:{[i$.configName]:{description:(0,y.localize)(8291,"Defines a default formatter which takes precedence over all other formatter settings. Must be the identifier of an extension contributing a formatter."),type:["string","null"],default:null,enum:i$.extensionIds,enumItemLabels:i$.extensionItemLabels,markdownEnumDescriptions:i$.extensionDescriptions}}}),(0,iN.registerEditorAction)(class extends iN.EditorAction{constructor(){super({id:"editor.action.formatDocument.multiple",label:(0,y.localize)(8295,"Format Document With..."),alias:"Format Document...",precondition:es.ContextKeyExpr.and(eo.EditorContextKeys.writable,eo.EditorContextKeys.hasMultipleDocumentFormattingProvider),contextMenuOpts:{group:"1_modification",order:1.3}})}async run(e,t,i){if(!t.hasModel())return;let o=e.get(_.IInstantiationService),r=e.get(ta.ILanguageFeaturesService),n=t.getModel(),s=tx(r.documentFormattingEditProvider,r.documentRangeFormattingEditProvider,n),d=await o.invokeFunction(iQ,n,s);"number"==typeof d&&await o.invokeFunction(tR,s[d],t,a.Explicit,e7.CancellationToken.None)}}),(0,iN.registerEditorAction)(class extends iN.EditorAction{constructor(){super({id:"editor.action.formatSelection.multiple",label:(0,y.localize)(8296,"Format Selection With..."),alias:"Format Code...",precondition:es.ContextKeyExpr.and(es.ContextKeyExpr.and(eo.EditorContextKeys.writable),eo.EditorContextKeys.hasMultipleDocumentSelectionFormattingProvider),contextMenuOpts:{when:es.ContextKeyExpr.and(eo.EditorContextKeys.hasNonEmptySelection),group:"1_modification",order:1.31}})}async run(e,t){if(!t.hasModel())return;let i=e.get(_.IInstantiationService),o=e.get(ta.ILanguageFeaturesService),r=t.getModel(),n=t.getSelection();n.isEmpty()&&(n=new tn.Range(n.startLineNumber,1,n.startLineNumber,r.getLineMaxColumn(n.startLineNumber)));let s=o.documentRangeFormattingEditProvider.ordered(r),a=await i.invokeFunction(iQ,r,s);"number"==typeof a&&await i.invokeFunction(tM,s[a],t,n,e7.CancellationToken.None,!0)}}),e.s([],8791);var ij=g,iY=e.i(542034);(0,ij.registerEditorAction)(class extends ij.EditorAction{constructor(){super({id:"editor.action.formatDocument.none",label:(0,y.localize2)(8297,"Format Document"),precondition:es.ContextKeyExpr.and(eo.EditorContextKeys.writable,eo.EditorContextKeys.hasDocumentFormattingProvider.toNegated()),kbOpts:{kbExpr:eo.EditorContextKeys.editorTextFocus,primary:ee.KeyMod.Shift|ee.KeyMod.Alt|ee.KeyCode.KeyF,linux:{primary:ee.KeyMod.CtrlCmd|ee.KeyMod.Shift|ee.KeyCode.KeyI},weight:ea.KeybindingWeight.EditorContrib}})}async run(e,t){if(!t.hasModel())return;let i=e.get(eD.ICommandService),o=e.get(iY.IExtensionsWorkbenchService),r=e.get(S.INotificationService),n=e.get(iH.IDialogService),s=e.get(ta.ILanguageFeaturesService),a=t.getModel(),d=s.documentFormattingEditProvider.all(a).length;if(d>1)return i.executeCommand("editor.action.formatDocument.multiple");if(1===d)return i.executeCommand("editor.action.formatDocument");if(a.isTooLargeForSyncing())r.warn((0,y.localize)(8298,"This file cannot be formatted because it is too large"));else{let e=a.getLanguageId(),t=(0,y.localize)(8299,"There is no formatter for '{0}' files installed.",e),{confirmed:i}=await n.confirm({message:t,primaryButton:(0,y.localize)(8300,"&&Install Formatter...")});i&&o.openSearch(`category:formatters ${e}`)}}}),e.s([],792133);var iX=p,iZ=e.i(261968);let iJ=class extends iX.Disposable{static{l=this}static{this.configName="editor.defaultFoldingRangeProvider"}static{this.extensionIds=[]}static{this.extensionItemLabels=[]}static{this.extensionDescriptions=[]}constructor(e,t){super(),this._extensionService=e,this._configurationService=t,this._store.add(this._extensionService.onDidChangeExtensions(this._updateConfigValues,this)),this._store.add(iZ.FoldingController.setFoldingRangeProviderSelector(this._selectFoldingRangeProvider.bind(this))),this._updateConfigValues()}async _updateConfigValues(){await this._extensionService.whenInstalledExtensionsRegistered(),l.extensionIds.length=0,l.extensionItemLabels.length=0,l.extensionDescriptions.length=0,l.extensionIds.push(null),l.extensionItemLabels.push((0,y.localize)(8275,"All")),l.extensionDescriptions.push((0,y.localize)(8276,"All active folding range providers"));let e=[],t=[];for(let i of this._extensionService.extensions)(i.main||i.browser)&&(i.categories?.find(e=>"Programming Languages"===e)?e.push(i):t.push(i));let i=(e,t)=>e.name.localeCompare(t.name);for(let t of e.sort(i))l.extensionIds.push(t.identifier.value),l.extensionItemLabels.push(t.displayName??""),l.extensionDescriptions.push(t.description??"");for(let e of t.sort(i))l.extensionIds.push(e.identifier.value),l.extensionItemLabels.push(e.displayName??""),l.extensionDescriptions.push(e.description??"")}_selectFoldingRangeProvider(e,t){let i=this._configurationService.getValue(l.configName,{overrideIdentifier:t.getLanguageId()});if(i)return e.filter(e=>e.id===i)}};iJ=l=(0,h.__decorate)([(0,h.__param)(0,iW.IExtensionService),(0,h.__param)(1,en.IConfigurationService)],iJ),b.Registry.as(iF.Extensions.Configuration).registerConfiguration({...iU.editorConfigurationBaseNode,properties:{[iJ.configName]:{description:(0,y.localize)(8277,"Defines a default folding range provider that takes precedence over all other folding range providers. Must be the identifier of an extension contributing a folding range provider."),type:["string","null"],default:null,enum:iJ.extensionIds,enumItemLabels:iJ.extensionItemLabels,markdownEnumDescriptions:iJ.extensionDescriptions}}}),b.Registry.as(tz.Extensions.Workbench).registerWorkbenchContribution(iJ,tB.LifecyclePhase.Restored),e.s([],997163);var i0=g,i1=e.i(586411),i2=e.i(410149),i3=e.i(833476);let i8=class{static{u=this}static{this.IsReading=new es.RawContextKey("isReadingLineWithInlayHints",!1,{type:"boolean",description:(0,y.localize)(8302,"Whether the current line and its inlay hints are currently focused")})}static{this.ID="editor.contrib.InlayHintsAccessibility"}static get(e){return e.getContribution(u.ID)??void 0}constructor(e,t,i,o){this._editor=e,this._accessibilitySignalService=i,this._instaService=o,this._sessionDispoosables=new p.DisposableStore,this._ariaElement=(0,P.createElement)("span"),this._ariaElement.style.position="fixed",this._ariaElement.className="inlayhint-accessibility-element",this._ariaElement.tabIndex=0,this._ariaElement.setAttribute("aria-description",(0,y.localize)(8303,"Code with Inlay Hint Information")),this._ctxIsReading=u.IsReading.bindTo(t)}dispose(){this._sessionDispoosables.dispose(),this._ctxIsReading.reset(),this._ariaElement.remove()}_reset(){(0,P.clearNode)(this._ariaElement),this._sessionDispoosables.clear(),this._ctxIsReading.reset()}async _read(e,t){if(this._sessionDispoosables.clear(),this._ariaElement.isConnected||this._editor.getDomNode()?.appendChild(this._ariaElement),!this._editor.hasModel()||!this._ariaElement.isConnected)return void this._ctxIsReading.set(!1);let i=new e7.CancellationTokenSource;for(let e of(this._sessionDispoosables.add(i),t))await e.resolve(i.token);if(i.token.isCancellationRequested)return;let o=this._editor.getModel(),r=[],n=0,s=!1;for(let i of t){let t=o.getValueInRange({startLineNumber:e,startColumn:n+1,endLineNumber:e,endColumn:i.hint.position.column});if(t.length>0&&(r.push(t),n=i.hint.position.column-1),n>750){r.push("…"),s=!0;break}let a=(0,P.createElement)("em"),{label:d}=i.hint;if("string"==typeof d)a.innerText=d;else for(let e of d)if(e.command){let t=this._instaService.createInstance(i3.Link,a,{href:(0,i1.asCommandLink)(e.command),label:e.label,title:e.command.title},void 0);this._sessionDispoosables.add(t)}else a.innerText+=e.label;r.push(a)}s||r.push(o.getValueInRange({startLineNumber:e,startColumn:n+1,endLineNumber:e,endColumn:Number.MAX_SAFE_INTEGER})),(0,P.reset)(this._ariaElement,...r),this._ariaElement.focus(),this._ctxIsReading.set(!0),this._sessionDispoosables.add((0,P.addDisposableListener)(this._ariaElement,"focusout",()=>{this._reset()}))}startInlayHintsReading(){if(!this._editor.hasModel())return;let e=this._editor.getPosition().lineNumber,t=i2.InlayHintsController.get(this._editor)?.getInlayHintsForLine(e);t&&0!==t.length?this._read(e,t):this._accessibilitySignalService.playSignal(tD.AccessibilitySignal.noInlayHints)}stopInlayHintsReading(){this._reset(),this._editor.focus()}};i8=u=(0,h.__decorate)([(0,h.__param)(1,F.IContextKeyService),(0,h.__param)(2,tA.IAccessibilitySignalService),(0,h.__param)(3,_.IInstantiationService)],i8),(0,q.registerAction2)(class extends i0.EditorAction2{constructor(){super({id:"inlayHints.startReadingLineWithHint",title:(0,y.localize2)(8304,"Read Line with Inlay Hints"),precondition:eo.EditorContextKeys.hasInlayHintsProvider,f1:!0})}runEditorCommand(e,t){let i=i8.get(t);i?.startInlayHintsReading()}}),(0,q.registerAction2)(class extends i0.EditorAction2{constructor(){super({id:"inlayHints.stopReadingLineWithHint",title:(0,y.localize2)(8305,"Stop Inlay Hints Reading"),precondition:i8.IsReading,f1:!0,keybinding:{weight:ea.KeybindingWeight.EditorContrib,primary:ee.KeyCode.Escape}})}runEditorCommand(e,t){let i=i8.get(t);i?.stopInlayHintsReading()}}),(0,i0.registerEditorContribution)(i8.ID,i8,i0.EditorContributionInstantiation.Lazy),e.s([],507513);var i5=p;let i6=e=>({type:"string",enum:["always","explicit","never",!0,!1],enumDescriptions:[(0,y.localize)(6129,"Triggers Code Actions on explicit saves and auto saves triggered by window or focus changes."),(0,y.localize)(6130,"Triggers Code Actions only when explicitly saved"),(0,y.localize)(6131,"Never triggers Code Actions on save"),(0,y.localize)(6132,'Triggers Code Actions only when explicitly saved. This value will be deprecated in favor of "explicit".'),(0,y.localize)(6133,'Never triggers Code Actions on save. This value will be deprecated in favor of "never".')],default:"explicit",description:e}),i7=e=>({type:["string","boolean"],enum:["explicit","never",!0,!1],enumDescriptions:[(0,y.localize)(6134,"Triggers Code Actions only when explicitly saved."),(0,y.localize)(6135,"Never triggers Code Actions on save."),(0,y.localize)(6136,'Triggers Code Actions only when explicitly saved. This value will be deprecated in favor of "explicit".'),(0,y.localize)(6137,'Triggers Code Actions only when explicitly saved. This value will be deprecated in favor of "never".')],default:"explicit",description:e}),i9={oneOf:[{type:"object",additionalProperties:{type:"string"}},{type:"array",items:{type:"string"}}],markdownDescription:(0,y.localize)(6138,'Run Code Actions for the editor on save. Code Actions must be specified and the editor must not be shutting down. When {0} is set to `afterDelay`, Code Actions will only be run when the file is saved explicitly. Example: `"source.organizeImports": "explicit" `',"`#files.autoSave#`"),type:["object","array"],additionalProperties:{type:"string",enum:["always","explicit","never",!0,!1]},default:{},scope:iF.ConfigurationScope.LANGUAGE_OVERRIDABLE},i4=Object.freeze({...iU.editorConfigurationBaseNode,properties:{"editor.codeActionsOnSave":i9}}),oe={oneOf:[{type:"object",additionalProperties:{type:"string"}},{type:"array",items:{type:"string"}}],markdownDescription:(0,y.localize)(6139,'Run a series of Code Actions for a notebook on save. Code Actions must be specified and the editor must not be shutting down. When {0} is set to `afterDelay`, Code Actions will only be run when the file is saved explicitly. Example: `"notebook.source.organizeImports": "explicit"`',"`#files.autoSave#`"),type:"object",additionalProperties:{type:["string","boolean"],enum:["explicit","never",!0,!1]},default:{}},ot=Object.freeze({...iU.editorConfigurationBaseNode,properties:{"notebook.codeActionsOnSave":oe}}),oi=class extends i5.Disposable{constructor(e,t){super(),this.languageFeatures=t,this._onDidChangeSchemaContributions=this._register(new I.Emitter),this._allProvidedCodeActionKinds=[],this._register(I.Event.runAndSubscribe(I.Event.debounce(t.codeActionProvider.onDidChange,()=>{},1e3),()=>{this._allProvidedCodeActionKinds=this.getAllProvidedCodeActionKinds(),this.updateConfigurationSchema(this._allProvidedCodeActionKinds),this._onDidChangeSchemaContributions.fire()})),this._register(e.registerSchemaContribution({getSchemaAdditions:()=>this.getKeybindingSchemaAdditions(),onDidChange:this._onDidChangeSchemaContributions.event}))}getAllProvidedCodeActionKinds(){let e=new Map;for(let t of this.languageFeatures.codeActionProvider.allNoModel())for(let i of t.providedCodeActionKinds??[])e.set(i,new e9.HierarchicalKind(i));return Array.from(e.values())}updateConfigurationSchema(e){let t={...i9.properties},i={...oe.properties};for(let o of e)tc.CodeActionKind.Source.contains(o)&&!t[o.value]&&(t[o.value]=i6((0,y.localize)(6140,"Controls whether '{0}' actions should be run on file save.",o.value)),i[o.value]=i7((0,y.localize)(6140,"Controls whether '{0}' actions should be run on file save.",o.value)));i9.properties=t,oe.properties=i,b.Registry.as(iF.Extensions.Configuration).notifyConfigurationSchemaUpdated(i4)}getKeybindingSchemaAdditions(){let e=(e,t)=>({if:{required:["command"],properties:{command:{const:e}}},then:{properties:{args:{required:["kind"],properties:{kind:{anyOf:[{enum:Array.from(t)},{type:"string"}]}}}}}}),t=e=>{let t=new Set;for(let i of this._allProvidedCodeActionKinds)e.contains(i)&&t.add(i.value);return Array.from(t)};return[e(td.codeActionCommandId,t(e9.HierarchicalKind.Empty)),e(td.refactorCommandId,t(tc.CodeActionKind.Refactor)),e(td.sourceActionCommandId,t(tc.CodeActionKind.Source))]}};oi=(0,h.__decorate)([(0,h.__param)(0,G.IKeybindingService),(0,h.__param)(1,ta.ILanguageFeaturesService)],oi),b.Registry.as(iF.Extensions.Configuration).registerConfiguration(i4),b.Registry.as(iF.Extensions.Configuration).registerConfiguration(ot),b.Registry.as(tz.Extensions.Workbench).registerWorkbenchContribution(oi,tB.LifecyclePhase.Eventually),e.s([],64748);var oo=p;let or=class extends oo.Disposable{constructor(e,t){super(),this._table=e,this._quickInputService=t}async show(){let e=[];this._table.getColumnLabels().forEach((t,i)=>{t&&e.push({label:t,index:i})});let t=await this._quickInputService.pick(e,{placeHolder:(0,y.localize)(8526,"Select the column to resize, type to filter.")});if(!t)return;let i=await this._quickInputService.input({placeHolder:(0,y.localize)(8527,"i.e. 20, 60, 100..."),prompt:(0,y.localize)(8528,"Please enter a width in percentage for the '{0}' column.",t.label),validateInput:e=>this._validateColumnResizeValue(e)}),o=i?Number.parseInt(i):void 0;o&&this._table.resizeColumn(t.index,o)}async _validateColumnResizeValue(e){let t=Number.parseInt(e);return e&&!Number.isInteger(t)?(0,y.localize)(8529,"Please enter an integer."):t<0||t>100?(0,y.localize)(8530,"Please enter a number greater than 0 and less than or equal to 100."):null}};or=(0,h.__decorate)([(0,h.__param)(1,iO.IQuickInputService)],or);var on=e.i(999552),os=e.i(441340),oa=e.i(122667),od=q;class oc extends od.Action2{constructor(){super({id:"list.resizeColumn",title:{value:(0,y.localize)(8524,"Resize Column"),original:"Resize Column"},category:{value:(0,y.localize)(8525,"List"),original:"List"},precondition:os.WorkbenchListFocusContextKey,f1:!0})}async run(e){let t=e.get(oa.IListService),i=e.get(_.IInstantiationService),o=t.lastFocusedList;o instanceof on.Table&&await i.createInstance(or,o).show()}}let ol=class{static{this.ID="workbench.contrib.listContext"}constructor(e){e.createKey("listSupportsTypeNavigation",!0),e.createKey("listSupportsKeyboardNavigation",!0)}};ol=(0,h.__decorate)([(0,h.__param)(0,F.IContextKeyService)],ol),(0,tz.registerWorkbenchContribution2)(ol.ID,ol,tz.WorkbenchPhase.BlockStartup),(0,q.registerAction2)(oc),e.s([],345706);var ou=p;let oh=[];function op(){return oh.slice(0)}e.s(["getEditorFeatures",0,op,"registerEditorFeature",0,function(e){oh.push(e)}],794019);let og=class extends ou.Disposable{static{this.ID="workbench.contrib.editorFeaturesInstantiator"}constructor(e,t){super(),this._instantiationService=t,this._instantiated=!1,this._register(e.onWillCreateCodeEditor(()=>this._instantiate())),this._register(e.onWillCreateDiffEditor(()=>this._instantiate())),(e.listCodeEditors().length>0||e.listDiffEditors().length>0)&&this._instantiate()}_instantiate(){if(!this._instantiated)for(let e of(this._instantiated=!0,op()))try{let t=this._instantiationService.createInstance(e);"function"==typeof t.dispose&&this._register(t)}catch(e){(0,tu.onUnexpectedError)(e)}}};og=(0,h.__decorate)([(0,h.__param)(0,Z.ICodeEditorService),(0,h.__param)(1,_.IInstantiationService)],og),(0,tz.registerWorkbenchContribution2)(og.ID,og,tz.WorkbenchPhase.BlockRestore),e.s([],277782)},753062,e=>{"use strict";var t=e.i(650289);let i="rendererLog",o={id:i,name:(0,t.localize)(14189,"Window")};e.s(["showWindowLogActionId",0,"workbench.action.showWindowLog","windowLogGroup",0,o,"windowLogId",0,i])},432877,104801,824210,418630,974409,239657,28475,238970,453364,884670,671524,889226,873471,957806,486782,68779,157602,224556,864123,359886,509799,598379,27073,621595,109157,184053,27950,860947,62998,811772,142219,282108,972077,684710,716039,813540,802384,769412,571292,924056,815301,456865,171130,511204,427026,330835,459674,488587,437988,865779,121419,454738,e=>{"use strict";let t,i;var o,r,n,s,a,d,c,l,u,h,p,g,m,v,y,f,_,C,S,b,I,E,w,D,A,x,k,T,M,P,R=e.i(654295),L=e.i(650289),N=e.i(84513),O=e.i(105673),F=e.i(144881),K=e.i(781808),W=e.i(611130),z=e.i(850887),V=e.i(325438),B=e.i(731931),U=e.i(568101),H=e.i(9753),q=e.i(842577),G=e.i(590746),$=e.i(947278),Q=e.i(621826),j=e.i(686380),Y=e.i(701575),X=e.i(140889),Z=e.i(57660),J=e.i(83823),ee=e.i(2267),et=e.i(853457),ei=e.i(7542),eo=e.i(262072),er=e.i(732157),en=e.i(899890),es=e.i(324726),ea=e.i(812491),ed=e.i(753062),ec=e.i(652731),el=e.i(428048),eu=e.i(17607),eh=e.i(362361),ep=e.i(367835),eg=e.i(318581),em=e.i(253642),ev=e.i(347589),ey=e.i(364363),ef=e.i(527605),e_=e.i(853703),eC=e.i(990091);(0,R.registerCss)(void 0);class eS extends j.Action2{constructor(){super({id:"workbench.action.inspectContextKeys",title:(0,L.localize2)(2720,"Inspect Context Keys"),category:eo.Categories.Developer,f1:!0})}run(e){let t=e.get(H.IContextKeyService),i=new W.DisposableStore,o=(0,V.createStyleSheet)(void 0,void 0,i);(0,V.createCSSRule)("*","cursor: crosshair !important;",o);let r=(0,z.createElement)("div"),n=(0,z.getActiveDocument)();n.body.appendChild(r),i.add((0,W.toDisposable)(()=>r.remove())),r.style.position="absolute",r.style.pointerEvents="none",r.style.backgroundColor="rgba(255, 0, 0, 0.5)",r.style.zIndex="1000";let s=i.add(new O.DomEmitter(n,"mousemove",!0));i.add(s.event(e=>{let t=e.composedPath()[0],i=(0,z.getDomNodePagePosition)(t);r.style.top=`${i.top}px`,r.style.left=`${i.left}px`,r.style.width=`${i.width}px`,r.style.height=`${i.height}px`}));let a=i.add(new O.DomEmitter(n,"mousedown",!0));K.Event.once(a.event)(e=>{e.preventDefault(),e.stopPropagation()},null,i);let d=i.add(new O.DomEmitter(n,"mouseup",!0));K.Event.once(d.event)(e=>{e.preventDefault(),e.stopPropagation(),console.log(t.getContext(e.composedPath()[0]).collectAllValues()),(0,W.dispose)(i)},null,i)}}class eb extends j.Action2{constructor(){super({id:"workbench.action.toggleScreencastMode",title:(0,L.localize2)(2721,"Toggle Screencast Mode"),category:eo.Categories.Developer,f1:!0})}run(e){let t,i,o;if(eb.disposable){eb.disposable.dispose(),eb.disposable=void 0;return}let r=e.get($.ILayoutService),n=e.get(B.IConfigurationService),s=e.get(N.IKeybindingService),a=new W.DisposableStore,d=r.activeContainer,c=(0,z.append)(d,(0,z.$)(".screencast-mouse"));a.add((0,W.toDisposable)(()=>c.remove()));let l=(0,z.append)(d,(0,z.$)(".screencast-keyboard"));a.add((0,W.toDisposable)(()=>l.remove()));let u=a.add(new K.Emitter),h=a.add(new K.Emitter),p=a.add(new K.Emitter);function g(e,t){let i=new W.DisposableStore;i.add(i.add(new O.DomEmitter(e,"mousedown",!0)).event(e=>u.fire(e))),i.add(i.add(new O.DomEmitter(e,"mouseup",!0)).event(e=>h.fire(e))),i.add(i.add(new O.DomEmitter(e,"mousemove",!0)).event(e=>p.fire(e))),t.add(i),a.add((0,W.toDisposable)(()=>t.delete(i))),a.add(i)}for(let{window:e,disposables:t}of(0,z.getWindows)())g(r.getContainer(e),t);a.add((0,z.onDidRegisterWindow)(({window:e,disposables:t})=>g(r.getContainer(e),t))),a.add(r.onDidChangeActiveContainer(()=>{r.activeContainer.appendChild(c),r.activeContainer.appendChild(l)}));let m=()=>{c.style.borderColor=F.Color.fromHex(n.getValue("screencastMode.mouseIndicatorColor")).toString()},v=()=>{t=(0,Z.clamp)(n.getValue("screencastMode.mouseIndicatorSize")||20,20,100),c.style.height=`${t}px`,c.style.width=`${t}px`};m(),v(),a.add(u.event(e=>{c.style.top=`${e.clientY-t/2}px`,c.style.left=`${e.clientX-t/2}px`,c.style.display="block",c.style.transform="scale(1)",c.style.transition="transform 0.1s";let i=p.event(e=>{c.style.top=`${e.clientY-t/2}px`,c.style.left=`${e.clientX-t/2}px`,c.style.transform="scale(0.8)"});K.Event.once(h.event)(()=>{c.style.display="none",i.dispose()})}));let y=()=>{l.style.fontSize=`${(0,Z.clamp)(n.getValue("screencastMode.fontSize")||56,20,100)}px`},f=()=>{l.style.bottom=`${(0,Z.clamp)(n.getValue("screencastMode.verticalOffset")||0,0,90)}%`},_=()=>{i=(0,Z.clamp)(n.getValue("screencastMode.keyboardOverlayTimeout")||800,500,5e3)};y(),f(),_(),a.add(n.onDidChangeConfiguration(e=>{e.affectsConfiguration("screencastMode.verticalOffset")&&f(),e.affectsConfiguration("screencastMode.fontSize")&&y(),e.affectsConfiguration("screencastMode.keyboardOverlayTimeout")&&_(),e.affectsConfiguration("screencastMode.mouseIndicatorColor")&&m(),e.affectsConfiguration("screencastMode.mouseIndicatorSize")&&v()}));let C=a.add(new K.Emitter),S=a.add(new K.Emitter),b=a.add(new K.Emitter),I=a.add(new K.Emitter);function E(e,t){let i=new W.DisposableStore;i.add(i.add(new O.DomEmitter(e,"keydown",!0)).event(e=>C.fire(e))),i.add(i.add(new O.DomEmitter(e,"compositionstart",!0)).event(e=>S.fire(e))),i.add(i.add(new O.DomEmitter(e,"compositionupdate",!0)).event(e=>b.fire(e))),i.add(i.add(new O.DomEmitter(e,"compositionend",!0)).event(e=>I.fire(e))),t.add(i),a.add((0,W.toDisposable)(()=>t.delete(i))),a.add(i)}for(let{window:e,disposables:t}of(0,z.getWindows)())E(e,t);a.add((0,z.onDidRegisterWindow)(({window:e,disposables:t})=>E(e,t)));let w=0,D=!1,A=a.add(new G.RunOnceScheduler(()=>{l.textContent="",o=void 0,w=0},i));a.add(S.event(e=>{D=!0})),a.add(b.event(e=>{e.data&&D?(w>20&&(l.innerText="",w=0),(o=o??(0,z.append)(l,(0,z.$)("span.key"))).textContent=e.data):D&&(l.innerText="",(0,z.append)(l,(0,z.$)("span.key",{},"Backspace"))),A.schedule()})),a.add(I.event(e=>{o=void 0,w++})),a.add(C.event(e=>{if("Process"===e.key||/[\uac00-\ud787\u3131-\u314e\u314f-\u3163\u3041-\u3094\u30a1-\u30f4\u30fc\u3005\u3006\u3024\u4e00-\u9fa5]/u.test(e.key)){"Backspace"===e.code||e.code.includes("Key")?D=!0:(o=void 0,D=!1),A.schedule();return}if(e.isComposing)return;let t=n.getValue("screencastMode.keyboardOptions"),i=new q.StandardKeyboardEvent(e),r=s.softDispatch(i,i.target);if(r.kind===en.ResultKind.KbFound&&r.commandId&&!(t.showSingleEditorCursorMoves??!0)&&["cursorLeft","cursorRight","cursorUp","cursorDown"].includes(r.commandId))return;(i.ctrlKey||i.altKey||i.metaKey||i.shiftKey||w>20||i.keyCode===J.KeyCode.Backspace||i.keyCode===J.KeyCode.Escape||i.keyCode===J.KeyCode.UpArrow||i.keyCode===J.KeyCode.DownArrow||i.keyCode===J.KeyCode.LeftArrow||i.keyCode===J.KeyCode.RightArrow)&&(l.innerText="",w=0);let a=s.resolveKeyboardEvent(i),d=this._isKbFound(r)&&r.commandId?this.getCommandDetails(r.commandId):void 0,c=d?.title,u=a.getLabel();if(d&&(t.showCommandGroups&&d.category&&(c=`${d.category}: ${c} `),this._isKbFound(r)&&r.commandId)){let e=s.lookupKeybindings(r.commandId).filter(e=>e.getLabel()?.endsWith(u??""));e.length>0&&(u=e[e.length-1].getLabel())}(t.showCommands??!0)&&c&&(0,z.append)(l,(0,z.$)("span.title",{},`${c} `)),((t.showKeys??!0)||(t.showKeybindings??!0)&&this._isKbFound(r))&&(u=u?.replace("UpArrow","↑")?.replace("DownArrow","↓")?.replace("LeftArrow","←")?.replace("RightArrow","→"),(0,z.append)(l,(0,z.$)("span.key",{},u??""))),w++,A.schedule()})),eb.disposable=a}_isKbFound(e){return e.kind===en.ResultKind.KbFound}getCommandDetails(e){let t=j.MenuRegistry.getCommand(e);if(t)return{title:"string"==typeof t.title?t.title:t.title.value,category:t.category?"string"==typeof t.category?t.category:t.category.value:void 0};let i=eg.CommandsRegistry.getCommand(e);if(i?.metadata?.description)return{title:"string"==typeof i.metadata.description?i.metadata.description:i.metadata.description.value}}}class eI extends j.Action2{constructor(){super({id:"workbench.action.logStorage",title:(0,L.localize2)(2722,"Log Storage Database Contents"),category:eo.Categories.Developer,f1:!0})}run(e){let t=e.get(X.IStorageService),i=e.get(es.IDialogService);t.log(),i.info((0,L.localize)(2723,"The storage database contents have been logged to the developer tools."),(0,L.localize)(2724,"Open developer tools from the menu and select the Console tab."))}}class eE extends j.Action2{constructor(){super({id:"workbench.action.logWorkingCopies",title:(0,L.localize2)(2725,"Log Working Copies"),category:eo.Categories.Developer,f1:!0})}async run(e){let t=e.get(ei.IWorkingCopyService),i=e.get(er.IWorkingCopyBackupService),o=e.get(et.ILogService),r=e.get(ea.IOutputService),n=await i.getBackups(),s=["","[Working Copies]",...t.workingCopies.length>0?t.workingCopies.map(e=>`${e.isDirty()?"● ":""}${e.resource.toString(!0)} (typeId: ${e.typeId||"<no typeId>"})`):["<none>"],"","[Backups]",...n.length>0?n.map(e=>`${e.resource.toString(!0)} (typeId: ${e.typeId||"<no typeId>"})`):["<none>"]];o.info(s.join("\n")),r.showChannel(ed.windowLogId,!0)}}class ew extends j.Action2{static{this.SIZE_THRESHOLD=16384}constructor(){super({id:"workbench.action.removeLargeStorageDatabaseEntries",title:(0,L.localize2)(2726,"Remove Large Storage Database Entries..."),category:eo.Categories.Developer,f1:!0})}async run(e){let t=e.get(X.IStorageService),i=e.get(el.IQuickInputService),o=e.get(eu.IUserDataProfileService),r=e.get(es.IDialogService),n=e.get(em.IEnvironmentService),s=[];for(let e of[Y.StorageScope.APPLICATION,Y.StorageScope.PROFILE,Y.StorageScope.WORKSPACE])if(e!==Y.StorageScope.PROFILE||!o.currentProfile.isDefault)for(let i of[Y.StorageTarget.MACHINE,Y.StorageTarget.USER])for(let o of t.keys(e,i)){let r=t.get(o,e);r&&(!n.isBuilt||r.length>ew.SIZE_THRESHOLD)&&s.push({key:o,scope:e,target:i,size:r.length,label:o,description:ec.ByteSize.formatSize(r.length),detail:(0,L.localize)(2727,"Scope: {0}, Target: {1}",e===Y.StorageScope.APPLICATION?(0,L.localize)(2728,"Global"):e===Y.StorageScope.PROFILE?(0,L.localize)(2729,"Profile"):(0,L.localize)(2730,"Workspace"),i===Y.StorageTarget.MACHINE?(0,L.localize)(2731,"Machine"):(0,L.localize)(2732,"User"))})}s.sort((e,t)=>t.size-e.size);let a=await new Promise(e=>{let t=new W.DisposableStore,o=t.add(i.createQuickPick());o.items=s,o.canSelectMany=!0,o.ok=!1,o.customButton=!0,o.hideCheckAll=!0,o.customLabel=(0,L.localize)(2733,"Remove"),o.placeholder=(0,L.localize)(2734,"Select large entries to remove from storage"),0===s.length&&(o.description=(0,L.localize)(2735,"There are no large storage entries to remove.")),o.show(),t.add(o.onDidCustom(()=>{e(o.selectedItems),o.hide()})),t.add(o.onDidHide(()=>t.dispose()))});if(0===a.length)return;let{confirmed:d}=await r.confirm({type:"warning",message:(0,L.localize)(2736,"Do you want to remove the selected storage entries from the database?"),detail:(0,L.localize)(2737,"{0}\n\nThis action is irreversible and may result in data loss!",a.map(e=>e.label).join("\n")),primaryButton:(0,L.localize)(2738,"&&Remove")});if(!d)return;let c=new Set;for(let e of a)t.remove(e.key,e.scope),c.add(e.scope);for(let e of c)await t.optimize(e)}}let eD=new Set,eA=new U.RawContextKey("dirtyWorkingCopies","stopped");class ex extends j.Action2{constructor(){super({id:"workbench.action.startTrackDisposables",title:(0,L.localize2)(2739,"Start Tracking Disposables"),category:eo.Categories.Developer,f1:!0,precondition:U.ContextKeyExpr.and(eA.isEqualTo("pending").negate(),eA.isEqualTo("started").negate())})}run(e){eA.bindTo(e.get(H.IContextKeyService)).set("started"),eD.clear(),t=new W.DisposableTracker,(0,W.setDisposableTracker)(t)}}class ek extends j.Action2{constructor(){super({id:"workbench.action.snapshotTrackedDisposables",title:(0,L.localize2)(2740,"Snapshot Tracked Disposables"),category:eo.Categories.Developer,f1:!0,precondition:eA.isEqualTo("started")})}run(e){eA.bindTo(e.get(H.IContextKeyService)).set("pending"),eD=new Set(t?.computeLeakingDisposables(1e3)?.leaks.map(e=>e.value))}}class eT extends j.Action2{constructor(){super({id:"workbench.action.stopTrackDisposables",title:(0,L.localize2)(2741,"Stop Tracking Disposables"),category:eo.Categories.Developer,f1:!0,precondition:eA.isEqualTo("pending")})}run(e){let i=e.get(eh.IEditorService);if(eA.bindTo(e.get(H.IContextKeyService)).set("stopped"),t){let e=new Set;for(let i of new Set(t.computeLeakingDisposables(1e3)?.leaks)??[])eD.has(i.value)&&e.add(i);let o=t.computeLeakingDisposables(1e3,Array.from(e));o&&i.openEditor({resource:void 0,contents:o.details})}(0,W.setDisposableTracker)(null),t=void 0,eD.clear()}}class eM extends j.Action2{constructor(){super({id:"workbench.action.showPolicyDiagnostics",title:(0,L.localize2)(2742,"Policy Diagnostics"),category:eo.Categories.Developer,f1:!0})}async run(e){let t=e.get(eh.IEditorService),i=e.get(B.IConfigurationService),o=e.get(ev.IProductService),r=e.get(ey.IDefaultAccountService),n=e.get(ef.IAuthenticationService),s=e.get(e_.IAuthenticationAccessService),a=e.get(eC.IPolicyService),d=Q.Registry.as(ee.Extensions.Configuration),c="# VS Code Policy Diagnostics\n\n";c+=`*WARNING: This file may contain sensitive information.*
|
|
2
|
+
|
|
3
|
+
## System Information
|
|
4
|
+
|
|
5
|
+
| Property | Value |
|
|
6
|
+
|----------|-------|
|
|
7
|
+
| Generated | ${new Date().toISOString()} |
|
|
8
|
+
| Product | ${o.nameLong} ${o.version} |
|
|
9
|
+
| Commit | ${o.commit||"n/a"} |
|
|
10
|
+
|
|
11
|
+
## Account Information
|
|
12
|
+
|
|
13
|
+
`;try{let e=await r.getDefaultAccount(),t=["sessionId","analytics_tracking_id"];if(e){let i="Unknown",o="Unknown";try{for(let t of n.getProviderIds()){let r=(await n.getSessions(t)).find(t=>t.id===e.sessionId);if(r){i=r.account.id,o=r.account.label;break}}}catch(e){}for(let[r,n]of(c+=`### Default Account Summary
|
|
14
|
+
|
|
15
|
+
**Account ID/Username**: ${i}
|
|
16
|
+
|
|
17
|
+
**Account Label**: ${o}
|
|
18
|
+
|
|
19
|
+
### Detailed Account Properties
|
|
20
|
+
|
|
21
|
+
| Property | Value |
|
|
22
|
+
|----------|-------|
|
|
23
|
+
`,Object.entries(e)))if(null!=n){let e;e=t.includes(r)?"***":"object"==typeof n?JSON.stringify(n):String(n),c+=`| ${r} | ${e} |
|
|
24
|
+
`}c+="\n"}else c+="*No default account configured*\n\n"}catch(e){c+=`*Error retrieving account information: ${e}*
|
|
25
|
+
|
|
26
|
+
`}c+="## Policy-Controlled Settings\n\n";let l=d.getPolicyConfigurations(),u=d.getConfigurationProperties(),h=d.getExcludedConfigurationProperties();if(l.size>0){let e=[],t=[];for(let[o,r]of l){let n=u[r]??h[r];if(n){let s=i.inspect(r),a={name:o,key:r,property:n,inspection:s};void 0!==s.policyValue?e.push(a):t.push(a)}}let o=new Map,r=e=>{if(o.has(e))return o.get(e);try{let t=a.constructor.name;if("MultiplexPolicyService"===t&&a.policyServices){for(let t of a.policyServices)if(t.getPolicyValue&&void 0!==t.getPolicyValue(e))return o.set(e,t.constructor.name),t.constructor.name}return""}catch{return"Unknown"}};if(c+="### Applied Policy\n\n",e.sort((e,t)=>r(e.name).localeCompare(r(t.name))||e.name.localeCompare(t.name)),e.length>0){for(let t of(c+="| Setting Key | Policy Name | Policy Source | Default Value | Current Value | Policy Value |\n|-------------|-------------|---------------|---------------|---------------|-------------|\n",e)){let e=JSON.stringify(t.property.default),i=JSON.stringify(t.inspection.value),o=JSON.stringify(t.inspection.policyValue),n=r(t.name);c+=`| ${t.key} | ${t.name} | ${n} | \`${e}\` | \`${i}\` | \`${o}\` |
|
|
27
|
+
`}c+="\n"}else c+="*No settings are currently controlled by policies*\n\n";if(c+="### Non-applied Policy\n\n",t.length>0){for(let e of(c+="| Setting Key | Policy Name \n|-------------|-------------|\n",t))c+=`| ${e.key} | ${e.name}|
|
|
28
|
+
`;c+="\n"}else c+="*All policy-controllable settings are currently being enforced*\n\n"}else c+="*No policy-controlled settings found*\n\n";c+="## Authentication Information\n\n";try{let e=n.getProviderIds();if(e.length>0){for(let t of(c+="### Authentication Providers\n\n| Provider ID | Sessions | Accounts |\n|-------------|----------|----------|\n",e))try{let e=await n.getSessions(t),i=e.map(e=>e.account),o=Array.from(new Set(i.map(e=>e.label)));c+=`| ${t} | ${e.length} | ${o.join(", ")||"None"} |
|
|
29
|
+
`}catch(e){c+=`| ${t} | Error | ${e} |
|
|
30
|
+
`}for(let t of(c+="\n### Detailed Session Information\n\n",e))try{let e=await n.getSessions(t);if(e.length>0){for(let i of(c+=`#### ${t}
|
|
31
|
+
|
|
32
|
+
| Account | Scopes | Extensions with Access |
|
|
33
|
+
|---------|--------|------------------------|
|
|
34
|
+
`,e)){let e=i.account.label,o=i.scopes.join(", ")||"Default";try{let i=s.readAllowedExtensions(t,e).filter(e=>!1!==e.allowed).map(e=>`${e.name}${e.trusted?" (trusted)":""}`).join(", ")||"None";c+=`| ${e} | ${o} | ${i} |
|
|
35
|
+
`}catch(t){c+=`| ${e} | ${o} | Error: ${t} |
|
|
36
|
+
`}}c+="\n"}}catch(e){c+=`#### ${t}
|
|
37
|
+
*Error retrieving sessions: ${e}*
|
|
38
|
+
|
|
39
|
+
`}}else c+="*No authentication providers found*\n\n"}catch(e){c+=`*Error retrieving authentication information: ${e}*
|
|
40
|
+
|
|
41
|
+
`}await t.openEditor({resource:void 0,contents:c,languageId:"markdown",options:{pinned:!0}})}}(0,j.registerAction2)(eS),(0,j.registerAction2)(eb),(0,j.registerAction2)(eI),(0,j.registerAction2)(eE),(0,j.registerAction2)(ew),(0,j.registerAction2)(eM),ep.default.commit||((0,j.registerAction2)(ex),(0,j.registerAction2)(ek),(0,j.registerAction2)(eT)),Q.Registry.as(ee.Extensions.Configuration).registerConfiguration({id:"screencastMode",order:9,title:(0,L.localize)(2743,"Screencast Mode"),type:"object",properties:{"screencastMode.verticalOffset":{type:"number",default:20,minimum:0,maximum:90,description:(0,L.localize)(2744,"Controls the vertical offset of the screencast mode overlay from the bottom as a percentage of the workbench height.")},"screencastMode.fontSize":{type:"number",default:56,minimum:20,maximum:100,description:(0,L.localize)(2745,"Controls the font size (in pixels) of the screencast mode keyboard.")},"screencastMode.keyboardOptions":{type:"object",description:(0,L.localize)(2746,"Options for customizing the keyboard overlay in screencast mode."),properties:{showKeys:{type:"boolean",default:!0,description:(0,L.localize)(2747,"Show raw keys.")},showKeybindings:{type:"boolean",default:!0,description:(0,L.localize)(2748,"Show keyboard shortcuts.")},showCommands:{type:"boolean",default:!0,description:(0,L.localize)(2749,"Show command names.")},showCommandGroups:{type:"boolean",default:!1,description:(0,L.localize)(2750,"Show command group names, when commands are also shown.")},showSingleEditorCursorMoves:{type:"boolean",default:!0,description:(0,L.localize)(2751,"Show single editor cursor move commands.")}},default:{showKeys:!0,showKeybindings:!0,showCommands:!0,showCommandGroups:!1,showSingleEditorCursorMoves:!0},additionalProperties:!1},"screencastMode.keyboardOverlayTimeout":{type:"number",default:800,minimum:500,maximum:5e3,description:(0,L.localize)(2752,"Controls how long (in milliseconds) the keyboard overlay is shown in screencast mode.")},"screencastMode.mouseIndicatorColor":{type:"string",format:"color-hex",default:"#FF0000",description:(0,L.localize)(2753,"Controls the color in hex (#RGB, #RGBA, #RRGGBB or #RRGGBBAA) of the mouse indicator in screencast mode.")},"screencastMode.mouseIndicatorSize":{type:"number",default:20,minimum:20,maximum:100,description:(0,L.localize)(2754,"Controls the size (in pixels) of the mouse indicator in screencast mode.")}}}),e.s([],432877);var eP=e.i(697786),eR=e.i(281482),eL=e.i(701898),eN=e.i(99757),eO=e.i(989898),eF=e.i(509046);let eK=class{static{this.ID="workbench.contrib.dropOrPasteInto"}constructor(e){this._preferencesService=e,eN.CopyPasteController.setConfigureDefaultAction((0,eL.toAction)({id:"workbench.action.configurePreferredPasteAction",label:(0,L.localize)(7176,"Configure preferred paste action..."),run:()=>this.configurePreferredPasteAction()})),eO.DropIntoEditorController.setConfigureDefaultAction((0,eL.toAction)({id:"workbench.action.configurePreferredDropAction",label:(0,L.localize)(7177,"Configure preferred drop action..."),run:()=>this.configurePreferredDropAction()}))}configurePreferredPasteAction(){return this._preferencesService.openUserSettings({jsonEditor:!0,revealSetting:{key:eN.pasteAsPreferenceConfig,edit:!0}})}configurePreferredDropAction(){return this._preferencesService.openUserSettings({jsonEditor:!0,revealSetting:{key:eO.dropAsPreferenceConfig,edit:!0}})}};eK=(0,eR.__decorate)([(0,eR.__param)(0,eF.IPreferencesService)],eK);var eW=W,ez=e.i(936915),eV=e.i(407791),eB=e.i(953222),eU=e.i(718596),eH=e.i(478697),eq=e.i(704409),eG=e.i(794019),e$=e.i(692340);let eQ="editor.action.pasteAs";(0,eH.registerEditorContribution)(eN.CopyPasteController.ID,eN.CopyPasteController,eH.EditorContributionInstantiation.Eager),(0,eG.registerEditorFeature)(e$.DefaultPasteProvidersFeature),(0,eH.registerEditorCommand)(new class extends eH.EditorCommand{constructor(){super({id:eN.changePasteTypeCommandId,precondition:eN.pasteWidgetVisibleCtx,kbOpts:{weight:eU.KeybindingWeight.EditorContrib,primary:J.KeyMod.CtrlCmd|J.KeyCode.Period}})}runEditorCommand(e,t){return eN.CopyPasteController.get(t)?.changePasteType()}}),(0,eH.registerEditorCommand)(new class extends eH.EditorCommand{constructor(){super({id:"editor.hidePasteWidget",precondition:eN.pasteWidgetVisibleCtx,kbOpts:{weight:eU.KeybindingWeight.EditorContrib,primary:J.KeyCode.Escape}})}runEditorCommand(e,t){eN.CopyPasteController.get(t)?.clearWidgets()}}),(0,eH.registerEditorAction)(class e extends eH.EditorAction{static{this.argsSchema={oneOf:[{type:"object",required:["kind"],properties:{kind:{type:"string",description:(0,L.localize)(1014,"The kind of the paste edit to try pasting with.\nIf there are multiple edits for this kind, the editor will show a picker. If there are no edits of this kind, the editor will show an error message.")}}},{type:"object",required:["preferences"],properties:{preferences:{type:"array",description:(0,L.localize)(1015,"List of preferred paste edit kind to try applying.\nThe first edit matching the preferences will be applied."),items:{type:"string"}}}}]}}constructor(){super({id:eQ,label:(0,L.localize2)(1016,"Paste As..."),precondition:eq.EditorContextKeys.writable,metadata:{description:"Paste as",args:[{name:"args",schema:e.argsSchema}]},canTriggerInlineEdits:!0})}run(e,t,i){let o;return i&&("kind"in i?o={only:new eB.HierarchicalKind(i.kind)}:"preferences"in i&&(o={preferences:i.preferences.map(e=>new eB.HierarchicalKind(e))})),eN.CopyPasteController.get(t)?.pasteAs(o)}}),(0,eH.registerEditorAction)(class extends eH.EditorAction{constructor(){super({id:"editor.action.pasteAsText",label:(0,L.localize2)(1017,"Paste as Text"),precondition:eq.EditorContextKeys.writable,canTriggerInlineEdits:!0})}run(e,t){return eN.CopyPasteController.get(t)?.pasteAs({providerId:e$.DefaultTextPasteOrDropEditProvider.id})}}),e.s(["pasteAsCommandId",0,eQ],104801);let ej=[],eY={type:"array",scope:ee.ConfigurationScope.LANGUAGE_OVERRIDABLE,description:(0,L.localize)(7178,"Configures the preferred type of edit to use when dropping content.\n\nThis is an ordered list of edit kinds. The first available edit of a preferred kind will be used."),default:[],items:{description:(0,L.localize)(7179,"The kind identifier of the drop edit."),anyOf:[{type:"string"},{enum:ej}]}},eX=[],eZ={type:"array",scope:ee.ConfigurationScope.LANGUAGE_OVERRIDABLE,description:(0,L.localize)(7180,"Configures the preferred type of edit to use when pasting content.\n\nThis is an ordered list of edit kinds. The first available edit of a preferred kind will be used."),default:[],items:{description:(0,L.localize)(7181,"The kind identifier of the paste edit."),anyOf:[{type:"string"},{enum:eX}]}},eJ=Object.freeze({...ez.editorConfigurationBaseNode,properties:{[eN.pasteAsPreferenceConfig]:eZ,[eO.dropAsPreferenceConfig]:eY}}),e0=class extends eW.Disposable{static{this.ID="workbench.contrib.dropOrPasteIntoSchema"}constructor(e,t){super(),this.languageFeatures=t,this._onDidChangeSchemaContributions=this._register(new K.Emitter),this._allProvidedDropKinds=[],this._allProvidedPasteKinds=[],this._register(K.Event.runAndSubscribe(K.Event.debounce(K.Event.any(t.documentPasteEditProvider.onDidChange,t.documentPasteEditProvider.onDidChange),()=>{},1e3),()=>{this.updateProvidedKinds(),this.updateConfigurationSchema(),this._onDidChangeSchemaContributions.fire()})),this._register(e.registerSchemaContribution({getSchemaAdditions:()=>this.getKeybindingSchemaAdditions(),onDidChange:this._onDidChangeSchemaContributions.event}))}updateProvidedKinds(){let e=new Map;for(let t of this.languageFeatures.documentDropEditProvider.allNoModel())for(let i of t.providedDropEditKinds??[])e.set(i.value,i);this._allProvidedDropKinds=Array.from(e.values());let t=new Map;for(let e of this.languageFeatures.documentPasteEditProvider.allNoModel())for(let i of e.providedPasteEditKinds??[])t.set(i.value,i);this._allProvidedPasteKinds=Array.from(t.values())}updateConfigurationSchema(){for(let e of(eX.length=0,this._allProvidedPasteKinds))eX.push(e.value);for(let e of(ej.length=0,this._allProvidedDropKinds))ej.push(e.value);Q.Registry.as(ee.Extensions.Configuration).notifyConfigurationSchemaUpdated(eJ)}getKeybindingSchemaAdditions(){return[{if:{required:["command"],properties:{command:{const:eQ}}},then:{properties:{args:{oneOf:[{required:["kind"],properties:{kind:{anyOf:[{enum:Array.from(this._allProvidedPasteKinds.map(e=>e.value))},{type:"string"}]}}},{required:["preferences"],properties:{preferences:{type:"array",items:{anyOf:[{enum:Array.from(this._allProvidedPasteKinds.map(e=>e.value))},{type:"string"}]}}}}]}}}}]}};e0=(0,eR.__decorate)([(0,eR.__param)(0,N.IKeybindingService),(0,eR.__param)(1,eV.ILanguageFeaturesService)],e0),(0,eP.registerWorkbenchContribution2)(eK.ID,eK,eP.WorkbenchPhase.Eventually),(0,eP.registerWorkbenchContribution2)(e0.ID,e0,eP.WorkbenchPhase.Eventually),Q.Registry.as(ee.Extensions.Configuration).registerConfiguration(eJ),e.s([],824210);var e1=e.i(155652),e2=e.i(85890);for(let t of(e.i(830985),(0,j.registerAction2)(e2.ToggleCollapseUnchangedRegions),(0,j.registerAction2)(e2.ToggleShowMovedCodeBlocks),(0,j.registerAction2)(e2.ToggleUseInlineViewWhenSpaceIsLimited),j.MenuRegistry.appendMenuItem(j.MenuId.EditorTitle,{command:{id:new e2.ToggleUseInlineViewWhenSpaceIsLimited().desc.id,title:(0,L.localize)(187,"Use Inline View When Space Is Limited"),toggled:U.ContextKeyExpr.has("config.diffEditor.useInlineViewWhenSpaceIsLimited"),precondition:U.ContextKeyExpr.has("isInDiffEditor")},order:11,group:"1_diff",when:U.ContextKeyExpr.and(eq.EditorContextKeys.diffEditorRenderSideBySideInlineBreakpointReached,U.ContextKeyExpr.has("isInDiffEditor"))}),j.MenuRegistry.appendMenuItem(j.MenuId.EditorTitle,{command:{id:new e2.ToggleShowMovedCodeBlocks().desc.id,title:(0,L.localize)(188,"Show Moved Code Blocks"),icon:e1.Codicon.move,toggled:U.ContextKeyEqualsExpr.create("config.diffEditor.experimental.showMoves",!0),precondition:U.ContextKeyExpr.has("isInDiffEditor")},order:10,group:"1_diff",when:U.ContextKeyExpr.has("isInDiffEditor")}),(0,j.registerAction2)(e2.RevertHunkOrSelection),[{icon:e1.Codicon.arrowRight,key:eq.EditorContextKeys.diffEditorInlineMode.toNegated()},{icon:e1.Codicon.discard,key:eq.EditorContextKeys.diffEditorInlineMode}]))j.MenuRegistry.appendMenuItem(j.MenuId.DiffEditorHunkToolbar,{command:{id:new e2.RevertHunkOrSelection().desc.id,title:(0,L.localize)(189,"Revert Block"),icon:t.icon},when:U.ContextKeyExpr.and(eq.EditorContextKeys.diffEditorModifiedWritable,t.key),order:5,group:"primary"}),j.MenuRegistry.appendMenuItem(j.MenuId.DiffEditorSelectionToolbar,{command:{id:new e2.RevertHunkOrSelection().desc.id,title:(0,L.localize)(190,"Revert Selection"),icon:t.icon},when:U.ContextKeyExpr.and(eq.EditorContextKeys.diffEditorModifiedWritable,t.key),order:5,group:"primary"});(0,j.registerAction2)(e2.SwitchSide),(0,j.registerAction2)(e2.ExitCompareMove),(0,j.registerAction2)(e2.CollapseAllUnchangedRegions),(0,j.registerAction2)(e2.ShowAllUnchangedRegions),j.MenuRegistry.appendMenuItem(j.MenuId.EditorTitle,{command:{id:e2.AccessibleDiffViewerNext.id,title:(0,L.localize)(191,"Open Accessible Diff Viewer"),precondition:U.ContextKeyExpr.has("isInDiffEditor")},order:10,group:"2_diff",when:U.ContextKeyExpr.and(eq.EditorContextKeys.accessibleDiffViewerVisible.negate(),U.ContextKeyExpr.has("isInDiffEditor"))}),eg.CommandsRegistry.registerCommandAlias("editor.action.diffReview.next",e2.AccessibleDiffViewerNext.id),(0,j.registerAction2)(e2.AccessibleDiffViewerNext),eg.CommandsRegistry.registerCommandAlias("editor.action.diffReview.prev",e2.AccessibleDiffViewerPrev.id),(0,j.registerAction2)(e2.AccessibleDiffViewerPrev),e.s([],418630);var e3=e.i(323325),e8=e.i(399119),e5=eH,e6=e.i(340793),e7=e.i(98342);(0,R.registerCss)(void 0);let e9=new U.RawContextKey("selectionAnchorSet",!1),e4=class{static{l=this}static{this.ID="editor.contrib.selectionAnchorController"}static get(e){return e.getContribution(l.ID)}constructor(e,t){this.editor=e,this.selectionAnchorSetContextKey=e9.bindTo(t),this.modelChangeListener=e.onDidChangeModel(()=>this.selectionAnchorSetContextKey.reset())}setSelectionAnchor(){if(this.editor.hasModel()){let e=this.editor.getPosition();this.editor.changeDecorations(t=>{this.decorationId&&t.removeDecoration(this.decorationId),this.decorationId=t.addDecoration(e6.Selection.fromPositions(e,e),{description:"selection-anchor",stickiness:e7.TrackedRangeStickiness.NeverGrowsWhenTypingAtEdges,hoverMessage:new e8.MarkdownString().appendText((0,L.localize)(907,"Selection Anchor")),className:"selection-anchor"})}),this.selectionAnchorSetContextKey.set(!!this.decorationId),(0,e3.alert)((0,L.localize)(908,"Anchor set at {0}:{1}",e.lineNumber,e.column))}}goToSelectionAnchor(){if(this.editor.hasModel()&&this.decorationId){let e=this.editor.getModel().getDecorationRange(this.decorationId);e&&this.editor.setPosition(e.getStartPosition())}}selectFromAnchorToCursor(){if(this.editor.hasModel()&&this.decorationId){let e=this.editor.getModel().getDecorationRange(this.decorationId);if(e){let t=this.editor.getPosition();this.editor.setSelection(e6.Selection.fromPositions(e.getStartPosition(),t)),this.cancelSelectionAnchor()}}}cancelSelectionAnchor(){if(this.decorationId){let e=this.decorationId;this.editor.changeDecorations(t=>{t.removeDecoration(e),this.decorationId=void 0}),this.selectionAnchorSetContextKey.set(!1)}}dispose(){this.cancelSelectionAnchor(),this.modelChangeListener.dispose()}};e4=l=(0,eR.__decorate)([(0,eR.__param)(1,H.IContextKeyService)],e4);class te extends e5.EditorAction{constructor(){super({id:"editor.action.setSelectionAnchor",label:(0,L.localize2)(909,"Set Selection Anchor"),precondition:void 0,kbOpts:{kbExpr:eq.EditorContextKeys.editorTextFocus,primary:(0,J.KeyChord)(J.KeyMod.CtrlCmd|J.KeyCode.KeyK,J.KeyMod.CtrlCmd|J.KeyCode.KeyB),weight:eU.KeybindingWeight.EditorContrib}})}async run(e,t){e4.get(t)?.setSelectionAnchor()}}class tt extends e5.EditorAction{constructor(){super({id:"editor.action.goToSelectionAnchor",label:(0,L.localize2)(910,"Go to Selection Anchor"),precondition:e9})}async run(e,t){e4.get(t)?.goToSelectionAnchor()}}class ti extends e5.EditorAction{constructor(){super({id:"editor.action.selectFromAnchorToCursor",label:(0,L.localize2)(911,"Select from Anchor to Cursor"),precondition:e9,kbOpts:{kbExpr:eq.EditorContextKeys.editorTextFocus,primary:(0,J.KeyChord)(J.KeyMod.CtrlCmd|J.KeyCode.KeyK,J.KeyMod.CtrlCmd|J.KeyCode.KeyK),weight:eU.KeybindingWeight.EditorContrib}})}async run(e,t){e4.get(t)?.selectFromAnchorToCursor()}}class to extends e5.EditorAction{constructor(){super({id:"editor.action.cancelSelectionAnchor",label:(0,L.localize2)(912,"Cancel Selection Anchor"),precondition:e9,kbOpts:{kbExpr:eq.EditorContextKeys.editorTextFocus,primary:J.KeyCode.Escape,weight:eU.KeybindingWeight.EditorContrib}})}async run(e,t){e4.get(t)?.cancelSelectionAnchor()}}(0,e5.registerEditorContribution)(e4.ID,e4,e5.EditorContributionInstantiation.Lazy),(0,e5.registerEditorAction)(te),(0,e5.registerEditorAction)(tt),(0,e5.registerEditorAction)(ti),(0,e5.registerEditorAction)(to),e.s([],974409);var tr=W,tn=eH,ts=e.i(69150),ta=e.i(819593),td=e.i(166969),tc=e.i(327634),tl=e.i(575129),tu=e.i(698014);e.i(140331);var th=e.i(471999),tp=e.i(900329),tg=e.i(785266);e.i(181268);var tm=e.i(70177);e.i(575210),e.i(890787),e.i(67920);var tv=e.i(388064);(0,R.registerCss)(void 0);let ty=(0,tl.registerColor)("editorOverviewRuler.bracketMatchForeground","#A0A0A0",(0,L.localize)(913,"Overview ruler marker color for matching brackets."));class tf extends tn.EditorAction{constructor(){super({id:"editor.action.jumpToBracket",label:(0,L.localize2)(914,"Go to Bracket"),precondition:void 0,kbOpts:{kbExpr:eq.EditorContextKeys.editorTextFocus,primary:J.KeyMod.CtrlCmd|J.KeyMod.Shift|J.KeyCode.Backslash,weight:eU.KeybindingWeight.EditorContrib}})}run(e,t){tb.get(t)?.jumpToBracket()}}class t_ extends tn.EditorAction{constructor(){super({id:"editor.action.selectToBracket",label:(0,L.localize2)(915,"Select to Bracket"),precondition:void 0,metadata:{description:(0,L.localize2)(916,"Select the text inside and including the brackets or curly braces"),args:[{name:"args",schema:{type:"object",properties:{selectBrackets:{type:"boolean",default:!0}}}}]}})}run(e,t,i){let o=!0;i&&!1===i.selectBrackets&&(o=!1),tb.get(t)?.selectToBracket(o)}}class tC extends tn.EditorAction{constructor(){super({id:"editor.action.removeBrackets",label:(0,L.localize2)(917,"Remove Brackets"),precondition:void 0,kbOpts:{kbExpr:eq.EditorContextKeys.editorTextFocus,primary:J.KeyMod.CtrlCmd|J.KeyMod.Alt|J.KeyCode.Backspace,weight:eU.KeybindingWeight.EditorContrib},canTriggerInlineEdits:!0})}run(e,t){tb.get(t)?.removeBrackets(this.id)}}class tS{constructor(e,t,i){this.position=e,this.brackets=t,this.options=i}}class tb extends tr.Disposable{static{this.ID="editor.contrib.bracketMatchingController"}static get(e){return e.getContribution(tb.ID)}constructor(e){super(),this._editor=e,this._lastBracketsData=[],this._lastVersionId=0,this._decorations=this._editor.createDecorationsCollection(),this._updateBracketsSoon=this._register(new G.RunOnceScheduler(()=>this._updateBrackets(),50)),this._matchBrackets=this._editor.getOption(ts.EditorOption.matchBrackets),this._updateBracketsSoon.schedule(),this._register(e.onDidChangeCursorPosition(e=>{"never"!==this._matchBrackets&&this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelContent(e=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModel(e=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelLanguageConfiguration(e=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeConfiguration(e=>{e.hasChanged(ts.EditorOption.matchBrackets)&&(this._matchBrackets=this._editor.getOption(ts.EditorOption.matchBrackets),this._decorations.clear(),this._lastBracketsData=[],this._lastVersionId=0,this._updateBracketsSoon.schedule())})),this._register(e.onDidBlurEditorWidget(()=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidFocusEditorWidget(()=>{this._updateBracketsSoon.schedule()}))}jumpToBracket(){if(!this._editor.hasModel())return;let e=this._editor.getModel(),t=this._editor.getSelections().map(t=>{let i=t.getStartPosition(),o=e.bracketPairs.matchBracket(i),r=null;if(o)o[0].containsPosition(i)&&!o[1].containsPosition(i)?r=o[1].getStartPosition():o[1].containsPosition(i)&&(r=o[0].getStartPosition());else{let t=e.bracketPairs.findEnclosingBrackets(i);if(t)r=t[1].getStartPosition();else{let t=e.bracketPairs.findNextBracket(i);t&&t.range&&(r=t.range.getStartPosition())}}return r?new e6.Selection(r.lineNumber,r.column,r.lineNumber,r.column):new e6.Selection(i.lineNumber,i.column,i.lineNumber,i.column)});this._editor.setSelections(t),this._editor.revealRange(t[0])}selectToBracket(e){if(!this._editor.hasModel())return;let t=this._editor.getModel(),i=[];this._editor.getSelections().forEach(o=>{let r=o.getStartPosition(),n=t.bracketPairs.matchBracket(r);if(!n&&!(n=t.bracketPairs.findEnclosingBrackets(r))){let e=t.bracketPairs.findNextBracket(r);e&&e.range&&(n=t.bracketPairs.matchBracket(e.range.getStartPosition()))}let s=null,a=null;if(n){n.sort(td.Range.compareRangesUsingStarts);let[t,i]=n;if(s=e?t.getStartPosition():t.getEndPosition(),a=e?i.getEndPosition():i.getStartPosition(),i.containsPosition(r)){let e=s;s=a,a=e}}s&&a&&i.push(new e6.Selection(s.lineNumber,s.column,a.lineNumber,a.column))}),i.length>0&&(this._editor.setSelections(i),this._editor.revealRange(i[0]))}removeBrackets(e){if(!this._editor.hasModel())return;let t=this._editor.getModel();this._editor.getSelections().forEach(i=>{let o=i.getPosition(),r=t.bracketPairs.matchBracket(o);r||(r=t.bracketPairs.findEnclosingBrackets(o)),r&&(this._editor.pushUndoStop(),this._editor.executeEdits(e,[{range:r[0],text:""},{range:r[1],text:""}]),this._editor.pushUndoStop())})}static{this._DECORATION_OPTIONS_WITH_OVERVIEW_RULER=tc.ModelDecorationOptions.register({description:"bracket-match-overview",stickiness:e7.TrackedRangeStickiness.NeverGrowsWhenTypingAtEdges,className:"bracket-match",overviewRuler:{color:(0,tv.themeColorFromId)(ty),position:e7.OverviewRulerLane.Center}})}static{this._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER=tc.ModelDecorationOptions.register({description:"bracket-match-no-overview",stickiness:e7.TrackedRangeStickiness.NeverGrowsWhenTypingAtEdges,className:"bracket-match"})}_updateBrackets(){if("never"===this._matchBrackets)return;this._recomputeBrackets();let e=[],t=0;for(let i of this._lastBracketsData){let o=i.brackets;o&&(e[t++]={range:o[0],options:i.options},e[t++]={range:o[1],options:i.options})}this._decorations.set(e)}_recomputeBrackets(){if(!this._editor.hasModel()||!this._editor.hasWidgetFocus()){this._lastBracketsData=[],this._lastVersionId=0;return}let e=this._editor.getSelections();if(e.length>100){this._lastBracketsData=[],this._lastVersionId=0;return}let t=this._editor.getModel(),i=t.getVersionId(),o=[];this._lastVersionId===i&&(o=this._lastBracketsData);let r=[],n=0;for(let t=0,i=e.length;t<i;t++){let i=e[t];i.isEmpty()&&(r[n++]=i.getStartPosition())}r.length>1&&r.sort(ta.Position.compare);let s=[],a=0,d=0,c=o.length;for(let e=0,i=r.length;e<i;e++){let i=r[e];for(;d<c&&o[d].position.isBefore(i);)d++;if(d<c&&o[d].position.equals(i))s[a++]=o[d];else{let e=t.bracketPairs.matchBracket(i,20),o=tb._DECORATION_OPTIONS_WITH_OVERVIEW_RULER;e||"always"!==this._matchBrackets||(e=t.bracketPairs.findEnclosingBrackets(i,20),o=tb._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER),s[a++]=new tS(i,e,o)}}this._lastBracketsData=s,this._lastVersionId=i}}(0,tn.registerEditorContribution)(tb.ID,tb,tn.EditorContributionInstantiation.AfterFirstRender),(0,tn.registerEditorAction)(t_),(0,tn.registerEditorAction)(tf),(0,tn.registerEditorAction)(tC),j.MenuRegistry.appendMenuItem(j.MenuId.MenubarGoMenu,{group:"5_infile_nav",command:{id:"editor.action.jumpToBracket",title:(0,L.localize)(918,"Go to &&Bracket")},order:2}),e.s([],239657);var tI=eH;class tE{constructor(e,t){this._selection=e,this._isMovingLeft=t}getEditOperations(e,t){if(this._selection.startLineNumber!==this._selection.endLineNumber||this._selection.isEmpty())return;let i=this._selection.startLineNumber,o=this._selection.startColumn,r=this._selection.endColumn;if((!this._isMovingLeft||1!==o)&&(this._isMovingLeft||r!==e.getLineMaxColumn(i)))if(this._isMovingLeft){let n=new td.Range(i,o-1,i,o),s=e.getValueInRange(n);t.addEditOperation(n,null),t.addEditOperation(new td.Range(i,r,i,r),s)}else{let n=new td.Range(i,r,i,r+1),s=e.getValueInRange(n);t.addEditOperation(n,null),t.addEditOperation(new td.Range(i,o,i,o),s)}}computeCursorState(e,t){return this._isMovingLeft?new e6.Selection(this._selection.startLineNumber,this._selection.startColumn-1,this._selection.endLineNumber,this._selection.endColumn-1):new e6.Selection(this._selection.startLineNumber,this._selection.startColumn+1,this._selection.endLineNumber,this._selection.endColumn+1)}}class tw extends tI.EditorAction{constructor(e,t){super(t),this.left=e}run(e,t){if(!t.hasModel())return;let i=[];for(let e of t.getSelections())i.push(new tE(e,this.left));t.pushUndoStop(),t.executeCommands(this.id,i),t.pushUndoStop()}}(0,tI.registerEditorAction)(class extends tw{constructor(){super(!0,{id:"editor.action.moveCarretLeftAction",label:(0,L.localize2)(919,"Move Selected Text Left"),precondition:eq.EditorContextKeys.writable})}}),(0,tI.registerEditorAction)(class extends tw{constructor(){super(!1,{id:"editor.action.moveCarretRightAction",label:(0,L.localize2)(920,"Move Selected Text Right"),precondition:eq.EditorContextKeys.writable})}}),e.s([],28475);var tD=eH,tA=e.i(756903),tx=e.i(459678);class tk extends tD.EditorAction{constructor(){super({id:"editor.action.transposeLetters",label:(0,L.localize2)(921,"Transpose Letters"),precondition:eq.EditorContextKeys.writable,kbOpts:{kbExpr:eq.EditorContextKeys.textInputFocus,primary:0,mac:{primary:J.KeyMod.WinCtrl|J.KeyCode.KeyT},weight:eU.KeybindingWeight.EditorContrib}})}run(e,t){if(!t.hasModel())return;let i=t.getModel(),o=[];for(let e of t.getSelections()){if(!e.isEmpty())continue;let t=e.startLineNumber,r=e.startColumn,n=i.getLineMaxColumn(t);if(1===t&&(1===r||2===r&&2===n))continue;let s=r===n?e.getPosition():tx.MoveOperations.rightPosition(i,e.getPosition().lineNumber,e.getPosition().column),a=tx.MoveOperations.leftPosition(i,s),d=tx.MoveOperations.leftPosition(i,a),c=i.getValueInRange(td.Range.fromPositions(d,a)),l=i.getValueInRange(td.Range.fromPositions(a,s)),u=td.Range.fromPositions(d,s);o.push(new tA.ReplaceCommand(u,l+c))}o.length>0&&(t.pushUndoStop(),t.executeCommands(this.id,o),t.pushUndoStop())}}(0,tD.registerEditorAction)(tk),e.s([],238970);var tT=e.i(322193),tM=e.i(865562),tP=e.i(354244),tR=e.i(95526),tL=e.i(992488),tN=e.i(890916),tO=eH,tF=e.i(79522),tK=e.i(600345);let tW="9_cutcopypaste",tz=tP.isNative||document.queryCommandSupported("cut"),tV=tP.isNative||document.queryCommandSupported("copy"),tB=void 0!==tM.mainWindow.navigator.clipboard&&!tT.isFirefox||document.queryCommandSupported("paste");function tU(e){return e.register(),e}let tH=tz?tU(new tO.MultiCommand({id:"editor.action.clipboardCutAction",precondition:void 0,kbOpts:tP.isNative?{primary:J.KeyMod.CtrlCmd|J.KeyCode.KeyX,win:{primary:J.KeyMod.CtrlCmd|J.KeyCode.KeyX,secondary:[J.KeyMod.Shift|J.KeyCode.Delete]},weight:eU.KeybindingWeight.EditorContrib}:void 0,menuOpts:[{menuId:j.MenuId.MenubarEditMenu,group:"2_ccp",title:(0,L.localize)(922,"Cu&&t"),order:1},{menuId:j.MenuId.EditorContext,group:tW,title:(0,L.localize)(923,"Cut"),when:eq.EditorContextKeys.writable,order:1},{menuId:j.MenuId.CommandPalette,group:"",title:(0,L.localize)(923,"Cut"),order:1},{menuId:j.MenuId.SimpleEditorContext,group:tW,title:(0,L.localize)(923,"Cut"),when:eq.EditorContextKeys.writable,order:1}]})):void 0,tq=tV?tU(new tO.MultiCommand({id:"editor.action.clipboardCopyAction",precondition:void 0,kbOpts:tP.isNative?{primary:J.KeyMod.CtrlCmd|J.KeyCode.KeyC,win:{primary:J.KeyMod.CtrlCmd|J.KeyCode.KeyC,secondary:[J.KeyMod.CtrlCmd|J.KeyCode.Insert]},weight:eU.KeybindingWeight.EditorContrib}:void 0,menuOpts:[{menuId:j.MenuId.MenubarEditMenu,group:"2_ccp",title:(0,L.localize)(924,"&&Copy"),order:2},{menuId:j.MenuId.EditorContext,group:tW,title:(0,L.localize)(925,"Copy"),order:2},{menuId:j.MenuId.CommandPalette,group:"",title:(0,L.localize)(925,"Copy"),order:1},{menuId:j.MenuId.SimpleEditorContext,group:tW,title:(0,L.localize)(925,"Copy"),order:2}]})):void 0;j.MenuRegistry.appendMenuItem(j.MenuId.MenubarEditMenu,{submenu:j.MenuId.MenubarCopy,title:(0,L.localize2)(926,"Copy As"),group:"2_ccp",order:3}),j.MenuRegistry.appendMenuItem(j.MenuId.EditorContext,{submenu:j.MenuId.EditorContextCopy,title:(0,L.localize2)(926,"Copy As"),group:tW,order:3}),j.MenuRegistry.appendMenuItem(j.MenuId.EditorContext,{submenu:j.MenuId.EditorContextShare,title:(0,L.localize2)(927,"Share"),group:"11_share",order:-1,when:U.ContextKeyExpr.and(U.ContextKeyExpr.notEquals("resourceScheme","output"),eq.EditorContextKeys.editorTextFocus)}),j.MenuRegistry.appendMenuItem(j.MenuId.ExplorerContext,{submenu:j.MenuId.ExplorerContextShare,title:(0,L.localize2)(927,"Share"),group:"11_share",order:-1});let tG=tB?tU(new tO.MultiCommand({id:"editor.action.clipboardPasteAction",precondition:void 0,kbOpts:tP.isNative?{primary:J.KeyMod.CtrlCmd|J.KeyCode.KeyV,win:{primary:J.KeyMod.CtrlCmd|J.KeyCode.KeyV,secondary:[J.KeyMod.Shift|J.KeyCode.Insert]},linux:{primary:J.KeyMod.CtrlCmd|J.KeyCode.KeyV,secondary:[J.KeyMod.Shift|J.KeyCode.Insert]},weight:eU.KeybindingWeight.EditorContrib}:void 0,menuOpts:[{menuId:j.MenuId.MenubarEditMenu,group:"2_ccp",title:(0,L.localize)(928,"&&Paste"),order:4},{menuId:j.MenuId.EditorContext,group:tW,title:(0,L.localize)(929,"Paste"),when:eq.EditorContextKeys.writable,order:4},{menuId:j.MenuId.CommandPalette,group:"",title:(0,L.localize)(929,"Paste"),order:1},{menuId:j.MenuId.SimpleEditorContext,group:tW,title:(0,L.localize)(929,"Paste"),when:eq.EditorContextKeys.writable,order:4}]})):void 0;class t$ extends tO.EditorAction{constructor(){super({id:"editor.action.clipboardCopyWithSyntaxHighlightingAction",label:(0,L.localize2)(930,"Copy with Syntax Highlighting"),precondition:void 0,kbOpts:{kbExpr:eq.EditorContextKeys.textInputFocus,primary:0,weight:eU.KeybindingWeight.EditorContrib}})}run(e,t){let i=e.get(et.ILogService),o=e.get(tR.IClipboardService);i.trace("ExecCommandCopyWithSyntaxHighlightingAction#run"),!t.hasModel()||!t.getOption(ts.EditorOption.emptySelectionClipboard)&&t.getSelection().isEmpty()||(tL.CopyOptions.forceCopyWithSyntaxHighlighting=!0,t.focus(),i.trace("ExecCommandCopyWithSyntaxHighlightingAction (before execCommand copy)"),tQ(t,o),i.trace("ExecCommandCopyWithSyntaxHighlightingAction (after execCommand copy)"),tL.CopyOptions.forceCopyWithSyntaxHighlighting=!1)}}function tQ(e,t){if(tL.CopyOptions.electronBugWorkaroundCopyEventHasFired=!1,e.getContainerDomNode().ownerDocument.execCommand("copy"),tP.isNative&&!1===tL.CopyOptions.electronBugWorkaroundCopyEventHasFired){let{dataToCopy:i}=(0,tL.generateDataToCopyAndStoreInMemory)(e._getViewModel(),e.getOptions(),void 0,tT.isFirefox);t.writeText(i.text)}}function tj(e,t){e&&(e.addImplementation(1e4,"code-editor",(e,i)=>{let o=e.get(et.ILogService),r=e.get(tR.IClipboardService);o.trace("registerExecCommandImpl (addImplementation code-editor for : ",t,")");let n=e.get(tF.ICodeEditorService).getFocusedCodeEditor();if(n&&n.hasTextFocus()&&n.hasModel()){let e=n.getOption(ts.EditorOption.emptySelectionClipboard),i=n.getSelection();return!!(i&&i.isEmpty())&&!e||(n.getOption(ts.EditorOption.effectiveEditContext)&&"cut"===t?(tY(n),o.trace("registerExecCommandImpl (before execCommand copy)"),tQ(n,r),n.trigger(void 0,tK.Handler.Cut,void 0),o.trace("registerExecCommandImpl (after execCommand copy)")):(tY(n),o.trace("registerExecCommandImpl (before execCommand "+t+")"),"copy"===t?tQ(n,r):n.getContainerDomNode().ownerDocument.execCommand(t),o.trace("registerExecCommandImpl (after execCommand "+t+")")),!0)}return!1}),e.addImplementation(0,"generic-dom",(e,i)=>{let o=e.get(et.ILogService);return o.trace("registerExecCommandImpl (addImplementation generic-dom for : ",t,")"),o.trace("registerExecCommandImpl (before execCommand "+t+")"),(0,z.getActiveDocument)().execCommand(t),o.trace("registerExecCommandImpl (after execCommand "+t+")"),!0}))}function tY(e){if(e.getOption(ts.EditorOption.effectiveEditContext)){let t=tN.NativeEditContextRegistry.get(e.getId());t&&t.onWillCopy()}}tj(tH,"cut"),tj(tq,"copy"),tG&&(tG.addImplementation(1e4,"code-editor",(e,t)=>{let i=e.get(et.ILogService);i.trace("registerExecCommandImpl (addImplementation code-editor for : paste)");let o=e.get(tF.ICodeEditorService),r=e.get(tR.IClipboardService),n=o.getFocusedCodeEditor();if(n&&n.hasModel()&&n.hasTextFocus()){if(n.getOption(ts.EditorOption.effectiveEditContext)){let e=tN.NativeEditContextRegistry.get(n.getId());e&&e.onWillPaste()}i.trace("registerExecCommandImpl (before triggerPaste)");let e=r.triggerPaste((0,z.getActiveWindow)().vscodeWindowId);return e?(i.trace("registerExecCommandImpl (triggerPaste defined)"),e.then(async()=>(i.trace("registerExecCommandImpl (after triggerPaste)"),eN.CopyPasteController.get(n)?.finishedPaste()??Promise.resolve()))):(i.trace("registerExecCommandImpl (triggerPaste undefined)"),!tP.isWeb||(i.trace("registerExecCommandImpl (Paste handling on web)"),(async()=>{let e=await r.readText();if(""!==e){let t=tL.InMemoryClipboardMetadataManager.INSTANCE.get(e),o=!1,r=null,s=null;t&&(o=n.getOption(ts.EditorOption.emptySelectionClipboard)&&!!t.isFromEmptySelection,r=void 0!==t.multicursorText?t.multicursorText:null,s=t.mode),i.trace("registerExecCommandImpl (clipboardText.length : ",e.length," id : ",t?.id,")"),n.trigger("keyboard",tK.Handler.Paste,{text:e,pasteOnNewLine:o,multicursorText:r,mode:s})}})()))}return!1}),tG.addImplementation(0,"generic-dom",(e,t)=>(e.get(et.ILogService).trace("registerExecCommandImpl (addImplementation generic-dom for : paste)"),e.get(tR.IClipboardService).triggerPaste((0,z.getActiveWindow)().vscodeWindowId)??!1))),tV&&(0,tO.registerEditorAction)(t$),e.s(["CopyAction",0,tq,"CutAction",0,tH,"PasteAction",0,tG],453364);var tX=e.i(693205),tZ=eH,tJ=e.i(535186),t0=e.i(622649),t1=e.i(605019),t2=e.i(166774);function t3(e){return U.ContextKeyExpr.regex(t2.SUPPORTED_CODE_ACTIONS.keys()[0],RegExp("(\\s|^)"+(0,tX.escapeRegExpCharacters)(e.value)+"\\b"))}let t8={type:"object",defaultSnippets:[{body:{kind:""}}],properties:{kind:{type:"string",description:(0,L.localize)(932,"Kind of the code action to run.")},apply:{type:"string",description:(0,L.localize)(933,"Controls when the returned actions are applied."),default:t0.CodeActionAutoApply.IfSingle,enum:[t0.CodeActionAutoApply.First,t0.CodeActionAutoApply.IfSingle,t0.CodeActionAutoApply.Never],enumDescriptions:[(0,L.localize)(934,"Always apply the first returned code action."),(0,L.localize)(935,"Apply the first returned code action if it is the only one."),(0,L.localize)(936,"Do not apply the returned code actions.")]},preferred:{type:"boolean",default:!1,description:(0,L.localize)(937,"Controls if only preferred code actions should be returned.")}}};function t5(e,t,i,o,r=t0.CodeActionTriggerSource.Default){if(e.hasModel()){let n=t1.CodeActionController.get(e);n?.manualTriggerAtCurrentPosition(t,r,i,o)}}class t6 extends tZ.EditorAction{constructor(){super({id:tJ.quickFixCommandId,label:(0,L.localize2)(938,"Quick Fix..."),precondition:U.ContextKeyExpr.and(eq.EditorContextKeys.writable,eq.EditorContextKeys.hasCodeActionsProvider),kbOpts:{kbExpr:eq.EditorContextKeys.textInputFocus,primary:J.KeyMod.CtrlCmd|J.KeyCode.Period,weight:eU.KeybindingWeight.EditorContrib}})}run(e,t){return t5(t,(0,L.localize)(939,"No code actions available"),void 0,void 0,t0.CodeActionTriggerSource.QuickFix)}}class t7 extends tZ.EditorCommand{constructor(){super({id:tJ.codeActionCommandId,precondition:U.ContextKeyExpr.and(eq.EditorContextKeys.writable,eq.EditorContextKeys.hasCodeActionsProvider),metadata:{description:"Trigger a code action",args:[{name:"args",schema:t8}]}})}runEditorCommand(e,t,i){let o=t0.CodeActionCommandArgs.fromUser(i,{kind:eB.HierarchicalKind.Empty,apply:t0.CodeActionAutoApply.IfSingle});return t5(t,"string"==typeof i?.kind?o.preferred?(0,L.localize)(940,"No preferred code actions for '{0}' available",i.kind):(0,L.localize)(941,"No code actions for '{0}' available",i.kind):o.preferred?(0,L.localize)(942,"No preferred code actions available"):(0,L.localize)(943,"No code actions available"),{include:o.kind,includeSourceActions:!0,onlyIncludePreferredActions:o.preferred},o.apply)}}class t9 extends tZ.EditorAction{constructor(){super({id:tJ.refactorCommandId,label:(0,L.localize2)(944,"Refactor..."),precondition:U.ContextKeyExpr.and(eq.EditorContextKeys.writable,eq.EditorContextKeys.hasCodeActionsProvider),kbOpts:{kbExpr:eq.EditorContextKeys.textInputFocus,primary:J.KeyMod.CtrlCmd|J.KeyMod.Shift|J.KeyCode.KeyR,mac:{primary:J.KeyMod.WinCtrl|J.KeyMod.Shift|J.KeyCode.KeyR},weight:eU.KeybindingWeight.EditorContrib},contextMenuOpts:{group:"1_modification",order:2,when:U.ContextKeyExpr.and(eq.EditorContextKeys.writable,t3(t0.CodeActionKind.Refactor))},metadata:{description:"Refactor...",args:[{name:"args",schema:t8}]}})}run(e,t,i){let o=t0.CodeActionCommandArgs.fromUser(i,{kind:t0.CodeActionKind.Refactor,apply:t0.CodeActionAutoApply.Never});return t5(t,"string"==typeof i?.kind?o.preferred?(0,L.localize)(945,"No preferred refactorings for '{0}' available",i.kind):(0,L.localize)(946,"No refactorings for '{0}' available",i.kind):o.preferred?(0,L.localize)(947,"No preferred refactorings available"):(0,L.localize)(948,"No refactorings available"),{include:t0.CodeActionKind.Refactor.contains(o.kind)?o.kind:eB.HierarchicalKind.None,onlyIncludePreferredActions:o.preferred},o.apply,t0.CodeActionTriggerSource.Refactor)}}class t4 extends tZ.EditorAction{constructor(){super({id:tJ.sourceActionCommandId,label:(0,L.localize2)(949,"Source Action..."),precondition:U.ContextKeyExpr.and(eq.EditorContextKeys.writable,eq.EditorContextKeys.hasCodeActionsProvider),contextMenuOpts:{group:"1_modification",order:2.1,when:U.ContextKeyExpr.and(eq.EditorContextKeys.writable,t3(t0.CodeActionKind.Source))},metadata:{description:"Source Action...",args:[{name:"args",schema:t8}]}})}run(e,t,i){let o=t0.CodeActionCommandArgs.fromUser(i,{kind:t0.CodeActionKind.Source,apply:t0.CodeActionAutoApply.Never});return t5(t,"string"==typeof i?.kind?o.preferred?(0,L.localize)(950,"No preferred source actions for '{0}' available",i.kind):(0,L.localize)(951,"No source actions for '{0}' available",i.kind):o.preferred?(0,L.localize)(952,"No preferred source actions available"):(0,L.localize)(953,"No source actions available"),{include:t0.CodeActionKind.Source.contains(o.kind)?o.kind:eB.HierarchicalKind.None,includeSourceActions:!0,onlyIncludePreferredActions:o.preferred},o.apply,t0.CodeActionTriggerSource.SourceAction)}}class ie extends tZ.EditorAction{constructor(){super({id:tJ.organizeImportsCommandId,label:(0,L.localize2)(954,"Organize Imports"),precondition:U.ContextKeyExpr.and(eq.EditorContextKeys.writable,t3(t0.CodeActionKind.SourceOrganizeImports)),kbOpts:{kbExpr:eq.EditorContextKeys.textInputFocus,primary:J.KeyMod.Shift|J.KeyMod.Alt|J.KeyCode.KeyO,weight:eU.KeybindingWeight.EditorContrib},metadata:{description:(0,L.localize2)(955,"Organize imports in the current file. Also called 'Optimize Imports' by some tools")}})}run(e,t){return t5(t,(0,L.localize)(956,"No organize imports action available"),{include:t0.CodeActionKind.SourceOrganizeImports,includeSourceActions:!0},t0.CodeActionAutoApply.IfSingle,t0.CodeActionTriggerSource.OrganizeImports)}}class it extends tZ.EditorAction{constructor(){super({id:tJ.fixAllCommandId,label:(0,L.localize2)(957,"Fix All"),precondition:U.ContextKeyExpr.and(eq.EditorContextKeys.writable,t3(t0.CodeActionKind.SourceFixAll))})}run(e,t){return t5(t,(0,L.localize)(958,"No fix all action available"),{include:t0.CodeActionKind.SourceFixAll,includeSourceActions:!0},t0.CodeActionAutoApply.IfSingle,t0.CodeActionTriggerSource.FixAll)}}class ii extends tZ.EditorAction{constructor(){super({id:tJ.autoFixCommandId,label:(0,L.localize2)(959,"Auto Fix..."),precondition:U.ContextKeyExpr.and(eq.EditorContextKeys.writable,t3(t0.CodeActionKind.QuickFix)),kbOpts:{kbExpr:eq.EditorContextKeys.textInputFocus,primary:J.KeyMod.Alt|J.KeyMod.Shift|J.KeyCode.Period,mac:{primary:J.KeyMod.CtrlCmd|J.KeyMod.Alt|J.KeyCode.Period},weight:eU.KeybindingWeight.EditorContrib}})}run(e,t){return t5(t,(0,L.localize)(960,"No auto fixes available"),{include:t0.CodeActionKind.QuickFix,onlyIncludePreferredActions:!0},t0.CodeActionAutoApply.IfSingle,t0.CodeActionTriggerSource.AutoFix)}}var io=e.i(927028);(0,eH.registerEditorContribution)(t1.CodeActionController.ID,t1.CodeActionController,eH.EditorContributionInstantiation.Eventually),(0,eH.registerEditorContribution)(io.LightBulbWidget.ID,io.LightBulbWidget,eH.EditorContributionInstantiation.Lazy),(0,eH.registerEditorAction)(t6),(0,eH.registerEditorAction)(t9),(0,eH.registerEditorAction)(t4),(0,eH.registerEditorAction)(ie),(0,eH.registerEditorAction)(ii),(0,eH.registerEditorAction)(it),(0,eH.registerEditorCommand)(new t7),Q.Registry.as(ee.Extensions.Configuration).registerConfiguration({...ez.editorConfigurationBaseNode,properties:{"editor.codeActionWidget.showHeaders":{type:"boolean",scope:ee.ConfigurationScope.LANGUAGE_OVERRIDABLE,description:(0,L.localize)(961,"Enable/disable showing group headers in the Code Action menu."),default:!0}}}),Q.Registry.as(ee.Extensions.Configuration).registerConfiguration({...ez.editorConfigurationBaseNode,properties:{"editor.codeActionWidget.includeNearbyQuickFixes":{type:"boolean",scope:ee.ConfigurationScope.LANGUAGE_OVERRIDABLE,description:(0,L.localize)(962,"Enable/disable showing nearest Quick Fix within a line when not currently on a diagnostic."),default:!0}}}),Q.Registry.as(ee.Extensions.Configuration).registerConfiguration({...ez.editorConfigurationBaseNode,properties:{"editor.codeActions.triggerOnFocusChange":{type:"boolean",scope:ee.ConfigurationScope.LANGUAGE_OVERRIDABLE,markdownDescription:(0,L.localize)(963,"Enable triggering {0} when {1} is set to {2}. Code Actions must be set to {3} to be triggered for window and focus changes.","`#editor.codeActionsOnSave#`","`#files.autoSave#`","`afterDelay`","`always`"),default:!1}}}),e.s([],884670);var ir=e.i(619122),is=e.i(627251),ia=e.i(163731),id=eH,ic=e.i(604634),il=e.i(825433),iu=e.i(938319),ih=e.i(203037),ip=e.i(456976);(0,R.registerCss)(void 0);class ig{constructor(e,t,i){this.afterColumn=ip.Constants.MAX_SAFE_SMALL_INTEGER,this.afterLineNumber=e,this.heightInPx=t,this._onHeight=i,this.suppressMouseDown=!0,this.domNode=(0,z.createElement)("div")}onComputedHeight(e){void 0===this._lastHeight?this._lastHeight=e:this._lastHeight!==e&&(this._lastHeight=e,this._onHeight())}isVisible(){return 0!==this._lastHeight&&this.domNode.hasAttribute("monaco-visible-view-zone")}}class im{static{this._idPool=0}constructor(e,t){this.allowEditorOverflow=!1,this.suppressMouseDown=!0,this._commands=new Map,this._isEmpty=!0,this._editor=e,this._id=`codelens.widget-${im._idPool++}`,this.updatePosition(t),this._domNode=(0,z.createElement)("span"),this._domNode.className="codelens-decoration"}withCommands(e,t){this._commands.clear();let i=[],o=!1;for(let t=0;t<e.length;t++){let r=e[t];if(r&&(o=!0,r.command)){let o=(0,ih.renderLabelWithIcons)(r.command.title.trim());if(r.command.id){let e=`c${im._idPool++}`;i.push((0,z.$)("a",{id:e,title:r.command.tooltip,role:"button"},...o)),this._commands.set(e,r.command)}else i.push((0,z.$)("span",{title:r.command.tooltip},...o));t+1<e.length&&i.push((0,z.$)("span",void 0," | "))}}o?((0,z.reset)(this._domNode,...i),this._isEmpty&&t&&this._domNode.classList.add("fadein"),this._isEmpty=!1):(0,z.reset)(this._domNode,(0,z.$)("span",void 0,"no commands"))}getCommand(e){return e.parentElement===this._domNode?this._commands.get(e.id):void 0}getId(){return this._id}getDomNode(){return this._domNode}updatePosition(e){let t=this._editor.getModel().getLineFirstNonWhitespaceColumn(e);this._widgetPosition={position:{lineNumber:e,column:t},preference:[ia.ContentWidgetPositionPreference.ABOVE]}}getPosition(){return this._widgetPosition||null}}class iv{constructor(){this._removeDecorations=[],this._addDecorations=[],this._addDecorationsCallbacks=[]}addDecoration(e,t){this._addDecorations.push(e),this._addDecorationsCallbacks.push(t)}removeDecoration(e){this._removeDecorations.push(e)}commit(e){let t=e.deltaDecorations(this._removeDecorations,this._addDecorations);for(let e=0,i=t.length;e<i;e++)this._addDecorationsCallbacks[e](t[e])}}let iy=tc.ModelDecorationOptions.register({collapseOnReplaceEdit:!0,description:"codelens"});class i_{constructor(e,t,i,o,r,n){let s;this._isDisposed=!1,this._editor=t,this._data=e,this._decorationIds=[];const a=[];this._data.forEach((e,t)=>{e.symbol.command&&a.push(e.symbol),i.addDecoration({range:e.symbol.range,options:iy},e=>this._decorationIds[t]=e),s=s?td.Range.plusRange(s,e.symbol.range):td.Range.lift(e.symbol.range)}),this._viewZone=new ig(s.startLineNumber-1,r,n),this._viewZoneId=o.addZone(this._viewZone),a.length>0&&(this._createContentWidgetIfNecessary(),this._contentWidget.withCommands(a,!1))}_createContentWidgetIfNecessary(){this._contentWidget?this._editor.layoutContentWidget(this._contentWidget):(this._contentWidget=new im(this._editor,this._viewZone.afterLineNumber+1),this._editor.addContentWidget(this._contentWidget))}dispose(e,t){this._decorationIds.forEach(e.removeDecoration,e),this._decorationIds=[],t?.removeZone(this._viewZoneId),this._contentWidget&&(this._editor.removeContentWidget(this._contentWidget),this._contentWidget=void 0),this._isDisposed=!0}isDisposed(){return this._isDisposed}isValid(){return this._decorationIds.some((e,t)=>{let i=this._editor.getModel().getDecorationRange(e),o=this._data[t].symbol;return!!(i&&td.Range.isEmpty(o.range)===i.isEmpty())})}updateCodeLensSymbols(e,t){this._decorationIds.forEach(t.removeDecoration,t),this._decorationIds=[],this._data=e,this._data.forEach((e,i)=>{t.addDecoration({range:e.symbol.range,options:iy},e=>this._decorationIds[i]=e)})}updateHeight(e,t){this._viewZone.heightInPx=e,t.layoutZone(this._viewZoneId),this._contentWidget&&this._editor.layoutContentWidget(this._contentWidget)}computeIfNecessary(e){if(!this._viewZone.isVisible())return null;for(let t=0;t<this._decorationIds.length;t++){let i=e.getDecorationRange(this._decorationIds[t]);i&&(this._data[t].symbol.range=i)}return this._data}updateCommands(e){this._createContentWidgetIfNecessary(),this._contentWidget.withCommands(e,!0);for(let t=0;t<this._data.length;t++){let i=e[t];if(i){let{symbol:e}=this._data[t];e.command=i.command||e.command}}}getCommand(e){return this._contentWidget?.getCommand(e)}getLineNumber(){let e=this._editor.getModel().getDecorationRange(this._decorationIds[0]);return e?e.startLineNumber:-1}update(e){if(this.isValid()){let t=this._editor.getModel().getDecorationRange(this._decorationIds[0]);t&&(this._viewZone.afterLineNumber=t.startLineNumber-1,e.layoutZone(this._viewZoneId),this._contentWidget&&(this._contentWidget.updatePosition(t.startLineNumber),this._editor.layoutContentWidget(this._contentWidget)))}}getItems(){return this._data}}var iC=e.i(846960),iS=e.i(975445),ib=e.i(197946);let iI=class{static{this.ID="css.editor.codeLens"}constructor(e,t,i,o,r,n){this._editor=e,this._languageFeaturesService=t,this._commandService=o,this._notificationService=r,this._codeLensCache=n,this._disposables=new W.DisposableStore,this._localToDispose=new W.DisposableStore,this._lenses=[],this._oldCodeLensModels=new W.DisposableStore,this._provideCodeLensDebounce=i.for(t.codeLensProvider,"CodeLensProvide",{min:250}),this._resolveCodeLensesDebounce=i.for(t.codeLensProvider,"CodeLensResolve",{min:250,salt:"resolve"}),this._resolveCodeLensesScheduler=new G.RunOnceScheduler(()=>this._resolveCodeLensesInViewport(),this._resolveCodeLensesDebounce.default()),this._disposables.add(this._editor.onDidChangeModel(()=>this._onModelChange())),this._disposables.add(this._editor.onDidChangeModelLanguage(()=>this._onModelChange())),this._disposables.add(this._editor.onDidChangeConfiguration(e=>{(e.hasChanged(ts.EditorOption.fontInfo)||e.hasChanged(ts.EditorOption.codeLensFontSize)||e.hasChanged(ts.EditorOption.codeLensFontFamily))&&this._updateLensStyle(),e.hasChanged(ts.EditorOption.codeLens)&&this._onModelChange()})),this._disposables.add(t.codeLensProvider.onDidChange(this._onModelChange,this)),this._onModelChange(),this._updateLensStyle()}dispose(){this._localDispose(),this._localToDispose.dispose(),this._disposables.dispose(),this._oldCodeLensModels.dispose(),this._currentCodeLensModel?.dispose()}_getLayoutInfo(){let e=Math.max(1.3,this._editor.getOption(ts.EditorOption.lineHeight)/this._editor.getOption(ts.EditorOption.fontSize)),t=this._editor.getOption(ts.EditorOption.codeLensFontSize);return(!t||t<5)&&(t=.9*this._editor.getOption(ts.EditorOption.fontSize)|0),{fontSize:t,codeLensHeight:t*e|0}}_updateLensStyle(){let{codeLensHeight:e,fontSize:t}=this._getLayoutInfo(),i=this._editor.getOption(ts.EditorOption.codeLensFontFamily),o=this._editor.getOption(ts.EditorOption.fontInfo),{style:r}=this._editor.getContainerDomNode();r.setProperty("--vscode-editorCodeLens-lineHeight",`${e}px`),r.setProperty("--vscode-editorCodeLens-fontSize",`${t}px`),r.setProperty("--vscode-editorCodeLens-fontFeatureSettings",o.fontFeatureSettings),i&&(r.setProperty("--vscode-editorCodeLens-fontFamily",i),r.setProperty("--vscode-editorCodeLens-fontFamilyDefault",ic.EDITOR_FONT_DEFAULTS.fontFamily)),this._editor.changeViewZones(t=>{for(let i of this._lenses)i.updateHeight(e,t)})}_localDispose(){this._getCodeLensModelPromise?.cancel(),this._getCodeLensModelPromise=void 0,this._resolveCodeLensesPromise?.cancel(),this._resolveCodeLensesPromise=void 0,this._localToDispose.clear(),this._oldCodeLensModels.clear(),this._currentCodeLensModel?.dispose()}_onModelChange(){this._localDispose();let e=this._editor.getModel();if(!e||!this._editor.getOption(ts.EditorOption.codeLens)||e.isTooLargeForTokenization())return;let t=this._codeLensCache.get(e);if(t&&this._renderCodeLensSymbols(t),!this._languageFeaturesService.codeLensProvider.has(e)){t&&(0,G.disposableTimeout)(()=>{t===this._codeLensCache.get(e)&&(this._codeLensCache.delete(e),this._onModelChange())},3e4,this._localToDispose);return}for(let t of this._languageFeaturesService.codeLensProvider.all(e))if("function"==typeof t.onDidChange){let e=t.onDidChange(()=>i.schedule());this._localToDispose.add(e)}let i=new G.RunOnceScheduler(()=>{let t=Date.now();this._getCodeLensModelPromise?.cancel(),this._getCodeLensModelPromise=(0,G.createCancelablePromise)(t=>(0,il.getCodeLensModel)(this._languageFeaturesService.codeLensProvider,e,t)),this._getCodeLensModelPromise.then(o=>{this._currentCodeLensModel&&this._oldCodeLensModels.add(this._currentCodeLensModel),this._currentCodeLensModel=o,this._codeLensCache.put(e,o),i.delay=this._provideCodeLensDebounce.update(e,Date.now()-t),this._renderCodeLensSymbols(o),this._resolveCodeLensesInViewportSoon()},ir.onUnexpectedError)},this._provideCodeLensDebounce.get(e));this._localToDispose.add(i),this._localToDispose.add((0,W.toDisposable)(()=>this._resolveCodeLensesScheduler.cancel())),this._localToDispose.add(this._editor.onDidChangeModelContent(()=>{this._editor.changeDecorations(e=>{this._editor.changeViewZones(t=>{let i=[],o=-1;this._lenses.forEach(e=>{e.isValid()&&o!==e.getLineNumber()?(e.update(t),o=e.getLineNumber()):i.push(e)});let r=new iv;i.forEach(e=>{e.dispose(r,t),this._lenses.splice(this._lenses.indexOf(e),1)}),r.commit(e)})}),i.schedule(),this._resolveCodeLensesScheduler.cancel(),this._resolveCodeLensesPromise?.cancel(),this._resolveCodeLensesPromise=void 0})),this._localToDispose.add(this._editor.onDidFocusEditorText(()=>{i.schedule()})),this._localToDispose.add(this._editor.onDidBlurEditorText(()=>{i.cancel()})),this._localToDispose.add(this._editor.onDidScrollChange(e=>{e.scrollTopChanged&&this._lenses.length>0&&this._resolveCodeLensesInViewportSoon()})),this._localToDispose.add(this._editor.onDidLayoutChange(()=>{this._resolveCodeLensesInViewportSoon()})),this._localToDispose.add((0,W.toDisposable)(()=>{if(this._editor.getModel()){let e=is.StableEditorScrollState.capture(this._editor);this._editor.changeDecorations(e=>{this._editor.changeViewZones(t=>{this._disposeAllLenses(e,t)})}),e.restore(this._editor)}else this._disposeAllLenses(void 0,void 0)})),this._localToDispose.add(this._editor.onMouseDown(e=>{if(e.target.type!==ia.MouseTargetType.CONTENT_WIDGET)return;let t=e.target.element;if(t?.tagName==="SPAN"&&(t=t.parentElement),t?.tagName==="A")for(let e of this._lenses){let i=e.getCommand(t);if(i){this._commandService.executeCommand(i.id,...i.arguments||[]).catch(e=>this._notificationService.error(e));break}}})),i.schedule()}_disposeAllLenses(e,t){let i=new iv;for(let e of this._lenses)e.dispose(i,t);e&&i.commit(e),this._lenses.length=0}_renderCodeLensSymbols(e){let t;if(!this._editor.hasModel())return;let i=this._editor.getModel().getLineCount(),o=[];for(let r of e.lenses){let e=r.symbol.range.startLineNumber;e<1||e>i||(t&&t[t.length-1].symbol.range.startLineNumber===e?t.push(r):(t=[r],o.push(t)))}if(!o.length&&!this._lenses.length)return;let r=is.StableEditorScrollState.capture(this._editor),n=this._getLayoutInfo();this._editor.changeDecorations(e=>{this._editor.changeViewZones(t=>{let i=new iv,r=0,s=0;for(;s<o.length&&r<this._lenses.length;){let e=o[s][0].symbol.range.startLineNumber,a=this._lenses[r].getLineNumber();a<e?(this._lenses[r].dispose(i,t),this._lenses.splice(r,1)):a===e?(this._lenses[r].updateCodeLensSymbols(o[s],i),s++,r++):(this._lenses.splice(r,0,new i_(o[s],this._editor,i,t,n.codeLensHeight,()=>this._resolveCodeLensesInViewportSoon())),r++,s++)}for(;r<this._lenses.length;)this._lenses[r].dispose(i,t),this._lenses.splice(r,1);for(;s<o.length;)this._lenses.push(new i_(o[s],this._editor,i,t,n.codeLensHeight,()=>this._resolveCodeLensesInViewportSoon())),s++;i.commit(e)})}),r.restore(this._editor)}_resolveCodeLensesInViewportSoon(){this._editor.getModel()&&this._resolveCodeLensesScheduler.schedule()}_resolveCodeLensesInViewport(){this._resolveCodeLensesPromise?.cancel(),this._resolveCodeLensesPromise=void 0;let e=this._editor.getModel();if(!e)return;let t=[],i=[];if(this._lenses.forEach(o=>{let r=o.computeIfNecessary(e);r&&(t.push(r),i.push(o))}),0===t.length)return void this._oldCodeLensModels.clear();let o=Date.now(),r=(0,G.createCancelablePromise)(o=>Promise.all(t.map((t,r)=>{let n=Array(t.length);return Promise.all(t.map((t,i)=>t.symbol.command||"function"!=typeof t.provider.resolveCodeLens?(n[i]=t.symbol,Promise.resolve(void 0)):Promise.resolve(t.provider.resolveCodeLens(e,t.symbol,o)).then(e=>{n[i]=e},ir.onUnexpectedExternalError))).then(()=>{o.isCancellationRequested||i[r].isDisposed()||i[r].updateCommands(n)})})));this._resolveCodeLensesPromise=r,this._resolveCodeLensesPromise.then(()=>{let t=this._resolveCodeLensesDebounce.update(e,Date.now()-o);this._resolveCodeLensesScheduler.delay=t,this._currentCodeLensModel&&this._codeLensCache.put(e,this._currentCodeLensModel),this._oldCodeLensModels.clear(),r===this._resolveCodeLensesPromise&&(this._resolveCodeLensesPromise=void 0)},e=>{(0,ir.onUnexpectedError)(e),r===this._resolveCodeLensesPromise&&(this._resolveCodeLensesPromise=void 0)})}async getModel(){return await this._getCodeLensModelPromise,await this._resolveCodeLensesPromise,this._currentCodeLensModel?.isDisposed?void 0:this._currentCodeLensModel}};iI=(0,eR.__decorate)([(0,eR.__param)(1,eV.ILanguageFeaturesService),(0,eR.__param)(2,ib.ILanguageFeatureDebounceService),(0,eR.__param)(3,iC.ICommandService),(0,eR.__param)(4,iS.INotificationService),(0,eR.__param)(5,iu.ICodeLensCache)],iI),(0,id.registerEditorContribution)(iI.ID,iI,id.EditorContributionInstantiation.AfterFirstRender),(0,id.registerEditorAction)(class extends id.EditorAction{constructor(){super({id:"codelens.showLensesInCurrentLine",precondition:eq.EditorContextKeys.hasCodeLensProvider,label:(0,L.localize2)(984,"Show CodeLens Commands for Current Line")})}async run(e,t){if(!t.hasModel())return;let i=e.get(el.IQuickInputService),o=e.get(iC.ICommandService),r=e.get(iS.INotificationService),n=t.getSelection().positionLineNumber,s=t.getContribution(iI.ID);if(!s)return;let a=await s.getModel();if(!a)return;let d=[];for(let e of a.lenses)e.symbol.command&&e.symbol.range.startLineNumber===n&&d.push({label:e.symbol.command.title,command:e.symbol.command});if(0===d.length)return;let c=await i.pick(d,{canPickMany:!1,placeHolder:(0,L.localize)(985,"Select a command")});if(!c)return;let l=c.command;if(a.isDisposed){let e=await s.getModel(),t=e?.lenses.find(e=>e.symbol.range.startLineNumber===n&&e.symbol.command?.title===l.title);if(!t||!t.symbol.command)return;l=t.symbol.command}try{await o.executeCommand(l.id,...l.arguments||[])}catch(e){r.error(e)}}}),e.s(["CodeLensContribution",0,iI],671524);var iE=e.i(704994),iw=e.i(802136),iD=e.i(527589),iA=e.i(373550),ix=e.i(59876),ik=e.i(854782),iT=W,iM=e.i(11255),iP=e.i(844648),iR=e.i(57067);class iL extends iT.Disposable{static{this.ID="editor.contrib.colorContribution"}static{this.RECOMPUTE_TIME=1e3}constructor(e){super(),this._editor=e,this._register(e.onMouseDown(e=>this.onMouseDown(e)))}dispose(){super.dispose()}onMouseDown(e){let t=this._editor.getOption(ts.EditorOption.colorDecoratorsActivatedOn);if("click"!==t&&"clickAndHover"!==t||!(0,iR.isOnColorDecorator)(e))return;let i=this._editor.getContribution(iM.ContentHoverController.ID);if(!i||i.isColorPickerVisible)return;let o=e.target.range;if(!o)return;let r=new td.Range(o.startLineNumber,o.startColumn+1,o.endLineNumber,o.endColumn+1);i.showContentHover(r,iP.HoverStartMode.Immediate,iP.HoverStartSource.Click,!1)}}var iN=e.i(793176),iO=eH,iF=e.i(488259),iK=W,iW=e.i(707897),iz=e.i(107707),iV=W,iB=e.i(970672),iU=e.i(748128),iH=e.i(697430);class iq{constructor(e,t,i,o){this.owner=e,this.range=t,this.model=i,this.provider=o}static fromBaseColor(e,t){return new iq(e,t.range,t.model,t.provider)}}class iG extends iV.Disposable{constructor(e,t,i,o){super();const r=e.getModel(),n=i.model;this.color=i.model.color,this.colorPicker=this._register(new iH.ColorPickerWidget(t.fragment,n,e.getOption(ts.EditorOption.pixelRatio),o,iU.ColorPickerWidgetType.Standalone)),this._register(n.onColorFlushed(e=>{this.color=e})),this._register(n.onDidChangeColor(e=>{(0,iU.updateColorPresentations)(r,n,e,i.range,i)})),this._register(e.onDidChangeModelContent(i=>{t.hide(),e.focus()})),(0,iU.updateColorPresentations)(r,n,this.color,i.range,i)}}let i$=class{constructor(e,t){this._editor=e,this._themeService=t,this.hoverOrdinal=2}async createColorHover(e,t,i){if(!this._editor.hasModel()||!ix.ColorDetector.get(this._editor))return null;let o=await (0,iA.getColors)(i,this._editor.getModel(),iE.CancellationToken.None),r=null,n=null;for(let t of o){let i=t.colorInfo;td.Range.containsRange(i.range,e.range)&&(r=i,n=t.provider)}let s=r??e,a=n??t,d=!!r;return{colorHover:iq.fromBaseColor(this,await (0,iU.createColorHover)(this._editor.getModel(),s,a)),foundInEditor:d}}async updateEditorModel(e){if(!this._editor.hasModel())return;let t=e.model,i=new td.Range(e.range.startLineNumber,e.range.startColumn,e.range.endLineNumber,e.range.endColumn);this._color&&(await (0,iU.updateColorPresentations)(this._editor.getModel(),t,this._color,i,e),i=(0,iU.updateEditorModel)(this._editor,i,t))}renderHoverParts(e,t){if(0!==t.length&&this._editor.hasModel())return this._setMinimumDimensions(e),this._renderedParts=new iG(this._editor,e,t[0],this._themeService),this._renderedParts}_setMinimumDimensions(e){let t=this._editor.getOption(ts.EditorOption.lineHeight)+8;e.setMinimumDimensions(new z.Dimension(302,t))}get _color(){return this._renderedParts?.color}};i$=(0,eR.__decorate)([(0,eR.__param)(1,iB.IThemeService)],i$);var iQ=e.i(487495);(0,R.registerCss)(void 0);class ij{constructor(e,t){this.value=e,this.foundInEditor=t}}let iY=class extends iK.Disposable{static{u=this}static{this.ID="editor.contrib.standaloneColorPickerWidget"}constructor(e,t,i,o,r,n,s,a){super(),this._editor=e,this._standaloneColorPickerVisible=t,this._standaloneColorPickerFocused=i,this._keybindingService=r,this._languageFeaturesService=n,this._editorWorkerService=s,this._hoverService=a,this.allowEditorOverflow=!0,this._position=void 0,this._body=(0,z.createElement)("div"),this._colorHover=null,this._selectionSetInEditor=!1,this._onResult=this._register(new K.Emitter),this.onResult=this._onResult.event,this._renderedHoverParts=this._register(new iK.MutableDisposable),this._renderedStatusBar=this._register(new iK.MutableDisposable),this._standaloneColorPickerVisible.set(!0),this._standaloneColorPickerParticipant=o.createInstance(i$,this._editor),this._position=this._editor._getViewModel()?.getPrimaryCursorState().modelState.position;const d=this._editor.getSelection(),c=d?{startLineNumber:d.startLineNumber,startColumn:d.startColumn,endLineNumber:d.endLineNumber,endColumn:d.endColumn}:{startLineNumber:0,endLineNumber:0,endColumn:0,startColumn:0},l=this._register((0,z.trackFocus)(this._body));this._register(l.onDidBlur(e=>{this.hide()})),this._register(l.onDidFocus(e=>{this.focus()})),this._register(this._editor.onDidChangeCursorPosition(()=>{this._selectionSetInEditor?this._selectionSetInEditor=!1:this.hide()})),this._register(this._editor.onMouseMove(e=>{let t=e.target.element?.classList;t&&t.contains("colorpicker-color-decoration")&&this.hide()})),this._register(this.onResult(e=>{this._render(e.value,e.foundInEditor)})),this._start(c),this._body.style.zIndex="50",this._editor.addContentWidget(this)}updateEditor(){this._colorHover&&this._standaloneColorPickerParticipant.updateEditorModel(this._colorHover)}getId(){return u.ID}getDomNode(){return this._body}getPosition(){if(!this._position)return null;let e=this._editor.getOption(ts.EditorOption.hover).above;return{position:this._position,secondaryPosition:this._position,preference:e?[ia.ContentWidgetPositionPreference.ABOVE,ia.ContentWidgetPositionPreference.BELOW]:[ia.ContentWidgetPositionPreference.BELOW,ia.ContentWidgetPositionPreference.ABOVE],positionAffinity:e7.PositionAffinity.None}}hide(){this.dispose(),this._standaloneColorPickerVisible.set(!1),this._standaloneColorPickerFocused.set(!1),this._editor.removeContentWidget(this),this._editor.focus()}focus(){this._standaloneColorPickerFocused.set(!0),this._body.focus()}async _start(e){let t=await this._computeAsync(e);t&&this._onResult.fire(new ij(t.result,t.foundInEditor))}async _computeAsync(e){if(!this._editor.hasModel())return null;let t=await this._standaloneColorPickerParticipant.createColorHover({range:e,color:{red:0,green:0,blue:0,alpha:1}},new ik.DefaultDocumentColorProvider(this._editorWorkerService),this._languageFeaturesService.colorProvider);return t?{result:t.colorHover,foundInEditor:t.foundInEditor}:null}_render(e,t){let i=(0,z.createDocumentFragment)();this._renderedStatusBar.value=this._register(new iW.EditorHoverStatusBar(this._keybindingService,this._hoverService));let o={fragment:i,statusBar:this._renderedStatusBar.value,onContentsChanged:()=>{},setMinimumDimensions:()=>{},hide:()=>this.hide(),focus:()=>this.focus()};if(this._colorHover=e,this._renderedHoverParts.value=this._standaloneColorPickerParticipant.renderHoverParts(o,[e]),!this._renderedHoverParts.value){this._renderedStatusBar.clear(),this._renderedHoverParts.clear();return}let r=this._renderedHoverParts.value.colorPicker;this._body.classList.add("standalone-colorpicker-body"),this._body.style.maxHeight=Math.max(this._editor.getLayoutInfo().height/4,250)+"px",this._body.style.maxWidth=Math.max(.66*this._editor.getLayoutInfo().width,500)+"px",this._body.tabIndex=0,this._body.appendChild(i),r.layout();let n=r.body,s=n.saturationBox.domNode.clientWidth,a=n.domNode.clientWidth-s-22-8,d=r.body.enterButton;d?.onClicked(()=>{this.updateEditor(),this.hide()});let c=r.header;c.pickedColorNode.style.width=s+8+"px",c.originalColorNode.style.width=a+"px";let l=r.header.closeButton;l?.onClicked(()=>{this.hide()}),t&&(d&&(d.button.textContent="Replace"),this._selectionSetInEditor=!0,this._editor.setSelection(e.range)),this._editor.layoutContentWidget(this)}};iY=u=(0,eR.__decorate)([(0,eR.__param)(3,iF.IInstantiationService),(0,eR.__param)(4,N.IKeybindingService),(0,eR.__param)(5,eV.ILanguageFeaturesService),(0,eR.__param)(6,iz.IEditorWorkerService),(0,eR.__param)(7,iQ.IHoverService)],iY);var iX=W;let iZ=class extends iX.Disposable{static{h=this}static{this.ID="editor.contrib.standaloneColorPickerController"}constructor(e,t,i){super(),this._editor=e,this._instantiationService=i,this._standaloneColorPickerWidget=null,this._standaloneColorPickerVisible=eq.EditorContextKeys.standaloneColorPickerVisible.bindTo(t),this._standaloneColorPickerFocused=eq.EditorContextKeys.standaloneColorPickerFocused.bindTo(t)}showOrFocus(){this._editor.hasModel()&&(this._standaloneColorPickerVisible.get()?this._standaloneColorPickerFocused.get()||this._standaloneColorPickerWidget?.focus():this._standaloneColorPickerWidget=this._instantiationService.createInstance(iY,this._editor,this._standaloneColorPickerVisible,this._standaloneColorPickerFocused))}hide(){this._standaloneColorPickerFocused.set(!1),this._standaloneColorPickerVisible.set(!1),this._standaloneColorPickerWidget?.hide(),this._editor.focus()}insertColor(){this._standaloneColorPickerWidget?.updateEditor(),this.hide()}static get(e){return e.getContribution(h.ID)}};iZ=h=(0,eR.__decorate)([(0,eR.__param)(1,H.IContextKeyService),(0,eR.__param)(2,iF.IInstantiationService)],iZ);class iJ extends iO.EditorAction2{constructor(){super({id:"editor.action.showOrFocusStandaloneColorPicker",title:{...(0,L.localize2)(989,"Show or Focus Standalone Color Picker"),mnemonicTitle:(0,L.localize)(990,"&&Show or Focus Standalone Color Picker")},precondition:void 0,menu:[{id:j.MenuId.CommandPalette}],metadata:{description:(0,L.localize2)(991,"Show or focus a standalone color picker which uses the default color provider. It displays hex/rgb/hsl colors.")}})}runEditorCommand(e,t){iZ.get(t)?.showOrFocus()}}class i0 extends iO.EditorAction{constructor(){super({id:"editor.action.hideColorPicker",label:(0,L.localize2)(992,"Hide the Color Picker"),precondition:eq.EditorContextKeys.standaloneColorPickerVisible.isEqualTo(!0),kbOpts:{primary:J.KeyCode.Escape,weight:eU.KeybindingWeight.EditorContrib},metadata:{description:(0,L.localize2)(993,"Hide the standalone color picker.")}})}run(e,t){iZ.get(t)?.hide()}}class i1 extends iO.EditorAction{constructor(){super({id:"editor.action.insertColorWithStandaloneColorPicker",label:(0,L.localize2)(994,"Insert Color with Standalone Color Picker"),precondition:eq.EditorContextKeys.standaloneColorPickerFocused.isEqualTo(!0),kbOpts:{primary:J.KeyCode.Enter,weight:eU.KeybindingWeight.EditorContrib},metadata:{description:(0,L.localize2)(995,"Insert hex/rgb/hsl colors with the focused standalone color picker.")}})}run(e,t){iZ.get(t)?.insertColor()}}(0,eH.registerEditorAction)(i0),(0,eH.registerEditorAction)(i1),(0,j.registerAction2)(iJ),(0,eH.registerEditorContribution)(iL.ID,iL,eH.EditorContributionInstantiation.BeforeFirstInteraction),(0,eH.registerEditorContribution)(iZ.ID,iZ,eH.EditorContributionInstantiation.AfterFirstRender),(0,eH.registerEditorContribution)(ix.ColorDetector.ID,ix.ColorDetector,eH.EditorContributionInstantiation.AfterFirstRender),(0,eG.registerEditorFeature)(ik.DefaultDocumentColorProviderFeature),iD.HoverParticipantRegistry.register(iN.HoverColorPickerParticipant),eg.CommandsRegistry.registerCommand("_executeDocumentColorProvider",function(e,...t){let[i]=t;if(!(i instanceof iw.URI))throw(0,ir.illegalArgument)();let{model:o,colorProviderRegistry:r,defaultColorDecoratorsEnablement:n}=(0,iA._setupColorCommand)(e,i);return(0,iA._findColorData)(new iA.ExtColorDataCollector,r,o,iE.CancellationToken.None,n)}),eg.CommandsRegistry.registerCommand("_executeColorPresentationProvider",function(e,...t){let[i,o]=t;if(!o)return;let{uri:r,range:n}=o;if(!(r instanceof iw.URI)||!Array.isArray(i)||4!==i.length||!td.Range.isIRange(n))throw(0,ir.illegalArgument)();let{model:s,colorProviderRegistry:a,defaultColorDecoratorsEnablement:d}=(0,iA._setupColorCommand)(e,r),[c,l,u,h]=i;return(0,iA._findColorData)(new iA.ColorPresentationsCollector({range:n,color:{red:c,green:l,blue:u,alpha:h}}),a,s,iE.CancellationToken.None,d)}),e.s([],889226);var i2=eH,i3=e.i(841836),i8=e.i(601293),i5=e.i(315380);class i6{constructor(e,t,i){this.languageConfigurationService=i,this._selection=e,this._insertSpace=t,this._usedEndToken=null}static _haystackHasNeedleAtOffset(e,t,i){if(i<0)return!1;let o=t.length;if(i+o>e.length)return!1;for(let r=0;r<o;r++){let o=e.charCodeAt(i+r),n=t.charCodeAt(r);if(o!==n&&(!(o>=i8.CharCode.A)||!(o<=i8.CharCode.Z)||o+32!==n)&&(!(n>=i8.CharCode.A)||!(n<=i8.CharCode.Z)||n+32!==o))return!1}return!0}_createOperationsForBlockComment(e,t,i,o,r,n){let s,a=e.startLineNumber,d=e.startColumn,c=e.endLineNumber,l=e.endColumn,u=r.getLineContent(a),h=r.getLineContent(c),p=u.lastIndexOf(t,d-1+t.length),g=h.indexOf(i,l-1-i.length);if(-1!==p&&-1!==g)if(a===c)u.substring(p+t.length,g).indexOf(i)>=0&&(p=-1,g=-1);else{let e=u.substring(p+t.length),o=h.substring(0,g);(e.indexOf(i)>=0||o.indexOf(i)>=0)&&(p=-1,g=-1)}for(let r of(-1!==p&&-1!==g?(o&&p+t.length<u.length&&u.charCodeAt(p+t.length)===i8.CharCode.Space&&(t+=" "),o&&g>0&&h.charCodeAt(g-1)===i8.CharCode.Space&&(i=" "+i,g-=1),s=i6._createRemoveBlockCommentOperations(new td.Range(a,p+t.length+1,c,g+1),t,i)):(s=i6._createAddBlockCommentOperations(e,t,i,this._insertSpace),this._usedEndToken=1===s.length?i:null),s))n.addTrackedEditOperation(r.range,r.text)}static _createRemoveBlockCommentOperations(e,t,i){let o=[];return td.Range.isEmpty(e)?o.push(i5.EditOperation.delete(new td.Range(e.startLineNumber,e.startColumn-t.length,e.endLineNumber,e.endColumn+i.length))):(o.push(i5.EditOperation.delete(new td.Range(e.startLineNumber,e.startColumn-t.length,e.startLineNumber,e.startColumn))),o.push(i5.EditOperation.delete(new td.Range(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn+i.length)))),o}static _createAddBlockCommentOperations(e,t,i,o){let r=[];return td.Range.isEmpty(e)?r.push(i5.EditOperation.replace(new td.Range(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn),t+" "+i)):(r.push(i5.EditOperation.insert(new ta.Position(e.startLineNumber,e.startColumn),t+(o?" ":""))),r.push(i5.EditOperation.insert(new ta.Position(e.endLineNumber,e.endColumn),(o?" ":"")+i))),r}getEditOperations(e,t){let i=this._selection.startLineNumber,o=this._selection.startColumn;e.tokenization.tokenizeIfCheap(i);let r=e.getLanguageIdAtPosition(i,o),n=this.languageConfigurationService.getLanguageConfiguration(r).comments;n&&n.blockCommentStartToken&&n.blockCommentEndToken&&this._createOperationsForBlockComment(this._selection,n.blockCommentStartToken,n.blockCommentEndToken,this._insertSpace,e,t)}computeCursorState(e,t){let i=t.getInverseEditOperations();if(2===i.length){let e=i[0],t=i[1];return new e6.Selection(e.range.endLineNumber,e.range.endColumn,t.range.startLineNumber,t.range.startColumn)}{let e=i[0].range,t=this._usedEndToken?-this._usedEndToken.length-1:0;return new e6.Selection(e.endLineNumber,e.endColumn+t,e.endLineNumber,e.endColumn+t)}}}(o=p||(p={}))[o.Toggle=0]="Toggle",o[o.ForceAdd=1]="ForceAdd",o[o.ForceRemove=2]="ForceRemove";class i7{constructor(e,t,i,o,r,n,s){this.languageConfigurationService=e,this._selection=t,this._indentSize=i,this._type=o,this._insertSpace=r,this._selectionId=null,this._deltaColumn=0,this._moveEndPositionDown=!1,this._ignoreEmptyLines=n,this._ignoreFirstLine=s||!1}static _gatherPreflightCommentStrings(e,t,i,o){e.tokenization.tokenizeIfCheap(t);let r=e.getLanguageIdAtPosition(t,1),n=o.getLanguageConfiguration(r).comments,s=n?n.lineCommentToken:null;if(!s)return null;let a=[];for(let e=0,o=i-t+1;e<o;e++)a[e]={ignore:!1,commentStr:s,commentStrOffset:0,commentStrLength:s.length};return a}static _analyzeLines(e,t,i,o,r,n,s,a,d){let c,l=!0,u=a.getLanguageConfiguration(d).comments,h=u?.lineCommentNoIndent??!1;c=e===p.Toggle||e!==p.ForceAdd;for(let a=0,d=o.length;a<d;a++){let d=o[a],u=r+a;if(u===r&&s){d.ignore=!0;continue}let g=i.getLineContent(u),m=(0,tX.firstNonWhitespaceIndex)(g);if(-1===m){d.ignore=n,d.commentStrOffset=h?0:g.length;continue}l=!1;let v=h?0:m;if(d.ignore=!1,d.commentStrOffset=v,c&&!i6._haystackHasNeedleAtOffset(g,d.commentStr,v)&&(e===p.Toggle?c=!1:e===p.ForceAdd||(d.ignore=!0)),c&&t){let e=m+d.commentStrLength;e<g.length&&g.charCodeAt(e)===i8.CharCode.Space&&(d.commentStrLength+=1)}}if(e===p.Toggle&&l){c=!1;for(let e=0,t=o.length;e<t;e++)o[e].ignore=!1}return{supported:!0,shouldRemoveComments:c,lines:o}}static _gatherPreflightData(e,t,i,o,r,n,s,a){let d=i7._gatherPreflightCommentStrings(i,o,r,a),c=i.getLanguageIdAtPosition(o,1);return null===d?{supported:!1}:i7._analyzeLines(e,t,i,d,o,n,s,a,c)}_executeLineComments(e,t,i,o){let r;i.shouldRemoveComments?r=i7._createRemoveLineCommentsOperations(i.lines,o.startLineNumber):(i7._normalizeInsertionPoint(e,i.lines,o.startLineNumber,this._indentSize),r=this._createAddLineCommentsOperations(i.lines,o.startLineNumber));let n=new ta.Position(o.positionLineNumber,o.positionColumn);for(let i=0,o=r.length;i<o;i++)t.addEditOperation(r[i].range,r[i].text),td.Range.isEmpty(r[i].range)&&td.Range.getStartPosition(r[i].range).equals(n)&&e.getLineContent(n.lineNumber).length+1===n.column&&(this._deltaColumn=(r[i].text||"").length);this._selectionId=t.trackSelection(o)}_attemptRemoveBlockComment(e,t,i,o){let r=t.startLineNumber,n=t.endLineNumber,s=o.length+Math.max(e.getLineFirstNonWhitespaceColumn(t.startLineNumber),t.startColumn),a=e.getLineContent(r).lastIndexOf(i,s-1),d=e.getLineContent(n).indexOf(o,t.endColumn-1-i.length);return(-1!==a&&-1===d&&(d=e.getLineContent(r).indexOf(o,a+i.length),n=r),-1===a&&-1!==d&&(a=e.getLineContent(n).lastIndexOf(i,d),r=n),t.isEmpty()&&(-1===a||-1===d)&&-1!==(a=e.getLineContent(r).indexOf(i))&&(d=e.getLineContent(r).indexOf(o,a+i.length)),-1!==a&&e.getLineContent(r).charCodeAt(a+i.length)===i8.CharCode.Space&&(i+=" "),-1!==d&&e.getLineContent(n).charCodeAt(d-1)===i8.CharCode.Space&&(o=" "+o,d-=1),-1!==a&&-1!==d)?i6._createRemoveBlockCommentOperations(new td.Range(r,a+i.length+1,n,d+1),i,o):null}_executeBlockComment(e,t,i){e.tokenization.tokenizeIfCheap(i.startLineNumber);let o=e.getLanguageIdAtPosition(i.startLineNumber,1),r=this.languageConfigurationService.getLanguageConfiguration(o).comments;if(!r||!r.blockCommentStartToken||!r.blockCommentEndToken)return;let n=r.blockCommentStartToken,s=r.blockCommentEndToken,a=this._attemptRemoveBlockComment(e,i,n,s);if(!a){if(i.isEmpty()){let t=e.getLineContent(i.startLineNumber),o=(0,tX.firstNonWhitespaceIndex)(t);-1===o&&(o=t.length),a=i6._createAddBlockCommentOperations(new td.Range(i.startLineNumber,o+1,i.startLineNumber,t.length+1),n,s,this._insertSpace)}else a=i6._createAddBlockCommentOperations(new td.Range(i.startLineNumber,e.getLineFirstNonWhitespaceColumn(i.startLineNumber),i.endLineNumber,e.getLineMaxColumn(i.endLineNumber)),n,s,this._insertSpace);1===a.length&&(this._deltaColumn=n.length+1)}for(let e of(this._selectionId=t.trackSelection(i),a))t.addEditOperation(e.range,e.text)}getEditOperations(e,t){let i=this._selection;if(this._moveEndPositionDown=!1,i.startLineNumber===i.endLineNumber&&this._ignoreFirstLine){t.addEditOperation(new td.Range(i.startLineNumber,e.getLineMaxColumn(i.startLineNumber),i.startLineNumber+1,1),i.startLineNumber===e.getLineCount()?"":"\n"),this._selectionId=t.trackSelection(i);return}i.startLineNumber<i.endLineNumber&&1===i.endColumn&&(this._moveEndPositionDown=!0,i=i.setEndPosition(i.endLineNumber-1,e.getLineMaxColumn(i.endLineNumber-1)));let o=i7._gatherPreflightData(this._type,this._insertSpace,e,i.startLineNumber,i.endLineNumber,this._ignoreEmptyLines,this._ignoreFirstLine,this.languageConfigurationService);return o.supported?this._executeLineComments(e,t,o,i):this._executeBlockComment(e,t,i)}computeCursorState(e,t){let i=t.getTrackedSelection(this._selectionId);return this._moveEndPositionDown&&(i=i.setEndPosition(i.endLineNumber+1,1)),new e6.Selection(i.selectionStartLineNumber,i.selectionStartColumn+this._deltaColumn,i.positionLineNumber,i.positionColumn+this._deltaColumn)}static _createRemoveLineCommentsOperations(e,t){let i=[];for(let o=0,r=e.length;o<r;o++){let r=e[o];r.ignore||i.push(i5.EditOperation.delete(new td.Range(t+o,r.commentStrOffset+1,t+o,r.commentStrOffset+r.commentStrLength+1)))}return i}_createAddLineCommentsOperations(e,t){let i=[],o=this._insertSpace?" ":"";for(let r=0,n=e.length;r<n;r++){let n=e[r];n.ignore||i.push(i5.EditOperation.insert(new ta.Position(t+r,n.commentStrOffset+1),n.commentStr+o))}return i}static nextVisibleColumn(e,t,i,o){return i?e+(t-e%t):e+o}static _normalizeInsertionPoint(e,t,i,o){let r,n,s=ip.Constants.MAX_SAFE_SMALL_INTEGER;for(let r=0,n=t.length;r<n;r++){if(t[r].ignore)continue;let n=e.getLineContent(i+r),a=0;for(let e=0,i=t[r].commentStrOffset;a<s&&e<i;e++)a=i7.nextVisibleColumn(a,o,n.charCodeAt(e)===i8.CharCode.Tab,1);a<s&&(s=a)}s=Math.floor(s/o)*o;for(let a=0,d=t.length;a<d;a++){if(t[a].ignore)continue;let d=e.getLineContent(i+a),c=0;for(r=0,n=t[a].commentStrOffset;c<s&&r<n;r++)c=i7.nextVisibleColumn(c,o,d.charCodeAt(r)===i8.CharCode.Tab,1);c>s?t[a].commentStrOffset=r-1:t[a].commentStrOffset=r}}}class i9 extends i2.EditorAction{constructor(e,t){super(t),this._type=e}run(e,t){let i=e.get(i3.ILanguageConfigurationService);if(!t.hasModel())return;let o=t.getModel(),r=[],n=o.getOptions(),s=t.getOption(ts.EditorOption.comments),a=t.getSelections().map((e,t)=>({selection:e,index:t,ignoreFirstLine:!1}));a.sort((e,t)=>td.Range.compareRangesUsingStarts(e.selection,t.selection));let d=a[0];for(let e=1;e<a.length;e++){let t=a[e];d.selection.endLineNumber===t.selection.startLineNumber&&(d.index<t.index?t.ignoreFirstLine=!0:(d.ignoreFirstLine=!0,d=t))}for(let e of a)r.push(new i7(i,e.selection,n.indentSize,this._type,s.insertSpace,s.ignoreEmptyLines,e.ignoreFirstLine));t.pushUndoStop(),t.executeCommands(this.id,r),t.pushUndoStop()}}class i4 extends i2.EditorAction{constructor(){super({id:"editor.action.blockComment",label:(0,L.localize2)(1e3,"Toggle Block Comment"),precondition:eq.EditorContextKeys.writable,kbOpts:{kbExpr:eq.EditorContextKeys.editorTextFocus,primary:J.KeyMod.Shift|J.KeyMod.Alt|J.KeyCode.KeyA,linux:{primary:J.KeyMod.CtrlCmd|J.KeyMod.Shift|J.KeyCode.KeyA},weight:eU.KeybindingWeight.EditorContrib},menuOpts:{menuId:j.MenuId.MenubarEditMenu,group:"5_insert",title:(0,L.localize)(1001,"Toggle &&Block Comment"),order:2},canTriggerInlineEdits:!0})}run(e,t){let i=e.get(i3.ILanguageConfigurationService);if(!t.hasModel())return;let o=t.getOption(ts.EditorOption.comments),r=[];for(let e of t.getSelections())r.push(new i6(e,o.insertSpace,i));t.pushUndoStop(),t.executeCommands(this.id,r),t.pushUndoStop()}}(0,i2.registerEditorAction)(class extends i9{constructor(){super(p.Toggle,{id:"editor.action.commentLine",label:(0,L.localize2)(996,"Toggle Line Comment"),precondition:eq.EditorContextKeys.writable,kbOpts:{kbExpr:eq.EditorContextKeys.editorTextFocus,primary:J.KeyMod.CtrlCmd|J.KeyCode.Slash,weight:eU.KeybindingWeight.EditorContrib},menuOpts:{menuId:j.MenuId.MenubarEditMenu,group:"5_insert",title:(0,L.localize)(997,"&&Toggle Line Comment"),order:1},canTriggerInlineEdits:!0})}}),(0,i2.registerEditorAction)(class extends i9{constructor(){super(p.ForceAdd,{id:"editor.action.addCommentLine",label:(0,L.localize2)(998,"Add Line Comment"),precondition:eq.EditorContextKeys.writable,kbOpts:{kbExpr:eq.EditorContextKeys.editorTextFocus,primary:(0,J.KeyChord)(J.KeyMod.CtrlCmd|J.KeyCode.KeyK,J.KeyMod.CtrlCmd|J.KeyCode.KeyC),weight:eU.KeybindingWeight.EditorContrib},canTriggerInlineEdits:!0})}}),(0,i2.registerEditorAction)(class extends i9{constructor(){super(p.ForceRemove,{id:"editor.action.removeCommentLine",label:(0,L.localize2)(999,"Remove Line Comment"),precondition:eq.EditorContextKeys.writable,kbOpts:{kbExpr:eq.EditorContextKeys.editorTextFocus,primary:(0,J.KeyChord)(J.KeyMod.CtrlCmd|J.KeyCode.KeyK,J.KeyMod.CtrlCmd|J.KeyCode.KeyU),weight:eU.KeybindingWeight.EditorContrib},canTriggerInlineEdits:!0})}}),(0,i2.registerEditorAction)(i4),e.s([],873471);var oe=W,ot=eH;class oi{constructor(e){this.selections=e}equals(e){let t=this.selections.length;if(t!==e.selections.length)return!1;for(let i=0;i<t;i++)if(!this.selections[i].equalsSelection(e.selections[i]))return!1;return!0}}class oo{constructor(e,t,i){this.cursorState=e,this.scrollTop=t,this.scrollLeft=i}}class or extends oe.Disposable{static{this.ID="editor.contrib.cursorUndoRedoController"}static get(e){return e.getContribution(or.ID)}constructor(e){super(),this._editor=e,this._isCursorUndoRedo=!1,this._undoStack=[],this._redoStack=[],this._register(e.onDidChangeModel(e=>{this._undoStack=[],this._redoStack=[]})),this._register(e.onDidChangeModelContent(e=>{this._undoStack=[],this._redoStack=[]})),this._register(e.onDidChangeCursorSelection(t=>{if(this._isCursorUndoRedo||!t.oldSelections||t.oldModelVersionId!==t.modelVersionId)return;let i=new oi(t.oldSelections);!(this._undoStack.length>0&&this._undoStack[this._undoStack.length-1].cursorState.equals(i))&&(this._undoStack.push(new oo(i,e.getScrollTop(),e.getScrollLeft())),this._redoStack=[],this._undoStack.length>50&&this._undoStack.shift())}))}cursorUndo(){this._editor.hasModel()&&0!==this._undoStack.length&&(this._redoStack.push(new oo(new oi(this._editor.getSelections()),this._editor.getScrollTop(),this._editor.getScrollLeft())),this._applyState(this._undoStack.pop()))}cursorRedo(){this._editor.hasModel()&&0!==this._redoStack.length&&(this._undoStack.push(new oo(new oi(this._editor.getSelections()),this._editor.getScrollTop(),this._editor.getScrollLeft())),this._applyState(this._redoStack.pop()))}_applyState(e){this._isCursorUndoRedo=!0,this._editor.setSelections(e.cursorState.selections),this._editor.setScrollPosition({scrollTop:e.scrollTop,scrollLeft:e.scrollLeft}),this._isCursorUndoRedo=!1}}class on extends ot.EditorAction{constructor(){super({id:"cursorUndo",label:(0,L.localize2)(1012,"Cursor Undo"),precondition:void 0,kbOpts:{kbExpr:eq.EditorContextKeys.textInputFocus,primary:J.KeyMod.CtrlCmd|J.KeyCode.KeyU,weight:eU.KeybindingWeight.EditorContrib}})}run(e,t,i){or.get(t)?.cursorUndo()}}class os extends ot.EditorAction{constructor(){super({id:"cursorRedo",label:(0,L.localize2)(1013,"Cursor Redo"),precondition:void 0})}run(e,t,i){or.get(t)?.cursorRedo()}}(0,ot.registerEditorContribution)(or.ID,or,ot.EditorContributionInstantiation.Eager),(0,ot.registerEditorAction)(on),(0,ot.registerEditorAction)(os),e.s([],957806);var oa=W,od=e.i(275906);class oc{constructor(e,t,i){this.selection=e,this.targetPosition=t,this.copy=i,this.targetSelection=null}getEditOperations(e,t){let i=e.getValueInRange(this.selection);if(this.copy||t.addEditOperation(this.selection,null),t.addEditOperation(new td.Range(this.targetPosition.lineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.targetPosition.column),i),this.selection.containsPosition(this.targetPosition)&&!(this.copy&&(this.selection.getEndPosition().equals(this.targetPosition)||this.selection.getStartPosition().equals(this.targetPosition)))){this.targetSelection=this.selection;return}if(this.copy){this.targetSelection=new e6.Selection(this.targetPosition.lineNumber,this.targetPosition.column,this.selection.endLineNumber-this.selection.startLineNumber+this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn);return}if(this.targetPosition.lineNumber>this.selection.endLineNumber){this.targetSelection=new e6.Selection(this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn);return}if(this.targetPosition.lineNumber<this.selection.endLineNumber){this.targetSelection=new e6.Selection(this.targetPosition.lineNumber,this.targetPosition.column,this.targetPosition.lineNumber+this.selection.endLineNumber-this.selection.startLineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn);return}this.selection.endColumn<=this.targetPosition.column?this.targetSelection=new e6.Selection(this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,(this.selection.startLineNumber===this.selection.endLineNumber,this.targetPosition.column-this.selection.endColumn+this.selection.startColumn),this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column:this.selection.endColumn):this.targetSelection=new e6.Selection(this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.targetPosition.column+this.selection.endColumn-this.selection.startColumn)}computeCursorState(e,t){return this.targetSelection}}function ol(e){return tP.isMacintosh?e.altKey:e.ctrlKey}(0,R.registerCss)(void 0);class ou extends oa.Disposable{static{this.ID="editor.contrib.dragAndDrop"}static{this.TRIGGER_KEY_VALUE=tP.isMacintosh?J.KeyCode.Alt:J.KeyCode.Ctrl}static get(e){return e.getContribution(ou.ID)}constructor(e){super(),this._editor=e,this._dndDecorationIds=this._editor.createDecorationsCollection(),this._register(this._editor.onMouseDown(e=>this._onEditorMouseDown(e))),this._register(this._editor.onMouseUp(e=>this._onEditorMouseUp(e))),this._register(this._editor.onMouseDrag(e=>this._onEditorMouseDrag(e))),this._register(this._editor.onMouseDrop(e=>this._onEditorMouseDrop(e))),this._register(this._editor.onMouseDropCanceled(()=>this._onEditorMouseDropCanceled())),this._register(this._editor.onKeyDown(e=>this.onEditorKeyDown(e))),this._register(this._editor.onKeyUp(e=>this.onEditorKeyUp(e))),this._register(this._editor.onDidBlurEditorWidget(()=>this.onEditorBlur())),this._register(this._editor.onDidBlurEditorText(()=>this.onEditorBlur())),this._mouseDown=!1,this._modifierPressed=!1,this._dragSelection=null}onEditorBlur(){this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1,this._modifierPressed=!1}onEditorKeyDown(e){!(!this._editor.getOption(ts.EditorOption.dragAndDrop)||this._editor.getOption(ts.EditorOption.columnSelection))&&(ol(e)&&(this._modifierPressed=!0),this._mouseDown&&ol(e)&&this._editor.updateOptions({mouseStyle:"copy"}))}onEditorKeyUp(e){!(!this._editor.getOption(ts.EditorOption.dragAndDrop)||this._editor.getOption(ts.EditorOption.columnSelection))&&(ol(e)&&(this._modifierPressed=!1),this._mouseDown&&e.keyCode===ou.TRIGGER_KEY_VALUE&&this._editor.updateOptions({mouseStyle:"default"}))}_onEditorMouseDown(e){this._mouseDown=!0}_onEditorMouseUp(e){this._mouseDown=!1,this._editor.updateOptions({mouseStyle:"text"})}_onEditorMouseDrag(e){let t=e.target;if(null===this._dragSelection){let e=(this._editor.getSelections()||[]).filter(e=>t.position&&e.containsPosition(t.position));if(1!==e.length)return;this._dragSelection=e[0]}ol(e.event)?this._editor.updateOptions({mouseStyle:"copy"}):this._editor.updateOptions({mouseStyle:"default"}),t.position&&(this._dragSelection.containsPosition(t.position)?this._removeDecoration():this.showAt(t.position))}_onEditorMouseDropCanceled(){this._editor.updateOptions({mouseStyle:"text"}),this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1}_onEditorMouseDrop(e){if(e.target&&(this._hitContent(e.target)||this._hitMargin(e.target))&&e.target.position){let t=new ta.Position(e.target.position.lineNumber,e.target.position.column);if(null===this._dragSelection){let i=null;if(e.event.shiftKey){let e=this._editor.getSelection();if(e){let{selectionStartLineNumber:o,selectionStartColumn:r}=e;i=[new e6.Selection(o,r,t.lineNumber,t.column)]}}else i=(this._editor.getSelections()||[]).map(e=>e.containsPosition(t)?new e6.Selection(t.lineNumber,t.column,t.lineNumber,t.column):e);this._editor.setSelections(i||[],"mouse",od.CursorChangeReason.Explicit)}else(!this._dragSelection.containsPosition(t)||(ol(e.event)||this._modifierPressed)&&(this._dragSelection.getEndPosition().equals(t)||this._dragSelection.getStartPosition().equals(t)))&&(this._editor.pushUndoStop(),this._editor.executeCommand(ou.ID,new oc(this._dragSelection,t,ol(e.event)||this._modifierPressed)),this._editor.pushUndoStop())}this._editor.updateOptions({mouseStyle:"text"}),this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1}static{this._DECORATION_OPTIONS=tc.ModelDecorationOptions.register({description:"dnd-target",className:"dnd-target"})}showAt(e){this._dndDecorationIds.set([{range:new td.Range(e.lineNumber,e.column,e.lineNumber,e.column),options:ou._DECORATION_OPTIONS}]),this._editor.revealPosition(e,tK.ScrollType.Immediate)}_removeDecoration(){this._dndDecorationIds.clear()}_hitContent(e){return e.type===ia.MouseTargetType.CONTENT_TEXT||e.type===ia.MouseTargetType.CONTENT_EMPTY}_hitMargin(e){return e.type===ia.MouseTargetType.GUTTER_GLYPH_MARGIN||e.type===ia.MouseTargetType.GUTTER_LINE_NUMBERS||e.type===ia.MouseTargetType.GUTTER_LINE_DECORATIONS}dispose(){this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1,this._modifierPressed=!1,super.dispose()}}(0,eH.registerEditorContribution)(ou.ID,ou,eH.EditorContributionInstantiation.BeforeFirstInteraction),e.s([],486782);var oh=eH;(0,oh.registerEditorContribution)(eO.DropIntoEditorController.ID,eO.DropIntoEditorController,oh.EditorContributionInstantiation.BeforeFirstInteraction),(0,eG.registerEditorFeature)(e$.DefaultDropProvidersFeature),(0,oh.registerEditorCommand)(new class extends oh.EditorCommand{constructor(){super({id:eO.changeDropTypeCommandId,precondition:eO.dropWidgetVisibleCtx,kbOpts:{weight:eU.KeybindingWeight.EditorContrib,primary:J.KeyMod.CtrlCmd|J.KeyCode.Period}})}runEditorCommand(e,t,i){eO.DropIntoEditorController.get(t)?.changeDropType()}}),(0,oh.registerEditorCommand)(new class extends oh.EditorCommand{constructor(){super({id:"editor.hideDropWidget",precondition:eO.dropWidgetVisibleCtx,kbOpts:{weight:eU.KeybindingWeight.EditorContrib,primary:J.KeyCode.Escape}})}runEditorCommand(e,t,i){eO.DropIntoEditorController.get(t)?.clearWidgets()}}),e.s([],68779);var op=W,og=eH,om=e.i(815033),ov=e.i(721975),oy=e.i(217698),of=e.i(598720);(0,R.registerCss)(void 0);class o_ extends of.Widget{static{this.ID="editor.contrib.findOptionsWidget"}constructor(e,t,i){super(),this._hideSoon=this._register(new G.RunOnceScheduler(()=>this._hide(),2e3)),this._isVisible=!1,this._editor=e,this._state=t,this._keybindingService=i,this._domNode=(0,z.createElement)("div"),this._domNode.className="findOptionsWidget",this._domNode.style.display="none",this._domNode.style.top="10px",this._domNode.style.zIndex="12",this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true");const o={inputActiveOptionBorder:(0,tl.asCssVariable)(tp.inputActiveOptionBorder),inputActiveOptionForeground:(0,tl.asCssVariable)(tp.inputActiveOptionForeground),inputActiveOptionBackground:(0,tl.asCssVariable)(tp.inputActiveOptionBackground)},r={groupId:"find-options-widget"};this.caseSensitive=this._register(new oy.CaseSensitiveToggle({appendTitle:this._keybindingLabelFor(ov.FIND_IDS.ToggleCaseSensitiveCommand),isChecked:this._state.matchCase,hoverLifecycleOptions:r,...o})),this._domNode.appendChild(this.caseSensitive.domNode),this._register(this.caseSensitive.onChange(()=>{this._state.change({matchCase:this.caseSensitive.checked},!1)})),this.wholeWords=this._register(new oy.WholeWordsToggle({appendTitle:this._keybindingLabelFor(ov.FIND_IDS.ToggleWholeWordCommand),isChecked:this._state.wholeWord,hoverLifecycleOptions:r,...o})),this._domNode.appendChild(this.wholeWords.domNode),this._register(this.wholeWords.onChange(()=>{this._state.change({wholeWord:this.wholeWords.checked},!1)})),this.regex=this._register(new oy.RegexToggle({appendTitle:this._keybindingLabelFor(ov.FIND_IDS.ToggleRegexCommand),isChecked:this._state.isRegex,hoverLifecycleOptions:r,...o})),this._domNode.appendChild(this.regex.domNode),this._register(this.regex.onChange(()=>{this._state.change({isRegex:this.regex.checked},!1)})),this._editor.addOverlayWidget(this),this._register(this._state.onFindReplaceStateChange(e=>{let t=!1;e.isRegex&&(this.regex.checked=this._state.isRegex,t=!0),e.wholeWord&&(this.wholeWords.checked=this._state.wholeWord,t=!0),e.matchCase&&(this.caseSensitive.checked=this._state.matchCase,t=!0),!this._state.isRevealed&&t&&this._revealTemporarily()})),this._register((0,z.addDisposableListener)(this._domNode,z.EventType.MOUSE_LEAVE,e=>this._onMouseLeave())),this._register((0,z.addDisposableListener)(this._domNode,"mouseover",e=>this._onMouseOver()))}_keybindingLabelFor(e){let t=this._keybindingService.lookupKeybinding(e);return t?` (${t.getLabel()})`:""}dispose(){this._editor.removeOverlayWidget(this),super.dispose()}getId(){return o_.ID}getDomNode(){return this._domNode}getPosition(){return{preference:ia.OverlayWidgetPositionPreference.TOP_RIGHT_CORNER}}highlightFindOptions(){this._revealTemporarily()}_revealTemporarily(){this._show(),this._hideSoon.schedule()}_onMouseLeave(){this._hideSoon.schedule()}_onMouseOver(){this._hideSoon.cancel()}_show(){this._isVisible||(this._isVisible=!0,this._domNode.style.display="block")}_hide(){this._isVisible&&(this._isVisible=!1,this._domNode.style.display="none")}}var oC=W;function oS(e,t){return e===g.True||e!==g.False&&t}(r=g||(g={}))[r.NotSet=0]="NotSet",r[r.True=1]="True",r[r.False=2]="False";class ob extends oC.Disposable{get searchString(){return this._searchString}get replaceString(){return this._replaceString}get isRevealed(){return this._isRevealed}get isReplaceRevealed(){return this._isReplaceRevealed}get isRegex(){return oS(this._isRegexOverride,this._isRegex)}get wholeWord(){return oS(this._wholeWordOverride,this._wholeWord)}get matchCase(){return oS(this._matchCaseOverride,this._matchCase)}get preserveCase(){return oS(this._preserveCaseOverride,this._preserveCase)}get actualIsRegex(){return this._isRegex}get actualWholeWord(){return this._wholeWord}get actualMatchCase(){return this._matchCase}get actualPreserveCase(){return this._preserveCase}get searchScope(){return this._searchScope}get matchesPosition(){return this._matchesPosition}get matchesCount(){return this._matchesCount}get currentMatch(){return this._currentMatch}get isSearching(){return this._isSearching}get filters(){return this._filters}constructor(){super(),this._onFindReplaceStateChange=this._register(new K.Emitter),this.onFindReplaceStateChange=this._onFindReplaceStateChange.event,this._searchString="",this._replaceString="",this._isRevealed=!1,this._isReplaceRevealed=!1,this._isRegex=!1,this._isRegexOverride=g.NotSet,this._wholeWord=!1,this._wholeWordOverride=g.NotSet,this._matchCase=!1,this._matchCaseOverride=g.NotSet,this._preserveCase=!1,this._preserveCaseOverride=g.NotSet,this._searchScope=null,this._matchesPosition=0,this._matchesCount=0,this._currentMatch=null,this._loop=!0,this._isSearching=!1,this._filters=null}changeMatchInfo(e,t,i){let o={moveCursor:!1,updateHistory:!1,searchString:!1,replaceString:!1,isRevealed:!1,isReplaceRevealed:!1,isRegex:!1,wholeWord:!1,matchCase:!1,preserveCase:!1,searchScope:!1,matchesPosition:!1,matchesCount:!1,currentMatch:!1,loop:!1,isSearching:!1,filters:!1},r=!1;0===t&&(e=0),e>t&&(e=t),this._matchesPosition!==e&&(this._matchesPosition=e,o.matchesPosition=!0,r=!0),this._matchesCount!==t&&(this._matchesCount=t,o.matchesCount=!0,r=!0),void 0===i||td.Range.equalsRange(this._currentMatch,i)||(this._currentMatch=i,o.currentMatch=!0,r=!0),r&&this._onFindReplaceStateChange.fire(o)}change(e,t,i=!0){let o={moveCursor:t,updateHistory:i,searchString:!1,replaceString:!1,isRevealed:!1,isReplaceRevealed:!1,isRegex:!1,wholeWord:!1,matchCase:!1,preserveCase:!1,searchScope:!1,matchesPosition:!1,matchesCount:!1,currentMatch:!1,loop:!1,isSearching:!1,filters:!1},r=!1,n=this.isRegex,s=this.wholeWord,a=this.matchCase,d=this.preserveCase;void 0!==e.searchString&&this._searchString!==e.searchString&&(this._searchString=e.searchString,o.searchString=!0,r=!0),void 0!==e.replaceString&&this._replaceString!==e.replaceString&&(this._replaceString=e.replaceString,o.replaceString=!0,r=!0),void 0!==e.isRevealed&&this._isRevealed!==e.isRevealed&&(this._isRevealed=e.isRevealed,o.isRevealed=!0,r=!0),void 0!==e.isReplaceRevealed&&this._isReplaceRevealed!==e.isReplaceRevealed&&(this._isReplaceRevealed=e.isReplaceRevealed,o.isReplaceRevealed=!0,r=!0),void 0!==e.isRegex&&(this._isRegex=e.isRegex),void 0!==e.wholeWord&&(this._wholeWord=e.wholeWord),void 0!==e.matchCase&&(this._matchCase=e.matchCase),void 0!==e.preserveCase&&(this._preserveCase=e.preserveCase),void 0===e.searchScope||e.searchScope?.every(e=>this._searchScope?.some(t=>!td.Range.equalsRange(t,e)))||(this._searchScope=e.searchScope,o.searchScope=!0,r=!0),void 0!==e.loop&&this._loop!==e.loop&&(this._loop=e.loop,o.loop=!0,r=!0),void 0!==e.isSearching&&this._isSearching!==e.isSearching&&(this._isSearching=e.isSearching,o.isSearching=!0,r=!0),void 0!==e.filters&&(this._filters?this._filters.update(e.filters):this._filters=e.filters,o.filters=!0,r=!0),this._isRegexOverride=void 0!==e.isRegexOverride?e.isRegexOverride:g.NotSet,this._wholeWordOverride=void 0!==e.wholeWordOverride?e.wholeWordOverride:g.NotSet,this._matchCaseOverride=void 0!==e.matchCaseOverride?e.matchCaseOverride:g.NotSet,this._preserveCaseOverride=void 0!==e.preserveCaseOverride?e.preserveCaseOverride:g.NotSet,n!==this.isRegex&&(r=!0,o.isRegex=!0),s!==this.wholeWord&&(r=!0,o.wholeWord=!0),a!==this.matchCase&&(r=!0,o.matchCase=!0),d!==this.preserveCase&&(r=!0,o.preserveCase=!0),r&&this._onFindReplaceStateChange.fire(o)}canNavigateBack(){return this.canNavigateInLoop()||1!==this.matchesPosition}canNavigateForward(){return this.canNavigateInLoop()||this.matchesPosition<this.matchesCount}canNavigateInLoop(){return this._loop||this.matchesCount>=ov.MATCHES_LIMIT}}e.s(["FindOptionOverride",0,g,"FindReplaceState",0,ob],157602);var oI=e.i(357234),oE=e.i(919101);e.i(216822);let ow=class{static{m=this}static{this.FIND_HISTORY_KEY="workbench.find.history"}static{this._instance=null}static getOrCreate(e){return m._instance||(m._instance=new m(e)),m._instance}constructor(e){this.storageService=e,this.inMemoryValues=new Set,this._onDidChangeEmitter=new K.Emitter,this.onDidChange=this._onDidChangeEmitter.event,this.load()}delete(e){let t=this.inMemoryValues.delete(e);return this.save(),t}add(e){return this.inMemoryValues.add(e),this.save(),this}has(e){return this.inMemoryValues.has(e)}clear(){this.inMemoryValues.clear(),this.save()}forEach(e,t){return this.load(),this.inMemoryValues.forEach(e)}replace(e){this.inMemoryValues=new Set(e),this.save()}load(){let e,t=this.storageService.get(m.FIND_HISTORY_KEY,Y.StorageScope.WORKSPACE);if(t)try{e=JSON.parse(t)}catch(e){}this.inMemoryValues=new Set(e||[])}save(){let e=[];return this.inMemoryValues.forEach(t=>e.push(t)),new Promise(t=>{this.storageService.store(m.FIND_HISTORY_KEY,JSON.stringify(e),Y.StorageScope.WORKSPACE,Y.StorageTarget.USER),this._onDidChangeEmitter.fire(e),t()})}};ow=m=(0,eR.__decorate)([(0,eR.__param)(0,X.IStorageService)],ow);let oD=class{static{v=this}static{this.FIND_HISTORY_KEY="workbench.replace.history"}static{this._instance=null}static getOrCreate(e){return v._instance||(v._instance=new v(e)),v._instance}constructor(e){this.storageService=e,this.inMemoryValues=new Set,this._onDidChangeEmitter=new K.Emitter,this.onDidChange=this._onDidChangeEmitter.event,this.load()}delete(e){let t=this.inMemoryValues.delete(e);return this.save(),t}add(e){return this.inMemoryValues.add(e),this.save(),this}has(e){return this.inMemoryValues.has(e)}clear(){this.inMemoryValues.clear(),this.save()}forEach(e,t){return this.load(),this.inMemoryValues.forEach(e)}replace(e){this.inMemoryValues=new Set(e),this.save()}load(){let e,t=this.storageService.get(v.FIND_HISTORY_KEY,Y.StorageScope.WORKSPACE);if(t)try{e=JSON.parse(t)}catch(e){}this.inMemoryValues=new Set(e||[])}save(){let e=[];return this.inMemoryValues.forEach(t=>e.push(t)),new Promise(t=>{this.storageService.store(v.FIND_HISTORY_KEY,JSON.stringify(e),Y.StorageScope.WORKSPACE,Y.StorageTarget.USER),this._onDidChangeEmitter.fire(e),t()})}};oD=v=(0,eR.__decorate)([(0,eR.__param)(0,X.IStorageService)],oD);var oA=e.i(770326);function ox(e,t="single",i=!1){if(!e.hasModel())return null;let o=e.getSelection();if("single"===t&&o.startLineNumber===o.endLineNumber||"multiple"===t){if(o.isEmpty()){let t=e.getConfiguredWordAtPosition(o.getStartPosition());if(t&&!1===i)return t.word}else if(524288>e.getModel().getValueLengthInRange(o))return e.getModel().getValueInRange(o)}return null}(n=f||(f={}))[n.NoFocusChange=0]="NoFocusChange",n[n.FocusFindInput=1]="FocusFindInput",n[n.FocusReplaceInput=2]="FocusReplaceInput";let ok=class extends op.Disposable{static{y=this}static{this.ID="editor.contrib.findController"}get editor(){return this._editor}static get(e){return e.getContribution(y.ID)}constructor(e,t,i,o,r,n){super(),this._editor=e,this._findWidgetVisible=ov.CONTEXT_FIND_WIDGET_VISIBLE.bindTo(t),this._contextKeyService=t,this._storageService=i,this._clipboardService=o,this._notificationService=r,this._hoverService=n,this._updateHistoryDelayer=new G.Delayer(500),this._state=this._register(new ob),this.loadQueryState(),this._register(this._state.onFindReplaceStateChange(e=>this._onStateChanged(e))),this._model=null,this._register(this._editor.onDidChangeModel(()=>{let e=this._editor.getModel()&&this._state.isRevealed;this.disposeModel(),this._state.change({searchScope:null,matchCase:this._storageService.getBoolean("editor.matchCase",Y.StorageScope.WORKSPACE,!1),wholeWord:this._storageService.getBoolean("editor.wholeWord",Y.StorageScope.WORKSPACE,!1),isRegex:this._storageService.getBoolean("editor.isRegex",Y.StorageScope.WORKSPACE,!1),preserveCase:this._storageService.getBoolean("editor.preserveCase",Y.StorageScope.WORKSPACE,!1)},!1),e&&this._start({forceRevealReplace:!1,seedSearchStringFromSelection:"none",seedSearchStringFromNonEmptySelection:!1,seedSearchStringFromGlobalClipboard:!1,shouldFocus:f.NoFocusChange,shouldAnimate:!1,updateSearchScope:!1,loop:this._editor.getOption(ts.EditorOption.find).loop})}))}dispose(){this.disposeModel(),super.dispose()}disposeModel(){this._model&&(this._model.dispose(),this._model=null)}_onStateChanged(e){this.saveQueryState(e),e.isRevealed&&(this._state.isRevealed?this._findWidgetVisible.set(!0):(this._findWidgetVisible.reset(),this.disposeModel())),e.searchString&&this.setGlobalBufferTerm(this._state.searchString)}saveQueryState(e){e.isRegex&&this._storageService.store("editor.isRegex",this._state.actualIsRegex,Y.StorageScope.WORKSPACE,Y.StorageTarget.MACHINE),e.wholeWord&&this._storageService.store("editor.wholeWord",this._state.actualWholeWord,Y.StorageScope.WORKSPACE,Y.StorageTarget.MACHINE),e.matchCase&&this._storageService.store("editor.matchCase",this._state.actualMatchCase,Y.StorageScope.WORKSPACE,Y.StorageTarget.MACHINE),e.preserveCase&&this._storageService.store("editor.preserveCase",this._state.actualPreserveCase,Y.StorageScope.WORKSPACE,Y.StorageTarget.MACHINE)}loadQueryState(){this._state.change({matchCase:this._storageService.getBoolean("editor.matchCase",Y.StorageScope.WORKSPACE,this._state.matchCase),wholeWord:this._storageService.getBoolean("editor.wholeWord",Y.StorageScope.WORKSPACE,this._state.wholeWord),isRegex:this._storageService.getBoolean("editor.isRegex",Y.StorageScope.WORKSPACE,this._state.isRegex),preserveCase:this._storageService.getBoolean("editor.preserveCase",Y.StorageScope.WORKSPACE,this._state.preserveCase)},!1)}isFindInputFocused(){return!!ov.CONTEXT_FIND_INPUT_FOCUSED.getValue(this._contextKeyService)}getState(){return this._state}closeFindWidget(){this._state.change({isRevealed:!1,searchScope:null},!1),this._editor.focus()}toggleCaseSensitive(){this._state.change({matchCase:!this._state.matchCase},!1),this._state.isRevealed||this.highlightFindOptions()}toggleWholeWords(){this._state.change({wholeWord:!this._state.wholeWord},!1),this._state.isRevealed||this.highlightFindOptions()}toggleRegex(){this._state.change({isRegex:!this._state.isRegex},!1),this._state.isRevealed||this.highlightFindOptions()}togglePreserveCase(){this._state.change({preserveCase:!this._state.preserveCase},!1),this._state.isRevealed||this.highlightFindOptions()}toggleSearchScope(){if(this._state.searchScope)this._state.change({searchScope:null},!0);else if(this._editor.hasModel()){let e=this._editor.getSelections();(e=e.map(e=>(1===e.endColumn&&e.endLineNumber>e.startLineNumber&&(e=e.setEndPosition(e.endLineNumber-1,this._editor.getModel().getLineMaxColumn(e.endLineNumber-1))),e.isEmpty())?null:e).filter(e=>!!e)).length&&this._state.change({searchScope:e},!0)}}setSearchString(e){this._state.isRegex&&(e=(0,tX.escapeRegExpCharacters)(e)),this._state.change({searchString:e},!1)}highlightFindOptions(e=!1){}async _start(e,t){if(this.disposeModel(),!this._editor.hasModel())return;let i={...t,isRevealed:!0};if("single"===e.seedSearchStringFromSelection){let t=ox(this._editor,e.seedSearchStringFromSelection,e.seedSearchStringFromNonEmptySelection);t&&(this._state.isRegex?i.searchString=(0,tX.escapeRegExpCharacters)(t):i.searchString=t)}else if("multiple"===e.seedSearchStringFromSelection&&!e.updateSearchScope){let t=ox(this._editor,e.seedSearchStringFromSelection);t&&(i.searchString=t)}if(!i.searchString&&e.seedSearchStringFromGlobalClipboard){let e=await this.getGlobalBufferTerm();if(!this._editor.hasModel())return;e&&(i.searchString=e)}if(e.forceRevealReplace||i.isReplaceRevealed?i.isReplaceRevealed=!0:this._findWidgetVisible.get()||(i.isReplaceRevealed=!1),e.updateSearchScope){let e=this._editor.getSelections();e.some(e=>!e.isEmpty())&&(i.searchScope=e)}i.loop=e.loop,this._state.change(i,!1),this._model||(this._model=new ov.FindModelBoundToEditorModel(this._editor,this._state))}start(e,t){return this._start(e,t)}moveToNextMatch(){return!!this._model&&(this._model.moveToNextMatch(),!0)}moveToPrevMatch(){return!!this._model&&(this._model.moveToPrevMatch(),!0)}goToMatch(e){return!!this._model&&(this._model.moveToMatch(e),!0)}replace(){return!!this._model&&(this._model.replace(),!0)}replaceAll(){return!!this._model&&(this._editor.getModel()?.isTooLargeForHeapOperation()?(this._notificationService.warn((0,L.localize)(1041,"The file is too large to perform a replace all operation.")),!1):(this._model.replaceAll(),!0))}selectAllMatches(){return!!this._model&&(this._model.selectAllMatches(),this._editor.focus(),!0)}async getGlobalBufferTerm(){return this._editor.getOption(ts.EditorOption.find).globalFindClipboard&&this._editor.hasModel()&&!this._editor.getModel().isTooLargeForSyncing()?this._clipboardService.readFindText():""}setGlobalBufferTerm(e){this._editor.getOption(ts.EditorOption.find).globalFindClipboard&&this._editor.hasModel()&&!this._editor.getModel().isTooLargeForSyncing()&&this._clipboardService.writeFindText(e)}};ok=y=(0,eR.__decorate)([(0,eR.__param)(1,H.IContextKeyService),(0,eR.__param)(2,X.IStorageService),(0,eR.__param)(3,tR.IClipboardService),(0,eR.__param)(4,iS.INotificationService),(0,eR.__param)(5,iQ.IHoverService)],ok);let oT=class extends ok{constructor(e,t,i,o,r,n,s,a){super(e,i,n,s,r,a),this._contextViewService=t,this._keybindingService=o,this._widget=null,this._findOptionsWidget=null,this._findWidgetSearchHistory=ow.getOrCreate(n),this._replaceWidgetHistory=oD.getOrCreate(n)}async _start(e,t){this._widget||this._createFindWidget();let i=this._editor.getSelection(),o=!1;switch(this._editor.getOption(ts.EditorOption.find).autoFindInSelection){case"always":o=!0;break;case"never":o=!1;break;case"multiline":o=!!i&&i.startLineNumber!==i.endLineNumber}e.updateSearchScope=e.updateSearchScope||o,await super._start(e,t),this._widget&&(e.shouldFocus===f.FocusReplaceInput?this._widget.focusReplaceInput():e.shouldFocus===f.FocusFindInput&&this._widget.focusFindInput())}highlightFindOptions(e=!1){this._widget||this._createFindWidget(),this._state.isRevealed&&!e?this._widget.highlightFindOptions():this._findOptionsWidget.highlightFindOptions()}_createFindWidget(){this._widget=this._register(new oI.FindWidget(this._editor,this,this._state,this._contextViewService,this._keybindingService,this._contextKeyService,this._hoverService,this._findWidgetSearchHistory,this._replaceWidgetHistory)),this._findOptionsWidget=this._register(new o_(this._editor,this._state,this._keybindingService))}saveViewState(){return this._widget?.getViewState()}restoreViewState(e){this._widget?.setViewState(e)}};oT=(0,eR.__decorate)([(0,eR.__param)(1,oE.IContextViewService),(0,eR.__param)(2,H.IContextKeyService),(0,eR.__param)(3,N.IKeybindingService),(0,eR.__param)(4,iS.INotificationService),(0,eR.__param)(5,X.IStorageService),(0,eR.__param)(6,tR.IClipboardService),(0,eR.__param)(7,iQ.IHoverService)],oT),(0,og.registerMultiEditorAction)(new og.MultiEditorAction({id:ov.FIND_IDS.StartFindAction,label:(0,L.localize2)(1042,"Find"),precondition:U.ContextKeyExpr.or(eq.EditorContextKeys.focus,U.ContextKeyExpr.has("editorIsOpen")),kbOpts:{kbExpr:null,primary:J.KeyMod.CtrlCmd|J.KeyCode.KeyF,weight:eU.KeybindingWeight.EditorContrib},menuOpts:{menuId:j.MenuId.MenubarEditMenu,group:"3_find",title:(0,L.localize)(1043,"&&Find"),order:1}})).addImplementation(0,(e,t,i)=>{let o=ok.get(t);return!!o&&o.start({forceRevealReplace:!1,seedSearchStringFromSelection:"never"!==t.getOption(ts.EditorOption.find).seedSearchStringFromSelection?"single":"none",seedSearchStringFromNonEmptySelection:"selection"===t.getOption(ts.EditorOption.find).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:t.getOption(ts.EditorOption.find).globalFindClipboard,shouldFocus:f.FocusFindInput,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(ts.EditorOption.find).loop})});let oM={description:"Open a new In-Editor Find Widget.",args:[{name:"Open a new In-Editor Find Widget args",schema:{properties:{searchString:{type:"string"},replaceString:{type:"string"},isRegex:{type:"boolean"},matchWholeWord:{type:"boolean"},isCaseSensitive:{type:"boolean"},preserveCase:{type:"boolean"},findInSelection:{type:"boolean"}}}}]};class oP extends og.EditorAction{constructor(){super({id:ov.FIND_IDS.StartFindWithArgs,label:(0,L.localize2)(1044,"Find with Arguments"),precondition:void 0,kbOpts:{kbExpr:null,primary:0,weight:eU.KeybindingWeight.EditorContrib},metadata:oM})}async run(e,t,i){let o=ok.get(t);if(o){let e=i?{searchString:i.searchString,replaceString:i.replaceString,isReplaceRevealed:void 0!==i.replaceString,isRegex:i.isRegex,wholeWord:i.matchWholeWord,matchCase:i.isCaseSensitive,preserveCase:i.preserveCase}:{};await o.start({forceRevealReplace:!1,seedSearchStringFromSelection:0===o.getState().searchString.length&&"never"!==t.getOption(ts.EditorOption.find).seedSearchStringFromSelection?"single":"none",seedSearchStringFromNonEmptySelection:"selection"===t.getOption(ts.EditorOption.find).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:!0,shouldFocus:f.FocusFindInput,shouldAnimate:!0,updateSearchScope:i?.findInSelection||!1,loop:t.getOption(ts.EditorOption.find).loop},e),o.setGlobalBufferTerm(o.getState().searchString)}}}class oR extends og.EditorAction{constructor(){super({id:ov.FIND_IDS.StartFindWithSelection,label:(0,L.localize2)(1045,"Find with Selection"),precondition:void 0,kbOpts:{kbExpr:null,primary:0,mac:{primary:J.KeyMod.CtrlCmd|J.KeyCode.KeyE},weight:eU.KeybindingWeight.EditorContrib}})}async run(e,t){let i=ok.get(t);i&&(await i.start({forceRevealReplace:!1,seedSearchStringFromSelection:"multiple",seedSearchStringFromNonEmptySelection:!1,seedSearchStringFromGlobalClipboard:!1,shouldFocus:f.NoFocusChange,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(ts.EditorOption.find).loop}),i.setGlobalBufferTerm(i.getState().searchString))}}async function oL(e,t){let i=ok.get(e);if(!i)return;let o=()=>(t?!!i.moveToNextMatch():!!i.moveToPrevMatch())&&(i.editor.pushUndoStop(),!0);o()||(await i.start({forceRevealReplace:!1,seedSearchStringFromSelection:0===i.getState().searchString.length&&"never"!==e.getOption(ts.EditorOption.find).seedSearchStringFromSelection?"single":"none",seedSearchStringFromNonEmptySelection:"selection"===e.getOption(ts.EditorOption.find).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:!0,shouldFocus:f.NoFocusChange,shouldAnimate:!0,updateSearchScope:!1,loop:e.getOption(ts.EditorOption.find).loop}),o())}(0,og.registerMultiEditorAction)(new og.MultiEditorAction({id:ov.FIND_IDS.NextMatchFindAction,label:(0,L.localize2)(1046,"Find Next"),precondition:void 0,kbOpts:[{kbExpr:eq.EditorContextKeys.focus,primary:J.KeyCode.F3,mac:{primary:J.KeyMod.CtrlCmd|J.KeyCode.KeyG,secondary:[J.KeyCode.F3]},weight:eU.KeybindingWeight.EditorContrib},{kbExpr:U.ContextKeyExpr.and(eq.EditorContextKeys.focus,ov.CONTEXT_FIND_INPUT_FOCUSED),primary:J.KeyCode.Enter,weight:eU.KeybindingWeight.EditorContrib}]})).addImplementation(0,async(e,t,i)=>oL(t,!0)),(0,og.registerMultiEditorAction)(new og.MultiEditorAction({id:ov.FIND_IDS.PreviousMatchFindAction,label:(0,L.localize2)(1047,"Find Previous"),precondition:void 0,kbOpts:[{kbExpr:eq.EditorContextKeys.focus,primary:J.KeyMod.Shift|J.KeyCode.F3,mac:{primary:J.KeyMod.CtrlCmd|J.KeyMod.Shift|J.KeyCode.KeyG,secondary:[J.KeyMod.Shift|J.KeyCode.F3]},weight:eU.KeybindingWeight.EditorContrib},{kbExpr:U.ContextKeyExpr.and(eq.EditorContextKeys.focus,ov.CONTEXT_FIND_INPUT_FOCUSED),primary:J.KeyMod.Shift|J.KeyCode.Enter,weight:eU.KeybindingWeight.EditorContrib}]})).addImplementation(0,async(e,t,i)=>oL(t,!1));class oN extends og.EditorAction{constructor(){super({id:ov.FIND_IDS.GoToMatchFindAction,label:(0,L.localize2)(1048,"Go to Match..."),precondition:ov.CONTEXT_FIND_WIDGET_VISIBLE}),this._highlightDecorations=[]}run(e,t){let i=ok.get(t);if(!i)return;let o=i.getState().matchesCount;if(o<1)return void e.get(iS.INotificationService).notify({severity:oA.default.Warning,message:(0,L.localize)(1049,"No matches. Try searching for something else.")});let r=e.get(el.IQuickInputService),n=new op.DisposableStore,s=n.add(r.createInputBox());s.placeholder=(0,L.localize)(1050,"Type a number to go to a specific match (between 1 and {0})",o);let a=e=>{let t=parseInt(e);if(isNaN(t))return;let o=i.getState().matchesCount;return t>0&&t<=o?t-1:t<0&&t>=-o?o+t:void 0},d=e=>{let o=a(e);if("number"==typeof o){s.validationMessage=void 0,i.goToMatch(o);let e=i.getState().currentMatch;e&&this.addDecorations(t,e)}else s.validationMessage=(0,L.localize)(1051,"Please type a number between 1 and {0}",i.getState().matchesCount),this.clearDecorations(t)};n.add(s.onDidChangeValue(e=>{d(e)})),n.add(s.onDidAccept(()=>{let e=a(s.value);"number"==typeof e?(i.goToMatch(e),s.hide()):s.validationMessage=(0,L.localize)(1051,"Please type a number between 1 and {0}",i.getState().matchesCount)})),n.add(s.onDidHide(()=>{this.clearDecorations(t),n.dispose()})),s.show()}clearDecorations(e){e.changeDecorations(e=>{this._highlightDecorations=e.deltaDecorations(this._highlightDecorations,[])})}addDecorations(e,t){e.changeDecorations(e=>{this._highlightDecorations=e.deltaDecorations(this._highlightDecorations,[{range:t,options:{description:"find-match-quick-access-range-highlight",className:"rangeHighlight",isWholeLine:!0}},{range:t,options:{description:"find-match-quick-access-range-highlight-overview",overviewRuler:{color:(0,tv.themeColorFromId)(om.overviewRulerRangeHighlight),position:e7.OverviewRulerLane.Full}}}])})}}class oO extends og.EditorAction{async run(e,t){let i=ok.get(t);if(!i)return;let o=ox(t,"single",!1);o&&i.setSearchString(o),this._run(i)||(await i.start({forceRevealReplace:!1,seedSearchStringFromSelection:"none",seedSearchStringFromNonEmptySelection:!1,seedSearchStringFromGlobalClipboard:!1,shouldFocus:f.NoFocusChange,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(ts.EditorOption.find).loop}),this._run(i))}}(0,og.registerMultiEditorAction)(new og.MultiEditorAction({id:ov.FIND_IDS.StartFindReplaceAction,label:(0,L.localize2)(1054,"Replace"),precondition:U.ContextKeyExpr.or(eq.EditorContextKeys.focus,U.ContextKeyExpr.has("editorIsOpen")),kbOpts:{kbExpr:null,primary:J.KeyMod.CtrlCmd|J.KeyCode.KeyH,mac:{primary:J.KeyMod.CtrlCmd|J.KeyMod.Alt|J.KeyCode.KeyF},weight:eU.KeybindingWeight.EditorContrib},menuOpts:{menuId:j.MenuId.MenubarEditMenu,group:"3_find",title:(0,L.localize)(1055,"&&Replace"),order:2}})).addImplementation(0,(e,t,i)=>{if(!t.hasModel()||t.getOption(ts.EditorOption.readOnly))return!1;let o=ok.get(t);if(!o)return!1;let r=t.getSelection(),n=o.isFindInputFocused(),s=!r.isEmpty()&&r.startLineNumber===r.endLineNumber&&"never"!==t.getOption(ts.EditorOption.find).seedSearchStringFromSelection&&!n,a=n||s?f.FocusReplaceInput:f.FocusFindInput;return o.start({forceRevealReplace:!0,seedSearchStringFromSelection:s?"single":"none",seedSearchStringFromNonEmptySelection:"selection"===t.getOption(ts.EditorOption.find).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:"never"!==t.getOption(ts.EditorOption.find).seedSearchStringFromSelection,shouldFocus:a,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(ts.EditorOption.find).loop})}),(0,og.registerEditorContribution)(ok.ID,oT,og.EditorContributionInstantiation.Eager),(0,og.registerEditorAction)(oP),(0,og.registerEditorAction)(oR),(0,og.registerEditorAction)(oN),(0,og.registerEditorAction)(class extends oO{constructor(){super({id:ov.FIND_IDS.NextSelectionMatchFindAction,label:(0,L.localize2)(1052,"Find Next Selection"),precondition:void 0,kbOpts:{kbExpr:eq.EditorContextKeys.focus,primary:J.KeyMod.CtrlCmd|J.KeyCode.F3,weight:eU.KeybindingWeight.EditorContrib}})}_run(e){return e.moveToNextMatch()}}),(0,og.registerEditorAction)(class extends oO{constructor(){super({id:ov.FIND_IDS.PreviousSelectionMatchFindAction,label:(0,L.localize2)(1053,"Find Previous Selection"),precondition:void 0,kbOpts:{kbExpr:eq.EditorContextKeys.focus,primary:J.KeyMod.CtrlCmd|J.KeyMod.Shift|J.KeyCode.F3,weight:eU.KeybindingWeight.EditorContrib}})}_run(e){return e.moveToPrevMatch()}});let oF=og.EditorCommand.bindToContribution(ok.get);(0,og.registerEditorCommand)(new oF({id:ov.FIND_IDS.CloseFindWidgetCommand,precondition:ov.CONTEXT_FIND_WIDGET_VISIBLE,handler:e=>e.closeFindWidget(),kbOpts:{weight:eU.KeybindingWeight.EditorContrib+5,kbExpr:U.ContextKeyExpr.and(eq.EditorContextKeys.focus,U.ContextKeyExpr.not("isComposing")),primary:J.KeyCode.Escape,secondary:[J.KeyMod.Shift|J.KeyCode.Escape]}})),(0,og.registerEditorCommand)(new oF({id:ov.FIND_IDS.ToggleCaseSensitiveCommand,precondition:void 0,handler:e=>e.toggleCaseSensitive(),kbOpts:{weight:eU.KeybindingWeight.EditorContrib+5,kbExpr:eq.EditorContextKeys.focus,primary:ov.ToggleCaseSensitiveKeybinding.primary,mac:ov.ToggleCaseSensitiveKeybinding.mac,win:ov.ToggleCaseSensitiveKeybinding.win,linux:ov.ToggleCaseSensitiveKeybinding.linux}})),(0,og.registerEditorCommand)(new oF({id:ov.FIND_IDS.ToggleWholeWordCommand,precondition:void 0,handler:e=>e.toggleWholeWords(),kbOpts:{weight:eU.KeybindingWeight.EditorContrib+5,kbExpr:eq.EditorContextKeys.focus,primary:ov.ToggleWholeWordKeybinding.primary,mac:ov.ToggleWholeWordKeybinding.mac,win:ov.ToggleWholeWordKeybinding.win,linux:ov.ToggleWholeWordKeybinding.linux}})),(0,og.registerEditorCommand)(new oF({id:ov.FIND_IDS.ToggleRegexCommand,precondition:void 0,handler:e=>e.toggleRegex(),kbOpts:{weight:eU.KeybindingWeight.EditorContrib+5,kbExpr:eq.EditorContextKeys.focus,primary:ov.ToggleRegexKeybinding.primary,mac:ov.ToggleRegexKeybinding.mac,win:ov.ToggleRegexKeybinding.win,linux:ov.ToggleRegexKeybinding.linux}})),(0,og.registerEditorCommand)(new oF({id:ov.FIND_IDS.ToggleSearchScopeCommand,precondition:void 0,handler:e=>e.toggleSearchScope(),kbOpts:{weight:eU.KeybindingWeight.EditorContrib+5,kbExpr:eq.EditorContextKeys.focus,primary:ov.ToggleSearchScopeKeybinding.primary,mac:ov.ToggleSearchScopeKeybinding.mac,win:ov.ToggleSearchScopeKeybinding.win,linux:ov.ToggleSearchScopeKeybinding.linux}})),(0,og.registerEditorCommand)(new oF({id:ov.FIND_IDS.TogglePreserveCaseCommand,precondition:void 0,handler:e=>e.togglePreserveCase(),kbOpts:{weight:eU.KeybindingWeight.EditorContrib+5,kbExpr:eq.EditorContextKeys.focus,primary:ov.TogglePreserveCaseKeybinding.primary,mac:ov.TogglePreserveCaseKeybinding.mac,win:ov.TogglePreserveCaseKeybinding.win,linux:ov.TogglePreserveCaseKeybinding.linux}})),(0,og.registerEditorCommand)(new oF({id:ov.FIND_IDS.ReplaceOneAction,precondition:ov.CONTEXT_FIND_WIDGET_VISIBLE,handler:e=>e.replace(),kbOpts:{weight:eU.KeybindingWeight.EditorContrib+5,kbExpr:eq.EditorContextKeys.focus,primary:J.KeyMod.CtrlCmd|J.KeyMod.Shift|J.KeyCode.Digit1}})),(0,og.registerEditorCommand)(new oF({id:ov.FIND_IDS.ReplaceOneAction,precondition:ov.CONTEXT_FIND_WIDGET_VISIBLE,handler:e=>e.replace(),kbOpts:{weight:eU.KeybindingWeight.EditorContrib+5,kbExpr:U.ContextKeyExpr.and(eq.EditorContextKeys.focus,ov.CONTEXT_REPLACE_INPUT_FOCUSED),primary:J.KeyCode.Enter}})),(0,og.registerEditorCommand)(new oF({id:ov.FIND_IDS.ReplaceAllAction,precondition:ov.CONTEXT_FIND_WIDGET_VISIBLE,handler:e=>e.replaceAll(),kbOpts:{weight:eU.KeybindingWeight.EditorContrib+5,kbExpr:eq.EditorContextKeys.focus,primary:J.KeyMod.CtrlCmd|J.KeyMod.Alt|J.KeyCode.Enter}})),(0,og.registerEditorCommand)(new oF({id:ov.FIND_IDS.ReplaceAllAction,precondition:ov.CONTEXT_FIND_WIDGET_VISIBLE,handler:e=>e.replaceAll(),kbOpts:{weight:eU.KeybindingWeight.EditorContrib+5,kbExpr:U.ContextKeyExpr.and(eq.EditorContextKeys.focus,ov.CONTEXT_REPLACE_INPUT_FOCUSED),primary:void 0,mac:{primary:J.KeyMod.CtrlCmd|J.KeyCode.Enter}}})),(0,og.registerEditorCommand)(new oF({id:ov.FIND_IDS.SelectAllMatchesAction,precondition:ov.CONTEXT_FIND_WIDGET_VISIBLE,handler:e=>e.selectAllMatches(),kbOpts:{weight:eU.KeybindingWeight.EditorContrib+5,kbExpr:eq.EditorContextKeys.focus,primary:J.KeyMod.Alt|J.KeyCode.Enter}})),e.s(["CommonFindController",0,ok],224556);var oK=eH,oW=e.i(130772);class oz extends oK.EditorAction{constructor(){super({id:"editor.action.fontZoomIn",label:(0,L.localize2)(1111,"Increase Editor Font Size"),precondition:void 0})}run(e,t){oW.EditorZoom.setZoomLevel(oW.EditorZoom.getZoomLevel()+1)}}class oV extends oK.EditorAction{constructor(){super({id:"editor.action.fontZoomOut",label:(0,L.localize2)(1112,"Decrease Editor Font Size"),precondition:void 0})}run(e,t){oW.EditorZoom.setZoomLevel(oW.EditorZoom.getZoomLevel()-1)}}class oB extends oK.EditorAction{constructor(){super({id:"editor.action.fontZoomReset",label:(0,L.localize2)(1113,"Reset Editor Font Size"),precondition:void 0})}run(e,t){oW.EditorZoom.setZoomLevel(0)}}(0,oK.registerEditorAction)(oz),(0,oK.registerEditorAction)(oV),(0,oK.registerEditorAction)(oB),e.s([],864123);var oU=e.i(454514),oH=eH,oq=e.i(419734),oG=e.i(264901),o$=e.i(583183),oQ=e.i(888972),oj=e.i(668567),oY=e.i(34487),oX=e.i(927842);let oZ=class{static{this.ID="editor.contrib.autoFormat"}constructor(e,t,i,o){this._editor=e,this._languageFeaturesService=t,this._workerService=i,this._accessibilitySignalService=o,this._disposables=new W.DisposableStore,this._sessionDisposables=new W.DisposableStore,this._disposables.add(t.onTypeFormattingEditProvider.onDidChange(this._update,this)),this._disposables.add(e.onDidChangeModel(()=>this._update())),this._disposables.add(e.onDidChangeModelLanguage(()=>this._update())),this._disposables.add(e.onDidChangeConfiguration(e=>{e.hasChanged(ts.EditorOption.formatOnType)&&this._update()})),this._update()}dispose(){this._disposables.dispose(),this._sessionDisposables.dispose()}_update(){if(this._sessionDisposables.clear(),!this._editor.getOption(ts.EditorOption.formatOnType)||!this._editor.hasModel())return;let e=this._editor.getModel(),[t]=this._languageFeaturesService.onTypeFormattingEditProvider.ordered(e);if(!t||!t.autoFormatTriggerCharacters)return;let i=new oq.CharacterSet;for(let e of t.autoFormatTriggerCharacters)i.add(e.charCodeAt(0));this._sessionDisposables.add(this._editor.onDidType(e=>{let t=e.charCodeAt(e.length-1);i.has(t)&&this._trigger(String.fromCharCode(t))}))}_trigger(e){if(!this._editor.hasModel()||this._editor.getSelections().length>1||!this._editor.getSelection().isEmpty())return;let t=this._editor.getModel(),i=this._editor.getPosition(),o=new iE.CancellationTokenSource,r=this._editor.onDidChangeModelContent(e=>{if(e.isFlush){o.cancel(),r.dispose();return}for(let t=0,n=e.changes.length;t<n;t++)if(e.changes[t].range.endLineNumber<=i.lineNumber){o.cancel(),r.dispose();return}});(0,oG.getOnTypeFormattingEdits)(this._workerService,this._languageFeaturesService,t,i,e,t.getFormattingOptions(),o.token).then(e=>{!o.token.isCancellationRequested&&(0,oU.isNonEmptyArray)(e)&&(this._accessibilitySignalService.playSignal(oQ.AccessibilitySignal.format,{userGesture:!1}),o$.FormattingEdit.execute(this._editor,e,!0))}).finally(()=>{r.dispose()})}};oZ=(0,eR.__decorate)([(0,eR.__param)(1,eV.ILanguageFeaturesService),(0,eR.__param)(2,iz.IEditorWorkerService),(0,eR.__param)(3,oj.IAccessibilitySignalService)],oZ);let oJ=class{static{this.ID="editor.contrib.formatOnPaste"}constructor(e,t,i){this.editor=e,this._languageFeaturesService=t,this._instantiationService=i,this._callOnDispose=new W.DisposableStore,this._callOnModel=new W.DisposableStore,this._callOnDispose.add(e.onDidChangeConfiguration(()=>this._update())),this._callOnDispose.add(e.onDidChangeModel(()=>this._update())),this._callOnDispose.add(e.onDidChangeModelLanguage(()=>this._update())),this._callOnDispose.add(t.documentRangeFormattingEditProvider.onDidChange(this._update,this))}dispose(){this._callOnDispose.dispose(),this._callOnModel.dispose()}_update(){this._callOnModel.clear(),this.editor.getOption(ts.EditorOption.formatOnPaste)&&this.editor.hasModel()&&this._languageFeaturesService.documentRangeFormattingEditProvider.has(this.editor.getModel())&&this._callOnModel.add(this.editor.onDidPaste(({range:e})=>this._trigger(e)))}_trigger(e){!this.editor.hasModel()||this.editor.getSelections().length>1||this._instantiationService.invokeFunction(oG.formatDocumentRangesWithSelectedProvider,this.editor,e,oG.FormattingMode.Silent,oY.Progress.None,iE.CancellationToken.None,!1).catch(ir.onUnexpectedError)}};oJ=(0,eR.__decorate)([(0,eR.__param)(1,eV.ILanguageFeaturesService),(0,eR.__param)(2,iF.IInstantiationService)],oJ);class o0 extends oH.EditorAction{constructor(){super({id:"editor.action.formatDocument",label:(0,L.localize2)(1114,"Format Document"),precondition:U.ContextKeyExpr.and(eq.EditorContextKeys.notInCompositeEditor,eq.EditorContextKeys.writable,eq.EditorContextKeys.hasDocumentFormattingProvider),kbOpts:{kbExpr:eq.EditorContextKeys.editorTextFocus,primary:J.KeyMod.Shift|J.KeyMod.Alt|J.KeyCode.KeyF,linux:{primary:J.KeyMod.CtrlCmd|J.KeyMod.Shift|J.KeyCode.KeyI},weight:eU.KeybindingWeight.EditorContrib},contextMenuOpts:{group:"1_modification",order:1.3}})}async run(e,t){if(t.hasModel()){let i=e.get(iF.IInstantiationService),o=e.get(oX.IEditorProgressService);await o.showWhile(i.invokeFunction(oG.formatDocumentWithSelectedProvider,t,oG.FormattingMode.Explicit,oY.Progress.None,iE.CancellationToken.None,!0),250)}}}class o1 extends oH.EditorAction{constructor(){super({id:"editor.action.formatSelection",label:(0,L.localize2)(1115,"Format Selection"),precondition:U.ContextKeyExpr.and(eq.EditorContextKeys.writable,eq.EditorContextKeys.hasDocumentSelectionFormattingProvider),kbOpts:{kbExpr:eq.EditorContextKeys.editorTextFocus,primary:(0,J.KeyChord)(J.KeyMod.CtrlCmd|J.KeyCode.KeyK,J.KeyMod.CtrlCmd|J.KeyCode.KeyF),weight:eU.KeybindingWeight.EditorContrib},contextMenuOpts:{when:eq.EditorContextKeys.hasNonEmptySelection,group:"1_modification",order:1.31}})}async run(e,t){if(!t.hasModel())return;let i=e.get(iF.IInstantiationService),o=t.getModel(),r=t.getSelections().map(e=>e.isEmpty()?new td.Range(e.startLineNumber,1,e.startLineNumber,o.getLineMaxColumn(e.startLineNumber)):e),n=e.get(oX.IEditorProgressService);await n.showWhile(i.invokeFunction(oG.formatDocumentRangesWithSelectedProvider,t,r,oG.FormattingMode.Explicit,oY.Progress.None,iE.CancellationToken.None,!0),250)}}(0,oH.registerEditorContribution)(oZ.ID,oZ,oH.EditorContributionInstantiation.BeforeFirstInteraction),(0,oH.registerEditorContribution)(oJ.ID,oJ,oH.EditorContributionInstantiation.BeforeFirstInteraction),(0,oH.registerEditorAction)(o0),(0,oH.registerEditorAction)(o1),eg.CommandsRegistry.registerCommand("editor.action.format",async e=>{let t=e.get(tF.ICodeEditorService).getFocusedCodeEditor();if(!t||!t.hasModel())return;let i=e.get(iC.ICommandService);t.getSelection().isEmpty()?await i.executeCommand("editor.action.formatDocument"):await i.executeCommand("editor.action.formatSelection")}),e.s([],359886);var o2=e.i(535567),o3=e.i(905670),o8=e.i(952509);eg.CommandsRegistry.registerCommand("_executeDocumentSymbolProvider",async function(e,...t){let[i]=t;(0,o2.assertType)(iw.URI.isUri(i));let o=e.get(o8.IOutlineModelService),r=e.get(o3.ITextModelService),n=await r.createModelReference(i);try{return(await o.getOrCreate(n.object.textEditorModel,iE.CancellationToken.None)).getTopLevelSymbols()}finally{n.dispose()}}),e.s([],509799);var o5=e.i(947413),o6=e.i(140934);e.i(71224);var o7=e.i(183866),o9=e.i(690799),o4=j,re=eH,rt=e.i(12046),ri=e.i(285397),ro=e.i(350176),rr=e.i(977140),rn=e.i(823288);class rs extends re.EditorAction{static{this.ID=ri.showNextInlineSuggestionActionId}constructor(){super({id:rs.ID,label:(0,L.localize2)(1274,"Show Next Inline Suggestion"),precondition:U.ContextKeyExpr.and(eq.EditorContextKeys.writable,ro.InlineCompletionContextKeys.inlineSuggestionVisible),kbOpts:{weight:100,primary:J.KeyMod.Alt|J.KeyCode.BracketRight}})}async run(e,t){let i=rr.InlineCompletionsController.get(t);i?.model.get()?.next()}}class ra extends re.EditorAction{static{this.ID=ri.showPreviousInlineSuggestionActionId}constructor(){super({id:ra.ID,label:(0,L.localize2)(1275,"Show Previous Inline Suggestion"),precondition:U.ContextKeyExpr.and(eq.EditorContextKeys.writable,ro.InlineCompletionContextKeys.inlineSuggestionVisible),kbOpts:{weight:100,primary:J.KeyMod.Alt|J.KeyCode.BracketLeft}})}async run(e,t){let i=rr.InlineCompletionsController.get(t);i?.model.get()?.previous()}}let rd=(0,o7.vUnion)((0,o7.vObj)({showNoResultNotification:(0,o7.vOptionalProp)((0,o7.vBoolean)()),providerId:(0,o7.vOptionalProp)((0,o7.vWithJsonSchemaRef)("vscode://schemas/inlineCompletionProviderIdArgs",(0,o7.vString)())),explicit:(0,o7.vOptionalProp)((0,o7.vBoolean)())}),(0,o7.vUndefined)());class rc extends re.EditorAction{constructor(){super({id:"editor.action.inlineSuggest.trigger",label:(0,L.localize2)(1276,"Trigger Inline Suggestion"),precondition:eq.EditorContextKeys.writable,metadata:{description:(0,L.localize)(1277,"Triggers an inline suggestion in the editor."),args:[{name:"args",description:(0,L.localize)(1278,"Options for triggering inline suggestions."),isOptional:!0,schema:rd.getJSONSchema()}]}})}async run(e,t,i){let o=e.get(iS.INotificationService),r=e.get(eV.ILanguageFeaturesService),n=rr.InlineCompletionsController.get(t),s=rd.validateOrThrow(i),a=s?.providerId?r.inlineCompletionsProvider.all(t.getModel()).find(e=>{let t;return(t=[],e.providerId&&(t.push(e.providerId.toStringWithoutVersion()),t.push(e.providerId.extensionId+":*")),t).some(e=>e===s.providerId)}):void 0;await (0,rn.asyncTransaction)(async e=>{await n?.model.get()?.trigger(e,{provider:a,explicit:s?.explicit??!0}),n?.playAccessibilitySignal(e)}),s?.showNoResultNotification&&!n?.model.get()?.state.get()&&o.notify({severity:oA.default.Info,message:(0,L.localize)(1279,"No inline suggestion is available.")})}}class rl extends re.EditorAction{constructor(){super({id:"editor.action.inlineSuggest.acceptNextWord",label:(0,L.localize2)(1280,"Accept Next Word Of Inline Suggestion"),precondition:U.ContextKeyExpr.and(eq.EditorContextKeys.writable,ro.InlineCompletionContextKeys.inlineSuggestionVisible),kbOpts:{weight:eU.KeybindingWeight.EditorContrib+1,primary:J.KeyMod.CtrlCmd|J.KeyCode.RightArrow,kbExpr:U.ContextKeyExpr.and(eq.EditorContextKeys.writable,ro.InlineCompletionContextKeys.inlineSuggestionVisible,ro.InlineCompletionContextKeys.cursorBeforeGhostText,o9.CONTEXT_ACCESSIBILITY_MODE_ENABLED.negate())},menuOpts:[{menuId:o4.MenuId.InlineSuggestionToolbar,title:(0,L.localize)(1281,"Accept Word"),group:"primary",order:2}]})}async run(e,t){let i=rr.InlineCompletionsController.get(t);await i?.model.get()?.acceptNextWord()}}class ru extends re.EditorAction{constructor(){super({id:"editor.action.inlineSuggest.acceptNextLine",label:(0,L.localize2)(1282,"Accept Next Line Of Inline Suggestion"),precondition:U.ContextKeyExpr.and(eq.EditorContextKeys.writable,ro.InlineCompletionContextKeys.inlineSuggestionVisible),kbOpts:{weight:eU.KeybindingWeight.EditorContrib+1},menuOpts:[{menuId:o4.MenuId.InlineSuggestionToolbar,title:(0,L.localize)(1283,"Accept Line"),group:"secondary",order:2}]})}async run(e,t){let i=rr.InlineCompletionsController.get(t);await i?.model.get()?.acceptNextLine()}}class rh extends re.EditorAction{constructor(){super({id:ri.inlineSuggestCommitId,label:(0,L.localize2)(1284,"Accept Inline Suggestion"),precondition:U.ContextKeyExpr.or(ro.InlineCompletionContextKeys.inlineSuggestionVisible,ro.InlineCompletionContextKeys.inlineEditVisible),menuOpts:[{menuId:o4.MenuId.InlineSuggestionToolbar,title:(0,L.localize)(1285,"Accept"),group:"primary",order:2},{menuId:o4.MenuId.InlineEditsActions,title:(0,L.localize)(1285,"Accept"),group:"primary",order:2}],kbOpts:[{primary:J.KeyCode.Tab,weight:200,kbExpr:U.ContextKeyExpr.or(U.ContextKeyExpr.and(ro.InlineCompletionContextKeys.inlineSuggestionVisible,eq.EditorContextKeys.tabMovesFocus.toNegated(),rt.Context.Visible.toNegated(),eq.EditorContextKeys.hoverFocused.toNegated(),ro.InlineCompletionContextKeys.hasSelection.toNegated(),ro.InlineCompletionContextKeys.inlineSuggestionHasIndentationLessThanTabSize),U.ContextKeyExpr.and(ro.InlineCompletionContextKeys.inlineEditVisible,eq.EditorContextKeys.tabMovesFocus.toNegated(),rt.Context.Visible.toNegated(),eq.EditorContextKeys.hoverFocused.toNegated(),ro.InlineCompletionContextKeys.tabShouldAcceptInlineEdit))}]})}async run(e,t){let i=rr.InlineCompletionsController.getInFocusedEditorOrParent(e);i&&(i.model.get()?.accept(i.editor),i.editor.focus())}}eU.KeybindingsRegistry.registerKeybindingRule({id:ri.inlineSuggestCommitId,weight:202,primary:J.KeyCode.Tab,when:U.ContextKeyExpr.and(ro.InlineCompletionContextKeys.inInlineEditsPreviewEditor)});class rp extends re.EditorAction{constructor(){super({id:ri.inlineSuggestCommitAlternativeActionId,label:(0,L.localize2)(1286,"Accept Inline Suggestion Alternative Action"),precondition:U.ContextKeyExpr.and(ro.InlineCompletionContextKeys.inlineSuggestionAlternativeActionVisible,ro.InlineCompletionContextKeys.inlineEditVisible),menuOpts:[],kbOpts:[{primary:J.KeyMod.Shift|J.KeyCode.Tab,weight:203}]})}async run(e,t){let i=rr.InlineCompletionsController.getInFocusedEditorOrParent(e);i&&(i.model.get()?.accept(i.editor,!0),i.editor.focus())}}eU.KeybindingsRegistry.registerKeybindingRule({id:ri.inlineSuggestCommitAlternativeActionId,weight:203,primary:J.KeyMod.Shift|J.KeyCode.Tab,when:U.ContextKeyExpr.and(ro.InlineCompletionContextKeys.inInlineEditsPreviewEditor)});class rg extends re.EditorAction{constructor(){super({id:ri.jumpToNextInlineEditId,label:(0,L.localize2)(1287,"Jump to next inline edit"),precondition:ro.InlineCompletionContextKeys.inlineEditVisible,menuOpts:[{menuId:o4.MenuId.InlineEditsActions,title:(0,L.localize)(1288,"Jump"),group:"primary",order:1,when:ro.InlineCompletionContextKeys.cursorAtInlineEdit.toNegated()}],kbOpts:{primary:J.KeyCode.Tab,weight:201,kbExpr:U.ContextKeyExpr.and(ro.InlineCompletionContextKeys.inlineEditVisible,eq.EditorContextKeys.tabMovesFocus.toNegated(),rt.Context.Visible.toNegated(),eq.EditorContextKeys.hoverFocused.toNegated(),ro.InlineCompletionContextKeys.tabShouldJumpToInlineEdit)}})}async run(e,t){let i=rr.InlineCompletionsController.get(t);i&&i.jump()}}class rm extends re.EditorAction{static{this.ID=ri.hideInlineCompletionId}constructor(){super({id:rm.ID,label:(0,L.localize2)(1289,"Hide Inline Suggestion"),precondition:U.ContextKeyExpr.or(ro.InlineCompletionContextKeys.inlineSuggestionVisible,ro.InlineCompletionContextKeys.inlineEditVisible),kbOpts:{weight:eU.KeybindingWeight.EditorContrib+90,primary:J.KeyCode.Escape},menuOpts:[{menuId:o4.MenuId.InlineEditsActions,title:(0,L.localize)(1290,"Reject"),group:"primary",order:3}]})}async run(e,t){let i=rr.InlineCompletionsController.getInFocusedEditorOrParent(e);(0,rn.transaction)(e=>{i?.model.get()?.stop("explicitCancel",e)}),i?.editor.focus()}}class rv extends re.EditorAction{static{this.ID=ri.toggleShowCollapsedId}constructor(){super({id:rv.ID,label:(0,L.localize2)(1291,"Toggle Inline Suggestions Show Collapsed"),precondition:U.ContextKeyExpr.true()})}async run(e,t){let i=e.get(B.IConfigurationService),o=i.getValue("editor.inlineSuggest.edits.showCollapsed");i.updateValue("editor.inlineSuggest.edits.showCollapsed",!o)}}eU.KeybindingsRegistry.registerKeybindingRule({id:rm.ID,weight:-1,primary:J.KeyCode.Escape,secondary:[J.KeyMod.Shift|J.KeyCode.Escape],when:U.ContextKeyExpr.and(ro.InlineCompletionContextKeys.inInlineEditsPreviewEditor)});class ry extends o4.Action2{static{this.ID="editor.action.inlineSuggest.toggleAlwaysShowToolbar"}constructor(){super({id:ry.ID,title:(0,L.localize)(1292,"Always Show Toolbar"),f1:!1,precondition:void 0,menu:[{id:o4.MenuId.InlineSuggestionToolbar,group:"secondary",order:10}],toggled:U.ContextKeyExpr.equals("config.editor.inlineSuggest.showToolbar","always")})}async run(e){let t=e.get(B.IConfigurationService),i=t.getValue("editor.inlineSuggest.showToolbar");t.updateValue("editor.inlineSuggest.showToolbar","always"===i?"onHover":"always")}}class rf extends re.EditorAction{constructor(){super({id:"editor.action.inlineSuggest.dev.extractRepro",label:(0,L.localize)(1293,"Developer: Extract Inline Suggest State"),alias:"Developer: Inline Suggest Extract Repro",precondition:U.ContextKeyExpr.or(ro.InlineCompletionContextKeys.inlineEditVisible,ro.InlineCompletionContextKeys.inlineSuggestionVisible)})}async run(e,t){let i=e.get(tR.IClipboardService),o=rr.InlineCompletionsController.get(t),r=o?.model.get();if(!r)return;let n=r.extractReproSample(),s=(0,tX.splitLines)(JSON.stringify({inlineCompletion:n.inlineCompletion},null,4)).map(e=>"// "+e).join("\n"),a=`${n.documentValue}
|
|
42
|
+
|
|
43
|
+
// <json>
|
|
44
|
+
${s}
|
|
45
|
+
// </json>
|
|
46
|
+
`;return await i.writeText(a),{reproCase:a}}}var r_=e.i(3111),rC=e.i(202822),rS=e.i(627886),rb=e.i(536766),rI=e.i(430900),rE=e.i(896344),rw=e.i(320945);class rD{constructor(e,t,i){this.owner=e,this.range=t,this.controller=i}isValidForHoverAnchor(e){return e.type===iD.HoverAnchorType.Range&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}let rA=class{constructor(e,t,i,o,r){this._editor=e,this.accessibilityService=t,this._instantiationService=i,this._telemetryService=o,this._markdownRendererService=r,this.hoverOrdinal=4}suggestHoverAnchor(e){let t=rr.InlineCompletionsController.get(this._editor);if(!t)return null;let i=e.target;if(i.type===ia.MouseTargetType.CONTENT_VIEW_ZONE){let o=i.detail;if(t.shouldShowHoverAtViewZone(o.viewZoneId))return new iD.HoverForeignElementAnchor(1e3,this,td.Range.fromPositions(this._editor.getModel().validatePosition(o.positionBefore||o.position)),e.event.posx,e.event.posy,!1)}if(i.type===ia.MouseTargetType.CONTENT_EMPTY&&t.shouldShowHoverAt(i.range)||i.type===ia.MouseTargetType.CONTENT_TEXT&&i.detail.mightBeForeignElement&&t.shouldShowHoverAt(i.range))return new iD.HoverForeignElementAnchor(1e3,this,i.range,e.event.posx,e.event.posy,!1);if(i.type===ia.MouseTargetType.CONTENT_WIDGET&&i.element){let o=rI.GhostTextView.getWarningWidgetContext(i.element);if(o&&t.shouldShowHoverAt(o.range))return new iD.HoverForeignElementAnchor(1e3,this,o.range,e.event.posx,e.event.posy,!1)}return null}computeSync(e,t){if("onHover"!==this._editor.getOption(ts.EditorOption.inlineSuggest).showToolbar)return[];let i=rr.InlineCompletionsController.get(this._editor);return i&&i.shouldShowHoverAt(e.range)?[new rD(this,e.range,i)]:[]}renderHoverParts(e,t){let i=new W.DisposableStore,o=t[0];this._telemetryService.publicLog2("inlineCompletionHover.shown"),this.accessibilityService.isScreenReaderOptimized()&&!this._editor.getOption(ts.EditorOption.screenReaderAnnounceInlineSuggestion)&&i.add(this.renderScreenReaderText(e,o));let r=o.controller.model.get(),n=(0,z.createElement)("div");return e.fragment.appendChild(n),i.add((0,rE.autorunWithStore)((t,i)=>{let o=i.add(this._instantiationService.createInstance(r_.InlineSuggestionHintsContentWidget.hot.read(t),this._editor,!1,(0,rw.constObservable)(null),r.selectedInlineCompletionIndex,r.inlineCompletionsCount,r.activeCommands,r.warning,()=>{e.onContentsChanged()}));n.replaceChildren(o.getDomNode())})),r.triggerExplicitly(),new iD.RenderedHoverParts([{hoverPart:o,hoverElement:n,dispose(){i.dispose()}}])}getAccessibleContent(e){return(0,L.localize)(1308,"There are inline completions here")}renderScreenReaderText(e,t){let i=new W.DisposableStore,o=z.$,r=o("div.hover-row.markdown-hover"),n=(0,z.append)(r,o("div.hover-contents",{"aria-live":"assertive"})),s=t=>{let o=(0,L.localize)(1309,"Suggestion:"),r=i.add(this._markdownRendererService.render(new e8.MarkdownString().appendText(o).appendCodeblock("text",t),{context:this._editor,asyncRenderCallback:()=>{n.className="hover-contents code-hover-contents",e.onContentsChanged()}}));n.replaceChildren(r.element)};return i.add((0,rE.autorun)(e=>{let i=t.controller.model.read(e)?.primaryGhostText.read(e);if(i){let e=this._editor.getModel().getLineContent(i.lineNumber);s(i.renderForScreenReader(e))}else(0,z.reset)(n)})),e.fragment.appendChild(r),i}};rA=(0,eR.__decorate)([(0,eR.__param)(1,rS.IAccessibilityService),(0,eR.__param)(2,iF.IInstantiationService),(0,eR.__param)(3,rb.ITelemetryService),(0,eR.__param)(4,rC.IMarkdownRendererService)],rA);var rx=e.i(915550),rk=W,rT=e.i(62837),rM=e.i(928456),rP=e.i(493827);class rR extends rk.Disposable{constructor(e,t){super(),this._editor=e,this._model=t,this._onDidChangeContent=this._register(new K.Emitter),this.onDidChangeContent=this._onDidChangeContent.event,this.id=rx.AccessibleViewProviderId.InlineCompletions,this.verbositySettingKey="accessibility.verbosity.inlineCompletions",this.options={language:this._editor.getModel()?.getLanguageId()??void 0,type:rx.AccessibleViewType.View}}provideContent(){let e=this._model.state.get();if(!e)throw Error("Inline completion is visible but state is not available");if("ghostText"===e.kind){let t=this._model.textModel.getLineContent(e.primaryGhostText.lineNumber),i=e.primaryGhostText.renderForScreenReader(t);if(!i)throw Error("Inline completion is visible but ghost text is not available");return t+i}{let t=new rP.TextModelText(this._model.textModel);return rM.LineEdit.fromTextEdit(new rT.TextEdit(e.edits),t).humanReadablePatch(t.getLines())}}provideNextContent(){this._model.next().then(()=>this._onDidChangeContent.fire())}providePreviousContent(){this._model.previous().then(()=>this._onDidChangeContent.fire())}onClose(){this._model.stop(),this._editor.focus()}}var rL=e.i(848551);(0,eH.registerEditorContribution)(rr.InlineCompletionsController.ID,(0,o6.wrapInHotClass1)(rr.InlineCompletionsController.hot),eH.EditorContributionInstantiation.Eventually),(0,eH.registerEditorAction)(rc),(0,eH.registerEditorAction)(rs),(0,eH.registerEditorAction)(ra),(0,eH.registerEditorAction)(rl),(0,eH.registerEditorAction)(ru),(0,eH.registerEditorAction)(rh),(0,eH.registerEditorAction)(rp),(0,eH.registerEditorAction)(rv),(0,eH.registerEditorAction)(rm),(0,eH.registerEditorAction)(rg),(0,j.registerAction2)(ry),(0,eH.registerEditorAction)(rf),(0,j.registerAction2)(rL.SnoozeInlineCompletion),(0,j.registerAction2)(rL.CancelSnoozeInlineCompletion),iD.HoverParticipantRegistry.register(rA),o5.AccessibleViewRegistry.register(new class{constructor(){this.type=rx.AccessibleViewType.View,this.priority=95,this.name="inline-completions",this.when=U.ContextKeyExpr.or(ro.InlineCompletionContextKeys.inlineSuggestionVisible,ro.InlineCompletionContextKeys.inlineEditVisible)}getProvider(e){let t=e.get(tF.ICodeEditorService),i=t.getActiveCodeEditor()||t.getFocusedCodeEditor();if(!i)return;let o=rr.InlineCompletionsController.get(i)?.model.get();if(o?.state.get())return new rR(i,o)}}),e.s([],598379);var rN=e.i(946606),rO=e.i(58762),rF=e.i(363553),rK=e.i(696826),rW=e.i(374863),rz=e.i(760486);(0,R.registerCss)(void 0);let rV=class{static{_=this}static{this.ID="editor.contrib.gotodefinitionatposition"}static{this.MAX_SOURCE_PREVIEW_LINES=8}constructor(e,t,i,o){this.textModelResolverService=t,this.languageService=i,this.languageFeaturesService=o,this.toUnhook=new W.DisposableStore,this.toUnhookForKeyboard=new W.DisposableStore,this.currentWordAtPosition=null,this.previousPromise=null,this.editor=e,this.linkDecorations=this.editor.createDecorationsCollection();const r=new rF.ClickLinkGesture(e);this.toUnhook.add(r),this.toUnhook.add(r.onMouseMoveOrRelevantKeyDown(([e,t])=>{this.startFindDefinitionFromMouse(e,t??void 0)})),this.toUnhook.add(r.onExecute(e=>{this.isEnabled(e)&&this.gotoDefinition(e.target.position,e.hasSideBySideModifier).catch(e=>{(0,ir.onUnexpectedError)(e)}).finally(()=>{this.removeLinkDecorations()})})),this.toUnhook.add(r.onCancel(()=>{this.removeLinkDecorations(),this.currentWordAtPosition=null}))}static get(e){return e.getContribution(_.ID)}async startFindDefinitionFromCursor(e){await this.startFindDefinition(e),this.toUnhookForKeyboard.add(this.editor.onDidChangeCursorPosition(()=>{this.currentWordAtPosition=null,this.removeLinkDecorations(),this.toUnhookForKeyboard.clear()})),this.toUnhookForKeyboard.add(this.editor.onKeyDown(e=>{e&&(this.currentWordAtPosition=null,this.removeLinkDecorations(),this.toUnhookForKeyboard.clear())}))}startFindDefinitionFromMouse(e,t){if(e.target.type===ia.MouseTargetType.CONTENT_WIDGET&&this.linkDecorations.length>0)return;if(!this.editor.hasModel()||!this.isEnabled(e,t)){this.currentWordAtPosition=null,this.removeLinkDecorations();return}let i=e.target.position;this.startFindDefinition(i)}async startFindDefinition(e){let t;this.toUnhookForKeyboard.clear();let i=e?this.editor.getModel()?.getWordAtPosition(e):null;if(!i){this.currentWordAtPosition=null,this.removeLinkDecorations();return}if(this.currentWordAtPosition&&this.currentWordAtPosition.startColumn===i.startColumn&&this.currentWordAtPosition.endColumn===i.endColumn&&this.currentWordAtPosition.word===i.word)return;this.currentWordAtPosition=i;let o=new rN.EditorState(this.editor,rN.CodeEditorStateFlag.Position|rN.CodeEditorStateFlag.Value|rN.CodeEditorStateFlag.Selection|rN.CodeEditorStateFlag.Scroll);this.previousPromise&&(this.previousPromise.cancel(),this.previousPromise=null),this.previousPromise=(0,G.createCancelablePromise)(t=>this.findDefinition(e,t));try{t=await this.previousPromise}catch(e){(0,ir.onUnexpectedError)(e);return}if(!t||!t.length||!o.validate(this.editor))return void this.removeLinkDecorations();let r=t[0].originSelectionRange?td.Range.lift(t[0].originSelectionRange):new td.Range(e.lineNumber,i.startColumn,e.lineNumber,i.endColumn);if(t.length>1){let e=r;for(let{originSelectionRange:i}of t)i&&(e=td.Range.plusRange(e,i));this.addDecoration(e,new e8.MarkdownString().appendText((0,L.localize)(1173,"Click to show {0} definitions.",t.length)))}else{let e=t[0];if(!e.uri)return;return this.textModelResolverService.createModelReference(e.uri).then(t=>{if(!t.object||!t.object.textEditorModel)return void t.dispose();let{object:{textEditorModel:i}}=t,{startLineNumber:o}=e.range;if(o<1||o>i.getLineCount())return void t.dispose();let n=this.getPreviewValue(i,o,e),s=this.languageService.guessLanguageIdByFilepathOrFirstLine(i.uri);this.addDecoration(r,n?new e8.MarkdownString().appendCodeblock(s||"",n):void 0),t.dispose()})}}getPreviewValue(e,t,i){let o=i.range;return o.endLineNumber-o.startLineNumber>=_.MAX_SOURCE_PREVIEW_LINES&&(o=this.getPreviewRangeBasedOnIndentation(e,t)),o=e.validateRange(o),this.stripIndentationFromPreviewRange(e,t,o)}stripIndentationFromPreviewRange(e,t,i){let o=e.getLineFirstNonWhitespaceColumn(t);for(let r=t+1;r<i.endLineNumber;r++)o=Math.min(o,e.getLineFirstNonWhitespaceColumn(r));return e.getValueInRange(i).replace(RegExp(`^\\s{${o-1}}`,"gm"),"").trim()}getPreviewRangeBasedOnIndentation(e,t){let i=e.getLineFirstNonWhitespaceColumn(t),o=Math.min(e.getLineCount(),t+_.MAX_SOURCE_PREVIEW_LINES),r=t+1;for(;r<o&&i!==e.getLineFirstNonWhitespaceColumn(r);r++);return new td.Range(t,1,r+1,1)}addDecoration(e,t){this.linkDecorations.set([{range:e,options:{description:"goto-definition-link",inlineClassName:"goto-definition-link",hoverMessage:t}}])}removeLinkDecorations(){this.linkDecorations.clear()}isEnabled(e,t){return this.editor.hasModel()&&e.isLeftClick&&e.isNoneOrSingleMouseDown&&e.target.type===ia.MouseTargetType.CONTENT_TEXT&&!(e.target.detail.injectedText?.options instanceof tc.ModelDecorationInjectedTextOptions)&&(e.hasTriggerModifier||!!t&&t.keyCodeIsTriggerKey)&&this.languageFeaturesService.definitionProvider.has(this.editor.getModel())}findDefinition(e,t){let i=this.editor.getModel();return i?(0,rz.getDefinitionsAtPosition)(this.languageFeaturesService.definitionProvider,i,e,!1,t):Promise.resolve(null)}async gotoDefinition(e,t){return this.editor.setPosition(e),this.editor.invokeWithinContext(e=>{let i=!t&&this.editor.getOption(ts.EditorOption.definitionLinkOpensInPeek)&&!this.isInPeekEditor(e);return new rW.DefinitionAction({openToSide:t,openInPeek:i,muteMessage:!0},{title:{value:"",original:""},id:"",precondition:void 0}).run(e)})}isInPeekEditor(e){let t=e.get(H.IContextKeyService);return rK.PeekContext.inPeekEditor.getValue(t)}dispose(){this.toUnhook.dispose(),this.toUnhookForKeyboard.dispose()}};rV=_=(0,eR.__decorate)([(0,eR.__param)(1,o3.ITextModelService),(0,eR.__param)(2,rO.ILanguageService),(0,eR.__param)(3,eV.ILanguageFeaturesService)],rV),(0,eH.registerEditorContribution)(rV.ID,rV,eH.EditorContributionInstantiation.BeforeFirstInteraction),e.s(["GotoDefinitionAtPositionEditorContribution",0,rV],27073);var rB=e.i(107043),rU=e.i(553638),rH=e.i(399362),rq=eH,rG=e.i(715672),r$=e.i(368423),rQ=e.i(801442);class rj extends rq.EditorAction{constructor(){super({id:"editor.action.debugEditorGpuRenderer",label:(0,L.localize2)(1194,"Developer: Debug Editor GPU Renderer"),precondition:U.ContextKeyExpr.true()})}async run(e,t){let i=e.get(iF.IInstantiationService),o=e.get(el.IQuickInputService),r=await o.pick([{label:(0,L.localize)(1195,"Log Texture Atlas Stats"),id:"logTextureAtlasStats"},{label:(0,L.localize)(1196,"Save Texture Atlas"),id:"saveTextureAtlas"},{label:(0,L.localize)(1197,"Draw Glyph"),id:"drawGlyph"}],{canPickMany:!1});if(r)switch(r.id){case"logTextureAtlasStats":i.invokeFunction(e=>{let t=e.get(et.ILogService),i=rQ.ViewGpuContext.atlas;if(!rQ.ViewGpuContext.atlas)return void t.error("No texture atlas found");let o=i.getStats();t.info(["Texture atlas stats",...o].join("\n\n"))});break;case"saveTextureAtlas":i.invokeFunction(async e=>{let t=e.get(rH.IWorkspaceContextService),i=e.get(rU.IFileService),o=t.getWorkspace().folders;if(o.length>0){let e=rQ.ViewGpuContext.atlas,t=[];for(let[r,n]of e.pages.entries())t.push(i.writeFile(iw.URI.joinPath(o[0].uri,`textureAtlasPage${r}_actual.png`),rB.VSBuffer.wrap(new Uint8Array(await (await n.source.convertToBlob()).arrayBuffer()))),i.writeFile(iw.URI.joinPath(o[0].uri,`textureAtlasPage${r}_usage.png`),rB.VSBuffer.wrap(new Uint8Array(await (await n.getUsagePreview()).arrayBuffer()))));await Promise.all(t)}});break;case"drawGlyph":i.invokeFunction(async e=>{let t=e.get(B.IConfigurationService),i=e.get(rU.IFileService),o=e.get(el.IQuickInputService),r=e.get(rH.IWorkspaceContextService).getWorkspace().folders;if(0===r.length)return;let n=rQ.ViewGpuContext.atlas,s=t.getValue("editor.fontFamily"),a=t.getValue("editor.fontSize"),d=new r$.GlyphRasterizer(a,s,(0,z.getActiveWindow)().devicePixelRatio,rQ.ViewGpuContext.decorationStyleCache),c=await o.input({prompt:"Enter a character to draw (prefix with 0x for code point))"});if(!c)return;let l=c.match(/0x(?<codePoint>[0-9a-f]+)/i)?.groups?.codePoint;void 0!==l&&(c=String.fromCodePoint(parseInt(l,16)));let u=n.getGlyph(d,c,0,0,0);if(!u)return;let h=n.pages[u.pageIndex].source.getContext("2d")?.getImageData(u.x,u.y,u.w,u.h);if(!h)return;let p=new OffscreenCanvas(h.width,h.height);(0,rG.ensureNonNullable)(p.getContext("2d")).putImageData(h,0,0);let g=await p.convertToBlob({type:"image/png"}),m=iw.URI.joinPath(r[0].uri,`glyph_${c}_0_${a}px_${s.replaceAll(/[,\\\/\.'\s]/g,"_")}.png`);await i.writeFile(m,rB.VSBuffer.wrap(new Uint8Array(await g.arrayBuffer())))})}}}(0,rq.registerEditorAction)(rj),e.s([],621595);var rY=e.i(181049),rX=eH,rZ=e.i(772649);(0,R.registerCss)(void 0),(s=C||(C={})).NoAutoFocus="noAutoFocus",s.FocusIfVisible="focusIfVisible",s.AutoFocusImmediately="autoFocusImmediately";class rJ extends rX.EditorAction{constructor(){super({id:rY.SHOW_OR_FOCUS_HOVER_ACTION_ID,label:(0,L.localize2)(1205,"Show or Focus Hover"),metadata:{description:(0,L.localize2)(1206,"Show or focus the editor hover which shows documentation, references, and other content for a symbol at the current cursor position."),args:[{name:"args",schema:{type:"object",properties:{focus:{description:"Controls if and when the hover should take focus upon being triggered by this action.",enum:[C.NoAutoFocus,C.FocusIfVisible,C.AutoFocusImmediately],enumDescriptions:[(0,L.localize)(1207,"The hover will not automatically take focus."),(0,L.localize)(1208,"The hover will take focus only if it is already visible."),(0,L.localize)(1209,"The hover will automatically take focus when it appears.")],default:C.FocusIfVisible}}}}]},precondition:void 0,kbOpts:{kbExpr:eq.EditorContextKeys.editorTextFocus,primary:(0,J.KeyChord)(J.KeyMod.CtrlCmd|J.KeyCode.KeyK,J.KeyMod.CtrlCmd|J.KeyCode.KeyI),weight:eU.KeybindingWeight.EditorContrib}})}run(e,t,i){if(!t.hasModel())return;let o=iM.ContentHoverController.get(t);if(!o)return;let r=i?.focus,n=C.FocusIfVisible;Object.values(C).includes(r)?n=r:"boolean"==typeof r&&r&&(n=C.AutoFocusImmediately);let s=e=>{let i=t.getPosition(),r=new td.Range(i.lineNumber,i.column,i.lineNumber,i.column);o.showContentHover(r,iP.HoverStartMode.Immediate,iP.HoverStartSource.Keyboard,e)},a=t.getOption(ts.EditorOption.accessibilitySupport)===o9.AccessibilitySupport.Enabled;o.isHoverVisible?n!==C.NoAutoFocus?o.focus():s(a):s(a||n===C.AutoFocusImmediately)}}class r0 extends rX.EditorAction{constructor(){super({id:rY.SHOW_DEFINITION_PREVIEW_HOVER_ACTION_ID,label:(0,L.localize2)(1210,"Show Definition Preview Hover"),precondition:void 0,metadata:{description:(0,L.localize2)(1211,"Show the definition preview hover in the editor.")}})}run(e,t){let i=iM.ContentHoverController.get(t);if(!i)return;let o=t.getPosition();if(!o)return;let r=new td.Range(o.lineNumber,o.column,o.lineNumber,o.column),n=rV.get(t);n&&n.startFindDefinitionFromCursor(o).then(()=>{i.showContentHover(r,iP.HoverStartMode.Immediate,iP.HoverStartSource.Keyboard,!0)})}}class r1 extends rX.EditorAction{constructor(){super({id:rY.HIDE_HOVER_ACTION_ID,label:(0,L.localize2)(1212,"Hide Hover"),alias:"Hide Content Hover",precondition:void 0})}run(e,t){iM.ContentHoverController.get(t)?.hideContentHover()}}class r2 extends rX.EditorAction{constructor(){super({id:rY.SCROLL_UP_HOVER_ACTION_ID,label:(0,L.localize2)(1213,"Scroll Up Hover"),precondition:eq.EditorContextKeys.hoverFocused,kbOpts:{kbExpr:eq.EditorContextKeys.hoverFocused,primary:J.KeyCode.UpArrow,weight:eU.KeybindingWeight.EditorContrib},metadata:{description:(0,L.localize2)(1214,"Scroll up the editor hover.")}})}run(e,t){let i=iM.ContentHoverController.get(t);i&&i.scrollUp()}}class r3 extends rX.EditorAction{constructor(){super({id:rY.SCROLL_DOWN_HOVER_ACTION_ID,label:(0,L.localize2)(1215,"Scroll Down Hover"),precondition:eq.EditorContextKeys.hoverFocused,kbOpts:{kbExpr:eq.EditorContextKeys.hoverFocused,primary:J.KeyCode.DownArrow,weight:eU.KeybindingWeight.EditorContrib},metadata:{description:(0,L.localize2)(1216,"Scroll down the editor hover.")}})}run(e,t){let i=iM.ContentHoverController.get(t);i&&i.scrollDown()}}class r8 extends rX.EditorAction{constructor(){super({id:rY.SCROLL_LEFT_HOVER_ACTION_ID,label:(0,L.localize2)(1217,"Scroll Left Hover"),precondition:eq.EditorContextKeys.hoverFocused,kbOpts:{kbExpr:eq.EditorContextKeys.hoverFocused,primary:J.KeyCode.LeftArrow,weight:eU.KeybindingWeight.EditorContrib},metadata:{description:(0,L.localize2)(1218,"Scroll left the editor hover.")}})}run(e,t){let i=iM.ContentHoverController.get(t);i&&i.scrollLeft()}}class r5 extends rX.EditorAction{constructor(){super({id:rY.SCROLL_RIGHT_HOVER_ACTION_ID,label:(0,L.localize2)(1219,"Scroll Right Hover"),precondition:eq.EditorContextKeys.hoverFocused,kbOpts:{kbExpr:eq.EditorContextKeys.hoverFocused,primary:J.KeyCode.RightArrow,weight:eU.KeybindingWeight.EditorContrib},metadata:{description:(0,L.localize2)(1220,"Scroll right the editor hover.")}})}run(e,t){let i=iM.ContentHoverController.get(t);i&&i.scrollRight()}}class r6 extends rX.EditorAction{constructor(){super({id:rY.PAGE_UP_HOVER_ACTION_ID,label:(0,L.localize2)(1221,"Page Up Hover"),precondition:eq.EditorContextKeys.hoverFocused,kbOpts:{kbExpr:eq.EditorContextKeys.hoverFocused,primary:J.KeyCode.PageUp,secondary:[J.KeyMod.Alt|J.KeyCode.UpArrow],weight:eU.KeybindingWeight.EditorContrib},metadata:{description:(0,L.localize2)(1222,"Page up the editor hover.")}})}run(e,t){let i=iM.ContentHoverController.get(t);i&&i.pageUp()}}class r7 extends rX.EditorAction{constructor(){super({id:rY.PAGE_DOWN_HOVER_ACTION_ID,label:(0,L.localize2)(1223,"Page Down Hover"),precondition:eq.EditorContextKeys.hoverFocused,kbOpts:{kbExpr:eq.EditorContextKeys.hoverFocused,primary:J.KeyCode.PageDown,secondary:[J.KeyMod.Alt|J.KeyCode.DownArrow],weight:eU.KeybindingWeight.EditorContrib},metadata:{description:(0,L.localize2)(1224,"Page down the editor hover.")}})}run(e,t){let i=iM.ContentHoverController.get(t);i&&i.pageDown()}}class r9 extends rX.EditorAction{constructor(){super({id:rY.GO_TO_TOP_HOVER_ACTION_ID,label:(0,L.localize2)(1225,"Go To Top Hover"),precondition:eq.EditorContextKeys.hoverFocused,kbOpts:{kbExpr:eq.EditorContextKeys.hoverFocused,primary:J.KeyCode.Home,secondary:[J.KeyMod.CtrlCmd|J.KeyCode.UpArrow],weight:eU.KeybindingWeight.EditorContrib},metadata:{description:(0,L.localize2)(1226,"Go to the top of the editor hover.")}})}run(e,t){let i=iM.ContentHoverController.get(t);i&&i.goToTop()}}class r4 extends rX.EditorAction{constructor(){super({id:rY.GO_TO_BOTTOM_HOVER_ACTION_ID,label:(0,L.localize2)(1227,"Go To Bottom Hover"),precondition:eq.EditorContextKeys.hoverFocused,kbOpts:{kbExpr:eq.EditorContextKeys.hoverFocused,primary:J.KeyCode.End,secondary:[J.KeyMod.CtrlCmd|J.KeyCode.DownArrow],weight:eU.KeybindingWeight.EditorContrib},metadata:{description:(0,L.localize2)(1228,"Go to the bottom of the editor hover.")}})}run(e,t){let i=iM.ContentHoverController.get(t);i&&i.goToBottom()}}class ne extends rX.EditorAction{constructor(){super({id:rY.INCREASE_HOVER_VERBOSITY_ACTION_ID,label:rY.INCREASE_HOVER_VERBOSITY_ACTION_LABEL,alias:"Increase Hover Verbosity Level",precondition:eq.EditorContextKeys.hoverVisible})}run(e,t,i){let o=iM.ContentHoverController.get(t);if(!o)return;let r=i?.index!==void 0?i.index:o.focusedHoverPartIndex();o.updateHoverVerbosityLevel(rZ.HoverVerbosityAction.Increase,r,i?.focus)}}class nt extends rX.EditorAction{constructor(){super({id:rY.DECREASE_HOVER_VERBOSITY_ACTION_ID,label:rY.DECREASE_HOVER_VERBOSITY_ACTION_LABEL,alias:"Decrease Hover Verbosity Level",precondition:eq.EditorContextKeys.hoverVisible})}run(e,t,i){let o=iM.ContentHoverController.get(t);if(!o)return;let r=i?.index!==void 0?i.index:o.focusedHoverPartIndex();iM.ContentHoverController.get(t)?.updateHoverVerbosityLevel(rZ.HoverVerbosityAction.Decrease,r,i?.focus)}}var ni=e.i(605698),no=e.i(120037),nr=e.i(279187),nn=e.i(536367),ns=W;(a=S||(S={})).increaseVerbosity=(0,L.localize)(1201,"- The focused hover part verbosity level can be increased with the Increase Hover Verbosity command.",`<keybinding:${rY.INCREASE_HOVER_VERBOSITY_ACTION_ID}>`),a.decreaseVerbosity=(0,L.localize)(1202,"- The focused hover part verbosity level can be decreased with the Decrease Hover Verbosity command.",`<keybinding:${rY.DECREASE_HOVER_VERBOSITY_ACTION_ID}>`);class na extends ns.Disposable{constructor(e){super(),this._hoverController=e,this.id=rx.AccessibleViewProviderId.Hover,this.verbositySettingKey="accessibility.verbosity.hover",this._onDidChangeContent=this._register(new K.Emitter),this.onDidChangeContent=this._onDidChangeContent.event,this._focusedHoverPartIndex=-1}onOpen(){this._hoverController&&(this._hoverController.shouldKeepOpenOnEditorMouseMoveOrLeave=!0,this._focusedHoverPartIndex=this._hoverController.focusedHoverPartIndex(),this._register(this._hoverController.onHoverContentsChanged(()=>{this._onDidChangeContent.fire()})))}onClose(){this._hoverController&&(-1===this._focusedHoverPartIndex?this._hoverController.focus():this._hoverController.focusHoverPartWithIndex(this._focusedHoverPartIndex),this._focusedHoverPartIndex=-1,this._hoverController.shouldKeepOpenOnEditorMouseMoveOrLeave=!1)}provideContentAtIndex(e,t){if(-1!==e){let i=this._hoverController.getAccessibleWidgetContentAtIndex(e);if(void 0===i)return"";let o=[];return t&&o.push(...this._descriptionsOfVerbosityActionsForIndex(e)),o.push(i),o.join("\n")}{let e=this._hoverController.getAccessibleWidgetContent();if(void 0===e)return"";let t=[];return t.push(e),t.join("\n")}}_descriptionsOfVerbosityActionsForIndex(e){let t=[],i=this._descriptionOfVerbosityActionForIndex(rZ.HoverVerbosityAction.Increase,e);void 0!==i&&t.push(i);let o=this._descriptionOfVerbosityActionForIndex(rZ.HoverVerbosityAction.Decrease,e);return void 0!==o&&t.push(o),t}_descriptionOfVerbosityActionForIndex(e,t){if(this._hoverController.doesHoverAtIndexSupportVerbosityAction(t,e))switch(e){case rZ.HoverVerbosityAction.Increase:return S.increaseVerbosity;case rZ.HoverVerbosityAction.Decrease:return S.decreaseVerbosity}}}class nd extends na{constructor(e){super(e),this.options={type:rx.AccessibleViewType.Help}}provideContent(){return this.provideContentAtIndex(this._focusedHoverPartIndex,!0)}}class nc extends na{constructor(e,t,i){super(i),this._keybindingService=e,this._editor=t,this.options={type:rx.AccessibleViewType.View},this._initializeOptions(this._editor,i)}provideContent(){return this.provideContentAtIndex(this._focusedHoverPartIndex,!1)}get actions(){let e=[];return e.push(this._getActionFor(this._editor,rZ.HoverVerbosityAction.Increase)),e.push(this._getActionFor(this._editor,rZ.HoverVerbosityAction.Decrease)),e}_getActionFor(e,t){let i,o,r;switch(t){case rZ.HoverVerbosityAction.Increase:i=rY.INCREASE_HOVER_VERBOSITY_ACTION_ID,o=rY.INCREASE_HOVER_VERBOSITY_ACCESSIBLE_ACTION_ID,r=e1.Codicon.add;break;case rZ.HoverVerbosityAction.Decrease:i=rY.DECREASE_HOVER_VERBOSITY_ACTION_ID,o=rY.DECREASE_HOVER_VERBOSITY_ACCESSIBLE_ACTION_ID,r=e1.Codicon.remove}let n=(0,ni.labelForHoverVerbosityAction)(this._keybindingService,t),s=this._hoverController.doesHoverAtIndexSupportVerbosityAction(this._focusedHoverPartIndex,t);return new eL.Action(o,n,nn.ThemeIcon.asClassName(r),s,()=>{e.getAction(i)?.run({index:this._focusedHoverPartIndex,focus:!1})})}_initializeOptions(e,t){let i=this._register(new nd(t));this.options.language=e.getModel()?.getLanguageId(),this.options.customHelp=()=>i.provideContentAtIndex(this._focusedHoverPartIndex,!0)}}(0,R.registerCss)(void 0),(0,eH.registerEditorContribution)(iM.ContentHoverController.ID,iM.ContentHoverController,eH.EditorContributionInstantiation.BeforeFirstInteraction),(0,eH.registerEditorContribution)(nr.GlyphHoverController.ID,nr.GlyphHoverController,eH.EditorContributionInstantiation.BeforeFirstInteraction),(0,eH.registerEditorAction)(rJ),(0,eH.registerEditorAction)(r0),(0,eH.registerEditorAction)(r1),(0,eH.registerEditorAction)(r2),(0,eH.registerEditorAction)(r3),(0,eH.registerEditorAction)(r8),(0,eH.registerEditorAction)(r5),(0,eH.registerEditorAction)(r6),(0,eH.registerEditorAction)(r7),(0,eH.registerEditorAction)(r9),(0,eH.registerEditorAction)(r4),(0,eH.registerEditorAction)(ne),(0,eH.registerEditorAction)(nt),iD.HoverParticipantRegistry.register(ni.MarkdownHoverParticipant),iD.HoverParticipantRegistry.register(no.MarkerHoverParticipant),(0,tv.registerThemingParticipant)((e,t)=>{let i=e.getColor(th.editorHoverBorder);i&&(t.addRule(`.monaco-editor .monaco-hover .hover-row:not(:first-child):not(:empty) { border-top: 1px solid ${i.transparent(.5)}; }`),t.addRule(`.monaco-editor .monaco-hover hr { border-top: 1px solid ${i.transparent(.5)}; }`),t.addRule(`.monaco-editor .monaco-hover hr { border-bottom: 0px solid ${i.transparent(.5)}; }`))}),o5.AccessibleViewRegistry.register(new class{constructor(){this.type=rx.AccessibleViewType.View,this.priority=95,this.name="hover",this.when=eq.EditorContextKeys.hoverFocused}getProvider(e){let t=e.get(tF.ICodeEditorService),i=t.getActiveCodeEditor()||t.getFocusedCodeEditor();if(!i)throw Error("No active or focused code editor");let o=iM.ContentHoverController.get(i);if(!o)return;let r=e.get(N.IKeybindingService);return e.get(iF.IInstantiationService).createInstance(nc,r,i,o)}}),o5.AccessibleViewRegistry.register(new class{constructor(){this.priority=100,this.name="hover",this.type=rx.AccessibleViewType.Help,this.when=eq.EditorContextKeys.hoverVisible}getProvider(e){let t=e.get(tF.ICodeEditorService),i=t.getActiveCodeEditor()||t.getFocusedCodeEditor();if(!i)throw Error("No active or focused code editor");let o=iM.ContentHoverController.get(i);if(o)return e.get(iF.IInstantiationService).createInstance(nd,o)}}),o5.AccessibleViewRegistry.register(new class{constructor(){this.type=rx.AccessibleViewType.View,this.priority=90,this.name="extension-hover"}getProvider(e){let t=e.get(oE.IContextViewService).getContextViewElement(),i=t?.textContent??void 0,o=e.get(iQ.IHoverService);if(!t.classList.contains("accessible-view-container")&&i)return new rx.AccessibleContentProvider(rx.AccessibleViewProviderId.Hover,{language:"typescript",type:rx.AccessibleViewType.View},()=>i,()=>{o.showAndFocusLastHover()},"accessibility.verbosity.hover")}}),e.s([],109157);var nl=eH,nu=e.i(148907),nh=e.i(561295),np=e.i(103041),ng=e.i(774428),nm=e.i(326659),nv=e.i(830598),ny=e.i(353456),nf=e.i(339828);function n_(e,t,i,o){if(1===e.getLineCount()&&1===e.getLineMaxColumn(1))return[];let r=t.getLanguageConfiguration(e.getLanguageId()).indentRulesSupport;if(!r)return[];let n=new nf.ProcessedIndentRulesSupport(e,r,t);for(o=Math.min(o,e.getLineCount());i<=o&&n.shouldIgnore(i);)i++;if(i>o-1)return[];let{tabSize:s,indentSize:a,insertSpaces:d}=e.getOptions(),c=(e,t)=>(t=t||1,nu.ShiftCommand.shiftIndent(e,e.length+t,s,a,d)),l=(e,t)=>(t=t||1,nu.ShiftCommand.unshiftIndent(e,e.length+t,s,a,d)),u=[],h=e.getLineContent(i),p=(0,tX.getLeadingWhitespace)(h),g=p;n.shouldIncrease(i)?(g=c(g),p=c(p)):n.shouldIndentNextLine(i)&&(g=c(g)),i++;for(let t=i;t<=o;t++){var m,v;if(m=e,v=t,m.tokenization.isCheapToTokenize(v)&&m.tokenization.getLineTokens(v).getStandardTokenType(0)===nh.StandardTokenType.String)continue;let i=e.getLineContent(t),o=(0,tX.getLeadingWhitespace)(i),r=g;n.shouldDecrease(t,r)&&(g=l(g),p=l(p)),o!==g&&u.push(i5.EditOperation.replaceMove(new e6.Selection(t,1,t,o.length+1),(0,ny.normalizeIndentation)(g,a,d))),n.shouldIgnore(t)||(g=n.shouldIncrease(t,r)?p=c(p):n.shouldIndentNextLine(t,r)?c(g):p)}return u}var nC=e.i(971845);class nS extends nl.EditorAction{static{this.ID="editor.action.indentationToSpaces"}constructor(){super({id:nS.ID,label:(0,L.localize2)(1246,"Convert Indentation to Spaces"),precondition:eq.EditorContextKeys.writable,metadata:{description:(0,L.localize2)(1247,"Convert the tab indentation to spaces.")}})}run(e,t){let i=t.getModel();if(!i)return;let o=i.getOptions(),r=t.getSelection();if(!r)return;let n=new nR(r,o.tabSize);t.pushUndoStop(),t.executeCommands(this.id,[n]),t.pushUndoStop(),i.updateOptions({insertSpaces:!0})}}class nb extends nl.EditorAction{static{this.ID="editor.action.indentationToTabs"}constructor(){super({id:nb.ID,label:(0,L.localize2)(1248,"Convert Indentation to Tabs"),precondition:eq.EditorContextKeys.writable,metadata:{description:(0,L.localize2)(1249,"Convert the spaces indentation to tabs.")}})}run(e,t){let i=t.getModel();if(!i)return;let o=i.getOptions(),r=t.getSelection();if(!r)return;let n=new nL(r,o.tabSize);t.pushUndoStop(),t.executeCommands(this.id,[n]),t.pushUndoStop(),i.updateOptions({insertSpaces:!1})}}class nI extends nl.EditorAction{constructor(e,t,i){super(i),this.insertSpaces=e,this.displaySizeOnly=t}run(e,t){let i=e.get(el.IQuickInputService),o=e.get(nm.IModelService),r=t.getModel();if(!r)return;let n=o.getCreationOptions(r.getLanguageId(),r.uri,r.isForSimpleWidget),s=r.getOptions(),a=[1,2,3,4,5,6,7,8].map(e=>({id:e.toString(),label:e.toString(),description:e===n.tabSize&&e===s.tabSize?(0,L.localize)(1250,"Configured Tab Size"):e===n.tabSize?(0,L.localize)(1251,"Default Tab Size"):e===s.tabSize?(0,L.localize)(1252,"Current Tab Size"):void 0})),d=Math.min(r.getOptions().tabSize-1,7);setTimeout(()=>{i.pick(a,{placeHolder:(0,L.localize)(1253,"Select Tab Size for Current File"),activeItem:a[d]}).then(e=>{if(e&&r&&!r.isDisposed()){let t=parseInt(e.label,10);this.displaySizeOnly?r.updateOptions({tabSize:t}):r.updateOptions({tabSize:t,indentSize:t,insertSpaces:this.insertSpaces})}})},50)}}class nE extends nI{static{this.ID="editor.action.indentUsingTabs"}constructor(){super(!1,!1,{id:nE.ID,label:(0,L.localize2)(1254,"Indent Using Tabs"),precondition:void 0,metadata:{description:(0,L.localize2)(1255,"Use indentation with tabs.")}})}}class nw extends nI{static{this.ID="editor.action.indentUsingSpaces"}constructor(){super(!0,!1,{id:nw.ID,label:(0,L.localize2)(1256,"Indent Using Spaces"),precondition:void 0,metadata:{description:(0,L.localize2)(1257,"Use indentation with spaces.")}})}}class nD extends nI{static{this.ID="editor.action.changeTabDisplaySize"}constructor(){super(!0,!0,{id:nD.ID,label:(0,L.localize2)(1258,"Change Tab Display Size"),precondition:void 0,metadata:{description:(0,L.localize2)(1259,"Change the space size equivalent of the tab.")}})}}class nA extends nl.EditorAction{static{this.ID="editor.action.detectIndentation"}constructor(){super({id:nA.ID,label:(0,L.localize2)(1260,"Detect Indentation from Content"),precondition:void 0,metadata:{description:(0,L.localize2)(1261,"Detect the indentation from content.")}})}run(e,t){let i=e.get(nm.IModelService),o=t.getModel();if(!o)return;let r=i.getCreationOptions(o.getLanguageId(),o.uri,o.isForSimpleWidget);o.detectIndentation(r.insertSpaces,r.tabSize)}}class nx extends nl.EditorAction{constructor(){super({id:"editor.action.reindentlines",label:(0,L.localize2)(1262,"Reindent Lines"),precondition:eq.EditorContextKeys.writable,metadata:{description:(0,L.localize2)(1263,"Reindent the lines of the editor.")},canTriggerInlineEdits:!0})}run(e,t){let i=e.get(i3.ILanguageConfigurationService),o=t.getModel();if(!o)return;let r=n_(o,i,1,o.getLineCount());r.length>0&&(t.pushUndoStop(),t.executeEdits(this.id,r),t.pushUndoStop())}}class nk extends nl.EditorAction{constructor(){super({id:"editor.action.reindentselectedlines",label:(0,L.localize2)(1264,"Reindent Selected Lines"),precondition:eq.EditorContextKeys.writable,metadata:{description:(0,L.localize2)(1265,"Reindent the selected lines of the editor.")},canTriggerInlineEdits:!0})}run(e,t){let i=e.get(i3.ILanguageConfigurationService),o=t.getModel();if(!o)return;let r=t.getSelections();if(null===r)return;let n=[];for(let e of r){let t=e.startLineNumber,r=e.endLineNumber;if(t!==r&&1===e.endColumn&&r--,1===t){if(t===r)continue}else t--;let s=n_(o,i,t,r);n.push(...s)}n.length>0&&(t.pushUndoStop(),t.executeEdits(this.id,n),t.pushUndoStop())}}class nT{constructor(e,t){for(const i of(this._initialSelection=t,this._edits=[],this._selectionId=null,e))i.range&&"string"==typeof i.text&&this._edits.push(i)}getEditOperations(e,t){for(let e of this._edits)t.addEditOperation(td.Range.lift(e.range),e.text);let i=!1;Array.isArray(this._edits)&&1===this._edits.length&&this._initialSelection.isEmpty()&&(this._edits[0].range.startColumn===this._initialSelection.endColumn&&this._edits[0].range.startLineNumber===this._initialSelection.endLineNumber?(i=!0,this._selectionId=t.trackSelection(this._initialSelection,!0)):this._edits[0].range.endColumn===this._initialSelection.startColumn&&this._edits[0].range.endLineNumber===this._initialSelection.startLineNumber&&(i=!0,this._selectionId=t.trackSelection(this._initialSelection,!1))),i||(this._selectionId=t.trackSelection(this._initialSelection))}computeCursorState(e,t){return t.getTrackedSelection(this._selectionId)}}let nM=class{static{this.ID="editor.contrib.autoIndentOnPaste"}constructor(e,t){this.editor=e,this._languageConfigurationService=t,this.callOnDispose=new W.DisposableStore,this.callOnModel=new W.DisposableStore,this.callOnDispose.add(e.onDidChangeConfiguration(()=>this.update())),this.callOnDispose.add(e.onDidChangeModel(()=>this.update())),this.callOnDispose.add(e.onDidChangeModelLanguage(()=>this.update()))}update(){this.callOnModel.clear(),!this.editor.getOption(ts.EditorOption.autoIndentOnPaste)||this.editor.getOption(ts.EditorOption.autoIndent)<ts.EditorAutoIndentStrategy.Full||this.editor.hasModel()&&this.callOnModel.add(this.editor.onDidPaste(({range:e})=>{this.trigger(e)}))}trigger(e){var t,i;let o,r=this.editor.getSelections();if(null===r||r.length>1)return;let n=this.editor.getModel();if(!n||this.rangeContainsOnlyWhitespaceCharacters(n,e)||!this.editor.getOption(ts.EditorOption.autoIndentOnPasteWithinString)&&(t=n,i=e,(o=e=>(0,nv.getStandardTokenTypeAtPosition)(t,e)===nh.StandardTokenType.String)(i.getStartPosition())||o(i.getEndPosition()))||!n.tokenization.isCheapToTokenize(e.getStartPosition().lineNumber))return;let s=this.editor.getOption(ts.EditorOption.autoIndent),{tabSize:a,indentSize:d,insertSpaces:c}=n.getOptions(),l=[],u={shiftIndent:e=>nu.ShiftCommand.shiftIndent(e,e.length+1,a,d,c),unshiftIndent:e=>nu.ShiftCommand.unshiftIndent(e,e.length+1,a,d,c)},h=e.startLineNumber,p=n.getLineContent(h);if(!/\S/.test(p.substring(0,e.startColumn-1))){let e=(0,np.getGoodIndentForLine)(s,n,n.getLanguageId(),h,u,this._languageConfigurationService);if(null!==e){let t=(0,tX.getLeadingWhitespace)(p),i=(0,nC.getSpaceCnt)(e,a);if(i!==(0,nC.getSpaceCnt)(t,a)){let e=(0,nC.generateIndent)(i,a,c);l.push({range:new td.Range(h,1,h,t.length+1),text:e}),p=e+p.substring(t.length)}else{let e=(0,np.getIndentMetadata)(n,h,this._languageConfigurationService);if(0===e||e===ng.IndentConsts.UNINDENT_MASK)return}}}let g=h;for(;h<e.endLineNumber;){if(!/\S/.test(n.getLineContent(h+1))){h++;continue}break}if(h!==e.endLineNumber){let t=(0,np.getGoodIndentForLine)(s,{tokenization:{getLineTokens:e=>n.tokenization.getLineTokens(e),getLanguageId:()=>n.getLanguageId(),getLanguageIdAtPosition:(e,t)=>n.getLanguageIdAtPosition(e,t)},getLineContent:e=>e===g?p:n.getLineContent(e)},n.getLanguageId(),h+1,u,this._languageConfigurationService);if(null!==t){let i=(0,nC.getSpaceCnt)(t,a),o=(0,nC.getSpaceCnt)((0,tX.getLeadingWhitespace)(n.getLineContent(h+1)),a);if(i!==o){let t=i-o;for(let i=h+1;i<=e.endLineNumber;i++){let e=n.getLineContent(i),o=(0,tX.getLeadingWhitespace)(e),r=(0,nC.getSpaceCnt)(o,a)+t,s=(0,nC.generateIndent)(r,a,c);s!==o&&l.push({range:new td.Range(i,1,i,o.length+1),text:s})}}}}if(l.length>0){this.editor.pushUndoStop();let e=new nT(l,this.editor.getSelection());this.editor.executeCommand("autoIndentOnPaste",e),this.editor.pushUndoStop()}}rangeContainsOnlyWhitespaceCharacters(e,t){let i=e=>0===e.trim().length,o=!0;if(t.startLineNumber===t.endLineNumber)o=i(e.getLineContent(t.startLineNumber).substring(t.startColumn-1,t.endColumn-1));else for(let r=t.startLineNumber;r<=t.endLineNumber;r++){let n=e.getLineContent(r);if(!(o=r===t.startLineNumber?i(n.substring(t.startColumn-1)):r===t.endLineNumber?i(n.substring(0,t.endColumn-1)):0===e.getLineFirstNonWhitespaceColumn(r)))break}return o}dispose(){this.callOnDispose.dispose(),this.callOnModel.dispose()}};function nP(e,t,i,o){if(1===e.getLineCount()&&1===e.getLineMaxColumn(1))return;let r="";for(let e=0;e<i;e++)r+=" ";let n=RegExp(r,"gi");for(let i=1,s=e.getLineCount();i<=s;i++){let s=e.getLineFirstNonWhitespaceColumn(i);if(0===s&&(s=e.getLineMaxColumn(i)),1===s)continue;let a=new td.Range(i,1,i,s),d=e.getValueInRange(a),c=o?d.replace(/\t/ig,r):d.replace(n," ");t.addEditOperation(a,c)}}nM=(0,eR.__decorate)([(0,eR.__param)(1,i3.ILanguageConfigurationService)],nM);class nR{constructor(e,t){this.selection=e,this.tabSize=t,this.selectionId=null}getEditOperations(e,t){this.selectionId=t.trackSelection(this.selection),nP(e,t,this.tabSize,!0)}computeCursorState(e,t){return t.getTrackedSelection(this.selectionId)}}class nL{constructor(e,t){this.selection=e,this.tabSize=t,this.selectionId=null}getEditOperations(e,t){this.selectionId=t.trackSelection(this.selection),nP(e,t,this.tabSize,!1)}computeCursorState(e,t){return t.getTrackedSelection(this.selectionId)}}(0,nl.registerEditorContribution)(nM.ID,nM,nl.EditorContributionInstantiation.BeforeFirstInteraction),(0,nl.registerEditorAction)(nS),(0,nl.registerEditorAction)(nb),(0,nl.registerEditorAction)(nE),(0,nl.registerEditorAction)(nw),(0,nl.registerEditorAction)(nD),(0,nl.registerEditorAction)(nA),(0,nl.registerEditorAction)(nx),(0,nl.registerEditorAction)(nk),e.s(["ChangeTabDisplaySize",0,nD,"DetectIndentation",0,nA,"IndentUsingSpaces",0,nw,"IndentUsingTabs",0,nE,"IndentationToSpacesAction",0,nS,"IndentationToTabsAction",0,nb],184053);var nN=e.i(410149),nO=e.i(270737);(0,eH.registerEditorContribution)(nN.InlayHintsController.ID,nN.InlayHintsController,eH.EditorContributionInstantiation.AfterFirstRender),iD.HoverParticipantRegistry.register(nO.InlayHintsHover),e.s([],27950);var nF=eH;class nK{constructor(e,t,i){this._editRange=e,this._originalSelection=t,this._text=i}getEditOperations(e,t){t.addTrackedEditOperation(this._editRange,this._text)}computeCursorState(e,t){let i=t.getInverseEditOperations()[0].range;return this._originalSelection.isEmpty()?new e6.Selection(i.endLineNumber,Math.min(this._originalSelection.positionColumn,i.endColumn),i.endLineNumber,Math.min(this._originalSelection.positionColumn,i.endColumn)):new e6.Selection(i.endLineNumber,i.endColumn-this._text.length,i.endLineNumber,i.endColumn)}}(0,R.registerCss)(void 0);let nW=class{static{b=this}static{this.ID="editor.contrib.inPlaceReplaceController"}static get(e){return e.getContribution(b.ID)}static{this.DECORATION=tc.ModelDecorationOptions.register({description:"in-place-replace",className:"valueSetReplacement"})}constructor(e,t){this.editor=e,this.editorWorkerService=t,this.decorations=this.editor.createDecorationsCollection()}dispose(){}run(e,t){this.currentRequest?.cancel();let i=this.editor.getSelection(),o=this.editor.getModel();if(!o||!i)return;let r=i;if(r.startLineNumber!==r.endLineNumber)return;let n=new rN.EditorState(this.editor,rN.CodeEditorStateFlag.Value|rN.CodeEditorStateFlag.Position),s=o.uri;return this.editorWorkerService.canNavigateValueSet(s)?(this.currentRequest=(0,G.createCancelablePromise)(e=>this.editorWorkerService.navigateValueSet(s,r,t)),this.currentRequest.then(t=>{if(!t||!t.range||!t.value||!n.validate(this.editor))return;let i=td.Range.lift(t.range),o=t.range,s=t.value.length-(r.endColumn-r.startColumn);o={startLineNumber:o.startLineNumber,startColumn:o.startColumn,endLineNumber:o.endLineNumber,endColumn:o.startColumn+t.value.length},s>1&&(r=new e6.Selection(r.startLineNumber,r.startColumn,r.endLineNumber,r.endColumn+s-1));let a=new nK(i,r,t.value);this.editor.pushUndoStop(),this.editor.executeCommand(e,a),this.editor.pushUndoStop(),this.decorations.set([{range:o,options:b.DECORATION}]),this.decorationRemover?.cancel(),this.decorationRemover=(0,G.timeout)(350),this.decorationRemover.then(()=>this.decorations.clear()).catch(ir.onUnexpectedError)}).catch(ir.onUnexpectedError)):Promise.resolve(void 0)}};nW=b=(0,eR.__decorate)([(0,eR.__param)(1,iz.IEditorWorkerService)],nW);class nz extends nF.EditorAction{constructor(){super({id:"editor.action.inPlaceReplace.up",label:(0,L.localize2)(1244,"Replace with Previous Value"),precondition:eq.EditorContextKeys.writable,kbOpts:{kbExpr:eq.EditorContextKeys.editorTextFocus,primary:J.KeyMod.CtrlCmd|J.KeyMod.Shift|J.KeyCode.Comma,weight:eU.KeybindingWeight.EditorContrib}})}run(e,t){let i=nW.get(t);return i?i.run(this.id,!1):Promise.resolve(void 0)}}class nV extends nF.EditorAction{constructor(){super({id:"editor.action.inPlaceReplace.down",label:(0,L.localize2)(1245,"Replace with Next Value"),precondition:eq.EditorContextKeys.writable,kbOpts:{kbExpr:eq.EditorContextKeys.editorTextFocus,primary:J.KeyMod.CtrlCmd|J.KeyMod.Shift|J.KeyCode.Period,weight:eU.KeybindingWeight.EditorContrib}})}run(e,t){let i=nW.get(t);return i?i.run(this.id,!0):Promise.resolve(void 0)}}(0,nF.registerEditorContribution)(nW.ID,nW,nF.EditorContributionInstantiation.Lazy),(0,nF.registerEditorAction)(nz),(0,nF.registerEditorAction)(nV),e.s([],860947);var nB=eH;class nU{constructor(e){this._selection=e,this._selectionId=null}getEditOperations(e,t){let i=function(e){let t=e.getLineCount(),i=e.getLineContent(t),o=-1===(0,tX.lastNonWhitespaceIndex)(i);if(t&&!o)return i5.EditOperation.insert(new ta.Position(t,e.getLineMaxColumn(t)),e.getEOL())}(e);i&&t.addEditOperation(i.range,i.text),this._selectionId=t.trackSelection(this._selection)}computeCursorState(e,t){return t.getTrackedSelection(this._selectionId)}}class nH extends nB.EditorAction{static{this.ID="editor.action.insertFinalNewLine"}constructor(){super({id:nH.ID,label:(0,L.localize2)(1347,"Insert Final New Line"),precondition:eq.EditorContextKeys.writable})}run(e,t,i){let o=t.getSelection();if(null===o)return;let r=new nU(o);t.pushUndoStop(),t.executeCommands(this.id,[r]),t.pushUndoStop()}}(0,nB.registerEditorAction)(nH),e.s([],62998);var nq=eH,nG=e.i(61633);class n$ extends nq.EditorAction{constructor(){super({id:"expandLineSelection",label:(0,L.localize2)(1348,"Expand Line Selection"),precondition:void 0,kbOpts:{weight:eU.KeybindingWeight.EditorCore,kbExpr:eq.EditorContextKeys.textInputFocus,primary:J.KeyMod.CtrlCmd|J.KeyCode.KeyL}})}run(e,t,i){if(i=i||{},!t.hasModel())return;let o=t._getViewModel();o.model.pushStackElement(),o.setCursorStates(i.source,od.CursorChangeReason.Explicit,nG.CursorMoveCommands.expandLineSelection(o,o.getCursorStates())),o.revealAllCursors(i.source,!0)}}(0,nq.registerEditorAction)(n$),e.s([],811772);var nQ=W,nj=eH,nY=e.i(85280);(0,R.registerCss)(void 0);let nX=new U.RawContextKey("LinkedEditingInputVisible",!1),nZ=class extends nQ.Disposable{static{I=this}static{this.ID="editor.contrib.linkedEditing"}static{this.DECORATION=tc.ModelDecorationOptions.register({description:"linked-editing",stickiness:e7.TrackedRangeStickiness.AlwaysGrowsWhenTypingAtEdges,className:"linked-editing-decoration"})}static get(e){return e.getContribution(I.ID)}constructor(e,t,i,o,r){super(),this.languageConfigurationService=o,this._syncRangesToken=0,this._localToDispose=this._register(new nQ.DisposableStore),this._editor=e,this._providers=i.linkedEditingRangeProvider,this._enabled=!1,this._visibleContextKey=nX.bindTo(t),this._debounceInformation=r.for(this._providers,"Linked Editing",{max:200}),this._currentDecorations=this._editor.createDecorationsCollection(),this._languageWordPattern=null,this._currentWordPattern=null,this._ignoreChangeEvent=!1,this._localToDispose=this._register(new nQ.DisposableStore),this._rangeUpdateTriggerPromise=null,this._rangeSyncTriggerPromise=null,this._currentRequestCts=null,this._currentRequestPosition=null,this._currentRequestModelVersion=null,this._register(this._editor.onDidChangeModel(()=>this.reinitialize(!0))),this._register(this._editor.onDidChangeConfiguration(e=>{(e.hasChanged(ts.EditorOption.linkedEditing)||e.hasChanged(ts.EditorOption.renameOnType))&&this.reinitialize(!1)})),this._register(this._providers.onDidChange(()=>this.reinitialize(!1))),this._register(this._editor.onDidChangeModelLanguage(()=>this.reinitialize(!0))),this.reinitialize(!0)}reinitialize(e){let t=this._editor.getModel(),i=null!==t&&(this._editor.getOption(ts.EditorOption.linkedEditing)||this._editor.getOption(ts.EditorOption.renameOnType))&&this._providers.has(t);if(i===this._enabled&&!e||(this._enabled=i,this.clearRanges(),this._localToDispose.clear(),!i||null===t))return;this._localToDispose.add(K.Event.runAndSubscribe(t.onDidChangeLanguageConfiguration,()=>{this._languageWordPattern=this.languageConfigurationService.getLanguageConfiguration(t.getLanguageId()).getWordDefinition()}));let o=new G.Delayer(this._debounceInformation.get(t)),r=()=>{this._rangeUpdateTriggerPromise=o.trigger(()=>this.updateRanges(),this._debounceDuration??this._debounceInformation.get(t))},n=new G.Delayer(0),s=e=>{this._rangeSyncTriggerPromise=n.trigger(()=>this._syncRanges(e))};this._localToDispose.add(this._editor.onDidChangeCursorPosition(()=>{r()})),this._localToDispose.add(this._editor.onDidChangeModelContent(e=>{if(!this._ignoreChangeEvent&&this._currentDecorations.length>0){let t=this._currentDecorations.getRange(0);if(t&&e.changes.every(e=>t.intersectRanges(e.range)))return void s(this._syncRangesToken)}r()})),this._localToDispose.add({dispose:()=>{o.dispose(),n.dispose()}}),this.updateRanges()}_syncRanges(e){if(!this._editor.hasModel()||e!==this._syncRangesToken||0===this._currentDecorations.length)return;let t=this._editor.getModel(),i=this._currentDecorations.getRange(0);if(!i||i.startLineNumber!==i.endLineNumber)return this.clearRanges();let o=t.getValueInRange(i);if(this._currentWordPattern){let e=o.match(this._currentWordPattern);if((e?e[0].length:0)!==o.length)return this.clearRanges()}let r=[];for(let e=1,i=this._currentDecorations.length;e<i;e++){let i=this._currentDecorations.getRange(e);if(i)if(i.startLineNumber!==i.endLineNumber)r.push({range:i,text:o});else{let e=t.getValueInRange(i),n=o,s=i.startColumn,a=i.endColumn,d=(0,tX.commonPrefixLength)(e,n);s+=d,e=e.substr(d),n=n.substr(d);let c=(0,tX.commonSuffixLength)(e,n);a-=c,e=e.substr(0,e.length-c),n=n.substr(0,n.length-c),(s!==a||0!==n.length)&&r.push({range:new td.Range(i.startLineNumber,s,i.endLineNumber,a),text:n})}}if(0!==r.length)try{this._editor.popUndoStop(),this._ignoreChangeEvent=!0;let e=this._editor._getViewModel().getPrevEditOperationType();this._editor.executeEdits("linkedEditing",r),this._editor._getViewModel().setPrevEditOperationType(e)}finally{this._ignoreChangeEvent=!1}}dispose(){this.clearRanges(),super.dispose()}clearRanges(){this._visibleContextKey.set(!1),this._currentDecorations.clear(),this._currentRequestCts&&(this._currentRequestCts.cancel(),this._currentRequestCts=null,this._currentRequestPosition=null)}get currentUpdateTriggerPromise(){return this._rangeUpdateTriggerPromise||Promise.resolve()}get currentSyncTriggerPromise(){return this._rangeSyncTriggerPromise||Promise.resolve()}async updateRanges(e=!1){if(!this._editor.hasModel())return void this.clearRanges();let t=this._editor.getPosition();if(!this._enabled&&!e||this._editor.getSelections().length>1)return void this.clearRanges();let i=this._editor.getModel(),o=i.getVersionId();if(this._currentRequestPosition&&this._currentRequestModelVersion===o){if(t.equals(this._currentRequestPosition))return;if(this._currentDecorations.length>0){let e=this._currentDecorations.getRange(0);if(e&&e.containsPosition(t))return}}if(!this._currentRequestPosition?.equals(t)){let e=this._currentDecorations.getRange(0);e?.containsPosition(t)||this.clearRanges()}this._currentRequestPosition=t,this._currentRequestModelVersion=o;let r=this._currentRequestCts=new iE.CancellationTokenSource;try{let e=new nY.StopWatch(!1),n=await n1(this._providers,i,t,r.token);if(this._debounceInformation.update(i,e.elapsed()),r!==this._currentRequestCts||(this._currentRequestCts=null,o!==i.getVersionId()))return;let s=[];n?.ranges&&(s=n.ranges),this._currentWordPattern=n?.wordPattern||this._languageWordPattern;let a=!1;for(let e=0,i=s.length;e<i;e++)if(td.Range.containsPosition(s[e],t)){if(a=!0,0!==e){let t=s[e];s.splice(e,1),s.unshift(t)}break}if(!a)return void this.clearRanges();let d=s.map(e=>({range:e,options:I.DECORATION}));this._visibleContextKey.set(!0),this._currentDecorations.set(d),this._syncRangesToken++}catch(e){(0,ir.isCancellationError)(e)||(0,ir.onUnexpectedError)(e),this._currentRequestCts!==r&&this._currentRequestCts||this.clearRanges()}}setDebounceDuration(e){this._debounceDuration=e}};nZ=I=(0,eR.__decorate)([(0,eR.__param)(1,H.IContextKeyService),(0,eR.__param)(2,eV.ILanguageFeaturesService),(0,eR.__param)(3,i3.ILanguageConfigurationService),(0,eR.__param)(4,ib.ILanguageFeatureDebounceService)],nZ);class nJ extends nj.EditorAction{constructor(){super({id:"editor.action.linkedEditing",label:(0,L.localize2)(1380,"Start Linked Editing"),precondition:U.ContextKeyExpr.and(eq.EditorContextKeys.writable,eq.EditorContextKeys.hasRenameProvider),kbOpts:{kbExpr:eq.EditorContextKeys.editorTextFocus,primary:J.KeyMod.CtrlCmd|J.KeyMod.Shift|J.KeyCode.F2,weight:eU.KeybindingWeight.EditorContrib}})}runCommand(e,t){let i=e.get(tF.ICodeEditorService),[o,r]=Array.isArray(t)&&t||[void 0,void 0];return iw.URI.isUri(o)&&ta.Position.isIPosition(r)?i.openCodeEditor({resource:o},i.getActiveCodeEditor()).then(e=>{e&&(e.setPosition(r),e.invokeWithinContext(t=>(this.reportTelemetry(t,e),this.run(t,e))))},ir.onUnexpectedError):super.runCommand(e,t)}run(e,t){let i=nZ.get(t);return i?Promise.resolve(i.updateRanges(!0)):Promise.resolve()}}let n0=nj.EditorCommand.bindToContribution(nZ.get);function n1(e,t,i,o){let r=e.ordered(t);return(0,G.first)(r.map(e=>async()=>{try{return await e.provideLinkedEditingRanges(t,i,o)}catch(e){(0,ir.onUnexpectedExternalError)(e);return}}),e=>!!e&&(0,oU.isNonEmptyArray)(e?.ranges))}(0,nj.registerEditorCommand)(new n0({id:"cancelLinkedEditingInput",precondition:nX,handler:e=>e.clearRanges(),kbOpts:{kbExpr:eq.EditorContextKeys.editorTextFocus,weight:eU.KeybindingWeight.EditorContrib+99,primary:J.KeyCode.Escape,secondary:[J.KeyMod.Shift|J.KeyCode.Escape]}})),(0,tl.registerColor)("editor.linkedEditingBackground",{dark:F.Color.fromHex("#f00").transparent(.3),light:F.Color.fromHex("#f00").transparent(.3),hcDark:F.Color.fromHex("#f00").transparent(.3),hcLight:F.Color.white},(0,L.localize)(1381,"Background color when the editor auto renames on type.")),(0,nj.registerModelAndPositionCommand)("_executeLinkedEditingProvider",(e,t,i)=>{let{linkedEditingRangeProvider:o}=e.get(eV.ILanguageFeaturesService);return n1(o,t,i,iE.CancellationToken.None)}),(0,nj.registerEditorContribution)(nZ.ID,nZ,nj.EditorContributionInstantiation.AfterFirstRender),(0,nj.registerEditorAction)(nJ),e.s([],142219);var n2=W;class n3 extends n2.Disposable{static{this.ID="editor.contrib.longLinesHelper"}static get(e){return e.getContribution(n3.ID)}constructor(e){super(),this._editor=e,this._register(this._editor.onMouseDown(e=>{let t=this._editor.getOption(ts.EditorOption.stopRenderingLineAfter);t>=0&&e.target.type===ia.MouseTargetType.CONTENT_TEXT&&e.target.position.column>=t&&this._editor.updateOptions({stopRenderingLineAfter:-1})}))}}(0,eH.registerEditorContribution)(n3.ID,n3,eH.EditorContributionInstantiation.BeforeFirstInteraction),e.s([],282108);var n8=W,n5=e.i(25797),n6=e.i(538761),n7=e.i(53398),n9=e.i(955921),n4=e.i(532816),se=e.i(314122);(0,R.registerCss)(void 0);class st extends n8.Disposable{static{this.ID="editor.contrib.middleScroll"}static get(e){return e.getContribution(st.ID)}constructor(e){super(),this._editor=e;const t=(0,n5.observableCodeEditor)(this._editor),i=t.getOption(ts.EditorOption.scrollOnMiddleClick);this._register((0,rE.autorun)(e=>{if(!i.read(e))return;let o=t.domNode.read(e);if(!o)return;let r=e.store.add((0,n4.disposableObservableValue)("scrollingSession",void 0));e.store.add(this._editor.onMouseDown(e=>{var t,i,n;let s;if(r.read(void 0))return void r.set(void 0,void 0);if(!e.event.middleButton)return;e.event.stopPropagation(),e.event.preventDefault();let a=new n8.DisposableStore,d=new n6.Point(e.event.posx,e.event.posy),c=(t=(0,z.getWindow)(o),i=d,n=a,s=(0,n4.observableValue)("pos",i),n.add((0,z.addDisposableListener)(t,"mousemove",e=>{s.set(new n6.Point(e.pageX,e.pageY),void 0)})),s).map(e=>e.subtract(d).withThreshold(5)),l=o.getBoundingClientRect(),u=new n6.Point(d.x-l.left,d.y-l.top);r.set({mouseDeltaAfterThreshold:c,initialMousePosInEditor:u,didScroll:!1,dispose:()=>a.dispose()},void 0),a.add(this._editor.onMouseUp(e=>{let t=r.read(void 0);t&&t.didScroll&&r.set(void 0,void 0)})),a.add(this._editor.onKeyDown(e=>{r.set(void 0,void 0)}))})),e.store.add((0,rE.autorun)(e=>{let t=r.read(e);if(!t)return;let i=Date.now();e.store.add((0,rE.autorun)(e=>{var o;n7.AnimationFrameScheduler.instance.invalidateOnNextAnimationFrame(e);let r=Date.now(),n=r-i;i=r;let s=t.mouseDeltaAfterThreshold.read(void 0).scale(n/32),a=new n6.Point(this._editor.getScrollLeft(),this._editor.getScrollTop());this._editor.setScrollPosition({scrollLeft:(o=a.add(s)).x,scrollTop:o.y}),s.isZero()||(t.didScroll=!0)}));let n=(0,se.derived)(e=>{let i=t.mouseDeltaAfterThreshold.read(e),o="";return o+((i.y<0?"n":i.y>0?"s":"")+(i.x<0?"w":i.x>0?"e":""))});e.store.add((0,rE.autorun)(e=>{o.setAttribute("data-scroll-direction",n.read(e))}))}));let n=e.store.add(z.n.div({class:["scroll-editor-on-middle-click-dot",r.map(e=>e?"":"hidden")],style:{left:r.map(e=>e?e.initialMousePosInEditor.x:0),top:r.map(e=>e?e.initialMousePosInEditor.y:0)}}).toDisposableLiveElement());e.store.add((0,n9.appendRemoveOnDispose)(o,n.element)),e.store.add((0,rE.autorun)(e=>{let t=r.read(e);o.classList.toggle("scroll-editor-on-middle-click-editor",!!t)}))}))}}(0,eH.registerEditorContribution)(st.ID,st,eH.EditorContributionInstantiation.BeforeFirstInteraction),e.s([],972077);var si=W,so=eH;(0,R.registerCss)(void 0);let sr=(0,tl.registerColor)("editor.wordHighlightBackground",{dark:"#575757B8",light:"#57575740",hcDark:null,hcLight:null},(0,L.localize)(1663,"Background color of a symbol during read-access, like reading a variable. The color must not be opaque so as not to hide underlying decorations."),!0);(0,tl.registerColor)("editor.wordHighlightStrongBackground",{dark:"#004972B8",light:"#0e639c40",hcDark:null,hcLight:null},(0,L.localize)(1664,"Background color of a symbol during write-access, like writing to a variable. The color must not be opaque so as not to hide underlying decorations."),!0),(0,tl.registerColor)("editor.wordHighlightTextBackground",sr,(0,L.localize)(1665,"Background color of a textual occurrence for a symbol. The color must not be opaque so as not to hide underlying decorations."),!0);let sn=(0,tl.registerColor)("editor.wordHighlightBorder",{light:null,dark:null,hcDark:tu.activeContrastBorder,hcLight:tu.activeContrastBorder},(0,L.localize)(1666,"Border color of a symbol during read-access, like reading a variable."));(0,tl.registerColor)("editor.wordHighlightStrongBorder",{light:null,dark:null,hcDark:tu.activeContrastBorder,hcLight:tu.activeContrastBorder},(0,L.localize)(1667,"Border color of a symbol during write-access, like writing to a variable.")),(0,tl.registerColor)("editor.wordHighlightTextBorder",sn,(0,L.localize)(1668,"Border color of a textual occurrence for a symbol."));let ss=(0,tl.registerColor)("editorOverviewRuler.wordHighlightForeground","#A0A0A0CC",(0,L.localize)(1669,"Overview ruler marker color for symbol highlights. The color must not be opaque so as not to hide underlying decorations."),!0),sa=(0,tl.registerColor)("editorOverviewRuler.wordHighlightStrongForeground","#C0A0C0CC",(0,L.localize)(1670,"Overview ruler marker color for write-access symbol highlights. The color must not be opaque so as not to hide underlying decorations."),!0),sd=(0,tl.registerColor)("editorOverviewRuler.wordHighlightTextForeground",th.overviewRulerSelectionHighlightForeground,(0,L.localize)(1671,"Overview ruler marker color of a textual occurrence for a symbol. The color must not be opaque so as not to hide underlying decorations."),!0),sc=tc.ModelDecorationOptions.register({description:"word-highlight-strong",stickiness:e7.TrackedRangeStickiness.NeverGrowsWhenTypingAtEdges,className:"wordHighlightStrong",overviewRuler:{color:(0,tv.themeColorFromId)(sa),position:e7.OverviewRulerLane.Center},minimap:{color:(0,tv.themeColorFromId)(tm.minimapSelectionOccurrenceHighlight),position:e7.MinimapPosition.Inline}}),sl=tc.ModelDecorationOptions.register({description:"word-highlight-text",stickiness:e7.TrackedRangeStickiness.NeverGrowsWhenTypingAtEdges,className:"wordHighlightText",overviewRuler:{color:(0,tv.themeColorFromId)(sd),position:e7.OverviewRulerLane.Center},minimap:{color:(0,tv.themeColorFromId)(tm.minimapSelectionOccurrenceHighlight),position:e7.MinimapPosition.Inline}}),su=tc.ModelDecorationOptions.register({description:"selection-highlight-overview",stickiness:e7.TrackedRangeStickiness.NeverGrowsWhenTypingAtEdges,className:"selectionHighlight",overviewRuler:{color:(0,tv.themeColorFromId)(th.overviewRulerSelectionHighlightForeground),position:e7.OverviewRulerLane.Center},minimap:{color:(0,tv.themeColorFromId)(tm.minimapSelectionOccurrenceHighlight),position:e7.MinimapPosition.Inline}}),sh=tc.ModelDecorationOptions.register({description:"selection-highlight",stickiness:e7.TrackedRangeStickiness.NeverGrowsWhenTypingAtEdges,className:"selectionHighlight"}),sp=tc.ModelDecorationOptions.register({description:"word-highlight",stickiness:e7.TrackedRangeStickiness.NeverGrowsWhenTypingAtEdges,className:"wordHighlight",overviewRuler:{color:(0,tv.themeColorFromId)(ss),position:e7.OverviewRulerLane.Center},minimap:{color:(0,tv.themeColorFromId)(tm.minimapSelectionOccurrenceHighlight),position:e7.MinimapPosition.Inline}});function sg(e,t){let i=t.filter(t=>!e.find(e=>e.equals(t)));if(i.length>=1){let e=i.map(e=>`line ${e.viewState.position.lineNumber} column ${e.viewState.position.column}`).join(", "),t=1===i.length?(0,L.localize)(1393,"Cursor added: {0}",e):(0,L.localize)(1394,"Cursors added: {0}",e);(0,e3.status)(t)}}(0,tv.registerThemingParticipant)((e,t)=>{let i=e.getColor(th.editorSelectionHighlight);i&&t.addRule(`.monaco-editor .selectionHighlight { background-color: ${i.transparent(.5)}; }`)});class sm extends so.EditorAction{constructor(){super({id:"editor.action.insertCursorAbove",label:(0,L.localize2)(1395,"Add Cursor Above"),precondition:void 0,kbOpts:{kbExpr:eq.EditorContextKeys.editorTextFocus,primary:J.KeyMod.CtrlCmd|J.KeyMod.Alt|J.KeyCode.UpArrow,linux:{primary:J.KeyMod.Shift|J.KeyMod.Alt|J.KeyCode.UpArrow,secondary:[J.KeyMod.CtrlCmd|J.KeyMod.Shift|J.KeyCode.UpArrow]},weight:eU.KeybindingWeight.EditorContrib},menuOpts:{menuId:j.MenuId.MenubarSelectionMenu,group:"3_multi",title:(0,L.localize)(1396,"&&Add Cursor Above"),order:2}})}run(e,t,i){if(!t.hasModel())return;let o=!0;i&&!1===i.logicalLine&&(o=!1);let r=t._getViewModel();if(r.cursorConfig.readOnly)return;r.model.pushStackElement();let n=r.getCursorStates();r.setCursorStates(i.source,od.CursorChangeReason.Explicit,nG.CursorMoveCommands.addCursorUp(r,n,o)),r.revealTopMostCursor(i.source),sg(n,r.getCursorStates())}}class sv extends so.EditorAction{constructor(){super({id:"editor.action.insertCursorBelow",label:(0,L.localize2)(1397,"Add Cursor Below"),precondition:void 0,kbOpts:{kbExpr:eq.EditorContextKeys.editorTextFocus,primary:J.KeyMod.CtrlCmd|J.KeyMod.Alt|J.KeyCode.DownArrow,linux:{primary:J.KeyMod.Shift|J.KeyMod.Alt|J.KeyCode.DownArrow,secondary:[J.KeyMod.CtrlCmd|J.KeyMod.Shift|J.KeyCode.DownArrow]},weight:eU.KeybindingWeight.EditorContrib},menuOpts:{menuId:j.MenuId.MenubarSelectionMenu,group:"3_multi",title:(0,L.localize)(1398,"A&&dd Cursor Below"),order:3}})}run(e,t,i){if(!t.hasModel())return;let o=!0;i&&!1===i.logicalLine&&(o=!1);let r=t._getViewModel();if(r.cursorConfig.readOnly)return;r.model.pushStackElement();let n=r.getCursorStates();r.setCursorStates(i.source,od.CursorChangeReason.Explicit,nG.CursorMoveCommands.addCursorDown(r,n,o)),r.revealBottomMostCursor(i.source),sg(n,r.getCursorStates())}}class sy extends so.EditorAction{constructor(){super({id:"editor.action.insertCursorAtEndOfEachLineSelected",label:(0,L.localize2)(1399,"Add Cursors to Line Ends"),precondition:void 0,kbOpts:{kbExpr:eq.EditorContextKeys.editorTextFocus,primary:J.KeyMod.Shift|J.KeyMod.Alt|J.KeyCode.KeyI,weight:eU.KeybindingWeight.EditorContrib},menuOpts:{menuId:j.MenuId.MenubarSelectionMenu,group:"3_multi",title:(0,L.localize)(1400,"Add C&&ursors to Line Ends"),order:4}})}getCursorsForSelection(e,t,i){if(!e.isEmpty()){for(let o=e.startLineNumber;o<e.endLineNumber;o++){let e=t.getLineMaxColumn(o);i.push(new e6.Selection(o,e,o,e))}e.endColumn>1&&i.push(new e6.Selection(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn))}}run(e,t){if(!t.hasModel())return;let i=t.getModel(),o=t.getSelections(),r=t._getViewModel(),n=r.getCursorStates(),s=[];o.forEach(e=>this.getCursorsForSelection(e,i,s)),s.length>0&&t.setSelections(s),sg(n,r.getCursorStates())}}class sf extends so.EditorAction{constructor(){super({id:"editor.action.addCursorsToBottom",label:(0,L.localize2)(1401,"Add Cursors to Bottom"),precondition:void 0})}run(e,t){if(!t.hasModel())return;let i=t.getSelections(),o=t.getModel().getLineCount(),r=[];for(let e=i[0].startLineNumber;e<=o;e++)r.push(new e6.Selection(e,i[0].startColumn,e,i[0].endColumn));let n=t._getViewModel(),s=n.getCursorStates();r.length>0&&t.setSelections(r),sg(s,n.getCursorStates())}}class s_ extends so.EditorAction{constructor(){super({id:"editor.action.addCursorsToTop",label:(0,L.localize2)(1402,"Add Cursors to Top"),precondition:void 0})}run(e,t){if(!t.hasModel())return;let i=t.getSelections(),o=[];for(let e=i[0].startLineNumber;e>=1;e--)o.push(new e6.Selection(e,i[0].startColumn,e,i[0].endColumn));let r=t._getViewModel(),n=r.getCursorStates();o.length>0&&t.setSelections(o),sg(n,r.getCursorStates())}}class sC{constructor(e,t,i){this.selections=e,this.revealRange=t,this.revealScrollType=i}}class sS{static create(e,t){let i,o,r;if(!e.hasModel())return null;let n=t.getState();if(!e.hasTextFocus()&&n.isRevealed&&n.searchString.length>0)return new sS(e,t,!1,n.searchString,n.wholeWord,n.matchCase,null);let s=!1,a=e.getSelections();1===a.length&&a[0].isEmpty()?(s=!0,i=!0,o=!0):(i=n.wholeWord,o=n.matchCase);let d=e.getSelection(),c=null;if(d.isEmpty()){let t=e.getConfiguredWordAtPosition(d.getStartPosition());if(!t)return null;r=t.word,c=new e6.Selection(d.startLineNumber,t.startColumn,d.startLineNumber,t.endColumn)}else r=e.getModel().getValueInRange(d).replace(/\r\n/g,"\n");return new sS(e,t,s,r,i,o,c)}constructor(e,t,i,o,r,n,s){this._editor=e,this.findController=t,this.isDisconnectedFromFindController=i,this.searchText=o,this.wholeWord=r,this.matchCase=n,this.currentMatch=s}addSelectionToNextFindMatch(){if(!this._editor.hasModel())return null;let e=this._getNextMatch();return e?new sC(this._editor.getSelections().concat(e),e,tK.ScrollType.Smooth):null}moveSelectionToNextFindMatch(){if(!this._editor.hasModel())return null;let e=this._getNextMatch();if(!e)return null;let t=this._editor.getSelections();return new sC(t.slice(0,t.length-1).concat(e),e,tK.ScrollType.Smooth)}_getNextMatch(){if(!this._editor.hasModel())return null;if(this.currentMatch){let e=this.currentMatch;return this.currentMatch=null,e}this.findController.highlightFindOptions();let e=this._editor.getSelections(),t=e[e.length-1],i=this._editor.getModel().findNextMatch(this.searchText,t.getEndPosition(),!1,this.matchCase,this.wholeWord?this._editor.getOption(ts.EditorOption.wordSeparators):null,!1);return i?new e6.Selection(i.range.startLineNumber,i.range.startColumn,i.range.endLineNumber,i.range.endColumn):null}addSelectionToPreviousFindMatch(){if(!this._editor.hasModel())return null;let e=this._getPreviousMatch();return e?new sC(this._editor.getSelections().concat(e),e,tK.ScrollType.Smooth):null}moveSelectionToPreviousFindMatch(){if(!this._editor.hasModel())return null;let e=this._getPreviousMatch();if(!e)return null;let t=this._editor.getSelections();return new sC(t.slice(0,t.length-1).concat(e),e,tK.ScrollType.Smooth)}_getPreviousMatch(){if(!this._editor.hasModel())return null;if(this.currentMatch){let e=this.currentMatch;return this.currentMatch=null,e}this.findController.highlightFindOptions();let e=this._editor.getSelections(),t=e[e.length-1],i=this._editor.getModel().findPreviousMatch(this.searchText,t.getStartPosition(),!1,this.matchCase,this.wholeWord?this._editor.getOption(ts.EditorOption.wordSeparators):null,!1);return i?new e6.Selection(i.range.startLineNumber,i.range.startColumn,i.range.endLineNumber,i.range.endColumn):null}selectAll(e){if(!this._editor.hasModel())return[];this.findController.highlightFindOptions();let t=this._editor.getModel();return e?t.findMatches(this.searchText,e,!1,this.matchCase,this.wholeWord?this._editor.getOption(ts.EditorOption.wordSeparators):null,!1,ip.Constants.MAX_SAFE_SMALL_INTEGER):t.findMatches(this.searchText,!0,!1,this.matchCase,this.wholeWord?this._editor.getOption(ts.EditorOption.wordSeparators):null,!1,ip.Constants.MAX_SAFE_SMALL_INTEGER)}}class sb extends si.Disposable{static{this.ID="editor.contrib.multiCursorController"}static get(e){return e.getContribution(sb.ID)}constructor(e){super(),this._sessionDispose=this._register(new si.DisposableStore),this._editor=e,this._ignoreSelectionChange=!1,this._session=null}dispose(){this._endSession(),super.dispose()}_beginSessionIfNeeded(e){if(!this._session){let t=sS.create(this._editor,e);if(!t)return;this._session=t;let i={searchString:this._session.searchText};this._session.isDisconnectedFromFindController&&(i.wholeWordOverride=g.True,i.matchCaseOverride=g.True,i.isRegexOverride=g.False),e.getState().change(i,!1),this._sessionDispose.add(this._editor.onDidChangeCursorSelection(e=>{this._ignoreSelectionChange||this._endSession()})),this._sessionDispose.add(this._editor.onDidBlurEditorText(()=>{this._endSession()})),this._sessionDispose.add(e.getState().onFindReplaceStateChange(e=>{(e.matchCase||e.wholeWord)&&this._endSession()}))}}_endSession(){if(this._sessionDispose.clear(),this._session&&this._session.isDisconnectedFromFindController){let e={wholeWordOverride:g.NotSet,matchCaseOverride:g.NotSet,isRegexOverride:g.NotSet};this._session.findController.getState().change(e,!1)}this._session=null}_setSelections(e){this._ignoreSelectionChange=!0,this._editor.setSelections(e),this._ignoreSelectionChange=!1}_expandEmptyToWord(e,t){if(!t.isEmpty())return t;let i=this._editor.getConfiguredWordAtPosition(t.getStartPosition());return i?new e6.Selection(t.startLineNumber,i.startColumn,t.startLineNumber,i.endColumn):t}_applySessionResult(e){e&&(this._setSelections(e.selections),e.revealRange&&this._editor.revealRangeInCenterIfOutsideViewport(e.revealRange,e.revealScrollType))}getSession(e){return this._session}addSelectionToNextFindMatch(e){if(this._editor.hasModel()){if(!this._session){let t=this._editor.getSelections();if(t.length>1){let i=e.getState().matchCase;if(!sD(this._editor.getModel(),t,i)){let e=this._editor.getModel(),i=[];for(let o=0,r=t.length;o<r;o++)i[o]=this._expandEmptyToWord(e,t[o]);this._editor.setSelections(i);return}}}this._beginSessionIfNeeded(e),this._session&&this._applySessionResult(this._session.addSelectionToNextFindMatch())}}addSelectionToPreviousFindMatch(e){this._beginSessionIfNeeded(e),this._session&&this._applySessionResult(this._session.addSelectionToPreviousFindMatch())}moveSelectionToNextFindMatch(e){this._beginSessionIfNeeded(e),this._session&&this._applySessionResult(this._session.moveSelectionToNextFindMatch())}moveSelectionToPreviousFindMatch(e){this._beginSessionIfNeeded(e),this._session&&this._applySessionResult(this._session.moveSelectionToPreviousFindMatch())}selectAll(e){if(!this._editor.hasModel())return;let t=null,i=e.getState();if(i.isRevealed&&i.searchString.length>0&&i.isRegex){let e=this._editor.getModel();t=i.searchScope?e.findMatches(i.searchString,i.searchScope,i.isRegex,i.matchCase,i.wholeWord?this._editor.getOption(ts.EditorOption.wordSeparators):null,!1,ip.Constants.MAX_SAFE_SMALL_INTEGER):e.findMatches(i.searchString,!0,i.isRegex,i.matchCase,i.wholeWord?this._editor.getOption(ts.EditorOption.wordSeparators):null,!1,ip.Constants.MAX_SAFE_SMALL_INTEGER)}else{if(this._beginSessionIfNeeded(e),!this._session)return;t=this._session.selectAll(i.searchScope)}if(t.length>0){let e=this._editor.getSelection();for(let i=0,o=t.length;i<o;i++){let o=t[i];if(o.range.intersectRanges(e)){t[i]=t[0],t[0]=o;break}}this._setSelections(t.map(e=>new e6.Selection(e.range.startLineNumber,e.range.startColumn,e.range.endLineNumber,e.range.endColumn)))}}selectAllUsingSelections(e){e.length>0&&this._setSelections(e)}}class sI extends so.EditorAction{run(e,t){let i=sb.get(t);if(!i)return;let o=t._getViewModel();if(o){let r=o.getCursorStates(),n=ok.get(t);if(n)this._run(i,n);else{let o=e.get(iF.IInstantiationService).createInstance(ok,t);this._run(i,o),o.dispose()}sg(r,o.getCursorStates())}}}class sE{constructor(e,t,i,o,r){this._model=e,this._searchText=t,this._matchCase=i,this._wordSeparators=o,this._cachedFindMatches=null,this._modelVersionId=this._model.getVersionId(),r&&this._model===r._model&&this._searchText===r._searchText&&this._matchCase===r._matchCase&&this._wordSeparators===r._wordSeparators&&this._modelVersionId===r._modelVersionId&&(this._cachedFindMatches=r._cachedFindMatches)}findMatches(){return null===this._cachedFindMatches&&(this._cachedFindMatches=this._model.findMatches(this._searchText,!0,!1,this._matchCase,this._wordSeparators,!1).map(e=>e.range),this._cachedFindMatches.sort(td.Range.compareRangesUsingStarts)),this._cachedFindMatches}}let sw=class extends si.Disposable{static{E=this}static{this.ID="editor.contrib.selectionHighlighter"}constructor(e,t){super(),this._languageFeaturesService=t,this.editor=e,this._isEnabled=e.getOption(ts.EditorOption.selectionHighlight),this._isEnabledMultiline=e.getOption(ts.EditorOption.selectionHighlightMultiline),this._maxLength=e.getOption(ts.EditorOption.selectionHighlightMaxLength),this._decorations=e.createDecorationsCollection(),this.updateSoon=this._register(new G.RunOnceScheduler(()=>this._update(),300)),this.state=null,this._register(e.onDidChangeConfiguration(t=>{this._isEnabled=e.getOption(ts.EditorOption.selectionHighlight),this._isEnabledMultiline=e.getOption(ts.EditorOption.selectionHighlightMultiline),this._maxLength=e.getOption(ts.EditorOption.selectionHighlightMaxLength)})),this._register(e.onDidChangeCursorSelection(e=>{this._isEnabled&&(e.selection.isEmpty()?e.reason===od.CursorChangeReason.Explicit?(this.state&&this._setState(null),this.updateSoon.schedule()):this._setState(null):this._update())})),this._register(e.onDidChangeModel(e=>{this._setState(null)})),this._register(e.onDidChangeModelContent(e=>{this._isEnabled&&this.updateSoon.schedule()}));const i=ok.get(e);i&&this._register(i.getState().onFindReplaceStateChange(e=>{this._update()})),this.updateSoon.schedule()}_update(){this._setState(E._createState(this.state,this._isEnabled,this._isEnabledMultiline,this._maxLength,this.editor))}static _createState(e,t,i,o,r){if(!t||!r.hasModel())return null;if(!i){let e=r.getSelection();if(e.startLineNumber!==e.endLineNumber)return null}let n=sb.get(r);if(!n)return null;let s=ok.get(r);if(!s)return null;let a=n.getSession(s);if(!a){let e=r.getSelections();if(e.length>1){let t=s.getState().matchCase;if(!sD(r.getModel(),e,t))return null}a=sS.create(r,s)}if(!a||a.currentMatch||/^[ \t]+$/.test(a.searchText)||o>0&&a.searchText.length>o)return null;let d=s.getState(),c=d.matchCase;if(d.isRevealed){let e=d.searchString;c||(e=e.toLowerCase());let t=a.searchText;if(c||(t=t.toLowerCase()),e===t&&a.matchCase===d.matchCase&&a.wholeWord===d.wholeWord&&!d.isRegex)return null}return new sE(r.getModel(),a.searchText,a.matchCase,a.wholeWord?r.getOption(ts.EditorOption.wordSeparators):null,e)}_setState(e){if(this.state=e,!this.state)return void this._decorations.clear();if(!this.editor.hasModel())return;let t=this.editor.getModel();if(t.isTooLargeForTokenization())return;let i=this.state.findMatches(),o=this.editor.getSelections();o.sort(td.Range.compareRangesUsingStarts);let r=[];for(let e=0,t=0,n=i.length,s=o.length;e<n;){let n=i[e];if(t>=s)r.push(n),e++;else{let i=td.Range.compareRangesUsingStarts(n,o[t]);i<0?((o[t].isEmpty()||!td.Range.areIntersecting(n,o[t]))&&r.push(n),e++):(i>0||e++,t++)}}let n="off"!==this.editor.getOption(ts.EditorOption.occurrencesHighlight),s=this._languageFeaturesService.documentHighlightProvider.has(t)&&n,a=r.map(e=>({range:e,options:s?sh:su}));this._decorations.set(a)}dispose(){this._setState(null),super.dispose()}};function sD(e,t,i){let o=sA(e,t[0],!i);for(let r=1,n=t.length;r<n;r++){let n=t[r];if(n.isEmpty()||o!==sA(e,n,!i))return!1}return!0}function sA(e,t,i){let o=e.getValueInRange(t);return i?o.toLowerCase():o}sw=E=(0,eR.__decorate)([(0,eR.__param)(1,eV.ILanguageFeaturesService)],sw);class sx extends so.EditorAction{constructor(){super({id:"editor.action.focusNextCursor",label:(0,L.localize2)(1412,"Focus Next Cursor"),metadata:{description:(0,L.localize)(1413,"Focuses the next cursor"),args:[]},precondition:void 0})}run(e,t,i){if(!t.hasModel())return;let o=t._getViewModel();if(o.cursorConfig.readOnly)return;o.model.pushStackElement();let r=Array.from(o.getCursorStates()),n=r.shift();n&&(r.push(n),o.setCursorStates(i.source,od.CursorChangeReason.Explicit,r),o.revealPrimaryCursor(i.source,!0),sg(r,o.getCursorStates()))}}class sk extends so.EditorAction{constructor(){super({id:"editor.action.focusPreviousCursor",label:(0,L.localize2)(1414,"Focus Previous Cursor"),metadata:{description:(0,L.localize)(1415,"Focuses the previous cursor"),args:[]},precondition:void 0})}run(e,t,i){if(!t.hasModel())return;let o=t._getViewModel();if(o.cursorConfig.readOnly)return;o.model.pushStackElement();let r=Array.from(o.getCursorStates()),n=r.pop();n&&(r.unshift(n),o.setCursorStates(i.source,od.CursorChangeReason.Explicit,r),o.revealPrimaryCursor(i.source,!0),sg(r,o.getCursorStates()))}}(0,so.registerEditorContribution)(sb.ID,sb,so.EditorContributionInstantiation.Lazy),(0,so.registerEditorContribution)(sw.ID,sw,so.EditorContributionInstantiation.AfterFirstRender),(0,so.registerEditorAction)(sm),(0,so.registerEditorAction)(sv),(0,so.registerEditorAction)(sy),(0,so.registerEditorAction)(class extends sI{constructor(){super({id:"editor.action.addSelectionToNextFindMatch",label:(0,L.localize2)(1403,"Add Selection to Next Find Match"),precondition:void 0,kbOpts:{kbExpr:eq.EditorContextKeys.focus,primary:J.KeyMod.CtrlCmd|J.KeyCode.KeyD,weight:eU.KeybindingWeight.EditorContrib},menuOpts:{menuId:j.MenuId.MenubarSelectionMenu,group:"3_multi",title:(0,L.localize)(1404,"Add &&Next Occurrence"),order:5}})}_run(e,t){e.addSelectionToNextFindMatch(t)}}),(0,so.registerEditorAction)(class extends sI{constructor(){super({id:"editor.action.addSelectionToPreviousFindMatch",label:(0,L.localize2)(1405,"Add Selection to Previous Find Match"),precondition:void 0,menuOpts:{menuId:j.MenuId.MenubarSelectionMenu,group:"3_multi",title:(0,L.localize)(1406,"Add P&&revious Occurrence"),order:6}})}_run(e,t){e.addSelectionToPreviousFindMatch(t)}}),(0,so.registerEditorAction)(class extends sI{constructor(){super({id:"editor.action.moveSelectionToNextFindMatch",label:(0,L.localize2)(1407,"Move Last Selection to Next Find Match"),precondition:void 0,kbOpts:{kbExpr:eq.EditorContextKeys.focus,primary:(0,J.KeyChord)(J.KeyMod.CtrlCmd|J.KeyCode.KeyK,J.KeyMod.CtrlCmd|J.KeyCode.KeyD),weight:eU.KeybindingWeight.EditorContrib}})}_run(e,t){e.moveSelectionToNextFindMatch(t)}}),(0,so.registerEditorAction)(class extends sI{constructor(){super({id:"editor.action.moveSelectionToPreviousFindMatch",label:(0,L.localize2)(1408,"Move Last Selection to Previous Find Match"),precondition:void 0})}_run(e,t){e.moveSelectionToPreviousFindMatch(t)}}),(0,so.registerEditorAction)(class extends sI{constructor(){super({id:"editor.action.selectHighlights",label:(0,L.localize2)(1409,"Select All Occurrences of Find Match"),precondition:void 0,kbOpts:{kbExpr:eq.EditorContextKeys.focus,primary:J.KeyMod.CtrlCmd|J.KeyMod.Shift|J.KeyCode.KeyL,weight:eU.KeybindingWeight.EditorContrib},menuOpts:{menuId:j.MenuId.MenubarSelectionMenu,group:"3_multi",title:(0,L.localize)(1410,"Select All &&Occurrences"),order:7}})}_run(e,t){e.selectAll(t)}}),(0,so.registerEditorAction)(class extends sI{constructor(){super({id:"editor.action.changeAll",label:(0,L.localize2)(1411,"Change All Occurrences"),precondition:U.ContextKeyExpr.and(eq.EditorContextKeys.writable,eq.EditorContextKeys.editorTextFocus),kbOpts:{kbExpr:eq.EditorContextKeys.editorTextFocus,primary:J.KeyMod.CtrlCmd|J.KeyCode.F2,weight:eU.KeybindingWeight.EditorContrib},contextMenuOpts:{group:"1_modification",order:1.2}})}_run(e,t){e.selectAll(t)}}),(0,so.registerEditorAction)(sf),(0,so.registerEditorAction)(s_),(0,so.registerEditorAction)(sx),(0,so.registerEditorAction)(sk),e.s([],684710);var sT=e.i(682807),sM=W,sP=eH,sR=W;let sL={Visible:new U.RawContextKey("parameterHintsVisible",!1),MultipleSignatures:new U.RawContextKey("parameterHintsMultipleSignatures",!1)};async function sN(e,t,i,o,r){for(let n of e.ordered(t))try{let e=await n.provideSignatureHelp(t,i,r,o);if(e)return e}catch(e){(0,ir.onUnexpectedExternalError)(e)}}eg.CommandsRegistry.registerCommand("_executeSignatureHelpProvider",async(e,...t)=>{let[i,o,r]=t;(0,o2.assertType)(iw.URI.isUri(i)),(0,o2.assertType)(ta.Position.isIPosition(o)),(0,o2.assertType)("string"==typeof r||!r);let n=e.get(eV.ILanguageFeaturesService),s=await e.get(o3.ITextModelService).createModelReference(i);try{let e=await sN(n.signatureHelpProvider,s.object.textEditorModel,ta.Position.lift(o),{triggerKind:rZ.SignatureHelpTriggerKind.Invoke,isRetrigger:!1,triggerCharacter:r},iE.CancellationToken.None);if(!e)return;return setTimeout(()=>e.dispose(),0),e.value}finally{s.dispose()}}),(c=i=(d=w||(w={})).Type||(d.Type={}))[c.Default=0]="Default",c[c.Active=1]="Active",c[c.Pending=2]="Pending",d.Default={type:i.Default},d.Pending=class{constructor(e,t){this.request=e,this.previouslyActiveHints=t,this.type=i.Pending}},d.Active=class{constructor(e){this.hints=e,this.type=i.Active}};class sO extends sR.Disposable{static{this.DEFAULT_DELAY=120}constructor(e,t,i=sO.DEFAULT_DELAY){super(),this._onChangedHints=this._register(new K.Emitter),this.onChangedHints=this._onChangedHints.event,this.triggerOnType=!1,this._state=w.Default,this._pendingTriggers=[],this._lastSignatureHelpResult=this._register(new sR.MutableDisposable),this.triggerChars=new oq.CharacterSet,this.retriggerChars=new oq.CharacterSet,this.triggerId=0,this.editor=e,this.providers=t,this.throttledDelayer=new G.Delayer(i),this._register(this.editor.onDidBlurEditorWidget(()=>this.cancel())),this._register(this.editor.onDidChangeConfiguration(()=>this.onEditorConfigurationChange())),this._register(this.editor.onDidChangeModel(e=>this.onModelChanged())),this._register(this.editor.onDidChangeModelLanguage(e=>this.onModelChanged())),this._register(this.editor.onDidChangeCursorSelection(e=>this.onCursorChange(e))),this._register(this.editor.onDidChangeModelContent(e=>this.onModelContentChange())),this._register(this.providers.onDidChange(this.onModelChanged,this)),this._register(this.editor.onDidType(e=>this.onDidType(e))),this.onEditorConfigurationChange(),this.onModelChanged()}get state(){return this._state}set state(e){this._state.type===w.Type.Pending&&this._state.request.cancel(),this._state=e}cancel(e=!1){this.state=w.Default,this.throttledDelayer.cancel(),e||this._onChangedHints.fire(void 0)}trigger(e,t){let i=this.editor.getModel();if(!i||!this.providers.has(i))return;let o=++this.triggerId;this._pendingTriggers.push(e),this.throttledDelayer.trigger(()=>this.doTrigger(o),t).catch(ir.onUnexpectedError)}next(){if(this.state.type!==w.Type.Active)return;let e=this.state.hints.signatures.length,t=this.state.hints.activeSignature,i=t%e==e-1,o=this.editor.getOption(ts.EditorOption.parameterHints).cycle;(e<2||i)&&!o?this.cancel():this.updateActiveSignature(i&&o?0:t+1)}previous(){if(this.state.type!==w.Type.Active)return;let e=this.state.hints.signatures.length,t=this.state.hints.activeSignature,i=0===t,o=this.editor.getOption(ts.EditorOption.parameterHints).cycle;(e<2||i)&&!o?this.cancel():this.updateActiveSignature(i&&o?e-1:t-1)}updateActiveSignature(e){this.state.type===w.Type.Active&&(this.state=new w.Active({...this.state.hints,activeSignature:e}),this._onChangedHints.fire(this.state.hints))}async doTrigger(e){let t=this.state.type===w.Type.Active||this.state.type===w.Type.Pending,i=this.getLastActiveHints();if(this.cancel(!0),0===this._pendingTriggers.length)return!1;let o=this._pendingTriggers.reduce(sF);this._pendingTriggers=[];let r={triggerKind:o.triggerKind,triggerCharacter:o.triggerCharacter,isRetrigger:t,activeSignatureHelp:i};if(!this.editor.hasModel())return!1;let n=this.editor.getModel(),s=this.editor.getPosition();this.state=new w.Pending((0,G.createCancelablePromise)(e=>sN(this.providers,n,s,r,e)),i);try{let t=await this.state.request;if(e!==this.triggerId)return t?.dispose(),!1;if(!t||!t.value.signatures||0===t.value.signatures.length)return t?.dispose(),this._lastSignatureHelpResult.clear(),this.cancel(),!1;return this.state=new w.Active(t.value),this._lastSignatureHelpResult.value=t,this._onChangedHints.fire(this.state.hints),!0}catch(t){return e===this.triggerId&&(this.state=w.Default),(0,ir.onUnexpectedError)(t),!1}}getLastActiveHints(){switch(this.state.type){case w.Type.Active:return this.state.hints;case w.Type.Pending:return this.state.previouslyActiveHints;default:return}}get isTriggered(){return this.state.type===w.Type.Active||this.state.type===w.Type.Pending||this.throttledDelayer.isTriggered()}onModelChanged(){this.cancel(),this.triggerChars.clear(),this.retriggerChars.clear();let e=this.editor.getModel();if(e)for(let t of this.providers.ordered(e)){for(let e of t.signatureHelpTriggerCharacters||[])if(e.length){let t=e.charCodeAt(0);this.triggerChars.add(t),this.retriggerChars.add(t)}for(let e of t.signatureHelpRetriggerCharacters||[])e.length&&this.retriggerChars.add(e.charCodeAt(0))}}onDidType(e){if(!this.triggerOnType)return;let t=e.length-1,i=e.charCodeAt(t);(this.triggerChars.has(i)||this.isTriggered&&this.retriggerChars.has(i))&&this.trigger({triggerKind:rZ.SignatureHelpTriggerKind.TriggerCharacter,triggerCharacter:e.charAt(t)})}onCursorChange(e){"mouse"===e.source?this.cancel():this.isTriggered&&this.trigger({triggerKind:rZ.SignatureHelpTriggerKind.ContentChange})}onModelContentChange(){this.isTriggered&&this.trigger({triggerKind:rZ.SignatureHelpTriggerKind.ContentChange})}onEditorConfigurationChange(){this.triggerOnType=this.editor.getOption(ts.EditorOption.parameterHints).enabled,this.triggerOnType||this.cancel()}dispose(){this.cancel(!0),super.dispose()}}function sF(e,t){switch(t.triggerKind){case rZ.SignatureHelpTriggerKind.Invoke:return t;case rZ.SignatureHelpTriggerKind.ContentChange:return e;case rZ.SignatureHelpTriggerKind.TriggerCharacter:default:return t}}var sK=e.i(46373),sW=W,sz=e.i(321012);(0,R.registerCss)(void 0);let sV=z.$,sB=(0,sz.registerIcon)("parameter-hints-next",e1.Codicon.chevronDown,(0,L.localize)(1417,"Icon for show next parameter hint.")),sU=(0,sz.registerIcon)("parameter-hints-previous",e1.Codicon.chevronUp,(0,L.localize)(1418,"Icon for show previous parameter hint.")),sH=class extends sW.Disposable{static{D=this}static{this.ID="editor.widget.parameterHintsWidget"}constructor(e,t,i,o){super(),this.editor=e,this.model=t,this.markdownRendererService=o,this.renderDisposeables=this._register(new sW.DisposableStore),this.visible=!1,this.announcedLabel=null,this.allowEditorOverflow=!0,this.keyVisible=sL.Visible.bindTo(i),this.keyMultipleSignatures=sL.MultipleSignatures.bindTo(i)}createParameterHintDOMNodes(){let e=sV(".editor-widget.parameter-hints-widget"),t=(0,z.append)(e,sV(".phwrapper"));t.tabIndex=-1;let i=(0,z.append)(t,sV(".controls")),o=(0,z.append)(i,sV(".button"+nn.ThemeIcon.asCSSSelector(sU))),r=(0,z.append)(i,sV(".overloads")),n=(0,z.append)(i,sV(".button"+nn.ThemeIcon.asCSSSelector(sB)));this._register((0,z.addDisposableListener)(o,"click",e=>{z.EventHelper.stop(e),this.previous()})),this._register((0,z.addDisposableListener)(n,"click",e=>{z.EventHelper.stop(e),this.next()}));let s=sV(".body"),a=new sK.DomScrollableElement(s,{alwaysConsumeMouseWheel:!0});this._register(a),t.appendChild(a.getDomNode());let d=(0,z.append)(s,sV(".signature")),c=(0,z.append)(s,sV(".docs"));e.style.userSelect="text",this.domNodes={element:e,signature:d,overloads:r,docs:c,scrollbar:a},this.editor.addContentWidget(this),this.hide(),this._register(this.editor.onDidChangeCursorSelection(e=>{this.visible&&this.editor.layoutContentWidget(this)}));let l=()=>{if(!this.domNodes)return;let e=this.editor.getOption(ts.EditorOption.fontInfo),t=this.domNodes.element;t.style.fontSize=`${e.fontSize}px`,t.style.lineHeight=`${e.lineHeight/e.fontSize}`,t.style.setProperty("--vscode-parameterHintsWidget-editorFontFamily",e.fontFamily),t.style.setProperty("--vscode-parameterHintsWidget-editorFontFamilyDefault",ic.EDITOR_FONT_DEFAULTS.fontFamily)};l(),this._register(K.Event.chain(this.editor.onDidChangeConfiguration.bind(this.editor),e=>e.filter(e=>e.hasChanged(ts.EditorOption.fontInfo)))(l)),this._register(this.editor.onDidLayoutChange(e=>this.updateMaxHeight())),this.updateMaxHeight()}show(){this.visible||(this.domNodes||this.createParameterHintDOMNodes(),this.keyVisible.set(!0),this.visible=!0,setTimeout(()=>{this.domNodes?.element.classList.add("visible")},100),this.editor.layoutContentWidget(this))}hide(){this.renderDisposeables.clear(),this.visible&&(this.keyVisible.reset(),this.visible=!1,this.announcedLabel=null,this.domNodes?.element.classList.remove("visible"),this.editor.layoutContentWidget(this))}getPosition(){return this.visible?{position:this.editor.getPosition(),preference:[ia.ContentWidgetPositionPreference.ABOVE,ia.ContentWidgetPositionPreference.BELOW]}:null}render(e){if(this.renderDisposeables.clear(),!this.domNodes)return;let t=e.signatures.length>1;this.domNodes.element.classList.toggle("multiple",t),this.keyMultipleSignatures.set(t),this.domNodes.signature.innerText="",this.domNodes.docs.innerText="";let i=e.signatures[e.activeSignature];if(!i)return;let o=(0,z.append)(this.domNodes.signature,sV(".code")),r=i.parameters.length>0,n=i.activeParameter??e.activeParameter;r?this.renderParameters(o,i,n):(0,z.append)(o,sV("span")).textContent=i.label;let s=i.parameters[n];if(s?.documentation){let e=sV("span.documentation");if("string"==typeof s.documentation)e.textContent=s.documentation;else{let t=this.renderMarkdownDocs(s.documentation);e.appendChild(t.element)}(0,z.append)(this.domNodes.docs,sV("p",{},e))}if(void 0===i.documentation);else if("string"==typeof i.documentation)(0,z.append)(this.domNodes.docs,sV("p",{},i.documentation));else{let e=this.renderMarkdownDocs(i.documentation);(0,z.append)(this.domNodes.docs,e.element)}let a=this.hasDocs(i,s);if(this.domNodes.signature.classList.toggle("has-docs",a),this.domNodes.docs.classList.toggle("empty",!a),this.domNodes.overloads.textContent=String(e.activeSignature+1).padStart(e.signatures.length.toString().length,"0")+"/"+e.signatures.length,s){let e="",t=i.parameters[n];e=Array.isArray(t.label)?i.label.substring(t.label[0],t.label[1]):t.label,t.documentation&&(e+="string"==typeof t.documentation?`, ${t.documentation}`:`, ${t.documentation.value}`),i.documentation&&(e+="string"==typeof i.documentation?`, ${i.documentation}`:`, ${i.documentation.value}`),this.announcedLabel!==e&&((0,e3.alert)((0,L.localize)(1419,"{0}, hint",e)),this.announcedLabel=e)}this.editor.layoutContentWidget(this),this.domNodes.scrollbar.scanDomNode()}renderMarkdownDocs(e){let t=this.renderDisposeables.add(this.markdownRendererService.render(e,{context:this.editor,asyncRenderCallback:()=>{this.domNodes?.scrollbar.scanDomNode()}}));return t.element.classList.add("markdown-docs"),t}hasDocs(e,t){return!!t&&"string"==typeof t.documentation&&!!((0,o2.assertReturnsDefined)(t.documentation).length>0)||!!t&&"object"==typeof t.documentation&&!!((0,o2.assertReturnsDefined)(t.documentation).value.length>0)||!!e.documentation&&"string"==typeof e.documentation&&!!((0,o2.assertReturnsDefined)(e.documentation).length>0)||!!e.documentation&&"object"==typeof e.documentation&&!!((0,o2.assertReturnsDefined)(e.documentation.value).length>0)}renderParameters(e,t,i){let[o,r]=this.getParameterLabelOffsets(t,i),n=(0,z.createElement)("span");n.textContent=t.label.substring(0,o);let s=(0,z.createElement)("span");s.textContent=t.label.substring(o,r),s.className="parameter active";let a=(0,z.createElement)("span");a.textContent=t.label.substring(r),(0,z.append)(e,n,s,a)}getParameterLabelOffsets(e,t){let i=e.parameters[t];if(!i)return[0,0];{if(Array.isArray(i.label))return i.label;if(!i.label.length)return[0,0];let t=RegExp(`(\\W|^)${(0,tX.escapeRegExpCharacters)(i.label)}(?=\\W|$)`,"g");t.test(e.label);let o=t.lastIndex-i.label.length;return o>=0?[o,t.lastIndex]:[0,0]}}next(){this.editor.focus(),this.model.next()}previous(){this.editor.focus(),this.model.previous()}getDomNode(){return this.domNodes||this.createParameterHintDOMNodes(),this.domNodes.element}getId(){return D.ID}updateMaxHeight(){if(!this.domNodes)return;let e=Math.max(this.editor.getLayoutInfo().height/4,250),t=`${e}px`;this.domNodes.element.style.maxHeight=t;let i=this.domNodes.element.getElementsByClassName("phwrapper");i.length&&(i[0].style.maxHeight=t)}};sH=D=(0,eR.__decorate)([(0,eR.__param)(2,H.IContextKeyService),(0,eR.__param)(3,rC.IMarkdownRendererService)],sH),(0,tl.registerColor)("editorHoverWidget.highlightForeground",tg.listHighlightForeground,(0,L.localize)(1420,"Foreground color of the active item in the parameter hint."));let sq=class extends sM.Disposable{static{A=this}static{this.ID="editor.controller.parameterHints"}static get(e){return e.getContribution(A.ID)}constructor(e,t,i){super(),this.editor=e,this.model=this._register(new sO(e,i.signatureHelpProvider)),this._register(this.model.onChangedHints(e=>{e?(this.widget.value.show(),this.widget.value.render(e)):this.widget.rawValue?.hide()})),this.widget=new sT.Lazy(()=>this._register(t.createInstance(sH,this.editor,this.model)))}cancel(){this.model.cancel()}previous(){this.widget.rawValue?.previous()}next(){this.widget.rawValue?.next()}trigger(e){this.model.trigger(e,0)}};sq=A=(0,eR.__decorate)([(0,eR.__param)(1,iF.IInstantiationService),(0,eR.__param)(2,eV.ILanguageFeaturesService)],sq);class sG extends sP.EditorAction{constructor(){super({id:"editor.action.triggerParameterHints",label:(0,L.localize2)(1416,"Trigger Parameter Hints"),precondition:eq.EditorContextKeys.hasSignatureHelpProvider,kbOpts:{kbExpr:eq.EditorContextKeys.editorTextFocus,primary:J.KeyMod.CtrlCmd|J.KeyMod.Shift|J.KeyCode.Space,weight:eU.KeybindingWeight.EditorContrib}})}run(e,t){let i=sq.get(t);i?.trigger({triggerKind:rZ.SignatureHelpTriggerKind.Invoke})}}(0,sP.registerEditorContribution)(sq.ID,sq,sP.EditorContributionInstantiation.BeforeFirstInteraction),(0,sP.registerEditorAction)(sG);let s$=eU.KeybindingWeight.EditorContrib+75,sQ=sP.EditorCommand.bindToContribution(sq.get);(0,sP.registerEditorCommand)(new sQ({id:"closeParameterHints",precondition:sL.Visible,handler:e=>e.cancel(),kbOpts:{weight:s$,kbExpr:eq.EditorContextKeys.focus,primary:J.KeyCode.Escape,secondary:[J.KeyMod.Shift|J.KeyCode.Escape]}})),(0,sP.registerEditorCommand)(new sQ({id:"showPrevParameterHint",precondition:U.ContextKeyExpr.and(sL.Visible,sL.MultipleSignatures),handler:e=>e.previous(),kbOpts:{weight:s$,kbExpr:eq.EditorContextKeys.focus,primary:J.KeyCode.UpArrow,secondary:[J.KeyMod.Alt|J.KeyCode.UpArrow],mac:{primary:J.KeyCode.UpArrow,secondary:[J.KeyMod.Alt|J.KeyCode.UpArrow,J.KeyMod.WinCtrl|J.KeyCode.KeyP]}}})),(0,sP.registerEditorCommand)(new sQ({id:"showNextParameterHint",precondition:U.ContextKeyExpr.and(sL.Visible,sL.MultipleSignatures),handler:e=>e.next(),kbOpts:{weight:s$,kbExpr:eq.EditorContextKeys.focus,primary:J.KeyCode.DownArrow,secondary:[J.KeyMod.Alt|J.KeyCode.DownArrow],mac:{primary:J.KeyCode.DownArrow,secondary:[J.KeyMod.Alt|J.KeyCode.DownArrow,J.KeyMod.WinCtrl|J.KeyCode.KeyN]}}})),e.s([],716039);var sj=e.i(946674);(0,R.registerCss)(void 0),(0,eH.registerEditorContribution)(sj.PlaceholderTextContribution.ID,sj.PlaceholderTextContribution,eH.EditorContributionInstantiation.Eager),(0,tl.registerColor)("editor.placeholder.foreground",om.ghostTextForeground,(0,L.localize)(1439,"Foreground color of the placeholder text in the editor.")),e.s([],813540);var sY=W;let sX=class extends sY.Disposable{static{this.ID="editor.sectionHeaderDetector"}constructor(e,t,i){super(),this.editor=e,this.languageConfigurationService=t,this.editorWorkerService=i,this.decorations=this.editor.createDecorationsCollection(),this.options=this.createOptions(e.getOption(ts.EditorOption.minimap)),this.computePromise=null,this.currentOccurrences={},this._register(e.onDidChangeModel(t=>{this.currentOccurrences={},this.options=this.createOptions(e.getOption(ts.EditorOption.minimap)),this.stop(),this.computeSectionHeaders.schedule(0)})),this._register(e.onDidChangeModelLanguage(t=>{this.currentOccurrences={},this.options=this.createOptions(e.getOption(ts.EditorOption.minimap)),this.stop(),this.computeSectionHeaders.schedule(0)})),this._register(t.onDidChange(t=>{let i=this.editor.getModel()?.getLanguageId();i&&t.affects(i)&&(this.currentOccurrences={},this.options=this.createOptions(e.getOption(ts.EditorOption.minimap)),this.stop(),this.computeSectionHeaders.schedule(0))})),this._register(e.onDidChangeConfiguration(t=>{(!this.options||t.hasChanged(ts.EditorOption.minimap))&&(this.options=this.createOptions(e.getOption(ts.EditorOption.minimap)),this.updateDecorations([]),this.stop(),this.computeSectionHeaders.schedule(0))})),this._register(this.editor.onDidChangeModelContent(e=>{this.computeSectionHeaders.schedule()})),this._register(e.onDidChangeModelTokens(e=>{this.computeSectionHeaders.isScheduled()||this.computeSectionHeaders.schedule(1e3)})),this.computeSectionHeaders=this._register(new G.RunOnceScheduler(()=>{this.findSectionHeaders()},250)),this.computeSectionHeaders.schedule(0)}createOptions(e){if(!e||!this.editor.hasModel())return;let t=this.editor.getModel().getLanguageId();if(!t)return;let i=this.languageConfigurationService.getLanguageConfiguration(t).comments,o=this.languageConfigurationService.getLanguageConfiguration(t).foldingRules;if(i||o?.markers)return{foldingRules:o,markSectionHeaderRegex:e.markSectionHeaderRegex,findMarkSectionHeaders:e.showMarkSectionHeaders,findRegionSectionHeaders:e.showRegionSectionHeaders}}findSectionHeaders(){if(!this.editor.hasModel()||!this.options?.findMarkSectionHeaders&&!this.options?.findRegionSectionHeaders)return;let e=this.editor.getModel();if(e.isDisposed()||e.isTooLargeForSyncing())return;let t=e.getVersionId();this.editorWorkerService.findSectionHeaders(e.uri,this.options).then(i=>{e.isDisposed()||e.getVersionId()!==t||this.updateDecorations(i)})}updateDecorations(e){let t=this.editor.getModel();t&&(e=e.filter(e=>{if(!e.shouldBeInComments)return!0;let i=t.validateRange(e.range),o=t.tokenization.getLineTokens(i.startLineNumber),r=o.findTokenIndexAtOffset(i.startColumn-1),n=o.getStandardTokenType(r),s=t.getLanguageIdAtPosition(i.startLineNumber,i.startColumn);return o.getLanguageId(r)===s&&n===nh.StandardTokenType.Comment}));let i=Object.values(this.currentOccurrences).map(e=>e.decorationId),o=e.map(e=>{var t;return{range:(t=e).range,options:tc.ModelDecorationOptions.createDynamic({description:"section-header",stickiness:e7.TrackedRangeStickiness.GrowsOnlyWhenTypingAfter,collapseOnReplaceEdit:!0,minimap:{color:void 0,position:e7.MinimapPosition.Inline,sectionHeaderStyle:t.hasSeparatorLine?e7.MinimapSectionHeaderStyle.Underlined:e7.MinimapSectionHeaderStyle.Normal,sectionHeaderText:t.text}})}});this.editor.changeDecorations(t=>{let r=t.deltaDecorations(i,o);this.currentOccurrences={};for(let t=0,i=r.length;t<i;t++){let i={sectionHeader:e[t],decorationId:r[t]};this.currentOccurrences[i.decorationId]=i}})}stop(){this.computeSectionHeaders.cancel(),this.computePromise&&(this.computePromise.cancel(),this.computePromise=null)}dispose(){super.dispose(),this.stop(),this.decorations.clear()}};sX=(0,eR.__decorate)([(0,eR.__param)(1,i3.ILanguageConfigurationService),(0,eR.__param)(2,iz.IEditorWorkerService)],sX),(0,eH.registerEditorContribution)(sX.ID,sX,eH.EditorContributionInstantiation.AfterFirstRender),e.s([],802384);var sZ=W,sJ=e.i(802186),s0=e.i(271379),s1=e.i(757507),s2=e.i(373776);function s3(e){return e&&!!e.data}function s8(e){return e&&Array.isArray(e.edits)}class s5{constructor(e,t,i){this.provider=e,this.tokens=t,this.error=i}}async function s6(e,t,i,o,r){let n,s=(n=e.orderedGroups(t)).length>0?n[0]:[],a=await Promise.all(s.map(async e=>{let n,s=null;try{n=await e.provideDocumentSemanticTokens(t,e===i?o:null,r)}catch(e){s=e,n=null}return n&&(s3(n)||s8(n))||(n=null),new s5(e,n,s)}));for(let e of a){if(e.error)throw e.error;if(e.tokens)return e}return a.length>0?a[0]:null}class s7{constructor(e,t){this.provider=e,this.tokens=t}}function s9(e,t){let i=e.orderedGroups(t);return i.length>0?i[0]:[]}async function s4(e,t,i,o){let r=s9(e,t),n=await Promise.all(r.map(async e=>{let r;try{r=await e.provideDocumentRangeSemanticTokens(t,i,o)}catch(e){(0,ir.onUnexpectedExternalError)(e),r=null}return r&&s3(r)||(r=null),new s7(e,r)}));for(let e of n)if(e.tokens)return e;return n.length>0?n[0]:null}eg.CommandsRegistry.registerCommand("_provideDocumentSemanticTokensLegend",async(e,...t)=>{let i,[o]=t;(0,o2.assertType)(o instanceof iw.URI);let r=e.get(nm.IModelService).getModel(o);if(!r)return;let{documentSemanticTokensProvider:n}=e.get(eV.ILanguageFeaturesService),s=(i=n.orderedGroups(r)).length>0?i[0]:null;return s?s[0].getLegend():e.get(iC.ICommandService).executeCommand("_provideDocumentRangeSemanticTokensLegend",o)}),eg.CommandsRegistry.registerCommand("_provideDocumentSemanticTokens",async(e,...t)=>{let[i]=t;(0,o2.assertType)(i instanceof iw.URI);let o=e.get(nm.IModelService).getModel(i);if(!o)return;let{documentSemanticTokensProvider:r}=e.get(eV.ILanguageFeaturesService);if(!r.has(o))return e.get(iC.ICommandService).executeCommand("_provideDocumentRangeSemanticTokens",i,o.getFullModelRange());let n=await s6(r,o,null,null,iE.CancellationToken.None);if(!n)return;let{provider:s,tokens:a}=n;if(!a||!s3(a))return;let d=(0,s2.encodeSemanticTokensDto)({id:0,type:"full",data:a.data});return a.resultId&&s.releaseDocumentSemanticTokens(a.resultId),d}),eg.CommandsRegistry.registerCommand("_provideDocumentRangeSemanticTokensLegend",async(e,...t)=>{let[i,o]=t;(0,o2.assertType)(i instanceof iw.URI);let r=e.get(nm.IModelService).getModel(i);if(!r)return;let{documentRangeSemanticTokensProvider:n}=e.get(eV.ILanguageFeaturesService),s=s9(n,r);if(0===s.length)return;if(1===s.length)return s[0].getLegend();if(!o||!td.Range.isIRange(o))return console.warn("provideDocumentRangeSemanticTokensLegend might be out-of-sync with provideDocumentRangeSemanticTokens unless a range argument is passed in"),s[0].getLegend();let a=await s4(n,r,td.Range.lift(o),iE.CancellationToken.None);if(a)return a.provider.getLegend()}),eg.CommandsRegistry.registerCommand("_provideDocumentRangeSemanticTokens",async(e,...t)=>{let[i,o]=t;(0,o2.assertType)(i instanceof iw.URI),(0,o2.assertType)(td.Range.isIRange(o));let r=e.get(nm.IModelService).getModel(i);if(!r)return;let{documentRangeSemanticTokensProvider:n}=e.get(eV.ILanguageFeaturesService),s=await s4(n,r,td.Range.lift(o),iE.CancellationToken.None);if(s&&s.tokens)return(0,s2.encodeSemanticTokensDto)({id:0,type:"full",data:s.tokens.data})});var ae=e.i(88124);let at=class extends sZ.Disposable{constructor(e,t,i,o,r,n){super(),this._watchers=new sJ.ResourceMap;const s=t=>{this._watchers.get(t.uri)?.dispose(),this._watchers.set(t.uri,new ai(t,e,i,r,n))},a=(e,t)=>{t.dispose(),this._watchers.delete(e.uri)},d=()=>{for(let e of t.getModels()){let t=this._watchers.get(e.uri);(0,ae.isSemanticColoringEnabled)(e,i,o)?t||s(e):t&&a(e,t)}};t.getModels().forEach(e=>{(0,ae.isSemanticColoringEnabled)(e,i,o)&&s(e)}),this._register(t.onModelAdded(e=>{(0,ae.isSemanticColoringEnabled)(e,i,o)&&s(e)})),this._register(t.onModelRemoved(e=>{let t=this._watchers.get(e.uri);t&&a(e,t)})),this._register(o.onDidChangeConfiguration(e=>{e.affectsConfiguration(ae.SEMANTIC_HIGHLIGHTING_SETTING_ID)&&d()})),this._register(i.onDidColorThemeChange(d))}dispose(){(0,sZ.dispose)(this._watchers.values()),this._watchers.clear(),super.dispose()}};at=(0,eR.__decorate)([(0,eR.__param)(0,s1.ISemanticTokensStylingService),(0,eR.__param)(1,nm.IModelService),(0,eR.__param)(2,iB.IThemeService),(0,eR.__param)(3,B.IConfigurationService),(0,eR.__param)(4,ib.ILanguageFeatureDebounceService),(0,eR.__param)(5,eV.ILanguageFeaturesService)],at);let ai=class extends sZ.Disposable{static{x=this}static{this.REQUEST_MIN_DELAY=300}static{this.REQUEST_MAX_DELAY=2e3}constructor(e,t,i,o,r){super(),this._semanticTokensStylingService=t,this._isDisposed=!1,this._model=e,this._provider=r.documentSemanticTokensProvider,this._debounceInformation=o.for(this._provider,"DocumentSemanticTokens",{min:x.REQUEST_MIN_DELAY,max:x.REQUEST_MAX_DELAY}),this._fetchDocumentSemanticTokens=this._register(new G.RunOnceScheduler(()=>this._fetchDocumentSemanticTokensNow(),x.REQUEST_MIN_DELAY)),this._currentDocumentResponse=null,this._currentDocumentRequestCancellationTokenSource=null,this._documentProvidersChangeListeners=[],this._providersChangedDuringRequest=!1,this._register(this._model.onDidChangeContent(()=>{this._fetchDocumentSemanticTokens.isScheduled()||this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))})),this._register(this._model.onDidChangeAttached(()=>{this._fetchDocumentSemanticTokens.isScheduled()||this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))})),this._register(this._model.onDidChangeLanguage(()=>{this._currentDocumentResponse&&(this._currentDocumentResponse.dispose(),this._currentDocumentResponse=null),this._currentDocumentRequestCancellationTokenSource&&(this._currentDocumentRequestCancellationTokenSource.cancel(),this._currentDocumentRequestCancellationTokenSource=null),this._setDocumentSemanticTokens(null,null,null,[]),this._fetchDocumentSemanticTokens.schedule(0)}));const n=()=>{for(let t of((0,sZ.dispose)(this._documentProvidersChangeListeners),this._documentProvidersChangeListeners=[],this._provider.all(e)))"function"==typeof t.onDidChange&&this._documentProvidersChangeListeners.push(t.onDidChange(()=>{if(this._currentDocumentRequestCancellationTokenSource){this._providersChangedDuringRequest=!0;return}this._fetchDocumentSemanticTokens.schedule(0)}))};n(),this._register(this._provider.onDidChange(()=>{n(),this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))})),this._register(i.onDidColorThemeChange(e=>{this._setDocumentSemanticTokens(null,null,null,[]),this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))})),this._fetchDocumentSemanticTokens.schedule(0)}dispose(){this._currentDocumentResponse&&(this._currentDocumentResponse.dispose(),this._currentDocumentResponse=null),this._currentDocumentRequestCancellationTokenSource&&(this._currentDocumentRequestCancellationTokenSource.cancel(),this._currentDocumentRequestCancellationTokenSource=null),(0,sZ.dispose)(this._documentProvidersChangeListeners),this._documentProvidersChangeListeners=[],this._setDocumentSemanticTokens(null,null,null,[]),this._isDisposed=!0,super.dispose()}_fetchDocumentSemanticTokensNow(){var e,t;if(this._currentDocumentRequestCancellationTokenSource)return;if(e=this._provider,t=this._model,!e.has(t)){this._currentDocumentResponse&&this._model.tokenization.setSemanticTokens(null,!1);return}if(!this._model.isAttachedToEditor())return;let i=new iE.CancellationTokenSource,o=this._currentDocumentResponse?this._currentDocumentResponse.provider:null,r=this._currentDocumentResponse&&this._currentDocumentResponse.resultId||null,n=s6(this._provider,this._model,o,r,i.token);this._currentDocumentRequestCancellationTokenSource=i,this._providersChangedDuringRequest=!1;let s=[],a=this._model.onDidChangeContent(e=>{s.push(e)}),d=new nY.StopWatch(!1);n.then(e=>{if(this._debounceInformation.update(this._model,d.elapsed()),this._currentDocumentRequestCancellationTokenSource=null,a.dispose(),e){let{provider:t,tokens:i}=e,o=this._semanticTokensStylingService.getStyling(t);this._setDocumentSemanticTokens(t,i||null,o,s)}else this._setDocumentSemanticTokens(null,null,null,s)},e=>{e&&((0,ir.isCancellationError)(e)||"string"==typeof e.message&&-1!==e.message.indexOf("busy"))||(0,ir.onUnexpectedError)(e),this._currentDocumentRequestCancellationTokenSource=null,a.dispose(),(s.length>0||this._providersChangedDuringRequest)&&!this._fetchDocumentSemanticTokens.isScheduled()&&this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))})}static _copy(e,t,i,o,r){r=Math.min(r,i.length-o,e.length-t);for(let n=0;n<r;n++)i[o+n]=e[t+n]}_setDocumentSemanticTokens(e,t,i,o){let r=this._currentDocumentResponse,n=()=>{(o.length>0||this._providersChangedDuringRequest)&&!this._fetchDocumentSemanticTokens.isScheduled()&&this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))};if(this._currentDocumentResponse&&(this._currentDocumentResponse.dispose(),this._currentDocumentResponse=null),this._isDisposed){e&&t&&e.releaseDocumentSemanticTokens(t.resultId);return}if(!e||!i)return void this._model.tokenization.setSemanticTokens(null,!1);if(!t){this._model.tokenization.setSemanticTokens(null,!0),n();return}if(s8(t)){if(!r)return void this._model.tokenization.setSemanticTokens(null,!0);if(0===t.edits.length)t={resultId:t.resultId,data:r.data};else{let e=0;for(let i of t.edits)e+=(i.data?i.data.length:0)-i.deleteCount;let o=r.data,n=new Uint32Array(o.length+e),s=o.length,a=n.length;for(let e=t.edits.length-1;e>=0;e--){let d=t.edits[e];if(d.start>o.length){i.warnInvalidEditStart(r.resultId,t.resultId,e,d.start,o.length),this._model.tokenization.setSemanticTokens(null,!0);return}let c=s-(d.start+d.deleteCount);c>0&&(x._copy(o,s-c,n,a-c,c),a-=c),d.data&&(x._copy(d.data,0,n,a-d.data.length,d.data.length),a-=d.data.length),s=d.start}s>0&&x._copy(o,0,n,0,s),t={resultId:t.resultId,data:n}}}if(s3(t)){this._currentDocumentResponse=new ao(e,t.resultId,t.data);let r=(0,s0.toMultilineTokens2)(t,i,this._model.getLanguageId());if(o.length>0)for(let e of o)for(let t of r)for(let i of e.changes)t.applyEdit(i.range,i.text);this._model.tokenization.setSemanticTokens(r,!0)}else this._model.tokenization.setSemanticTokens(null,!0);n()}};ai=x=(0,eR.__decorate)([(0,eR.__param)(1,s1.ISemanticTokensStylingService),(0,eR.__param)(2,iB.IThemeService),(0,eR.__param)(3,ib.ILanguageFeatureDebounceService),(0,eR.__param)(4,eV.ILanguageFeaturesService)],ai);class ao{constructor(e,t,i){this.provider=e,this.resultId=t,this.data=i}dispose(){this.provider.releaseDocumentSemanticTokens(this.resultId)}}(0,eG.registerEditorFeature)(at),e.s([],769412);var ar=W;let an=class extends ar.Disposable{static{k=this}static{this.ID="editor.contrib.viewportSemanticTokens"}static get(e){return e.getContribution(k.ID)}constructor(e,t,i,o,r,n){super(),this._semanticTokensStylingService=t,this._themeService=i,this._configurationService=o,this._editor=e,this._provider=n.documentRangeSemanticTokensProvider,this._debounceInformation=r.for(this._provider,"DocumentRangeSemanticTokens",{min:100,max:500}),this._tokenizeViewport=this._register(new G.RunOnceScheduler(()=>this._tokenizeViewportNow(),100)),this._outstandingRequests=[],this._rangeProvidersChangeListeners=[];const s=()=>{this._editor.hasModel()&&this._tokenizeViewport.schedule(this._debounceInformation.get(this._editor.getModel()))},a=()=>{if(this._cleanupProviderListeners(),this._editor.hasModel()){let e=this._editor.getModel();for(let t of this._provider.all(e)){let e=t.onDidChange?.(()=>{this._cancelAll(),s()});e&&this._rangeProvidersChangeListeners.push(e)}}};this._register(this._editor.onDidScrollChange(()=>{s()})),this._register(this._editor.onDidChangeModel(()=>{a(),this._cancelAll(),s()})),this._register(this._editor.onDidChangeModelLanguage(()=>{a(),this._cancelAll(),s()})),this._register(this._editor.onDidChangeModelContent(e=>{this._cancelAll(),s()})),a(),this._register(this._provider.onDidChange(()=>{a(),this._cancelAll(),s()})),this._register(this._configurationService.onDidChangeConfiguration(e=>{e.affectsConfiguration(ae.SEMANTIC_HIGHLIGHTING_SETTING_ID)&&(this._cancelAll(),s())})),this._register(this._themeService.onDidColorThemeChange(()=>{this._cancelAll(),s()})),s()}dispose(){this._cleanupProviderListeners(),super.dispose()}_cleanupProviderListeners(){(0,ar.dispose)(this._rangeProvidersChangeListeners),this._rangeProvidersChangeListeners=[]}_cancelAll(){for(let e of this._outstandingRequests)e.cancel();this._outstandingRequests=[]}_removeOutstandingRequest(e){for(let t=0,i=this._outstandingRequests.length;t<i;t++)if(this._outstandingRequests[t]===e)return void this._outstandingRequests.splice(t,1)}_tokenizeViewportNow(){var e;if(!this._editor.hasModel())return;let t=this._editor.getModel();if(t.tokenization.hasCompleteSemanticTokens())return;if(!(0,ae.isSemanticColoringEnabled)(t,this._themeService,this._configurationService)||(e=this._provider,!e.has(t))){t.tokenization.hasSomeSemanticTokens()&&t.tokenization.setSemanticTokens(null,!1);return}let i=this._editor.getVisibleRangesPlusViewportAboveBelow();this._outstandingRequests=this._outstandingRequests.concat(i.map(e=>this._requestRange(t,e)))}_requestRange(e,t){let i=e.getVersionId(),o=(0,G.createCancelablePromise)(i=>Promise.resolve(s4(this._provider,e,t,i))),r=new nY.StopWatch(!1);return o.then(o=>{if(this._debounceInformation.update(e,r.elapsed()),!o||!o.tokens||e.isDisposed()||e.getVersionId()!==i)return;let{provider:n,tokens:s}=o,a=this._semanticTokensStylingService.getStyling(n);e.tokenization.setPartialSemanticTokens(t,(0,s0.toMultilineTokens2)(s,a,e.getLanguageId()))}).then(()=>this._removeOutstandingRequest(o),()=>this._removeOutstandingRequest(o)),o}};an=k=(0,eR.__decorate)([(0,eR.__param)(1,s1.ISemanticTokensStylingService),(0,eR.__param)(2,iB.IThemeService),(0,eR.__param)(3,B.IConfigurationService),(0,eR.__param)(4,ib.ILanguageFeatureDebounceService),(0,eR.__param)(5,eV.ILanguageFeaturesService)],an),(0,eH.registerEditorContribution)(an.ID,an,eH.EditorContributionInstantiation.AfterFirstRender),e.s([],571292);var as=eH,aa=e.i(984986);class ad{constructor(e=!0){this.selectSubwords=e}provideSelectionRanges(e,t){let i=[];for(let o of t){let t=[];i.push(t),this.selectSubwords&&this._addInWordRanges(t,e,o),this._addWordRanges(t,e,o),this._addWhitespaceLine(t,e,o),t.push({range:e.getFullModelRange()})}return i}_addInWordRanges(e,t,i){let o=t.getWordAtPosition(i);if(!o)return;let{word:r,startColumn:n}=o,s=i.column-n,a=s,d=s,c=0;for(;a>=0;a--){let e=r.charCodeAt(a);if(a!==s&&(e===i8.CharCode.Underline||e===i8.CharCode.Dash)||(0,tX.isLowerAsciiLetter)(e)&&(0,tX.isUpperAsciiLetter)(c))break;c=e}for(a+=1;d<r.length;d++){let e=r.charCodeAt(d);if((0,tX.isUpperAsciiLetter)(e)&&(0,tX.isLowerAsciiLetter)(c)||e===i8.CharCode.Underline||e===i8.CharCode.Dash)break;c=e}a<d&&e.push({range:new td.Range(i.lineNumber,n+a,i.lineNumber,n+d)})}_addWordRanges(e,t,i){let o=t.getWordAtPosition(i);o&&e.push({range:new td.Range(i.lineNumber,o.startColumn,i.lineNumber,o.endColumn)})}_addWhitespaceLine(e,t,i){t.getLineLength(i.lineNumber)>0&&0===t.getLineFirstNonWhitespaceColumn(i.lineNumber)&&0===t.getLineLastNonWhitespaceColumn(i.lineNumber)&&e.push({range:new td.Range(i.lineNumber,1,i.lineNumber,t.getLineMaxColumn(i.lineNumber))})}}class ac{constructor(e,t){this.index=e,this.ranges=t}mov(e){let t=this.index+(e?1:-1);if(t<0||t>=this.ranges.length)return this;let i=new ac(t,this.ranges);return i.ranges[t].equalsRange(this.ranges[this.index])?i.mov(e):i}}let al=class{static{T=this}static{this.ID="editor.contrib.smartSelectController"}static get(e){return e.getContribution(T.ID)}constructor(e,t){this._editor=e,this._languageFeaturesService=t,this._ignoreSelection=!1}dispose(){this._selectionListener?.dispose()}async run(e){if(!this._editor.hasModel())return;let t=this._editor.getSelections(),i=this._editor.getModel();if(this._state||await ah(this._languageFeaturesService.selectionRangeProvider,i,t.map(e=>e.getPosition()),this._editor.getOption(ts.EditorOption.smartSelect),iE.CancellationToken.None).then(e=>{if((0,oU.isNonEmptyArray)(e)&&e.length===t.length&&this._editor.hasModel()&&(0,oU.equals)(this._editor.getSelections(),t,(e,t)=>e.equalsSelection(t))){for(let i=0;i<e.length;i++)e[i]=e[i].filter(e=>e.containsPosition(t[i].getStartPosition())&&e.containsPosition(t[i].getEndPosition())),e[i].unshift(t[i]);this._state=e.map(e=>new ac(0,e)),this._selectionListener?.dispose(),this._selectionListener=this._editor.onDidChangeCursorPosition(()=>{this._ignoreSelection||(this._selectionListener?.dispose(),this._state=void 0)})}}),!this._state)return;this._state=this._state.map(t=>t.mov(e));let o=this._state.map(e=>e6.Selection.fromPositions(e.ranges[e.index].getStartPosition(),e.ranges[e.index].getEndPosition()));this._ignoreSelection=!0;try{this._editor.setSelections(o)}finally{this._ignoreSelection=!1}}};al=T=(0,eR.__decorate)([(0,eR.__param)(1,eV.ILanguageFeaturesService)],al);class au extends as.EditorAction{constructor(e,t){super(t),this._forward=e}async run(e,t){let i=al.get(t);i&&await i.run(this._forward)}}async function ah(e,t,i,o,r){let n=e.all(t).concat(new ad(o.selectSubwords));1===n.length&&n.unshift(new aa.BracketSelectionRangeProvider);let s=[],a=[];for(let e of n)s.push(Promise.resolve(e.provideSelectionRanges(t,i,r)).then(e=>{if((0,oU.isNonEmptyArray)(e)&&e.length===i.length)for(let t=0;t<i.length;t++)for(let o of(a[t]||(a[t]=[]),e[t]))td.Range.isIRange(o.range)&&td.Range.containsPosition(o.range,i[t])&&a[t].push(td.Range.lift(o.range))},ir.onUnexpectedExternalError));return await Promise.all(s),a.map(e=>{let i;if(0===e.length)return[];e.sort((e,t)=>ta.Position.isBefore(e.getStartPosition(),t.getStartPosition())?1:ta.Position.isBefore(t.getStartPosition(),e.getStartPosition())?-1:ta.Position.isBefore(e.getEndPosition(),t.getEndPosition())?-1:1*!!ta.Position.isBefore(t.getEndPosition(),e.getEndPosition()));let r=[];for(let t of e)(!i||td.Range.containsRange(t,i)&&!td.Range.equalsRange(t,i))&&(r.push(t),i=t);if(!o.selectLeadingAndTrailingWhitespace)return r;let n=[r[0]];for(let e=1;e<r.length;e++){let i=r[e-1],o=r[e];if(o.startLineNumber!==i.startLineNumber||o.endLineNumber!==i.endLineNumber){let e=new td.Range(i.startLineNumber,t.getLineFirstNonWhitespaceColumn(i.startLineNumber),i.endLineNumber,t.getLineLastNonWhitespaceColumn(i.endLineNumber));e.containsRange(i)&&!e.equalsRange(i)&&o.containsRange(e)&&!o.equalsRange(e)&&n.push(e);let r=new td.Range(i.startLineNumber,1,i.endLineNumber,t.getLineMaxColumn(i.endLineNumber));r.containsRange(i)&&!r.equalsRange(e)&&o.containsRange(r)&&!o.equalsRange(r)&&n.push(r)}n.push(o)}return n})}eg.CommandsRegistry.registerCommandAlias("editor.action.smartSelect.grow","editor.action.smartSelect.expand"),(0,as.registerEditorContribution)(al.ID,al,as.EditorContributionInstantiation.Lazy),(0,as.registerEditorAction)(class extends au{constructor(){super(!0,{id:"editor.action.smartSelect.expand",label:(0,L.localize2)(1499,"Expand Selection"),precondition:void 0,kbOpts:{kbExpr:eq.EditorContextKeys.editorTextFocus,primary:J.KeyMod.Shift|J.KeyMod.Alt|J.KeyCode.RightArrow,mac:{primary:J.KeyMod.CtrlCmd|J.KeyMod.WinCtrl|J.KeyMod.Shift|J.KeyCode.RightArrow,secondary:[J.KeyMod.WinCtrl|J.KeyMod.Shift|J.KeyCode.RightArrow]},weight:eU.KeybindingWeight.EditorContrib},menuOpts:{menuId:j.MenuId.MenubarSelectionMenu,group:"1_basic",title:(0,L.localize)(1500,"&&Expand Selection"),order:2}})}}),(0,as.registerEditorAction)(class extends au{constructor(){super(!1,{id:"editor.action.smartSelect.shrink",label:(0,L.localize2)(1501,"Shrink Selection"),precondition:void 0,kbOpts:{kbExpr:eq.EditorContextKeys.editorTextFocus,primary:J.KeyMod.Shift|J.KeyMod.Alt|J.KeyCode.LeftArrow,mac:{primary:J.KeyMod.CtrlCmd|J.KeyMod.WinCtrl|J.KeyMod.Shift|J.KeyCode.LeftArrow,secondary:[J.KeyMod.WinCtrl|J.KeyMod.Shift|J.KeyCode.LeftArrow]},weight:eU.KeybindingWeight.EditorContrib},menuOpts:{menuId:j.MenuId.MenubarSelectionMenu,group:"1_basic",title:(0,L.localize)(1502,"&&Shrink Selection"),order:3}})}}),eg.CommandsRegistry.registerCommand("_executeSelectionRangeProvider",async function(e,...t){let[i,o]=t;(0,o2.assertType)(iw.URI.isUri(i)),(0,o2.assertType)((0,o2.isArrayOf)(o,e=>ta.Position.isIPosition(e)));let r=e.get(eV.ILanguageFeaturesService).selectionRangeProvider,n=await e.get(o3.ITextModelService).createModelReference(i);try{return ah(r,n.object.textEditorModel,o.map(ta.Position.lift),{selectLeadingAndTrailingWhitespace:!0,selectSubwords:!0},iE.CancellationToken.None)}finally{n.dispose()}}),e.s([],924056);var ap=eH,ag=e.i(335179);class am extends ap.EditorAction2{constructor(){super({id:"editor.action.toggleStickyScroll",title:{...(0,L.localize2)(1545,"Toggle Editor Sticky Scroll"),mnemonicTitle:(0,L.localize)(1546,"&&Toggle Editor Sticky Scroll")},metadata:{description:(0,L.localize2)(1547,"Toggle/enable the editor sticky scroll which shows the nested scopes at the top of the viewport")},category:eo.Categories.View,toggled:{condition:U.ContextKeyExpr.equals("config.editor.stickyScroll.enabled",!0),title:(0,L.localize)(1548,"Sticky Scroll"),mnemonicTitle:(0,L.localize)(1549,"&&Sticky Scroll")},menu:[{id:j.MenuId.CommandPalette},{id:j.MenuId.MenubarAppearanceMenu,group:"4_editor",order:3},{id:j.MenuId.StickyScrollContext}]})}async runEditorCommand(e,t){let i=e.get(B.IConfigurationService),o=!i.getValue("editor.stickyScroll.enabled"),r=ag.StickyScrollController.get(t)?.isFocused();i.updateValue("editor.stickyScroll.enabled",o),r&&t.focus()}}let av=eU.KeybindingWeight.EditorContrib;class ay extends ap.EditorAction2{constructor(){super({id:"editor.action.focusStickyScroll",title:{...(0,L.localize2)(1550,"Focus Editor Sticky Scroll"),mnemonicTitle:(0,L.localize)(1551,"&&Focus Editor Sticky Scroll")},precondition:U.ContextKeyExpr.and(U.ContextKeyExpr.has("config.editor.stickyScroll.enabled"),eq.EditorContextKeys.stickyScrollVisible),menu:[{id:j.MenuId.CommandPalette}]})}runEditorCommand(e,t){ag.StickyScrollController.get(t)?.focus()}}class af extends ap.EditorAction2{constructor(){super({id:"editor.action.selectNextStickyScrollLine",title:(0,L.localize2)(1552,"Select the next editor sticky scroll line"),precondition:eq.EditorContextKeys.stickyScrollFocused.isEqualTo(!0),keybinding:{weight:av,primary:J.KeyCode.DownArrow}})}runEditorCommand(e,t){ag.StickyScrollController.get(t)?.focusNext()}}class a_ extends ap.EditorAction2{constructor(){super({id:"editor.action.selectPreviousStickyScrollLine",title:(0,L.localize2)(1553,"Select the previous sticky scroll line"),precondition:eq.EditorContextKeys.stickyScrollFocused.isEqualTo(!0),keybinding:{weight:av,primary:J.KeyCode.UpArrow}})}runEditorCommand(e,t){ag.StickyScrollController.get(t)?.focusPrevious()}}class aC extends ap.EditorAction2{constructor(){super({id:"editor.action.goToFocusedStickyScrollLine",title:(0,L.localize2)(1554,"Go to the focused sticky scroll line"),precondition:eq.EditorContextKeys.stickyScrollFocused.isEqualTo(!0),keybinding:{weight:av,primary:J.KeyCode.Enter}})}runEditorCommand(e,t){ag.StickyScrollController.get(t)?.goToFocused()}}class aS extends ap.EditorAction2{constructor(){super({id:"editor.action.selectEditor",title:(0,L.localize2)(1555,"Select Editor"),precondition:eq.EditorContextKeys.stickyScrollFocused.isEqualTo(!0),keybinding:{weight:av,primary:J.KeyCode.Escape}})}runEditorCommand(e,t){ag.StickyScrollController.get(t)?.selectEditor()}}(0,eH.registerEditorContribution)(ag.StickyScrollController.ID,ag.StickyScrollController,eH.EditorContributionInstantiation.AfterFirstRender),(0,j.registerAction2)(am),(0,j.registerAction2)(ay),(0,j.registerAction2)(a_),(0,j.registerAction2)(af),(0,j.registerAction2)(aC),(0,j.registerAction2)(aS),e.s([],815301);var ab=e.i(546198),aI=e.i(751753),aE=W,aw=e.i(56617),aD=e.i(77617),aA=e.i(119630),ax=e.i(694966);class ak{constructor(e,t,i,o,r,n,s){this.range=e,this.insertText=t,this.filterText=i,this.additionalTextEdits=o,this.command=r,this.gutterMenuLinkAction=n,this.completion=s,this.doNotLog=!0}}let aT=class extends aE.RefCountedDisposable{constructor(e,t,i,o,r,n){super(r.disposable),this.model=e,this.line=t,this.word=i,this.completionModel=o,this._suggestMemoryService=n}canBeReused(e,t,i){return this.model===e&&this.line===t&&this.word.word.length>0&&this.word.startColumn===i.startColumn&&this.word.endColumn<i.endColumn&&0===this.completionModel.getIncompleteProvider().size}get items(){let e=[],{items:t}=this.completionModel,i=this._suggestMemoryService.select(this.model,{lineNumber:this.line,column:this.word.endColumn+this.completionModel.lineContext.characterCountDelta},t),o=aI.Iterable.slice(t,i),r=aI.Iterable.slice(t,0,i),n=5;for(let t of aI.Iterable.concat(o,r)){if(t.score===ab.FuzzyScore.Default)continue;let i=new td.Range(t.editStart.lineNumber,t.editStart.column,t.editInsertEnd.lineNumber,t.editInsertEnd.column+this.completionModel.lineContext.characterCountDelta),o=t.completion.insertTextRules&&t.completion.insertTextRules&rZ.CompletionItemInsertTextRule.InsertAsSnippet?{snippet:t.completion.insertText}:t.completion.insertText;e.push(new ak(i,o,t.filterTextLow??t.labelLow,t.completion.additionalTextEdits,t.completion.command,t.completion.action,t)),n-- >=0&&t.resolve(iE.CancellationToken.None)}return e}};aT=(0,eR.__decorate)([(0,eR.__param)(5,aD.ISuggestMemoryService)],aT);let aM=class extends aE.Disposable{constructor(e,t,i,o){super(),this._languageFeatureService=e,this._clipboardService=t,this._suggestMemoryService=i,this._editorService=o,this._store.add(e.inlineCompletionsProvider.register("*",this))}async provideInlineCompletions(e,t,i,o){let r,n,s;if(i.selectedSuggestionInfo)return;for(let t of this._editorService.listCodeEditors())if(t.getModel()===e){r=t;break}if(!r)return;let a=r.getOption(ts.EditorOption.quickSuggestions);if(rt.QuickSuggestionsOptions.isAllOff(a))return;e.tokenization.tokenizeIfCheap(t.lineNumber);let d=e.tokenization.getLineTokens(t.lineNumber),c=d.getStandardTokenType(d.findTokenIndexAtOffset(Math.max(t.column-1-1,0)));if("inline"!==rt.QuickSuggestionsOptions.valueFor(a,c))return;let l=e.getWordAtPosition(t);if(l?.word||(n=this._getTriggerCharacterInfo(e,t)),!l?.word&&!n||(l||(l=e.getWordUntilPosition(t)),l.endColumn!==t.column))return;let u=e.getValueInRange(new td.Range(t.lineNumber,1,t.lineNumber,t.column));if(!n&&this._lastResult?.canBeReused(e,t.lineNumber,l)){let e=new aw.LineContext(u,t.column-this._lastResult.word.endColumn);this._lastResult.completionModel.lineContext=e,this._lastResult.acquire(),s=this._lastResult}else{let i,a=await (0,rt.provideSuggestionItems)(this._languageFeatureService.completionProvider,e,t,new rt.CompletionOptions(void 0,aA.SuggestModel.createSuggestFilter(r).itemKind,n?.providers),n&&{triggerKind:rZ.CompletionTriggerKind.TriggerCharacter,triggerCharacter:n.ch},o);a.needsClipboard&&(i=await this._clipboardService.readText());let d=new aw.CompletionModel(a.items,t.column,new aw.LineContext(u,0),ax.WordDistance.None,r.getOption(ts.EditorOption.suggest),r.getOption(ts.EditorOption.snippetSuggestions),{boostFullMatch:!1,firstMatchCanBeWeak:!1},i);s=new aT(e,t.lineNumber,l,d,a,this._suggestMemoryService)}return this._lastResult=s,s}handleItemDidShow(e,t){t.completion.resolve(iE.CancellationToken.None)}disposeInlineCompletions(e){e.release()}_getTriggerCharacterInfo(e,t){let i=e.getValueInRange(td.Range.fromPositions({lineNumber:t.lineNumber,column:t.column-1},t)),o=new Set;for(let t of this._languageFeatureService.completionProvider.all(e))t.triggerCharacters?.includes(i)&&o.add(t);if(0!==o.size)return{providers:o,ch:i}}};aM=(0,eR.__decorate)([(0,eR.__param)(0,eV.ILanguageFeaturesService),(0,eR.__param)(1,tR.IClipboardService),(0,eR.__param)(2,aD.ISuggestMemoryService),(0,eR.__param)(3,tF.ICodeEditorService)],aM),(0,eG.registerEditorFeature)(aM),e.s([],456865);var aP=eH;class aR extends aP.EditorAction{constructor(){super({id:"editor.action.forceRetokenize",label:(0,L.localize2)(1632,"Developer: Force Retokenize"),precondition:void 0})}run(e,t){if(!t.hasModel())return;let i=t.getModel();i.tokenization.resetTokenization();let o=new nY.StopWatch;i.tokenization.forceTokenization(i.getLineCount()),o.stop(),console.log(`tokenization took ${o.elapsed()}`)}}(0,aP.registerEditorAction)(aR),e.s([],171130);var aL=W,aN=eH,aO=e.i(787197),aF=e.i(32637),aK=W,aW=e.i(833476);(0,R.registerCss)(void 0);let az=class extends aK.Disposable{constructor(e,t){super(),this._editor=e,this.instantiationService=t,this.banner=this._register(this.instantiationService.createInstance(aV))}hide(){this._editor.setBanner(null,0),this.banner.clear()}show(e){this.banner.show({...e,onClose:()=>{this.hide(),e.onClose?.()}}),this._editor.setBanner(this.banner.element,26)}};az=(0,eR.__decorate)([(0,eR.__param)(1,iF.IInstantiationService)],az);let aV=class extends aK.Disposable{constructor(e,t){super(),this.instantiationService=e,this.markdownRendererService=t,this.element=(0,z.$)("div.editor-banner"),this.element.tabIndex=0}getAriaLabel(e){return e.ariaLabel?e.ariaLabel:"string"==typeof e.message?e.message:void 0}getBannerMessage(e){if("string"==typeof e){let t=(0,z.$)("span");return t.innerText=e,t}return this.markdownRendererService.render(e).element}clear(){(0,z.clearNode)(this.element)}show(e){(0,z.clearNode)(this.element);let t=this.getAriaLabel(e);t&&this.element.setAttribute("aria-label",t);let i=(0,z.append)(this.element,(0,z.$)("div.icon-container"));i.setAttribute("aria-hidden","true"),e.icon&&i.appendChild((0,z.$)(`div${nn.ThemeIcon.asCSSSelector(e.icon)}`));let o=(0,z.append)(this.element,(0,z.$)("div.message-container"));if(o.setAttribute("aria-hidden","true"),o.appendChild(this.getBannerMessage(e.message)),this.messageActionsContainer=(0,z.append)(this.element,(0,z.$)("div.message-actions-container")),e.actions)for(let t of e.actions)this._register(this.instantiationService.createInstance(aW.Link,this.messageActionsContainer,{...t,tabIndex:-1},{}));let r=(0,z.append)(this.element,(0,z.$)("div.action-container"));this.actionBar=this._register(new aF.ActionBar(r)),this.actionBar.push(this._register(new eL.Action("banner.close",(0,L.localize)(1633,"Close Banner"),nn.ThemeIcon.asClassName(sz.widgetClose),!0,()=>{"function"==typeof e.onClose&&e.onClose()})),{icon:!0,label:!1}),this.actionBar.setFocusable(!1)}};aV=(0,eR.__decorate)([(0,eR.__param)(0,iF.IInstantiationService),(0,eR.__param)(1,rC.IMarkdownRendererService)],aV);var aB=e.i(13306),aU=e.i(168363),aH=j,aq=e.i(643116),aG=e.i(907354);(0,R.registerCss)(void 0);let a$=(0,sz.registerIcon)("extensions-warning-message",e1.Codicon.warning,(0,L.localize)(1634,"Icon shown with a warning message in the extensions editor.")),aQ=class extends aL.Disposable{static{this.ID="editor.contrib.unicodeHighlighter"}constructor(e,t,i,o){super(),this._editor=e,this._editorWorkerService=t,this._workspaceTrustService=i,this._highlighter=null,this._bannerClosed=!1,this._updateState=e=>{if(e&&e.hasMore){let t;if(this._bannerClosed)return;let i=Math.max(e.ambiguousCharacterCount,e.nonBasicAsciiCharacterCount,e.invisibleCharacterCount);if(e.nonBasicAsciiCharacterCount>=i)t={message:(0,L.localize)(1635,"This document contains many non-basic ASCII unicode characters"),command:new a7};else if(e.ambiguousCharacterCount>=i)t={message:(0,L.localize)(1636,"This document contains many ambiguous unicode characters"),command:new a5};else if(e.invisibleCharacterCount>=i)t={message:(0,L.localize)(1637,"This document contains many invisible unicode characters"),command:new a6};else throw Error("Unreachable");this._bannerController.show({id:"unicodeHighlightBanner",message:t.message,icon:a$,actions:[{label:t.command.shortLabel,href:`command:${t.command.desc.id}`}],onClose:()=>{this._bannerClosed=!0}})}else this._bannerController.hide()},this._bannerController=this._register(o.createInstance(az,e)),this._register(this._editor.onDidChangeModel(()=>{this._bannerClosed=!1,this._updateHighlighter()})),this._options=e.getOption(ts.EditorOption.unicodeHighlighting),this._register(i.onDidChangeTrust(e=>{this._updateHighlighter()})),this._register(e.onDidChangeConfiguration(t=>{t.hasChanged(ts.EditorOption.unicodeHighlighting)&&(this._options=e.getOption(ts.EditorOption.unicodeHighlighting),this._updateHighlighter())})),this._updateHighlighter()}dispose(){this._highlighter&&(this._highlighter.dispose(),this._highlighter=null),super.dispose()}_updateHighlighter(){var e,t;if(this._updateState(null),this._highlighter&&(this._highlighter.dispose(),this._highlighter=null),!this._editor.hasModel())return;let i=(e=this._workspaceTrustService.isWorkspaceTrusted(),{nonBasicASCII:(t=this._options).nonBasicASCII===ts.inUntrustedWorkspace?!e:t.nonBasicASCII,ambiguousCharacters:t.ambiguousCharacters,invisibleCharacters:t.invisibleCharacters,includeComments:t.includeComments===ts.inUntrustedWorkspace?!e:t.includeComments,includeStrings:t.includeStrings===ts.inUntrustedWorkspace?!e:t.includeStrings,allowedCharacters:t.allowedCharacters,allowedLocales:t.allowedLocales});if([i.nonBasicASCII,i.ambiguousCharacters,i.invisibleCharacters].every(e=>!1===e))return;let o={nonBasicASCII:i.nonBasicASCII,ambiguousCharacters:i.ambiguousCharacters,invisibleCharacters:i.invisibleCharacters,includeComments:i.includeComments,includeStrings:i.includeStrings,allowedCodePoints:Object.keys(i.allowedCharacters).map(e=>e.codePointAt(0)),allowedLocales:Object.keys(i.allowedLocales).map(e=>"_os"===e?aq.safeIntl.NumberFormat().value.resolvedOptions().locale:"_vscode"===e?tP.language:e)};this._editorWorkerService.canComputeUnicodeHighlights(this._editor.getModel().uri)?this._highlighter=new aj(this._editor,o,this._updateState,this._editorWorkerService):this._highlighter=new aY(this._editor,o,this._updateState)}getDecorationInfo(e){return this._highlighter?this._highlighter.getDecorationInfo(e):null}};aQ=(0,eR.__decorate)([(0,eR.__param)(1,iz.IEditorWorkerService),(0,eR.__param)(2,aU.IWorkspaceTrustManagementService),(0,eR.__param)(3,iF.IInstantiationService)],aQ);let aj=class extends aL.Disposable{constructor(e,t,i,o){super(),this._editor=e,this._options=t,this._updateState=i,this._editorWorkerService=o,this._model=this._editor.getModel(),this._decorations=this._editor.createDecorationsCollection(),this._updateSoon=this._register(new G.RunOnceScheduler(()=>this._update(),250)),this._register(this._editor.onDidChangeModelContent(()=>{this._updateSoon.schedule()})),this._updateSoon.schedule()}dispose(){this._decorations.clear(),super.dispose()}_update(){if(this._model.isDisposed())return;if(!this._model.mightContainNonBasicASCII())return void this._decorations.clear();let e=this._model.getVersionId();this._editorWorkerService.computedUnicodeHighlights(this._model.uri,this._options).then(t=>{if(this._model.isDisposed()||this._model.getVersionId()!==e)return;this._updateState(t);let i=[];if(!t.hasMore)for(let e of t.ranges)i.push({range:e,options:a2.instance.getDecorationFromOptions(this._options)});this._decorations.set(i)})}getDecorationInfo(e){if(!this._decorations.has(e))return null;let t=this._editor.getModel();return(0,aG.isModelDecorationVisible)(t,e)?{reason:a1(t.getValueInRange(e.range),this._options),inComment:(0,aG.isModelDecorationInComment)(t,e),inString:(0,aG.isModelDecorationInString)(t,e)}:null}};aj=(0,eR.__decorate)([(0,eR.__param)(3,iz.IEditorWorkerService)],aj);class aY extends aL.Disposable{constructor(e,t,i){super(),this._editor=e,this._options=t,this._updateState=i,this._model=this._editor.getModel(),this._decorations=this._editor.createDecorationsCollection(),this._updateSoon=this._register(new G.RunOnceScheduler(()=>this._update(),250)),this._register(this._editor.onDidLayoutChange(()=>{this._updateSoon.schedule()})),this._register(this._editor.onDidScrollChange(()=>{this._updateSoon.schedule()})),this._register(this._editor.onDidChangeHiddenAreas(()=>{this._updateSoon.schedule()})),this._register(this._editor.onDidChangeModelContent(()=>{this._updateSoon.schedule()})),this._updateSoon.schedule()}dispose(){this._decorations.clear(),super.dispose()}_update(){if(this._model.isDisposed())return;if(!this._model.mightContainNonBasicASCII())return void this._decorations.clear();let e=this._editor.getVisibleRanges(),t=[],i={ranges:[],ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0,hasMore:!1};for(let t of e){let e=aO.UnicodeTextModelHighlighter.computeUnicodeHighlights(this._model,this._options,t);for(let t of e.ranges)i.ranges.push(t);i.ambiguousCharacterCount+=i.ambiguousCharacterCount,i.invisibleCharacterCount+=i.invisibleCharacterCount,i.nonBasicAsciiCharacterCount+=i.nonBasicAsciiCharacterCount,i.hasMore=i.hasMore||e.hasMore}if(!i.hasMore)for(let e of i.ranges)t.push({range:e,options:a2.instance.getDecorationFromOptions(this._options)});this._updateState(i),this._decorations.set(t)}getDecorationInfo(e){if(!this._decorations.has(e))return null;let t=this._editor.getModel(),i=t.getValueInRange(e.range);return(0,aG.isModelDecorationVisible)(t,e)?{reason:a1(i,this._options),inComment:(0,aG.isModelDecorationInComment)(t,e),inString:(0,aG.isModelDecorationInString)(t,e)}:null}}let aX=(0,L.localize)(1638,"Configure Unicode Highlight Options"),aZ=class{constructor(e,t){this._editor=e,this._markdownRendererService=t,this.hoverOrdinal=5}computeSync(e,t){if(!this._editor.hasModel()||e.type!==iD.HoverAnchorType.Range)return[];let i=this._editor.getModel(),o=this._editor.getContribution(aQ.ID);if(!o)return[];let r=[],n=new Set,s=300;for(let e of t){let t,a=o.getDecorationInfo(e);if(!a)continue;let d=i.getValueInRange(e.range).codePointAt(0),c=a0(d);switch(a.reason.kind){case aO.UnicodeHighlighterReasonKind.Ambiguous:t=(0,tX.isBasicASCII)(a.reason.confusableWith)?(0,L.localize)(1639,"The character {0} could be confused with the ASCII character {1}, which is more common in source code.",c,a0(a.reason.confusableWith.codePointAt(0))):(0,L.localize)(1640,"The character {0} could be confused with the character {1}, which is more common in source code.",c,a0(a.reason.confusableWith.codePointAt(0)));break;case aO.UnicodeHighlighterReasonKind.Invisible:t=(0,L.localize)(1641,"The character {0} is invisible.",c);break;case aO.UnicodeHighlighterReasonKind.NonBasicAscii:t=(0,L.localize)(1642,"The character {0} is not a basic ASCII character.",c)}if(n.has(t))continue;n.add(t);let l={codePoint:d,reason:a.reason,inComment:a.inComment,inString:a.inString},u=(0,L.localize)(1643,"Adjust settings"),h=(0,e8.createCommandUri)(a9.ID,l),p=new e8.MarkdownString("",!0).appendMarkdown(t).appendText(" ").appendLink(h,u,aX);r.push(new ni.MarkdownHover(this,e.range,[p],!1,s++))}return r}renderHoverParts(e,t){return(0,ni.renderMarkdownHovers)(e,t,this._editor,this._markdownRendererService)}getAccessibleContent(e){return e.contents.map(e=>e.value).join("\n")}};function aJ(e){return`U+${e.toString(16).padStart(4,"0")}`}function a0(e){var t;let i=`\`${aJ(e)}\``;return tX.InvisibleCharacters.isInvisibleCharacter(e)||(i+=` "${(t=e)===i8.CharCode.BackTick?"`` ` ``":"`"+String.fromCodePoint(t)+"`"}"`),i}function a1(e,t){return aO.UnicodeTextModelHighlighter.computeUnicodeHighlightReason(e,t)}aZ=(0,eR.__decorate)([(0,eR.__param)(1,rC.IMarkdownRendererService)],aZ);class a2{constructor(){this.map=new Map}static{this.instance=new a2}getDecorationFromOptions(e){return this.getDecoration(!e.includeComments,!e.includeStrings)}getDecoration(e,t){let i=`${e}${t}`,o=this.map.get(i);return o||(o=tc.ModelDecorationOptions.createDynamic({description:"unicode-highlight",stickiness:e7.TrackedRangeStickiness.NeverGrowsWhenTypingAtEdges,className:"unicode-highlight",showIfCollapsed:!0,overviewRuler:null,minimap:null,hideInCommentTokens:e,hideInStringTokens:t}),this.map.set(i,o)),o}}class a3 extends aN.EditorAction{static{this.ID="editor.action.unicodeHighlight.disableHighlightingInComments"}constructor(){super({id:a5.ID,label:(0,L.localize2)(1644,"Disable highlighting of characters in comments"),precondition:void 0}),this.shortLabel=(0,L.localize)(1645,"Disable Highlight In Comments")}async run(e,t){let i=e.get(B.IConfigurationService);i&&this.runAction(i)}async runAction(e){await e.updateValue(ts.unicodeHighlightConfigKeys.includeComments,!1,aB.ConfigurationTarget.USER)}}class a8 extends aN.EditorAction{static{this.ID="editor.action.unicodeHighlight.disableHighlightingInStrings"}constructor(){super({id:a5.ID,label:(0,L.localize2)(1646,"Disable highlighting of characters in strings"),precondition:void 0}),this.shortLabel=(0,L.localize)(1647,"Disable Highlight In Strings")}async run(e,t){let i=e.get(B.IConfigurationService);i&&this.runAction(i)}async runAction(e){await e.updateValue(ts.unicodeHighlightConfigKeys.includeStrings,!1,aB.ConfigurationTarget.USER)}}class a5 extends aH.Action2{static{this.ID="editor.action.unicodeHighlight.disableHighlightingOfAmbiguousCharacters"}constructor(){super({id:a5.ID,title:(0,L.localize2)(1648,"Disable highlighting of ambiguous characters"),precondition:void 0,f1:!1}),this.shortLabel=(0,L.localize)(1649,"Disable Ambiguous Highlight")}async run(e,t){let i=e.get(B.IConfigurationService);i&&this.runAction(i)}async runAction(e){await e.updateValue(ts.unicodeHighlightConfigKeys.ambiguousCharacters,!1,aB.ConfigurationTarget.USER)}}class a6 extends aH.Action2{static{this.ID="editor.action.unicodeHighlight.disableHighlightingOfInvisibleCharacters"}constructor(){super({id:a6.ID,title:(0,L.localize2)(1650,"Disable highlighting of invisible characters"),precondition:void 0,f1:!1}),this.shortLabel=(0,L.localize)(1651,"Disable Invisible Highlight")}async run(e,t){let i=e.get(B.IConfigurationService);i&&this.runAction(i)}async runAction(e){await e.updateValue(ts.unicodeHighlightConfigKeys.invisibleCharacters,!1,aB.ConfigurationTarget.USER)}}class a7 extends aH.Action2{static{this.ID="editor.action.unicodeHighlight.disableHighlightingOfNonBasicAsciiCharacters"}constructor(){super({id:a7.ID,title:(0,L.localize2)(1652,"Disable highlighting of non basic ASCII characters"),precondition:void 0,f1:!1}),this.shortLabel=(0,L.localize)(1653,"Disable Non ASCII Highlight")}async run(e,t){let i=e.get(B.IConfigurationService);i&&this.runAction(i)}async runAction(e){await e.updateValue(ts.unicodeHighlightConfigKeys.nonBasicASCII,!1,aB.ConfigurationTarget.USER)}}class a9 extends aH.Action2{static{this.ID="editor.action.unicodeHighlight.showExcludeOptions"}constructor(){super({id:a9.ID,title:(0,L.localize2)(1654,"Show Exclude Options"),precondition:void 0,f1:!1})}async run(e,t){let{codePoint:i,reason:o,inString:r,inComment:n}=t,s=String.fromCodePoint(i),a=e.get(el.IQuickInputService),d=e.get(B.IConfigurationService),c=[];if(o.kind===aO.UnicodeHighlighterReasonKind.Ambiguous)for(let e of o.notAmbiguousInLocales)c.push({label:(0,L.localize)(1657,'Allow unicode characters that are more common in the language "{0}".',e),run:async()=>{de(d,[e])}});if(c.push({label:tX.InvisibleCharacters.isInvisibleCharacter(i)?(0,L.localize)(1655,"Exclude {0} (invisible character) from being highlighted",aJ(i)):(0,L.localize)(1656,"Exclude {0} from being highlighted",`${aJ(i)} "${s}"`),run:()=>a4(d,[i])}),n){let e=new a3;c.push({label:e.label,run:async()=>e.runAction(d)})}else if(r){let e=new a8;c.push({label:e.label,run:async()=>e.runAction(d)})}function l(e){return"string"==typeof e.desc.title?e.desc.title:e.desc.title.value}if(o.kind===aO.UnicodeHighlighterReasonKind.Ambiguous){let e=new a5;c.push({label:l(e),run:async()=>e.runAction(d)})}else if(o.kind===aO.UnicodeHighlighterReasonKind.Invisible){let e=new a6;c.push({label:l(e),run:async()=>e.runAction(d)})}else if(o.kind===aO.UnicodeHighlighterReasonKind.NonBasicAscii){let e=new a7;c.push({label:l(e),run:async()=>e.runAction(d)})}else{var u=o;throw Error(`Unexpected value: ${u}`)}let h=await a.pick(c,{title:aX});h&&await h.run()}}async function a4(e,t){let i,o=e.getValue(ts.unicodeHighlightConfigKeys.allowedCharacters);for(let e of(i="object"==typeof o&&o?o:{},t))i[String.fromCodePoint(e)]=!0;await e.updateValue(ts.unicodeHighlightConfigKeys.allowedCharacters,i,aB.ConfigurationTarget.USER)}async function de(e,t){let i,o=e.inspect(ts.unicodeHighlightConfigKeys.allowedLocales).user?.value;for(let e of(i="object"==typeof o&&o?Object.assign({},o):{},t))i[e]=!0;await e.updateValue(ts.unicodeHighlightConfigKeys.allowedLocales,i,aB.ConfigurationTarget.USER)}(0,aH.registerAction2)(a5),(0,aH.registerAction2)(a6),(0,aH.registerAction2)(a7),(0,aH.registerAction2)(a9),(0,aN.registerEditorContribution)(aQ.ID,aQ,aN.EditorContributionInstantiation.AfterFirstRender),iD.HoverParticipantRegistry.register(aZ),e.s([],511204);var dt=W,di=e.i(693162);let dr="ignoreUnusualLineTerminators",dn=class extends dt.Disposable{static{this.ID="editor.contrib.unusualLineTerminatorsDetector"}constructor(e,t,i){super(),this._editor=e,this._dialogService=t,this._codeEditorService=i,this._isPresentingDialog=!1,this._config=this._editor.getOption(ts.EditorOption.unusualLineTerminators),this._register(this._editor.onDidChangeConfiguration(e=>{e.hasChanged(ts.EditorOption.unusualLineTerminators)&&(this._config=this._editor.getOption(ts.EditorOption.unusualLineTerminators),this._checkForUnusualLineTerminators())})),this._register(this._editor.onDidChangeModel(()=>{this._checkForUnusualLineTerminators()})),this._register(this._editor.onDidChangeModelContent(e=>{e.isUndoing||this._checkForUnusualLineTerminators()})),this._checkForUnusualLineTerminators()}async _checkForUnusualLineTerminators(){var e,t;let i;if("off"===this._config||!this._editor.hasModel())return;let o=this._editor.getModel();if(o.mightContainUnusualLineTerminators()){if(!(!0===(e=this._codeEditorService,e.getModelProperty(o.uri,dr))||this._editor.getOption(ts.EditorOption.readOnly))){if("auto"===this._config)return void o.removeUnusualLineTerminators(this._editor.getSelections());if(!this._isPresentingDialog){try{this._isPresentingDialog=!0,i=await this._dialogService.confirm({title:(0,L.localize)(1658,"Unusual Line Terminators"),message:(0,L.localize)(1659,"Detected unusual line terminators"),detail:(0,L.localize)(1660,"The file '{0}' contains one or more unusual line terminator characters, like Line Separator (LS) or Paragraph Separator (PS).\n\nIt is recommended to remove them from the file. This can be configured via `editor.unusualLineTerminators`.",(0,di.basename)(o.uri)),primaryButton:(0,L.localize)(1661,"&&Remove Unusual Line Terminators"),cancelButton:(0,L.localize)(1662,"Ignore")})}finally{this._isPresentingDialog=!1}if(!i.confirmed)return void(t=this._codeEditorService,t.setModelProperty(o.uri,dr,!0));o.removeUnusualLineTerminators(this._editor.getSelections())}}}}};dn=(0,eR.__decorate)([(0,eR.__param)(1,es.IDialogService),(0,eR.__param)(2,tF.ICodeEditorService)],dn),(0,eH.registerEditorContribution)(dn.ID,dn,eH.EditorContributionInstantiation.AfterFirstRender),e.s([],427026);var ds=W,da=e.i(702320),dd=eH,dc=e.i(689318),dl=e.i(316321),du=W;class dh{constructor(){this.selector={language:"*"}}provideDocumentHighlights(e,t,i){let o=e.getWordAtPosition({lineNumber:t.lineNumber,column:t.column});return o?e.isDisposed()?void 0:e.findMatches(o.word,!0,!1,!0,dl.USUAL_WORD_SEPARATORS,!1).map(e=>({range:e.range,kind:rZ.DocumentHighlightKind.Text})):Promise.resolve([])}provideMultiDocumentHighlights(e,t,i,o){let r=new sJ.ResourceMap,n=e.getWordAtPosition({lineNumber:t.lineNumber,column:t.column});if(!n)return Promise.resolve(r);for(let t of[e,...i]){if(t.isDisposed())continue;let e=t.findMatches(n.word,!0,!1,!0,dl.USUAL_WORD_SEPARATORS,!1).map(e=>({range:e.range,kind:rZ.DocumentHighlightKind.Text}));e&&r.set(t.uri,e)}return r}}let dp=class extends du.Disposable{constructor(e){super(),this._register(e.documentHighlightProvider.register("*",new dh)),this._register(e.multiDocumentHighlightProvider.register("*",new dh))}};dp=(0,eR.__decorate)([(0,eR.__param)(0,eV.ILanguageFeaturesService)],dp);let dg=new U.RawContextKey("hasWordHighlights",!1);function dm(e,t,i,o){let r=e.ordered(t);return(0,G.first)(r.map(e=>()=>Promise.resolve(e.provideDocumentHighlights(t,i,o)).then(void 0,ir.onUnexpectedExternalError)),e=>null!=e).then(e=>{if(e){let i=new sJ.ResourceMap;return i.set(t.uri,e),i}return new sJ.ResourceMap})}class dv{constructor(e,t,i){this._model=e,this._selection=t,this._wordSeparators=i,this._wordRange=this._getCurrentWordRange(e,t),this._result=null}get result(){return this._result||(this._result=(0,G.createCancelablePromise)(e=>this._compute(this._model,this._selection,this._wordSeparators,e))),this._result}_getCurrentWordRange(e,t){let i=e.getWordAtPosition(t.getPosition());return i?new td.Range(t.startLineNumber,i.startColumn,t.startLineNumber,i.endColumn):null}isValid(e,t,i){let o=t.startLineNumber,r=t.startColumn,n=t.endColumn,s=this._getCurrentWordRange(e,t),a=!!(this._wordRange&&this._wordRange.equalsRange(s));for(let e=0,t=i.length;!a&&e<t;e++){let t=i.getRange(e);t&&t.startLineNumber===o&&t.startColumn<=r&&t.endColumn>=n&&(a=!0)}return a}cancel(){this.result.cancel()}}class dy extends dv{constructor(e,t,i,o){super(e,t,i),this._providers=o}_compute(e,t,i,o){return dm(this._providers,e,t.getPosition(),o).then(e=>e||new sJ.ResourceMap)}}class df extends dv{constructor(e,t,i,o,r){super(e,t,i),this._providers=o,this._otherModels=r}_compute(e,t,i,o){var r,n,s;let a;return(r=this._providers,n=t.getPosition(),s=this._otherModels,a=r.ordered(e),(0,G.first)(a.map(t=>()=>{let i=s.filter(e=>(0,e7.shouldSynchronizeModel)(e)).filter(e=>(0,dc.score)(t.selector,e.uri,e.getLanguageId(),!0,void 0,void 0)>0);return Promise.resolve(t.provideMultiDocumentHighlights(e,n,i,o)).then(void 0,ir.onUnexpectedExternalError)}),e=>null!=e)).then(e=>e||new sJ.ResourceMap)}}(0,dd.registerModelAndPositionCommand)("_executeDocumentHighlights",async(e,t,i)=>{let o=e.get(eV.ILanguageFeaturesService),r=await dm(o.documentHighlightProvider,t,i,iE.CancellationToken.None);return r?.get(t.uri)});let d_=class{static{M=this}static{this.storedDecorationIDs=new sJ.ResourceMap}static{this.query=null}constructor(e,t,i,o,r,n,s,a){this.toUnhook=new ds.DisposableStore,this.workerRequestTokenId=0,this.workerRequestCompleted=!1,this.workerRequestValue=new sJ.ResourceMap,this.lastCursorPositionChangeTime=0,this.renderDecorationsTimer=void 0,this.runDelayer=this.toUnhook.add(new G.Delayer(50)),this.editor=e,this.providers=t,this.multiDocumentProviders=i,this.codeEditorService=n,this.textModelService=r,this.configurationService=s,this.logService=a,this._hasWordHighlights=dg.bindTo(o),this._ignorePositionChangeEvent=!1,this.occurrencesHighlightEnablement=this.editor.getOption(ts.EditorOption.occurrencesHighlight),this.occurrencesHighlightDelay=this.configurationService.getValue("editor.occurrencesHighlightDelay"),this.model=this.editor.getModel(),this.toUnhook.add(e.onDidChangeCursorPosition(e=>{this._ignorePositionChangeEvent||"off"!==this.occurrencesHighlightEnablement&&this.runDelayer.trigger(()=>{this._onPositionChanged(e)}).catch(ir.onUnexpectedError)})),this.toUnhook.add(e.onDidFocusEditorText(e=>{"off"!==this.occurrencesHighlightEnablement&&(this.workerRequest||this.runDelayer.trigger(()=>{this._run()}).catch(ir.onUnexpectedError))})),this.toUnhook.add(e.onDidChangeModelContent(e=>{(0,da.matchesScheme)(this.model.uri,"output")||this._stopAll()})),this.toUnhook.add(e.onDidChangeModel(e=>{!e.newModelUrl&&e.oldModelUrl?this._stopSingular():M.query&&this._run()})),this.toUnhook.add(e.onDidChangeConfiguration(e=>{let t=this.editor.getOption(ts.EditorOption.occurrencesHighlight);if(this.occurrencesHighlightEnablement!==t)switch(this.occurrencesHighlightEnablement=t,t){case"off":this._stopAll();break;case"singleFile":this._stopAll(M.query?.modelInfo?.modelURI);break;case"multiFile":M.query&&this._run(!0);break;default:console.warn("Unknown occurrencesHighlight setting value:",t)}})),this.toUnhook.add(this.configurationService.onDidChangeConfiguration(e=>{if(e.affectsConfiguration("editor.occurrencesHighlightDelay")){let e=s.getValue("editor.occurrencesHighlightDelay");this.occurrencesHighlightDelay!==e&&(this.occurrencesHighlightDelay=e)}})),this.toUnhook.add(e.onDidBlurEditorWidget(()=>{let e=this.codeEditorService.getFocusedCodeEditor();e?e.getModel()?.uri.scheme===da.Schemas.vscodeNotebookCell&&this.editor.getModel()?.uri.scheme!==da.Schemas.vscodeNotebookCell&&this._stopAll():this._stopAll()})),this.decorations=this.editor.createDecorationsCollection(),this.workerRequestTokenId=0,this.workerRequest=null,this.workerRequestCompleted=!1,this.lastCursorPositionChangeTime=0,this.renderDecorationsTimer=void 0,M.query&&this._run()}hasDecorations(){return this.decorations.length>0}restore(e){"off"!==this.occurrencesHighlightEnablement&&(this.runDelayer.cancel(),this.runDelayer.trigger(()=>{this._run(!1,e)}).catch(ir.onUnexpectedError))}trigger(){this.runDelayer.cancel(),this._run(!1,0)}stop(){"off"!==this.occurrencesHighlightEnablement&&this._stopAll()}_getSortedHighlights(){return this.decorations.getRanges().sort(td.Range.compareRangesUsingStarts)}moveNext(){let e=this._getSortedHighlights(),t=(e.findIndex(e=>e.containsPosition(this.editor.getPosition()))+1)%e.length,i=e[t];try{this._ignorePositionChangeEvent=!0,this.editor.setPosition(i.getStartPosition()),this.editor.revealRangeInCenterIfOutsideViewport(i);let o=this._getWord();if(o){let r=this.editor.getModel().getLineContent(i.startLineNumber);(0,e3.alert)(`${r}, ${t+1} of ${e.length} for '${o.word}'`)}}finally{this._ignorePositionChangeEvent=!1}}moveBack(){let e=this._getSortedHighlights(),t=(e.findIndex(e=>e.containsPosition(this.editor.getPosition()))-1+e.length)%e.length,i=e[t];try{this._ignorePositionChangeEvent=!0,this.editor.setPosition(i.getStartPosition()),this.editor.revealRangeInCenterIfOutsideViewport(i);let o=this._getWord();if(o){let r=this.editor.getModel().getLineContent(i.startLineNumber);(0,e3.alert)(`${r}, ${t+1} of ${e.length} for '${o.word}'`)}}finally{this._ignorePositionChangeEvent=!1}}_removeSingleDecorations(){if(!this.editor.hasModel())return;let e=M.storedDecorationIDs.get(this.editor.getModel().uri);e&&(this.editor.removeDecorations(e),M.storedDecorationIDs.delete(this.editor.getModel().uri),this.decorations.length>0&&(this.decorations.clear(),this._hasWordHighlights.set(!1)))}_removeAllDecorations(e){let t=this.codeEditorService.listCodeEditors(),i=[];for(let o of t){if(!o.hasModel()||(0,di.isEqual)(o.getModel().uri,e))continue;let t=M.storedDecorationIDs.get(o.getModel().uri);if(!t)continue;o.removeDecorations(t),i.push(o.getModel().uri);let r=dC.get(o);r?.wordHighlighter&&r.wordHighlighter.decorations.length>0&&(r.wordHighlighter.decorations.clear(),r.wordHighlighter.workerRequest=null,r.wordHighlighter._hasWordHighlights.set(!1))}for(let e of i)M.storedDecorationIDs.delete(e)}_stopSingular(){this._removeSingleDecorations(),this.editor.hasTextFocus()&&(this.editor.getModel()?.uri.scheme!==da.Schemas.vscodeNotebookCell&&M.query?.modelInfo?.modelURI.scheme!==da.Schemas.vscodeNotebookCell?(M.query=null,this._run()):M.query?.modelInfo&&(M.query.modelInfo=null)),void 0!==this.renderDecorationsTimer&&(clearTimeout(this.renderDecorationsTimer),this.renderDecorationsTimer=void 0),null!==this.workerRequest&&(this.workerRequest.cancel(),this.workerRequest=null),this.workerRequestCompleted||(this.workerRequestTokenId++,this.workerRequestCompleted=!0)}_stopAll(e){this._removeAllDecorations(e),void 0!==this.renderDecorationsTimer&&(clearTimeout(this.renderDecorationsTimer),this.renderDecorationsTimer=void 0),null!==this.workerRequest&&(this.workerRequest.cancel(),this.workerRequest=null),this.workerRequestCompleted||(this.workerRequestTokenId++,this.workerRequestCompleted=!0)}_onPositionChanged(e){"off"===this.occurrencesHighlightEnablement||"api"!==e.source&&e.reason!==od.CursorChangeReason.Explicit?this._stopAll():this._run()}_getWord(){let e=this.editor.getSelection(),t=e.startLineNumber,i=e.startColumn;return this.model.isDisposed()?null:this.model.getWordAtPosition({lineNumber:t,column:i})}getOtherModelsToHighlight(e){if(!e)return[];if(e.uri.scheme===da.Schemas.vscodeNotebookCell){let t=[];for(let i of this.codeEditorService.listCodeEditors()){let o=i.getModel();o&&o!==e&&o.uri.scheme===da.Schemas.vscodeNotebookCell&&t.push(o)}return t}let t=[],i=this.codeEditorService.listCodeEditors();for(let o of i){if(!(0,ia.isDiffEditor)(o))continue;let i=o.getModel();i&&e===i.modified&&t.push(i.modified)}if(t.length)return t;if("singleFile"===this.occurrencesHighlightEnablement)return[];for(let o of i){let i=o.getModel();i&&i!==e&&t.push(i)}return t}async _run(e,t){if(this.editor.hasTextFocus()){let e=this.editor.getSelection();if(!e||e.startLineNumber!==e.endLineNumber){M.query=null,this._stopAll();return}let t=e.startColumn,i=e.endColumn,o=this._getWord();if(!o||o.startColumn>t||o.endColumn<i){M.query=null,this._stopAll();return}M.query={modelInfo:{modelURI:this.model.uri,selection:e}}}else if(!M.query)return void this._stopAll();if(this.lastCursorPositionChangeTime=new Date().getTime(),(0,di.isEqual)(this.editor.getModel().uri,M.query.modelInfo?.modelURI)){if(!e){for(let e of this.decorations.getRanges())if(e.containsPosition(this.editor.getPosition()))return}this._stopAll(e?this.model.uri:void 0);let i=++this.workerRequestTokenId;this.workerRequestCompleted=!1;let o=this.getOtherModelsToHighlight(this.editor.getModel());if(!M.query||!M.query.modelInfo)return;let r=await this.textModelService.createModelReference(M.query.modelInfo.modelURI);try{this.workerRequest=this.computeWithModel(r.object.textEditorModel,M.query.modelInfo.selection,o),this.workerRequest?.result.then(e=>{i===this.workerRequestTokenId&&(this.workerRequestCompleted=!0,this.workerRequestValue=e||[],this._beginRenderDecorations(t??this.occurrencesHighlightDelay))},ir.onUnexpectedError)}catch(e){this.logService.error("Unexpected error during occurrence request. Log: ",e)}finally{r.dispose()}}else if(this.model.uri.scheme===da.Schemas.vscodeNotebookCell){let e=++this.workerRequestTokenId;if(this.workerRequestCompleted=!1,!M.query||!M.query.modelInfo)return;let i=await this.textModelService.createModelReference(M.query.modelInfo.modelURI);try{this.workerRequest=this.computeWithModel(i.object.textEditorModel,M.query.modelInfo.selection,[this.model]),this.workerRequest?.result.then(i=>{e===this.workerRequestTokenId&&(this.workerRequestCompleted=!0,this.workerRequestValue=i||[],this._beginRenderDecorations(t??this.occurrencesHighlightDelay))},ir.onUnexpectedError)}catch(e){this.logService.error("Unexpected error during occurrence request. Log: ",e)}finally{i.dispose()}}}computeWithModel(e,t,i){var o,r;return i.length?(o=this.multiDocumentProviders,new df(e,t,this.editor.getOption(ts.EditorOption.wordSeparators),o,i)):(r=this.providers,new dy(e,t,this.editor.getOption(ts.EditorOption.wordSeparators),r))}_beginRenderDecorations(e){let t=new Date().getTime(),i=this.lastCursorPositionChangeTime+e;t>=i?(this.renderDecorationsTimer=void 0,this.renderDecorations()):this.renderDecorationsTimer=setTimeout(()=>{this.renderDecorations()},i-t)}renderDecorations(){for(let t of(this.renderDecorationsTimer=void 0,this.codeEditorService.listCodeEditors())){let i=dC.get(t);if(!i)continue;let o=[],r=t.getModel()?.uri;if(r&&this.workerRequestValue.has(r)){let n=M.storedDecorationIDs.get(r),s=this.workerRequestValue.get(r);if(s){for(let t of s)if(t.range){var e;o.push({range:t.range,options:(e=t.kind)===rZ.DocumentHighlightKind.Write?sc:e===rZ.DocumentHighlightKind.Text?sl:sp})}}let a=[];t.changeDecorations(e=>{a=e.deltaDecorations(n??[],o)}),M.storedDecorationIDs=M.storedDecorationIDs.set(r,a),o.length>0&&(i.wordHighlighter?.decorations.set(o),i.wordHighlighter?._hasWordHighlights.set(!0))}}this.workerRequest=null}dispose(){this._stopSingular(),this.toUnhook.dispose()}};d_=M=(0,eR.__decorate)([(0,eR.__param)(4,o3.ITextModelService),(0,eR.__param)(5,tF.ICodeEditorService),(0,eR.__param)(6,B.IConfigurationService),(0,eR.__param)(7,et.ILogService)],d_);let dC=class extends ds.Disposable{static{P=this}static{this.ID="editor.contrib.wordHighlighter"}static get(e){return e.getContribution(P.ID)}constructor(e,t,i,o,r,n,s){super(),this._wordHighlighter=null;const a=()=>{e.hasModel()&&!e.getModel().isTooLargeForTokenization()&&e.getModel().uri.scheme!==da.Schemas.accessibleView&&(this._wordHighlighter=new d_(e,i.documentHighlightProvider,i.multiDocumentHighlightProvider,t,r,o,n,s))};this._register(e.onDidChangeModel(e=>{this._wordHighlighter&&(e.newModelUrl||e.oldModelUrl?.scheme===da.Schemas.vscodeNotebookCell||this.wordHighlighter?.stop(),this._wordHighlighter.dispose(),this._wordHighlighter=null),a()})),a()}get wordHighlighter(){return this._wordHighlighter}saveViewState(){return!!(this._wordHighlighter&&this._wordHighlighter.hasDecorations())}moveNext(){this._wordHighlighter?.moveNext()}moveBack(){this._wordHighlighter?.moveBack()}restoreViewState(e){this._wordHighlighter&&e&&this._wordHighlighter.restore(250)}stopHighlighting(){this._wordHighlighter?.stop()}dispose(){this._wordHighlighter&&(this._wordHighlighter.dispose(),this._wordHighlighter=null),super.dispose()}};dC=P=(0,eR.__decorate)([(0,eR.__param)(1,H.IContextKeyService),(0,eR.__param)(2,eV.ILanguageFeaturesService),(0,eR.__param)(3,tF.ICodeEditorService),(0,eR.__param)(4,o3.ITextModelService),(0,eR.__param)(5,B.IConfigurationService),(0,eR.__param)(6,et.ILogService)],dC);class dS extends dd.EditorAction{constructor(e,t){super(t),this._isNext=e}run(e,t){let i=dC.get(t);i&&(this._isNext?i.moveNext():i.moveBack())}}class db extends dd.EditorAction{constructor(){super({id:"editor.action.wordHighlight.trigger",label:(0,L.localize2)(1674,"Trigger Symbol Highlight"),precondition:void 0,kbOpts:{kbExpr:eq.EditorContextKeys.editorTextFocus,primary:0,weight:eU.KeybindingWeight.EditorContrib}})}run(e,t){let i=dC.get(t);i&&i.restoreViewState(!0)}}(0,dd.registerEditorContribution)(dC.ID,dC,dd.EditorContributionInstantiation.Eager),(0,dd.registerEditorAction)(class extends dS{constructor(){super(!0,{id:"editor.action.wordHighlight.next",label:(0,L.localize2)(1672,"Go to Next Symbol Highlight"),precondition:dg,kbOpts:{kbExpr:eq.EditorContextKeys.editorTextFocus,primary:J.KeyCode.F7,weight:eU.KeybindingWeight.EditorContrib}})}}),(0,dd.registerEditorAction)(class extends dS{constructor(){super(!1,{id:"editor.action.wordHighlight.prev",label:(0,L.localize2)(1673,"Go to Previous Symbol Highlight"),precondition:dg,kbOpts:{kbExpr:eq.EditorContextKeys.editorTextFocus,primary:J.KeyMod.Shift|J.KeyCode.F7,weight:eU.KeybindingWeight.EditorContrib}})}}),(0,dd.registerEditorAction)(db),(0,eG.registerEditorFeature)(dp),e.s([],330835);var dI=e.i(777997),dE=eH,dw=e.i(19710),dD=e.i(436601),dA=e.i(494208);class dx extends dE.EditorCommand{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode,this._wordNavigationType=e.wordNavigationType}runEditorCommand(e,t,i){if(!t.hasModel())return;let o=(0,dw.getMapForWordSeparators)(t.getOption(ts.EditorOption.wordSeparators),t.getOption(ts.EditorOption.wordSegmenterLocales)),r=t.getModel(),n=t.getSelections(),s=n.length>1,a=n.map(e=>{let t=new ta.Position(e.positionLineNumber,e.positionColumn),i=this._move(o,r,t,this._wordNavigationType,s);return this._moveTo(e,i,this._inSelectionMode)});if(r.pushStackElement(),t._getViewModel().setCursorStates("moveWordCommand",od.CursorChangeReason.Explicit,a.map(e=>dA.CursorState.fromModelSelection(e))),1===a.length){let e=new ta.Position(a[0].positionLineNumber,a[0].positionColumn);t.revealPosition(e,tK.ScrollType.Smooth)}}_moveTo(e,t,i){return i?new e6.Selection(e.selectionStartLineNumber,e.selectionStartColumn,t.lineNumber,t.column):new e6.Selection(t.lineNumber,t.column,t.lineNumber,t.column)}}class dk extends dx{_move(e,t,i,o,r){return dD.WordOperations.moveWordLeft(e,t,i,o,r)}}class dT extends dx{_move(e,t,i,o,r){return dD.WordOperations.moveWordRight(e,t,i,o)}}class dM extends dE.EditorCommand{constructor(e){super({canTriggerInlineEdits:!0,...e}),this._whitespaceHeuristics=e.whitespaceHeuristics,this._wordNavigationType=e.wordNavigationType}runEditorCommand(e,t,i){let o=e?.get(i3.ILanguageConfigurationService);if(!t.hasModel()||!o)return;let r=(0,dw.getMapForWordSeparators)(t.getOption(ts.EditorOption.wordSeparators),t.getOption(ts.EditorOption.wordSegmenterLocales)),n=t.getModel(),s=t.getSelections(),a=t.getOption(ts.EditorOption.autoClosingBrackets),d=t.getOption(ts.EditorOption.autoClosingQuotes),c=o.getLanguageConfiguration(n.getLanguageId()).getAutoClosingPairs(),l=t._getViewModel(),u=s.map(e=>{let i=this._delete({wordSeparators:r,model:n,selection:e,whitespaceHeuristics:this._whitespaceHeuristics,autoClosingDelete:t.getOption(ts.EditorOption.autoClosingDelete),autoClosingBrackets:a,autoClosingQuotes:d,autoClosingPairs:c,autoClosedCharacters:l.getCursorAutoClosedCharacters()},this._wordNavigationType);return new tA.ReplaceCommand(i,"")});t.pushUndoStop(),t.executeCommands(this.id,u),t.pushUndoStop()}}class dP extends dM{_delete(e,t){let i=dD.WordOperations.deleteWordLeft(e,t);return i||new td.Range(1,1,1,1)}}class dR extends dM{_delete(e,t){let i=dD.WordOperations.deleteWordRight(e,t);if(i)return i;let o=e.model.getLineCount(),r=e.model.getLineMaxColumn(o);return new td.Range(o,r,o,r)}}class dL extends dE.EditorAction{constructor(){super({id:"deleteInsideWord",precondition:eq.EditorContextKeys.writable,label:(0,L.localize2)(1675,"Delete Word"),metadata:{description:(0,L.localize2)(1676,"Delete the word at the cursor"),args:[{name:"args",schema:{type:"object",properties:{onlyWord:{type:"boolean",default:!1,description:(0,L.localize)(1677,"Delete only the word and leave surrounding whitespace")}}}}]}})}run(e,t,i){if(!t.hasModel())return;let o=!!(i&&"object"==typeof i&&i.onlyWord),r=(0,dw.getMapForWordSeparators)(t.getOption(ts.EditorOption.wordSeparators),t.getOption(ts.EditorOption.wordSegmenterLocales)),n=t.getModel(),s=t.getSelections().map(e=>{let t=dD.WordOperations.deleteInsideWord(r,n,e,o);return new tA.ReplaceCommand(t,"")});t.pushUndoStop(),t.executeCommands(this.id,s),t.pushUndoStop()}}(0,dE.registerEditorCommand)(new class extends dk{constructor(){super({inSelectionMode:!1,wordNavigationType:dD.WordNavigationType.WordStart,id:"cursorWordStartLeft",precondition:void 0})}}),(0,dE.registerEditorCommand)(new class extends dk{constructor(){super({inSelectionMode:!1,wordNavigationType:dD.WordNavigationType.WordEnd,id:"cursorWordEndLeft",precondition:void 0})}}),(0,dE.registerEditorCommand)(new class extends dk{constructor(){super({inSelectionMode:!1,wordNavigationType:dD.WordNavigationType.WordStartFast,id:"cursorWordLeft",precondition:void 0,kbOpts:{kbExpr:U.ContextKeyExpr.and(eq.EditorContextKeys.textInputFocus,U.ContextKeyExpr.and(o9.CONTEXT_ACCESSIBILITY_MODE_ENABLED,dI.IsWindowsContext)?.negate()),primary:J.KeyMod.CtrlCmd|J.KeyCode.LeftArrow,mac:{primary:J.KeyMod.Alt|J.KeyCode.LeftArrow},weight:eU.KeybindingWeight.EditorContrib}})}}),(0,dE.registerEditorCommand)(new class extends dk{constructor(){super({inSelectionMode:!0,wordNavigationType:dD.WordNavigationType.WordStart,id:"cursorWordStartLeftSelect",precondition:void 0})}}),(0,dE.registerEditorCommand)(new class extends dk{constructor(){super({inSelectionMode:!0,wordNavigationType:dD.WordNavigationType.WordEnd,id:"cursorWordEndLeftSelect",precondition:void 0})}}),(0,dE.registerEditorCommand)(new class extends dk{constructor(){super({inSelectionMode:!0,wordNavigationType:dD.WordNavigationType.WordStartFast,id:"cursorWordLeftSelect",precondition:void 0,kbOpts:{kbExpr:U.ContextKeyExpr.and(eq.EditorContextKeys.textInputFocus,U.ContextKeyExpr.and(o9.CONTEXT_ACCESSIBILITY_MODE_ENABLED,dI.IsWindowsContext)?.negate()),primary:J.KeyMod.CtrlCmd|J.KeyMod.Shift|J.KeyCode.LeftArrow,mac:{primary:J.KeyMod.Alt|J.KeyMod.Shift|J.KeyCode.LeftArrow},weight:eU.KeybindingWeight.EditorContrib}})}}),(0,dE.registerEditorCommand)(new class extends dT{constructor(){super({inSelectionMode:!1,wordNavigationType:dD.WordNavigationType.WordStart,id:"cursorWordStartRight",precondition:void 0})}}),(0,dE.registerEditorCommand)(new class extends dT{constructor(){super({inSelectionMode:!1,wordNavigationType:dD.WordNavigationType.WordEnd,id:"cursorWordEndRight",precondition:void 0,kbOpts:{kbExpr:U.ContextKeyExpr.and(eq.EditorContextKeys.textInputFocus,U.ContextKeyExpr.and(o9.CONTEXT_ACCESSIBILITY_MODE_ENABLED,dI.IsWindowsContext)?.negate()),primary:J.KeyMod.CtrlCmd|J.KeyCode.RightArrow,mac:{primary:J.KeyMod.Alt|J.KeyCode.RightArrow},weight:eU.KeybindingWeight.EditorContrib}})}}),(0,dE.registerEditorCommand)(new class extends dT{constructor(){super({inSelectionMode:!1,wordNavigationType:dD.WordNavigationType.WordEnd,id:"cursorWordRight",precondition:void 0})}}),(0,dE.registerEditorCommand)(new class extends dT{constructor(){super({inSelectionMode:!0,wordNavigationType:dD.WordNavigationType.WordStart,id:"cursorWordStartRightSelect",precondition:void 0})}}),(0,dE.registerEditorCommand)(new class extends dT{constructor(){super({inSelectionMode:!0,wordNavigationType:dD.WordNavigationType.WordEnd,id:"cursorWordEndRightSelect",precondition:void 0,kbOpts:{kbExpr:U.ContextKeyExpr.and(eq.EditorContextKeys.textInputFocus,U.ContextKeyExpr.and(o9.CONTEXT_ACCESSIBILITY_MODE_ENABLED,dI.IsWindowsContext)?.negate()),primary:J.KeyMod.CtrlCmd|J.KeyMod.Shift|J.KeyCode.RightArrow,mac:{primary:J.KeyMod.Alt|J.KeyMod.Shift|J.KeyCode.RightArrow},weight:eU.KeybindingWeight.EditorContrib}})}}),(0,dE.registerEditorCommand)(new class extends dT{constructor(){super({inSelectionMode:!0,wordNavigationType:dD.WordNavigationType.WordEnd,id:"cursorWordRightSelect",precondition:void 0})}}),(0,dE.registerEditorCommand)(new class extends dk{constructor(){super({inSelectionMode:!1,wordNavigationType:dD.WordNavigationType.WordAccessibility,id:"cursorWordAccessibilityLeft",precondition:void 0})}_move(e,t,i,o,r){return super._move((0,dw.getMapForWordSeparators)(ts.EditorOptions.wordSeparators.defaultValue,e.intlSegmenterLocales),t,i,o,r)}}),(0,dE.registerEditorCommand)(new class extends dk{constructor(){super({inSelectionMode:!0,wordNavigationType:dD.WordNavigationType.WordAccessibility,id:"cursorWordAccessibilityLeftSelect",precondition:void 0})}_move(e,t,i,o,r){return super._move((0,dw.getMapForWordSeparators)(ts.EditorOptions.wordSeparators.defaultValue,e.intlSegmenterLocales),t,i,o,r)}}),(0,dE.registerEditorCommand)(new class extends dT{constructor(){super({inSelectionMode:!1,wordNavigationType:dD.WordNavigationType.WordAccessibility,id:"cursorWordAccessibilityRight",precondition:void 0})}_move(e,t,i,o,r){return super._move((0,dw.getMapForWordSeparators)(ts.EditorOptions.wordSeparators.defaultValue,e.intlSegmenterLocales),t,i,o,r)}}),(0,dE.registerEditorCommand)(new class extends dT{constructor(){super({inSelectionMode:!0,wordNavigationType:dD.WordNavigationType.WordAccessibility,id:"cursorWordAccessibilityRightSelect",precondition:void 0})}_move(e,t,i,o,r){return super._move((0,dw.getMapForWordSeparators)(ts.EditorOptions.wordSeparators.defaultValue,e.intlSegmenterLocales),t,i,o,r)}}),(0,dE.registerEditorCommand)(new class extends dP{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:dD.WordNavigationType.WordStart,id:"deleteWordStartLeft",precondition:eq.EditorContextKeys.writable})}}),(0,dE.registerEditorCommand)(new class extends dP{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:dD.WordNavigationType.WordEnd,id:"deleteWordEndLeft",precondition:eq.EditorContextKeys.writable})}}),(0,dE.registerEditorCommand)(new class extends dP{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:dD.WordNavigationType.WordStart,id:"deleteWordLeft",precondition:eq.EditorContextKeys.writable,kbOpts:{kbExpr:eq.EditorContextKeys.textInputFocus,primary:J.KeyMod.CtrlCmd|J.KeyCode.Backspace,mac:{primary:J.KeyMod.Alt|J.KeyCode.Backspace},weight:eU.KeybindingWeight.EditorContrib}})}}),(0,dE.registerEditorCommand)(new class extends dR{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:dD.WordNavigationType.WordStart,id:"deleteWordStartRight",precondition:eq.EditorContextKeys.writable})}}),(0,dE.registerEditorCommand)(new class extends dR{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:dD.WordNavigationType.WordEnd,id:"deleteWordEndRight",precondition:eq.EditorContextKeys.writable})}}),(0,dE.registerEditorCommand)(new class extends dR{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:dD.WordNavigationType.WordEnd,id:"deleteWordRight",precondition:eq.EditorContextKeys.writable,kbOpts:{kbExpr:eq.EditorContextKeys.textInputFocus,primary:J.KeyMod.CtrlCmd|J.KeyCode.Delete,mac:{primary:J.KeyMod.Alt|J.KeyCode.Delete},weight:eU.KeybindingWeight.EditorContrib}})}}),(0,dE.registerEditorAction)(dL),e.s(["DeleteWordCommand",0,dM,"MoveWordCommand",0,dx],459674);class dN extends dx{_move(e,t,i,o,r){return dD.WordPartOperations.moveWordPartLeft(e,t,i,r)}}eg.CommandsRegistry.registerCommandAlias("cursorWordPartStartLeft","cursorWordPartLeft"),eg.CommandsRegistry.registerCommandAlias("cursorWordPartStartLeftSelect","cursorWordPartLeftSelect");class dO extends dx{_move(e,t,i,o,r){return dD.WordPartOperations.moveWordPartRight(e,t,i)}}(0,eH.registerEditorCommand)(new class extends dM{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:dD.WordNavigationType.WordStart,id:"deleteWordPartLeft",precondition:eq.EditorContextKeys.writable,kbOpts:{kbExpr:eq.EditorContextKeys.textInputFocus,primary:0,mac:{primary:J.KeyMod.WinCtrl|J.KeyMod.Alt|J.KeyCode.Backspace},weight:eU.KeybindingWeight.EditorContrib}})}_delete(e,t){let i=dD.WordPartOperations.deleteWordPartLeft(e);return i||new td.Range(1,1,1,1)}}),(0,eH.registerEditorCommand)(new class extends dM{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:dD.WordNavigationType.WordEnd,id:"deleteWordPartRight",precondition:eq.EditorContextKeys.writable,kbOpts:{kbExpr:eq.EditorContextKeys.textInputFocus,primary:0,mac:{primary:J.KeyMod.WinCtrl|J.KeyMod.Alt|J.KeyCode.Delete},weight:eU.KeybindingWeight.EditorContrib}})}_delete(e,t){let i=dD.WordPartOperations.deleteWordPartRight(e);if(i)return i;let o=e.model.getLineCount(),r=e.model.getLineMaxColumn(o);return new td.Range(o,r,o,r)}}),(0,eH.registerEditorCommand)(new class extends dN{constructor(){super({inSelectionMode:!1,wordNavigationType:dD.WordNavigationType.WordStart,id:"cursorWordPartLeft",precondition:void 0,kbOpts:{kbExpr:eq.EditorContextKeys.textInputFocus,primary:0,mac:{primary:J.KeyMod.WinCtrl|J.KeyMod.Alt|J.KeyCode.LeftArrow},weight:eU.KeybindingWeight.EditorContrib}})}}),(0,eH.registerEditorCommand)(new class extends dN{constructor(){super({inSelectionMode:!0,wordNavigationType:dD.WordNavigationType.WordStart,id:"cursorWordPartLeftSelect",precondition:void 0,kbOpts:{kbExpr:eq.EditorContextKeys.textInputFocus,primary:0,mac:{primary:J.KeyMod.WinCtrl|J.KeyMod.Alt|J.KeyMod.Shift|J.KeyCode.LeftArrow},weight:eU.KeybindingWeight.EditorContrib}})}}),(0,eH.registerEditorCommand)(new class extends dO{constructor(){super({inSelectionMode:!1,wordNavigationType:dD.WordNavigationType.WordEnd,id:"cursorWordPartRight",precondition:void 0,kbOpts:{kbExpr:eq.EditorContextKeys.textInputFocus,primary:0,mac:{primary:J.KeyMod.WinCtrl|J.KeyMod.Alt|J.KeyCode.RightArrow},weight:eU.KeybindingWeight.EditorContrib}})}}),(0,eH.registerEditorCommand)(new class extends dO{constructor(){super({inSelectionMode:!0,wordNavigationType:dD.WordNavigationType.WordEnd,id:"cursorWordPartRightSelect",precondition:void 0,kbOpts:{kbExpr:eq.EditorContextKeys.textInputFocus,primary:0,mac:{primary:J.KeyMod.WinCtrl|J.KeyMod.Alt|J.KeyMod.Shift|J.KeyCode.RightArrow},weight:eU.KeybindingWeight.EditorContrib}})}}),e.s([],488587);var dF=W,dK=e.i(87072);class dW extends dF.Disposable{static{this.ID="editor.contrib.readOnlyMessageController"}constructor(e){super(),this.editor=e,this._register(this.editor.onDidAttemptReadOnlyEdit(()=>this._onDidAttemptReadOnlyEdit()))}_onDidAttemptReadOnlyEdit(){let e=dK.MessageController.get(this.editor);if(e&&this.editor.hasModel()){let t=this.editor.getOptions().get(ts.EditorOption.readOnlyMessage);t||(t=new e8.MarkdownString(this.editor.isSimpleWidget?(0,L.localize)(1480,"Cannot edit in read-only input"):(0,L.localize)(1481,"Cannot edit in read-only editor"))),e.showMessage(t,this.editor.getPosition())}}}(0,eH.registerEditorContribution)(dW.ID,dW,eH.EditorContributionInstantiation.BeforeFirstInteraction),e.s([],437988);var dz=e.i(335421),dV=e.i(194558),dB=W,dU=e.i(770127);let dH=class extends dB.Disposable{constructor(e,t,i){super(),this._textModel=e,this._languageFeaturesService=t,this._outlineModelService=i,this._currentModel=(0,n4.observableValue)(this,void 0);const o=(0,dU.observableSignalFromEvent)("documentSymbolProvider.onDidChange",this._languageFeaturesService.documentSymbolProvider.onDidChange),r=(0,dU.observableSignalFromEvent)("_textModel.onDidChangeContent",K.Event.debounce(e=>this._textModel.onDidChangeContent(e),()=>void 0,100));this._register((0,rE.autorunWithStore)(async(e,t)=>{o.read(e),r.read(e);let i=t.add(new n9.DisposableCancellationTokenSource),n=await this._outlineModelService.getOrCreate(this._textModel,i.token);t.isDisposed||this._currentModel.set(n,void 0)}))}getBreadcrumbItems(e,t){let i=this._currentModel.read(t);if(!i)return[];let o=i.asListOfDocumentSymbols().filter(t=>e.contains(t.range.startLineNumber)&&!e.contains(t.range.endLineNumber));return o.sort((0,oU.reverseOrder)((0,oU.compareBy)(e=>e.range.endLineNumber-e.range.startLineNumber,oU.numberComparator))),o.map(e=>({name:e.name,kind:e.kind,startLineNumber:e.range.startLineNumber}))}getAt(e,t){let i=this._currentModel.read(t);if(!i)return[];let o=i.asListOfDocumentSymbols().filter(t=>new dV.LineRange(t.range.startLineNumber,t.range.endLineNumber).contains(e));return 0===o.length?[]:(o.sort((0,oU.reverseOrder)((0,oU.compareBy)(e=>e.range.endLineNumber-e.range.startLineNumber,oU.numberComparator))),o.map(e=>({name:e.name,kind:e.kind,startLineNumber:e.range.startLineNumber})))}};dH=(0,eR.__decorate)([(0,eR.__param)(1,eV.ILanguageFeaturesService),(0,eR.__param)(2,o8.IOutlineModelService)],dH),dz.HideUnchangedRegionsFeature.setBreadcrumbsSourceFactory((e,t)=>t.createInstance(dH,e)),e.s([],865779);var dq=W,dG=e.i(2301),d$=e.i(159868),dQ=e.i(94361),dj=e.i(229081);let dY=class extends dq.Disposable{static{this.ID="editor.contrib.floatingToolbar"}constructor(e,t,i,o){super();const r=this._register((0,n5.observableCodeEditor)(e)),n=this._register(o.createMenu(j.MenuId.EditorContent,e.contextKeyService)),s=(0,dj.observableFromEvent)(this,n.onDidChange,()=>0===n.getActions().length);this._register((0,rE.autorun)(e=>{if(s.read(e))return;let o=(0,z.h)("div.floating-menu-overlay-widget");o.root.style.height="28px";let n=t.createInstance(d$.MenuWorkbenchToolBar,o.root,j.MenuId.EditorContent,{actionViewItemProvider:(e,o)=>{if(!(e instanceof j.MenuItemAction))return;let r=i.lookupKeybinding(e.id);if(r)return t.createInstance(class extends dG.MenuEntryActionViewItem{updateLabel(){this.options.label&&this.label&&(this.label.textContent=`${this._commandAction.label} (${r.getLabel()})`)}},e,{...o,keybindingNotRenderedWithLabel:!0})},hiddenItemStrategy:d$.HiddenItemStrategy.Ignore,menuOptions:{shouldForwardArgs:!0},telemetrySource:"editor.overlayToolbar",toolbarOptions:{primaryGroup:()=>!0,useSeparatorsInPrimaryActions:!0}});e.store.add(n),e.store.add((0,rE.autorun)(e=>{let t=r.model.read(e);n.context=t?.uri})),e.store.add(r.createOverlayWidget({allowEditorOverflow:!1,domNode:o.root,minContentWidthInPx:(0,rw.constObservable)(0),position:(0,rw.constObservable)({preference:ia.OverlayWidgetPositionPreference.BOTTOM_RIGHT_CORNER})}))}))}};dY=(0,eR.__decorate)([(0,eR.__param)(1,iF.IInstantiationService),(0,eR.__param)(2,N.IKeybindingService),(0,eR.__param)(3,dQ.IMenuService)],dY),(0,R.registerCss)(void 0),(0,eH.registerEditorContribution)(dY.ID,dY,eH.EditorContributionInstantiation.AfterFirstRender),e.s([],121419);var dX=W;(0,R.registerCss)(void 0);class dZ extends dX.Disposable{static{this.ID="editor.contrib.iPadShowKeyboard"}constructor(e){super(),this.editor=e,this.widget=null,tP.isIOS&&(this._register(e.onDidChangeConfiguration(()=>this.update())),this.update())}update(){let e=!this.editor.getOption(ts.EditorOption.readOnly);!this.widget&&e?this.widget=new dJ(this.editor):this.widget&&!e&&(this.widget.dispose(),this.widget=null)}dispose(){super.dispose(),this.widget&&(this.widget.dispose(),this.widget=null)}}class dJ extends dX.Disposable{static{this.ID="editor.contrib.ShowKeyboardWidget"}constructor(e){super(),this.editor=e,this._domNode=(0,z.createElement)("textarea"),this._domNode.className="iPadShowKeyboard",this._register((0,z.addDisposableListener)(this._domNode,"touchstart",e=>{this.editor.focus()})),this._register((0,z.addDisposableListener)(this._domNode,"focus",e=>{this.editor.focus()})),this.editor.addOverlayWidget(this)}dispose(){this.editor.removeOverlayWidget(this),super.dispose()}getId(){return dJ.ID}getDomNode(){return this._domNode}getPosition(){return{preference:ia.OverlayWidgetPositionPreference.BOTTOM_RIGHT_CORNER}}}(0,eH.registerEditorContribution)(dZ.ID,dZ,eH.EditorContributionInstantiation.Eventually),e.s([],454738)},551950,e=>{"use strict";var t=e.i(281482),i=e.i(611130),o=e.i(163731),r=e.i(650289),n=e.i(568101),s=e.i(84513),a=e.i(428048),d=e.i(891110),c=e.i(362361);let l="inQuickOpen",u=new n.RawContextKey(l,!1,(0,r.localize)(3708,"Whether keyboard focus is inside the quick open control")),h=n.ContextKeyExpr.has(l),p=n.ContextKeyExpr.and(h,n.ContextKeyExpr.has("inFilesPicker")),g=class extends i.Disposable{constructor(e,t){super(),this.editorService=e,this.editorGroupsService=t,this.editorViewState=void 0,this.openedTransientEditors=new Set}set(){if(this.editorViewState)return;let e=this.editorService.activeEditorPane;e&&(this.editorViewState={group:e.group,editor:e.input,state:(0,o.getIEditor)(e.getControl())?.saveViewState()??void 0})}async openTransientEditor(e,t){e.options={...e.options,transient:!0};let i=await this.editorService.openEditor(e,t);return i?.input&&i.input!==this.editorViewState?.editor&&i.group.isTransient(i.input)&&this.openedTransientEditors.add(i.input),i}async restore(){if(this.editorViewState){for(let e of this.openedTransientEditors)if(!e.isDirty())for(let t of this.editorGroupsService.groups)t.isTransient(e)&&await t.closeEditor(e,{preserveFocus:!0});await this.editorViewState.group.openEditor(this.editorViewState.editor,{viewState:this.editorViewState.state,preserveFocus:!0}),this.reset()}}reset(){this.editorViewState=void 0,this.openedTransientEditors.clear()}dispose(){super.dispose(),this.reset()}};g=(0,t.__decorate)([(0,t.__param)(0,c.IEditorService),(0,t.__param)(1,d.IEditorGroupsService)],g),e.s(["InQuickPickContextKey",0,u,"defaultQuickAccessContext",0,p,"getQuickNavigateHandler",0,function(e,t){return i=>{let o=i.get(s.IKeybindingService),r=i.get(a.IQuickInputService),n=o.lookupKeybindings(e);r.navigate(!!t,{keybindings:n})}},"inQuickPickContext",0,h])},560165,888048,e=>{"use strict";var t=e.i(281482),i=e.i(947278),o=e.i(488259),r=e.i(970672),n=e.i(731931),s=e.i(9753),a=e.i(84513),d=e.i(454102);e.i(157255);var c=e.i(551950);let l=class extends d.QuickInputService{constructor(e,t,i,o,r,n){super(t,o,r,n,e),this.keybindingService=i,this.inQuickInputContext=c.InQuickPickContextKey.bindTo(this.contextKeyService),this.registerListeners()}registerListeners(){this._register(this.onShow(()=>this.inQuickInputContext.set(!0))),this._register(this.onHide(()=>this.inQuickInputContext.set(!1)))}createController(){return super.createController(this.layoutService,{ignoreFocusOut:()=>!this.configurationService.getValue("workbench.quickOpen.closeOnFocusLost"),backKeybindingLabel:()=>this.keybindingService.lookupKeybinding("workbench.action.quickInputBack")?.getLabel()||void 0})}};l=(0,t.__decorate)([(0,t.__param)(0,n.IConfigurationService),(0,t.__param)(1,o.IInstantiationService),(0,t.__param)(2,a.IKeybindingService),(0,t.__param)(3,s.IContextKeyService),(0,t.__param)(4,r.IThemeService),(0,t.__param)(5,i.ILayoutService)],l),e.s(["QuickInputService",0,l],560165);class u{constructor(){this.chunkCount=0,this.chunkOccurrences=new Map,this.documents=new Map}calculateScores(e,t){let i=this.computeEmbedding(e),o=new Map,r=[];for(let[e,n]of this.documents){if(t.isCancellationRequested)return[];for(let t of n.chunks){let n=this.computeSimilarityScore(t,i,o);n>0&&r.push({key:e,score:n})}}return r}static termFrequencies(e){var t=u.splitTerms(e);let i=new Map;for(let e of t)i.set(e,(i.get(e)??0)+1);return i}static*splitTerms(e){let t=e=>e.toLowerCase();for(let[i]of e.matchAll(/\b\p{Letter}[\p{Letter}\d]{2,}\b/gu)){yield t(i);let e=i.replace(/([a-z])([A-Z])/g,"$1 $2").split(/\s+/g);if(e.length>1)for(let i of e)i.length>2&&/\p{Letter}{3,}/gu.test(i)&&(yield t(i))}}updateDocuments(e){for(let{key:t}of e)this.deleteDocument(t);for(let t of e){let e=[];for(let i of t.textChunks){let t=u.termFrequencies(i);for(let e of t.keys())this.chunkOccurrences.set(e,(this.chunkOccurrences.get(e)??0)+1);e.push({text:i,tf:t})}this.chunkCount+=e.length,this.documents.set(t.key,{chunks:e})}return this}deleteDocument(e){let t=this.documents.get(e);if(t)for(let i of(this.documents.delete(e),this.chunkCount-=t.chunks.length,t.chunks))for(let e of i.tf.keys()){let t=this.chunkOccurrences.get(e);if("number"==typeof t){let i=t-1;i<=0?this.chunkOccurrences.delete(e):this.chunkOccurrences.set(e,i)}}}computeSimilarityScore(e,t,i){let o=0;for(let[r,n]of Object.entries(t)){let t=e.tf.get(r);if(!t)continue;let s=i.get(r);"number"!=typeof s&&(s=this.computeIdf(r),i.set(r,s)),o+=t*s*n}return o}computeEmbedding(e){let t=u.termFrequencies(e);return this.computeTfidf(t)}computeIdf(e){let t=this.chunkOccurrences.get(e)??0;return t>0?Math.log((this.chunkCount+1)/t):0}computeTfidf(e){let t=Object.create(null);for(let[i,o]of e){let e=this.computeIdf(i);e>0&&(t[i]=o*e)}return t}}e.s(["TfIdfCalculator",0,u,"normalizeTfIdfScores",0,function(e){let t=e.slice(0);t.sort((e,t)=>t.score-e.score);let i=t[0]?.score??0;if(i>0)for(let e of t)e.score/=i;return t}],888048)},226235,e=>{"use strict";var t,i,o=e.i(590746),r=e.i(704994),n=e.i(611130),s=e.i(535567);function a(e){return Array.isArray(e.items)}function d(e){return!!e.picks&&e.additionalPicks instanceof Promise}(t=i||(i={}))[t.NO_ACTION=0]="NO_ACTION",t[t.CLOSE_PICKER=1]="CLOSE_PICKER",t[t.REFRESH_PICKER=2]="REFRESH_PICKER",t[t.REMOVE_ITEM=3]="REMOVE_ITEM";class c extends n.Disposable{constructor(e,t){super(),this.prefix=e,this.options=t}provide(e,t,c){let l,u=new n.DisposableStore;e.canAcceptInBackground=!!this.options?.canAcceptInBackground,e.matchOnLabel=e.matchOnDescription=e.matchOnDetail=e.sortByLabel=!1;let h=u.add(new n.MutableDisposable),p=async()=>{l?.dispose(!0),e.busy=!1;let i=h.value=new n.DisposableStore,u=(l=i.add(new r.CancellationTokenSource(t))).token,p=e.value.substring(this.prefix.length);this.options?.shouldSkipTrimPickFilter||(p=p.trim());let g=this._getPicks(p,i,u,c),m=(t,i)=>{let o,r;if(a(t)?(o=t.items,r=t.active):o=t,0===o.length){if(i)return!1;(p.length>0||e.hideInput)&&this.options?.noResultsPick&&(o=(0,s.isFunction)(this.options.noResultsPick)?[this.options.noResultsPick(p)]:[this.options.noResultsPick])}return e.items=o,r&&(e.activeItems=[r]),!0},v=async t=>{let i=!1,r=!1;await Promise.all([(async()=>{("number"!=typeof t.mergeDelay||(await (0,o.timeout)(t.mergeDelay),!u.isCancellationRequested))&&(r||(i=m(t.picks,!0)))})(),(async()=>{e.busy=!0;try{let o,r,n,s,d=await t.additionalPicks;if(u.isCancellationRequested)return;if(a(t.picks)?(o=t.picks.items,n=t.picks.active):o=t.picks,a(d)?(r=d.items,s=d.active):r=d,r.length>0||!i){let t;if(!n&&!s){let i=e.activeItems[0];i&&-1!==o.indexOf(i)&&(t=i)}m({items:[...o,...r],active:n||s||t})}}finally{u.isCancellationRequested||(e.busy=!1),r=!0}})()])};if(null===g);else if(d(g))await v(g);else if(g instanceof Promise){e.busy=!0;try{let e=await g;if(u.isCancellationRequested)return;d(e)?await v(e):m(e)}finally{u.isCancellationRequested||(e.busy=!1)}}else m(g)};u.add(e.onDidChangeValue(()=>p())),p(),u.add(e.onDidAccept(t=>{if(c?.handleAccept){t.inBackground||e.hide(),c.handleAccept?.(e.activeItems[0],t.inBackground);return}let[i]=e.selectedItems;"function"==typeof i?.accept&&(t.inBackground||e.hide(),i.accept(e.keyMods,t))}));let g=async(o,r)=>{if("function"!=typeof r.trigger)return;let n=r.buttons?.indexOf(o)??-1;if(n>=0){let o=r.trigger(n,e.keyMods),s="number"==typeof o?o:await o;if(t.isCancellationRequested)return;switch(s){case i.NO_ACTION:break;case i.CLOSE_PICKER:e.hide();break;case i.REFRESH_PICKER:p();break;case i.REMOVE_ITEM:{let t=e.items.indexOf(r);if(-1!==t){let i=e.items.slice(),o=i.splice(t,1),r=e.activeItems.filter(e=>e!==o[0]),n=e.keepScrollPosition;e.keepScrollPosition=!0,e.items=i,r&&(e.activeItems=r),e.keepScrollPosition=n}}}}};return u.add(e.onDidTriggerItemButton(({button:e,item:t})=>g(e,t))),u.add(e.onDidTriggerSeparatorButton(({button:e,separator:t})=>g(e,t))),u}}e.s(["PickerQuickAccessProvider",0,c,"TriggerAction",0,i])},966202,222649,178234,770655,e=>{"use strict";var t,i,o,r,n=e.i(896783),s=e.i(700820),a=e.i(281482),d=e.i(155652),c=e.i(431110),l=e.i(619122),u=e.i(546198),h=e.i(537080),p=e.i(611130),g=e.i(802186),m=e.i(536367),v=e.i(888048),y=e.i(650289),f=e.i(846960),_=e.i(731931),C=e.i(324726),S=e.i(488259),b=e.i(84513),I=e.i(853457),E=e.i(226235),w=e.i(701575),D=e.i(140889),A=e.i(536766),x=e.i(262072);let k=class extends E.PickerQuickAccessProvider{static{i=this}static{this.PREFIX=">"}static{this.TFIDF_THRESHOLD=.5}static{this.TFIDF_MAX_RESULTS=5}static{this.WORD_FILTER=(0,u.or)(u.matchesBaseContiguousSubString,u.matchesWords)}constructor(e,t,o,r,n,s){super(i.PREFIX,e),this.keybindingService=o,this.commandService=r,this.telemetryService=n,this.dialogService=s,this.commandsHistory=this._register(t.createInstance(T)),this.options=e}async _getPicks(e,t,o,r){let n=await this.getCommandPicks(o);if(o.isCancellationRequested)return[];let s=(0,h.createSingleCallFunction)(()=>{let t=new v.TfIdfCalculator;t.updateDocuments(n.map(e=>({key:e.commandId,textChunks:[this.getTfIdfChunk(e)]})));let r=t.calculateScores(e,o);return(0,v.normalizeTfIdfScores)(r).filter(e=>e.score>i.TFIDF_THRESHOLD).slice(0,i.TFIDF_MAX_RESULTS)}),a=[];for(let t of n){let r,n=i.WORD_FILTER(e,t.label)??void 0;if(t.commandAlias&&(r=i.WORD_FILTER(e,t.commandAlias)??void 0),n||r)t.highlights={label:n,detail:this.options.showAlias?r:void 0},a.push(t);else if(e===t.commandId)a.push(t);else if(e.length>=3){let e=s();if(o.isCancellationRequested)return[];let i=e.find(e=>e.key===t.commandId);i&&(t.tfIdfScore=i.score,a.push(t))}}let d=new Map;for(let e of a){let t=d.get(e.label);t?(e.description=e.commandId,t.description=t.commandId):d.set(e.label,e)}a.sort((e,t)=>{if(e.tfIdfScore&&t.tfIdfScore)return e.tfIdfScore===t.tfIdfScore?e.label.localeCompare(t.label):t.tfIdfScore-e.tfIdfScore;if(e.tfIdfScore)return 1;if(t.tfIdfScore)return -1;let i=this.commandsHistory.peek(e.commandId),o=this.commandsHistory.peek(t.commandId);if(i&&o)return i>o?-1:1;if(i)return -1;if(o)return 1;if(this.options.suggestedCommandIds){let i=this.options.suggestedCommandIds.has(e.commandId),o=this.options.suggestedCommandIds.has(t.commandId);if(i&&o)return 0;if(i)return -1;if(o)return 1}let r=e.commandCategory===x.Categories.Developer.value,n=t.commandCategory===x.Categories.Developer.value;return r&&!n?1:!r&&n?-1:e.label.localeCompare(t.label)});let c=[],l=!1,u=!0,p=!!this.options.suggestedCommandIds;for(let e=0;e<a.length;e++){let t=a[e],i=!!this.commandsHistory.peek(t.commandId);0===e&&i&&(c.push({type:"separator",label:(0,y.localize)(2007,"recently used")}),l=!0),u&&void 0!==t.tfIdfScore&&(c.push({type:"separator",label:(0,y.localize)(2008,"similar commands")}),u=!1),p&&void 0===t.tfIdfScore&&!i&&this.options.suggestedCommandIds?.has(t.commandId)&&(c.push({type:"separator",label:(0,y.localize)(2009,"commonly used")}),l=!0,p=!1),!l||void 0!==t.tfIdfScore||i||this.options.suggestedCommandIds?.has(t.commandId)||(c.push({type:"separator",label:(0,y.localize)(2010,"other commands")}),l=!1),c.push(this.toCommandPick(t,r,i))}return this.hasAdditionalCommandPicks(e,o)?{picks:c,additionalPicks:(async()=>{let t=await this.getAdditionalCommandPicks(n,a,e,o);if(o.isCancellationRequested)return[];let i=t.map(e=>this.toCommandPick(e,r));return u&&i[0]?.type!=="separator"&&i.unshift({type:"separator",label:(0,y.localize)(2008,"similar commands")}),i})()}:c}toCommandPick(e,t,i=!1){if("separator"===e.type)return e;let o=e.tooltip??e.commandDescription?.value,r=this.keybindingService.lookupKeybinding(e.commandId),n=r?(0,y.localize)(2011,"{0}, {1}",e.label,r.getAriaLabel()):e.label,s=e.buttons||[],a=i?[...s,{iconClass:m.ThemeIcon.asClassName(d.Codicon.close),tooltip:(0,y.localize)(2012,"Remove from Recently Used")}]:e.buttons;return{...e,tooltip:o,ariaLabel:n,detail:this.options.showAlias&&e.commandAlias!==e.label?e.commandAlias:void 0,keybinding:r,buttons:a,accept:async()=>{this.commandsHistory.push(e.commandId),this.telemetryService.publicLog2("workbenchActionExecuted",{id:e.commandId,from:t?.from??"quick open"});try{e.args?.length?await this.commandService.executeCommand(e.commandId,...e.args):await this.commandService.executeCommand(e.commandId)}catch(t){(0,l.isCancellationError)(t)||this.dialogService.error((0,y.localize)(2013,"Command '{0}' resulted in an error",e.label),(0,c.toErrorMessage)(t))}},trigger:i?(t,i)=>t===s.length?(this.commandsHistory.remove(e.commandId),E.TriggerAction.REMOVE_ITEM):e.trigger?e.trigger(t,i):E.TriggerAction.NO_ACTION:e.trigger}}getTfIdfChunk({label:e,commandAlias:t,commandDescription:i}){let o=e;return t&&t!==e&&(o+=` - ${t}`),i&&i.value!==e&&(o+=` - ${i.value===i.original?i.value:`${i.value} (${i.original})`}`),o}};k=i=(0,a.__decorate)([(0,a.__param)(1,S.IInstantiationService),(0,a.__param)(2,b.IKeybindingService),(0,a.__param)(3,f.ICommandService),(0,a.__param)(4,A.ITelemetryService),(0,a.__param)(5,C.IDialogService)],k);let T=class extends p.Disposable{static{o=this}static{this.DEFAULT_COMMANDS_HISTORY_LENGTH=50}static{this.PREF_KEY_CACHE="commandPalette.mru.cache"}static{this.PREF_KEY_COUNTER="commandPalette.mru.counter"}static{this.counter=1}static{this.hasChanges=!1}constructor(e,t,i){super(),this.storageService=e,this.configurationService=t,this.logService=i,this.configuredCommandsHistoryLength=0,this.updateConfiguration(),this.load(),this.registerListeners()}registerListeners(){this._register(this.configurationService.onDidChangeConfiguration(e=>this.updateConfiguration(e))),this._register(this.storageService.onWillSaveState(e=>{e.reason===w.WillSaveStateReason.SHUTDOWN&&this.saveState()}))}updateConfiguration(e){(!e||e.affectsConfiguration("workbench.commandPalette.history"))&&(this.configuredCommandsHistoryLength=o.getConfiguredCommandHistoryLength(this.configurationService),o.cache&&o.cache.limit!==this.configuredCommandsHistoryLength&&(o.cache.limit=this.configuredCommandsHistoryLength,o.hasChanges=!0))}load(){let e,t=this.storageService.get(o.PREF_KEY_CACHE,w.StorageScope.PROFILE);if(t)try{e=JSON.parse(t)}catch(e){this.logService.error(`[CommandsHistory] invalid data: ${e}`)}let i=o.cache=new g.LRUCache(this.configuredCommandsHistoryLength,1);e&&(e.usesLRU?e.entries:e.entries.sort((e,t)=>e.value-t.value)).forEach(e=>i.set(e.key,e.value));o.counter=this.storageService.getNumber(o.PREF_KEY_COUNTER,w.StorageScope.PROFILE,o.counter)}push(e){o.cache&&(o.cache.set(e,o.counter++),o.hasChanges=!0)}peek(e){return o.cache?.peek(e)}remove(e){o.cache&&(o.cache.delete(e),o.hasChanges=!0)}saveState(){if(!o.cache||!o.hasChanges)return;let e={usesLRU:!0,entries:[]};o.cache.forEach((t,i)=>e.entries.push({key:i,value:t})),this.storageService.store(o.PREF_KEY_CACHE,JSON.stringify(e),w.StorageScope.PROFILE,w.StorageTarget.USER),this.storageService.store(o.PREF_KEY_COUNTER,o.counter,w.StorageScope.PROFILE,w.StorageTarget.USER),o.hasChanges=!1}static getConfiguredCommandHistoryLength(e){let t=e.getValue(),i=t.workbench?.commandPalette?.history;return"number"==typeof i?i:o.DEFAULT_COMMANDS_HISTORY_LENGTH}static clearHistory(e,t){let i=o.getConfiguredCommandHistoryLength(e);o.cache=new g.LRUCache(i),o.counter=1,o.hasChanges=!0}};T=o=(0,a.__decorate)([(0,a.__param)(0,D.IStorageService),(0,a.__param)(1,_.IConfigurationService),(0,a.__param)(2,I.ILogService)],T),e.s(["AbstractCommandsQuickAccessProvider",0,k,"CommandsHistory",0,T],222649),e.s(["AbstractEditorCommandsQuickAccessProvider",0,class extends k{constructor(e,t,i,o,r,n){super(e,t,i,o,r,n)}getCodeEditorCommandPicks(){let e=this.activeTextEditorControl;if(!e)return[];let t=[];for(let i of e.getSupportedActions()){let e;i.metadata?.description&&(e=(0,s.isLocalizedString)(i.metadata.description)?i.metadata.description:{original:i.metadata.description,value:i.metadata.description}),t.push({commandId:i.id,commandAlias:i.alias,commandDescription:e,label:(0,n.stripIcons)(i.label)||i.id})}return t}}],966202),e.s(["ASK_QUICK_QUESTION_ACTION_ID",0,"workbench.action.quickchat.toggle","CHAT_OPEN_ACTION_ID",0,"workbench.action.chat.open"],178234),(t=r||(r={}))[t.SymbolInformation=1]="SymbolInformation",t[t.CommandInformation=2]="CommandInformation",t[t.SearchInformation=3]="SearchInformation",t[t.SettingInformation=4]="SettingInformation",e.s(["RelatedInformationType",0,r],770655)},752453,e=>{"use strict";var t=e.i(318581),i=e.i(454514),o=e.i(478697),r=e.i(686380);e.s(["getAllUnboundCommands",0,function(e){let n=[],s=new Map,a=(o,r)=>{if(!s.has(o)){if((s.set(o,!0),"_"!==o[0]&&0!==o.indexOf("vscode."))&&!0!==e.get(o)){if(!r){let e=t.CommandsRegistry.getCommand(o);if(e&&"object"==typeof e.metadata&&(0,i.isNonEmptyArray)(e.metadata.args))return}n.push(o)}}};for(let e of r.MenuRegistry.getMenuItems(r.MenuId.CommandPalette))(0,r.isIMenuItem)(e)&&a(e.command.id,!0);for(let e of o.EditorExtensionsRegistry.getEditorActions())a(e.id,!0);for(let e of t.CommandsRegistry.getCommands().keys())a(e,!1);return n}])},839511,906756,542154,e=>{"use strict";var t,i,o=e.i(281482),r=e.i(322193),n=e.i(590746),s=e.i(155652),a=e.i(896783),d=e.i(83823),c=e.i(354244),l=e.i(536367),u=e.i(966202),h=e.i(650289),p=e.i(700820),g=e.i(686380),m=e.i(94361),v=e.i(846960),y=e.i(731931),f=e.i(324726),_=e.i(488259),C=e.i(84513),S=e.i(718596),b=e.i(347589),I=e.i(222649),E=e.i(226235),w=e.i(370507),D=e.i(428048),A=e.i(140889),x=e.i(536766),k=e.i(178234),T=e.i(770655),M=e.i(734570),P=e.i(891110),R=e.i(362361),L=e.i(981399),N=e.i(454514),O=e.i(693205),F=e.i(546198),K=e.i(92835),W=e.i(961828),z=e.i(261187),V=e.i(752453),B=e.i(535567),U=e.i(608326),H=e.i(568101);let q="keybinding.entry.template",G=(0,h.localize)(14193,"System"),$=(0,h.localize)(14194,"Extension"),Q=(0,h.localize)(14195,"User"),j=(0,F.or)(F.matchesBaseContiguousSubString,F.matchesWords),Y=/@command:\s*([^\+]+)/i,X=/\+when:\s*(.+)/i,Z=/@source:\s*(user|default|system|extension)/i,J=/@ext:\s*((".+")|([^\s]+))/i,ee=/@keybinding:\s*((\".+\")|(\S+))/i,et=t=class extends W.EditorModel{constructor(e,t,i){super(),this.keybindingsService=t,this.extensionService=i,this._keybindingItems=[],this._keybindingItemsSortedByPrecedence=[],this.modifierLabels={ui:K.UILabelProvider.modifierLabels[e],aria:K.AriaLabelProvider.modifierLabels[e],user:K.UserSettingsLabelProvider.modifierLabels[e]}}fetch(e,i=!1){let o=i?this._keybindingItemsSortedByPrecedence:this._keybindingItems,r=Y.exec(e);if(r&&r[1]){let i=r[1].trim(),n=o.filter(e=>e.command===i);if(n.length){let t=X.exec(e);if(t&&t[1]){let e=t[1].trim();n=this.filterByWhen(n,i,e)}}return n.map(e=>({id:t.getId(e),keybindingItem:e,templateId:q}))}if(Z.test(e))o=this.filterBySource(o,e),e=e.replace(Z,"");else{let t=J.exec(e);if(t&&(t[2]||t[3])){let i=t[2]?t[2].substring(1,t[2].length-1):t[3];o=this.filterByExtension(o,i),e=e.replace(J,"")}else{let t=ee.exec(e);t&&(t[2]||t[3])&&(e=t[2]||`"${t[3]}"`)}}return(e=e.trim())?this.filterByText(o,e):o.map(e=>({id:t.getId(e),keybindingItem:e,templateId:q}))}filterBySource(e,t){return/@source:\s*default/i.test(t)||/@source:\s*system/i.test(t)?e.filter(e=>e.source===G):/@source:\s*user/i.test(t)?e.filter(e=>e.source===Q):/@source:\s*extension/i.test(t)?e.filter(e=>!(0,B.isString)(e.source)||e.source===$):e}filterByExtension(e,t){return t=t.toLowerCase().trim(),e.filter(e=>!(0,B.isString)(e.source)&&(U.ExtensionIdentifier.equals(e.source.identifier,t)||e.source.displayName?.toLowerCase()===t.toLowerCase()))}filterByText(e,i){let o='"'===i.charAt(0),r='"'===i.charAt(i.length-1),n=o&&r;o&&(i=i.substring(1)),r&&(i=i.substring(0,i.length-1));let s=[],a=(i=i.trim()).split(" "),d=this.splitKeybindingWords(a);for(let o of e){let e=new ei(this.modifierLabels,o,i,a,d,n);(e.commandIdMatches||e.commandLabelMatches||e.commandDefaultLabelMatches||e.sourceMatches||e.whenMatches||e.keybindingMatches||e.extensionIdMatches||e.extensionLabelMatches)&&s.push({id:t.getId(o),templateId:q,commandLabelMatches:e.commandLabelMatches||void 0,commandDefaultLabelMatches:e.commandDefaultLabelMatches||void 0,keybindingItem:o,keybindingMatches:e.keybindingMatches||void 0,commandIdMatches:e.commandIdMatches||void 0,sourceMatches:e.sourceMatches||void 0,whenMatches:e.whenMatches||void 0,extensionIdMatches:e.extensionIdMatches||void 0,extensionLabelMatches:e.extensionLabelMatches||void 0})}return s}filterByWhen(e,i,o){if(0===e.length)return[];let r=e.filter(e=>e.when===o);if(r.length)return r;let n=e[0].commandLabel,s=new z.ResolvedKeybindingItem(void 0,i,null,H.ContextKeyExpr.deserialize(o),!1,null,!1),a=new Map([[i,n]]);return[t.toKeybindingEntry(i,s,a,this.getExtensionsMapping())]}splitKeybindingWords(e){let t=[];for(let i of e)t.push(...(0,N.coalesce)(i.split("+")));return t}async resolve(e=new Map){let i=this.getExtensionsMapping();this._keybindingItemsSortedByPrecedence=[];let o=new Map;for(let r of this.keybindingsService.getKeybindings())r.command&&(this._keybindingItemsSortedByPrecedence.push(t.toKeybindingEntry(r.command,r,e,i)),o.set(r.command,!0));let r=this.keybindingsService.getDefaultKeybindings().map(e=>e.command);for(let n of(0,V.getAllUnboundCommands)(o)){let o=new z.ResolvedKeybindingItem(void 0,n,null,void 0,-1===r.indexOf(n),null,!1);this._keybindingItemsSortedByPrecedence.push(t.toKeybindingEntry(n,o,e,i))}return this._keybindingItemsSortedByPrecedence=(0,N.distinct)(this._keybindingItemsSortedByPrecedence,e=>t.getId(e)),this._keybindingItems=this._keybindingItemsSortedByPrecedence.slice(0).sort((e,i)=>t.compareKeybindingData(e,i)),super.resolve()}static getId(e){return e.command+(e?.keybinding?.getAriaLabel()??"")+e.when+((0,B.isString)(e.source)?e.source:e.source.identifier.value)}getExtensionsMapping(){let e=new U.ExtensionIdentifierMap;for(let t of this.extensionService.extensions)e.set(t.identifier,t);return e}static compareKeybindingData(e,t){return e.keybinding&&!t.keybinding?-1:t.keybinding&&!e.keybinding?1:e.commandLabel&&!t.commandLabel?-1:t.commandLabel&&!e.commandLabel?1:e.commandLabel&&t.commandLabel&&e.commandLabel!==t.commandLabel?e.commandLabel.localeCompare(t.commandLabel):e.command===t.command?e.keybindingItem.isDefault?1:-1:e.command.localeCompare(t.command)}static toKeybindingEntry(e,i,o,r){let n=g.MenuRegistry.getCommand(e),s=o.get(e),a=Q;if(i.isDefault){let e=i.extensionId??(i.resolvedKeybinding?void 0:n?.source?.id);a=e?r.get(e)??$:G}return{keybinding:i.resolvedKeybinding,keybindingItem:i,command:e,commandLabel:t.getCommandLabel(n,s),commandDefaultLabel:t.getCommandDefaultLabel(n),when:i.when?i.when.serialize():"",source:a}}static getCommandDefaultLabel(e){if(!c.Language.isDefaultVariant()&&e&&e.title&&e.title.original){let t=e.category?e.category.original:void 0,i=e.title.original;return t?(0,h.localize)(14196,"{0}: {1}",t,i):i}return null}static getCommandLabel(e,t){if(e){let t=e.category?"string"==typeof e.category?e.category:e.category.value:void 0,i="string"==typeof e.title?e.title:e.title.value;return t?(0,h.localize)(14196,"{0}: {1}",t,i):i}return t||""}};et=t=(0,o.__decorate)([(0,o.__param)(1,C.IKeybindingService),(0,o.__param)(2,L.IExtensionService)],et);class ei{constructor(e,t,i,o,r,n){this.modifierLabels=e,this.commandIdMatches=null,this.commandLabelMatches=null,this.commandDefaultLabelMatches=null,this.sourceMatches=null,this.whenMatches=null,this.keybindingMatches=null,this.extensionIdMatches=null,this.extensionLabelMatches=null,n||(this.commandIdMatches=this.matches(i,t.command,(0,F.or)(F.matchesWords,F.matchesCamelCase),o),this.commandLabelMatches=t.commandLabel?this.matches(i,t.commandLabel,(e,i)=>(0,F.matchesWords)(e,t.commandLabel,!0),o):null,this.commandDefaultLabelMatches=t.commandDefaultLabel?this.matches(i,t.commandDefaultLabel,(e,i)=>(0,F.matchesWords)(e,t.commandDefaultLabel,!0),o):null,this.whenMatches=t.when?this.matches(null,t.when,(0,F.or)(F.matchesWords,F.matchesCamelCase),o):null,(0,B.isString)(t.source)?this.sourceMatches=this.matches(i,t.source,(e,i)=>(0,F.matchesWords)(e,t.source,!0),o):this.extensionLabelMatches=t.source.displayName?this.matches(i,t.source.displayName,(e,i)=>(0,F.matchesWords)(e,t.commandLabel,!0),o):null),this.keybindingMatches=t.keybinding?this.matchesKeybinding(t.keybinding,i,r,n):null}matches(e,t,i,o){let r=e?j(e,t):null;return r||(r=this.matchesWords(o,t,i)),r&&(r=this.filterAndSort(r)),r}matchesWords(e,t,i){let o=[];for(let r of e){let e=i(r,t);if(e)o=[...o||[],...e];else{o=null;break}}return o}filterAndSort(e){return(0,N.distinct)(e,e=>e.start+"."+e.end).filter(t=>!e.some(e=>(e.start!==t.start||e.end!==t.end)&&e.start<=t.start&&e.end>=t.end)).sort((e,t)=>e.start-t.start)}matchesKeybinding(e,t,i,o){let[r,n]=e.getChords(),s=e.getUserSettingsLabel(),a=e.getAriaLabel(),d=e.getLabel();if(s&&0===(0,O.compareIgnoreCase)(t,s)||a&&0===(0,O.compareIgnoreCase)(t,a)||d&&0===(0,O.compareIgnoreCase)(t,d))return{firstPart:this.createCompleteMatch(r),chordPart:this.createCompleteMatch(n)};let c={},l={},u=[],h=[],p=[],g=!0;for(let e=0;e<i.length;e++){let t=i[e],s=!1,a=!1;g=g&&!c.keyCode;let d=!l.keyCode;if(g&&(s=this.matchPart(r,c,t,o),c.keyCode)){for(let e of p)-1===h.indexOf(e)&&u.splice(u.indexOf(e),1);l={},p=[],d=!1}d&&(a=this.matchPart(n,l,t,o)),s&&h.push(e),a&&p.push(e),(s||a)&&u.push(e),g=g&&this.isModifier(t)}return u.length===i.length&&(!o||this.isCompleteMatch(r,c)&&((0,B.isEmptyObject)(l)||this.isCompleteMatch(n,l)))?this.hasAnyMatch(c)||this.hasAnyMatch(l)?{firstPart:c,chordPart:l}:null:null}matchPart(e,t,i,o){let r=!1;return this.matchesMetaModifier(e,i)&&(r=!0,t.metaKey=!0),this.matchesCtrlModifier(e,i)&&(r=!0,t.ctrlKey=!0),this.matchesShiftModifier(e,i)&&(r=!0,t.shiftKey=!0),this.matchesAltModifier(e,i)&&(r=!0,t.altKey=!0),this.matchesKeyCode(e,i,o)&&(t.keyCode=!0,r=!0),r}matchesKeyCode(e,t,i){if(!e)return!1;let o=e.keyAriaLabel||"";if(i||1===o.length||1===t.length){if(0===(0,O.compareIgnoreCase)(o,t))return!0}else if((0,F.matchesContiguousSubString)(t,o))return!0;return!1}matchesMetaModifier(e,t){return!!e&&!!e.metaKey&&this.wordMatchesMetaModifier(t)}matchesCtrlModifier(e,t){return!!e&&!!e.ctrlKey&&this.wordMatchesCtrlModifier(t)}matchesShiftModifier(e,t){return!!e&&!!e.shiftKey&&this.wordMatchesShiftModifier(t)}matchesAltModifier(e,t){return!!e&&!!e.altKey&&this.wordMatchesAltModifier(t)}hasAnyMatch(e){return!!e.altKey||!!e.ctrlKey||!!e.metaKey||!!e.shiftKey||!!e.keyCode}isCompleteMatch(e,t){return!e||!!t.keyCode&&(!e.metaKey||!!t.metaKey)&&(!e.altKey||!!t.altKey)&&(!e.ctrlKey||!!t.ctrlKey)&&(!e.shiftKey||!!t.shiftKey)}createCompleteMatch(e){let t={};return e&&(t.keyCode=!0,e.metaKey&&(t.metaKey=!0),e.altKey&&(t.altKey=!0),e.ctrlKey&&(t.ctrlKey=!0),e.shiftKey&&(t.shiftKey=!0)),t}isModifier(e){return!!(this.wordMatchesAltModifier(e)||this.wordMatchesCtrlModifier(e)||this.wordMatchesMetaModifier(e)||this.wordMatchesShiftModifier(e))}wordMatchesAltModifier(e){return!!((0,O.equalsIgnoreCase)(this.modifierLabels.ui.altKey,e)||(0,O.equalsIgnoreCase)(this.modifierLabels.aria.altKey,e)||(0,O.equalsIgnoreCase)(this.modifierLabels.user.altKey,e)||(0,O.equalsIgnoreCase)((0,h.localize)(14197,"option"),e))}wordMatchesCtrlModifier(e){return!!((0,O.equalsIgnoreCase)(this.modifierLabels.ui.ctrlKey,e)||(0,O.equalsIgnoreCase)(this.modifierLabels.aria.ctrlKey,e)||(0,O.equalsIgnoreCase)(this.modifierLabels.user.ctrlKey,e))}wordMatchesMetaModifier(e){return!!((0,O.equalsIgnoreCase)(this.modifierLabels.ui.metaKey,e)||(0,O.equalsIgnoreCase)(this.modifierLabels.aria.metaKey,e)||(0,O.equalsIgnoreCase)(this.modifierLabels.user.metaKey,e)||(0,O.equalsIgnoreCase)((0,h.localize)(14198,"meta"),e))}wordMatchesShiftModifier(e){return!!((0,O.equalsIgnoreCase)(this.modifierLabels.ui.shiftKey,e)||(0,O.equalsIgnoreCase)(this.modifierLabels.aria.shiftKey,e)||(0,O.equalsIgnoreCase)(this.modifierLabels.user.shiftKey,e))}}var eo=e.i(509046),er=e.i(643882),en=e.i(778116);let es=class extends u.AbstractEditorCommandsQuickAccessProvider{static{i=this}static{this.AI_RELATED_INFORMATION_MAX_PICKS=5}static{this.AI_RELATED_INFORMATION_DEBOUNCE=200}get activeTextEditorControl(){return this.editorService.activeTextEditorControl}get defaultFilterValue(){if(this.configuration.preserveInput)return w.DefaultQuickAccessFilterValue.LAST}constructor(e,t,i,o,r,s,a,d,l,u,p,g,m,v){super({showAlias:!c.Language.isDefaultVariant(),noResultsPick:()=>({label:(0,h.localize)(10190,"No matching commands"),commandId:""})},o,r,s,a,d),this.editorService=e,this.menuService=t,this.configurationService=l,this.editorGroupService=u,this.preferencesService=p,this.productService=g,this.aiRelatedInformationService=m,this.chatAgentService=v,this.useAiRelatedInfo=!1,this.extensionRegistrationRace=(0,n.raceTimeout)(i.whenInstalledExtensionsRegistered(),800),this._register(l.onDidChangeConfiguration(e=>this.updateOptions(e))),this.updateOptions()}get configuration(){let e=this.configurationService.getValue().workbench.commandPalette;return{preserveInput:e.preserveInput,showAskInChat:e.showAskInChat,experimental:e.experimental}}updateOptions(e){if(e&&!e.affectsConfiguration("workbench.commandPalette.experimental"))return;let t=this.configuration,i=t.experimental.suggestCommands&&this.productService.commandPaletteSuggestedCommandIds?.length?new Set(this.productService.commandPaletteSuggestedCommandIds):void 0;this.options.suggestedCommandIds=i,this.useAiRelatedInfo=t.experimental.enableNaturalLanguageSearch}async getCommandPicks(e){return(await this.extensionRegistrationRace,e.isCancellationRequested)?[]:[...this.getCodeEditorCommandPicks(),...this.getGlobalCommandPicks()].map(e=>({...e,buttons:[{iconClass:l.ThemeIcon.asClassName(s.Codicon.gear),tooltip:(0,h.localize)(10191,"Configure Keybinding")}],trigger:()=>{var t,i;let o;return this.preferencesService.openGlobalKeybindingSettings(!1,{query:(t=e.commandId,o=(i=e.commandWhen)?` +when:${i}`:"",`@command:${t}${o}`)}),E.TriggerAction.CLOSE_PICKER}}))}hasAdditionalCommandPicks(e,t){return!!this.useAiRelatedInfo&&!t.isCancellationRequested&&""!==e&&!!this.aiRelatedInformationService.isEnabled()}async getAdditionalCommandPicks(e,t,o,r){if(!this.hasAdditionalCommandPicks(o,r))return[];let a=[];try{await (0,n.timeout)(i.AI_RELATED_INFORMATION_DEBOUNCE,r),a=await this.getRelatedInformationPicks(e,t,o,r)}catch(e){}return this.configuration.showAskInChat&&this.chatAgentService.getDefaultAgent(en.ChatAgentLocation.Chat)&&((t.length||a.length)&&a.push({type:"separator"}),a.push({label:(0,h.localize)(10192,"Ask in Chat: {0}",o),commandId:"quickChat"===this.configuration.experimental.askChatLocation?k.ASK_QUICK_QUESTION_ACTION_ID:k.CHAT_OPEN_ACTION_ID,args:[o],buttons:[{iconClass:l.ThemeIcon.asClassName(s.Codicon.gear),tooltip:(0,h.localize)(10193,"Configure visibility")}],trigger:()=>(this.preferencesService.openSettings({jsonEditor:!1,query:"workbench.commandPalette.showAskInChat"}),E.TriggerAction.CLOSE_PICKER)})),a}async getRelatedInformationPicks(e,t,o,r){let n=await this.aiRelatedInformationService.getRelatedInformation(o,[T.RelatedInformationType.CommandInformation],r);n.sort((e,t)=>t.weight-e.weight);let s=new Set(t.map(e=>e.commandId)),a=[];for(let t of n){if(a.length===i.AI_RELATED_INFORMATION_MAX_PICKS)break;let o=e.find(e=>e.commandId===t.command&&!s.has(e.commandId));o&&a.push(o)}return a}getGlobalCommandPicks(){let e=[],t=this.editorService.activeEditorPane?.scopedContextKeyService||this.editorGroupService.activeGroup.scopedContextKeyService;for(let i of this.menuService.getMenuActions(g.MenuId.CommandPalette,t).reduce((e,[,t])=>[...e,...t],[]).filter(e=>e instanceof g.MenuItemAction&&e.enabled)){let t=("string"==typeof i.item.title?i.item.title:i.item.title.value)||i.item.id,o="string"==typeof i.item.category?i.item.category:i.item.category?.value;o&&(t=(0,h.localize)(10194,"{0}: {1}",o,t));let r="string"!=typeof i.item.title?i.item.title.original:void 0,n=o&&i.item.category&&"string"!=typeof i.item.category?i.item.category.original:void 0,s=r&&o?n?`${n}: ${r}`:`${o}: ${r}`:r,d=i.item.metadata?.description,c=void 0===d||(0,p.isLocalizedString)(d)?d:{value:d,original:d};e.push({commandId:i.item.id,commandWhen:i.item.precondition?.serialize(),commandAlias:s,label:(0,a.stripIcons)(t),commandDescription:c,commandCategory:o})}return e}};es=i=(0,o.__decorate)([(0,o.__param)(0,R.IEditorService),(0,o.__param)(1,m.IMenuService),(0,o.__param)(2,L.IExtensionService),(0,o.__param)(3,_.IInstantiationService),(0,o.__param)(4,C.IKeybindingService),(0,o.__param)(5,v.ICommandService),(0,o.__param)(6,x.ITelemetryService),(0,o.__param)(7,f.IDialogService),(0,o.__param)(8,y.IConfigurationService),(0,o.__param)(9,P.IEditorGroupsService),(0,o.__param)(10,eo.IPreferencesService),(0,o.__param)(11,b.IProductService),(0,o.__param)(12,M.IAiRelatedInformationService),(0,o.__param)(13,er.IChatAgentService)],es);class ea extends g.Action2{static{this.ID="workbench.action.showCommands"}constructor(){super({id:ea.ID,title:(0,h.localize2)(10195,"Show All Commands"),keybinding:{weight:S.KeybindingWeight.WorkbenchContrib,when:void 0,primary:r.isFirefox?void 0:d.KeyMod.CtrlCmd|d.KeyMod.Shift|d.KeyCode.KeyP,secondary:[d.KeyCode.F1]},f1:!0})}async run(e){e.get(D.IQuickInputService).quickAccess.show(es.PREFIX)}}class ed extends g.Action2{constructor(){super({id:"workbench.action.clearCommandHistory",title:(0,h.localize2)(10196,"Clear Command History"),f1:!0})}async run(e){let t=e.get(y.IConfigurationService),i=e.get(A.IStorageService),o=e.get(f.IDialogService);if(I.CommandsHistory.getConfiguredCommandHistoryLength(t)>0){let{confirmed:e}=await o.confirm({type:"warning",message:(0,h.localize)(10197,"Do you want to clear the history of recently used commands?"),detail:(0,h.localize)(10198,"This action is irreversible!"),primaryButton:(0,h.localize)(10199,"&&Clear")});if(!e)return;I.CommandsHistory.clearHistory(t,i)}}}e.s(["ClearCommandHistoryAction",0,ed,"CommandsQuickAccessProvider",0,es,"ShowAllCommandsAction",0,ea],839511);var ec=e.i(611130),el=e.i(828730),eu=e.i(701575),eh=e.i(163731),ep=e.i(69150),eg=e.i(358612),em=e.i(600345),ev=e.i(537080),ey=e.i(98342),ef=e.i(815033),e_=e.i(388064),eC=e.i(323325),eS=e.i(16046);class eb{constructor(e){this.options=e,this.rangeHighlightDecorationId=void 0}provide(e,t,i){let o=new ec.DisposableStore;e.canAcceptInBackground=!!this.options?.canAcceptInBackground,e.matchOnLabel=e.matchOnDescription=e.matchOnDetail=e.sortByLabel=!1;let r=o.add(new ec.MutableDisposable);return r.value=this.doProvide(e,t,i),o.add(this.onDidActiveTextEditorControlChange(()=>{r.value=void 0,r.value=this.doProvide(e,t)})),o}doProvide(e,t,i){let o=new ec.DisposableStore,r=this.activeTextEditorControl;if(r&&this.canProvideWithTextEditor(r)){let n={editor:r},s=(0,eh.getCodeEditor)(r);if(s){let e=r.saveViewState()??void 0;o.add(s.onDidChangeCursorPosition(()=>{e=r.saveViewState()??void 0})),n.restoreViewState=()=>{e&&r===this.activeTextEditorControl&&r.restoreViewState(e)},o.add((0,ev.createSingleCallFunction)(t.onCancellationRequested)(()=>n.restoreViewState?.()))}o.add((0,ec.toDisposable)(()=>this.clearDecorations(r))),o.add(this.provideWithTextEditor(n,e,t,i))}else o.add(this.provideWithoutTextEditor(e,t));return o}canProvideWithTextEditor(e){return!0}gotoLocation({editor:e},t){e.setSelection(t.range,eS.TextEditorSelectionSource.JUMP),e.revealRangeInCenter(t.range,em.ScrollType.Smooth),t.preserveFocus||e.focus();let i=this.getModel(e);i&&(0,eC.status)(`${i.getLineContent(t.range.startLineNumber)}`)}getModel(e){return(0,eh.isDiffEditor)(e)?e.getModel()?.modified:e.getModel()}addDecorations(e,t){e.changeDecorations(e=>{let i=[];this.rangeHighlightDecorationId&&(i.push(this.rangeHighlightDecorationId.overviewRulerDecorationId),i.push(this.rangeHighlightDecorationId.rangeHighlightId),this.rangeHighlightDecorationId=void 0);let o=[{range:t,options:{description:"quick-access-range-highlight",className:"rangeHighlight",isWholeLine:!0}},{range:t,options:{description:"quick-access-range-highlight-overview",overviewRuler:{color:(0,e_.themeColorFromId)(ef.overviewRulerRangeHighlight),position:ey.OverviewRulerLane.Full}}}],[r,n]=e.deltaDecorations(i,o);this.rangeHighlightDecorationId={rangeHighlightId:r,overviewRulerDecorationId:n}})}clearDecorations(e){let t=this.rangeHighlightDecorationId;t&&(e.changeDecorations(e=>{e.deltaDecorations([t.overviewRulerDecorationId,t.rangeHighlightId],[])}),this.rangeHighlightDecorationId=void 0)}}e.s(["AbstractEditorNavigationQuickAccessProvider",0,eb],906756);class eI extends eb{static{this.GO_TO_LINE_PREFIX=":"}static{this.GO_TO_OFFSET_PREFIX="::"}static{this.ZERO_BASED_OFFSET_STORAGE_KEY="gotoLine.useZeroBasedOffset"}constructor(){super({canAcceptInBackground:!0})}get useZeroBasedOffset(){return this.storageService.getBoolean(eI.ZERO_BASED_OFFSET_STORAGE_KEY,eu.StorageScope.APPLICATION,!1)}set useZeroBasedOffset(e){this.storageService.store(eI.ZERO_BASED_OFFSET_STORAGE_KEY,e,eu.StorageScope.APPLICATION,eu.StorageTarget.USER)}provideWithoutTextEditor(e){let t=(0,h.localize)(1440,"Open a text editor first to go to a line or an offset.");return e.items=[{label:t}],e.ariaLabel=t,ec.Disposable.None}provideWithTextEditor(e,t,i){let o=e.editor,r=new ec.DisposableStore;r.add(t.onDidAccept(i=>{let[o]=t.selectedItems;if(o){if(!o.lineNumber)return;this.gotoLocation(e,{range:this.toRange(o.lineNumber,o.column),keyMods:t.keyMods,preserveFocus:i.inBackground}),i.inBackground||t.hide()}}));let n={iconClass:l.ThemeIcon.asClassName(s.Codicon.indexZero),tooltip:(0,h.localize)(1441,"Toggle Zero-Based Offset"),location:el.QuickInputButtonLocation.Input,toggle:{checked:this.useZeroBasedOffset}},a=()=>{let e=t.value.trim().substring(eI.GO_TO_LINE_PREFIX.length),{inOffsetMode:i,lineNumber:r,column:s,label:a}=this.parsePosition(o,e);if(t.buttons=i?[n]:[],t.items=[{lineNumber:r,column:s,label:a}],!r)return void this.clearDecorations(o);let d=this.toRange(r,s);o.revealRangeInCenter(d,em.ScrollType.Smooth),this.addDecorations(o,d)};r.add(t.onDidTriggerButton(e=>{e===n&&(this.useZeroBasedOffset=e.toggle?.checked??!this.useZeroBasedOffset,a())})),a(),r.add(t.onDidChangeValue(()=>a()));let d=(0,eh.getCodeEditor)(o);return d&&d.getOptions().get(ep.EditorOption.lineNumbers).renderType===ep.RenderLineNumbersType.Relative&&(d.updateOptions({lineNumbers:"on"}),r.add((0,ec.toDisposable)(()=>d.updateOptions({lineNumbers:"relative"})))),r}toRange(e=1,t=1){return{startLineNumber:e,startColumn:t,endLineNumber:e,endColumn:t}}parsePosition(e,t){let i=this.getModel(e);if(!i)return{label:(0,h.localize)(1440,"Open a text editor first to go to a line or an offset.")};if(t.startsWith(":")){let e=parseInt(t.substring(1),10),o=i.getValueLength();if(isNaN(e))return{inOffsetMode:!0,label:this.useZeroBasedOffset?(0,h.localize)(1442,"Type a character position to go to (from 0 to {0}).",o-1):(0,h.localize)(1443,"Type a character position to go to (from 1 to {0}).",o)};{let t=e<0;this.useZeroBasedOffset||(e-=Math.sign(e)),t&&(e+=o);let r=i.getPositionAt(e),n=eg.CursorColumns.visibleColumnFromColumn(i.getLineContent(r.lineNumber),r.column,i.getOptions().tabSize)+1;return{...r,inOffsetMode:!0,label:(0,h.localize)(1444,"Press 'Enter' to go to line {0} at column {1}.",r.lineNumber,n)}}}{let e=t.split(/,|:|#/),o=i.getLineCount(),r=parseInt(e[0]?.trim(),10);if(e.length<1||isNaN(r))return{label:(0,h.localize)(1445,"Type a line number to go to (from 1 to {0}).",o)};r=Math.min(Math.max(1,r=r>=0?r:o+1+r),o);let n=i.getOptions().tabSize,s=i.getLineContent(r),a=eg.CursorColumns.visibleColumnFromColumn(s,i.getLineMaxColumn(r),n)+1,d=parseInt(e[1]?.trim(),10);return e.length<2||isNaN(d)?{lineNumber:r,column:1,label:e.length<2?(0,h.localize)(1446,"Press 'Enter' to go to line {0} or enter colon : to add a column number.",r):(0,h.localize)(1447,"Press 'Enter' to go to line {0} or enter a column number (from 1 to {1}).",r,a)}:(d=Math.min(Math.max(1,d=d>=0?d:a+d),a),{lineNumber:r,column:eg.CursorColumns.columnFromVisibleColumn(s,d-1,n),label:(0,h.localize)(1444,"Press 'Enter' to go to line {0} at column {1}.",r,d)})}}}var eE=e.i(621826),ew=g;let eD=class extends eI{constructor(e,t,i,o){super(),this.editorService=e,this.editorGroupService=t,this.configurationService=i,this.storageService=o,this.onDidActiveTextEditorControlChange=this.editorService.onDidActiveEditorChange}get configuration(){let e=this.configurationService.getValue().workbench?.editor;return{openEditorPinned:!e?.enablePreviewFromQuickOpen||!e?.enablePreview}}get activeTextEditorControl(){return this.editorService.activeTextEditorControl}gotoLocation(e,t){if((t.keyMods.alt||this.configuration.openEditorPinned&&t.keyMods.ctrlCmd||t.forceSideBySide)&&this.editorService.activeEditor){e.restoreViewState?.();let i={selection:t.range,pinned:t.keyMods.ctrlCmd||this.configuration.openEditorPinned,preserveFocus:t.preserveFocus};this.editorGroupService.sideGroup.openEditor(this.editorService.activeEditor,i)}else super.gotoLocation(e,t)}};eD=(0,o.__decorate)([(0,o.__param)(0,R.IEditorService),(0,o.__param)(1,P.IEditorGroupsService),(0,o.__param)(2,y.IConfigurationService),(0,o.__param)(3,A.IStorageService)],eD);class eA extends ew.Action2{static{this.ID="workbench.action.gotoLine"}constructor(){super({id:eA.ID,title:(0,h.localize2)(6185,"Go to Line/Column..."),f1:!0,keybinding:{weight:S.KeybindingWeight.WorkbenchContrib,when:null,primary:d.KeyMod.CtrlCmd|d.KeyCode.KeyG,mac:{primary:d.KeyMod.WinCtrl|d.KeyCode.KeyG}}})}async run(e){e.get(D.IQuickInputService).quickAccess.show(eD.GO_TO_LINE_PREFIX)}}(0,ew.registerAction2)(eA),eE.Registry.as(w.Extensions.Quickaccess).registerQuickAccessProvider({ctor:eD,prefix:eI.GO_TO_LINE_PREFIX,placeholder:(0,h.localize)(6186,"Type the line number and optional column to go to (e.g. :42:5 for line 42, column 5). Type :: to go to a character offset (e.g. ::1024 for character 1024 from the start of the file). Use negative values to navigate backwards."),helpEntries:[{description:(0,h.localize)(6187,"Go to Line/Column"),commandId:eA.ID}]});class ex extends ew.Action2{static{this.ID="workbench.action.gotoOffset"}constructor(){super({id:ex.ID,title:(0,h.localize2)(6188,"Go to Offset..."),f1:!0})}async run(e){e.get(D.IQuickInputService).quickAccess.show(eD.GO_TO_OFFSET_PREFIX)}}(0,ew.registerAction2)(ex),eE.Registry.as(w.Extensions.Quickaccess).registerQuickAccessProvider({ctor:eD,prefix:eD.GO_TO_OFFSET_PREFIX,placeholder:(0,h.localize)(6186,"Type the line number and optional column to go to (e.g. :42:5 for line 42, column 5). Type :: to go to a character offset (e.g. ::1024 for character 1024 from the start of the file). Use negative values to navigate backwards."),helpEntries:[{description:(0,h.localize)(6189,"Go to Offset"),commandId:ex.ID}]}),e.s([],542154)},193667,e=>{"use strict";var t=e.i(601293),i=e.i(97514),o=e.i(546198),r=e.i(182504),n=e.i(771275),s=e.i(354244),a=e.i(693205);let d=[0,[]];function c(e,i,r,n){if(!e||!i)return d;let s=e.length,a=i.length;if(s<a)return d;let c=e.toLowerCase();return function(e,i,r,n,s,a,d){let c=[],l=[];for(let u=0;u<r;u++){let r=u*a,h=r-a,p=u>0,g=e[u],m=i[u];for(let e=0;e<a;e++){let a,u=e>0,v=r+e,y=v-1,f=h+e-1,_=u?c[y]:0,C=p&&u?c[f]:0,S=p&&u?l[f]:0;(a=!C&&p?0:function(e,i,r,n,s,a){var d,c;let l=0;if((d=i)!==(c=n[s])&&("/"!==d&&"\\"!==d||"/"!==c&&"\\"!==c))return l;if(l+=1,a>0&&(l+=6*Math.min(a,3)+3*Math.max(0,a-3)),e===r[s]&&(l+=1),0===s)l+=8;else{let e=function(e){switch(e){case t.CharCode.Slash:case t.CharCode.Backslash:return 5;case t.CharCode.Underline:case t.CharCode.Dash:case t.CharCode.Period:case t.CharCode.Space:case t.CharCode.SingleQuote:case t.CharCode.DoubleQuote:case t.CharCode.Colon:return 4;default:return 0}}(r.charCodeAt(s-1));e?l+=e:(0,o.isUpper)(r.charCodeAt(s))&&0===a&&(l+=2)}return l}(g,m,n,s,e,S))&&C+a>=_&&(d||p||s.startsWith(i,e))?(l[v]=S+1,c[v]=C+a):(l[v]=0,c[v]=_)}}let u=[],h=r-1,p=a-1;for(;h>=0&&p>=0;)0===l[h*a+p]||(u.push(p),h--),p--;return[c[r*a-1],u.reverse()]}(i,r,a,e,c,s,n)}let l=[void 0,[]];function u(e,t,i,r){let n=(0,o.fuzzyScore)(t.normalized,t.normalizedLowercase,i,e,e.toLowerCase(),r,{firstMatchCanBeWeak:!0,boostFullMatch:!0});return n?[n[0],(0,o.createMatches)(n)]:l}let h=Object.freeze({score:0});function p(e,t,i,o,n){var d,c,l,u,p;let m,y;if(!e||!t.normalized)return h;let f=o.getItemLabel(e);if(!f)return h;let _=o.getItemDescription(e),C=(m=t.values?t.values:[t],(0,r.hash)({[t.normalized]:{values:m.map(e=>({value:e.normalized,expectContiguousMatch:e.expectContiguousMatch})),label:f,description:_,allowNonContiguousMatches:i}})),S=n[C];if(S)return S;let b=(d=f,c=_,l=o.getItemPath(e),u=t,p=i,y=!l||!u.containsPathSeparator,l&&(s.isLinux?u.pathNormalized===l:(0,a.equalsIgnoreCase)(u.pathNormalized,l))?{score:262144,labelMatch:[{start:0,end:d.length}],descriptionMatch:c?[{start:0,end:c.length}]:void 0}:u.values&&u.values.length>1?function(e,t,i,o,r,n){let s=0,a=[],d=[];for(let c of o){let{score:o,labelMatch:l,descriptionMatch:u}=g(e,t,i,c,r,n);if(0===o)return h;s+=o,l&&a.push(...l),u&&d.push(...u)}return{score:s,labelMatch:v(a),descriptionMatch:v(d)}}(d,c,l,u.values,y,p):g(d,c,l,u,y,p));return n[C]=b,b}function g(e,t,i,r,s,a){if(s||!t){let[t,i]=c(e,r.normalized,r.normalizedLowercase,a&&!r.expectContiguousMatch);if(t){let n=(0,o.matchesPrefix)(r.normalized,e);return{score:(n?131072+Math.round(r.normalized.length/e.length*100):65536)+t,labelMatch:n||m(i)}}}if(t){let o=t;i&&(o=`${t}${n.sep}`);let s=o.length,[d,l]=c(`${o}${e}`,r.normalized,r.normalizedLowercase,a&&!r.expectContiguousMatch);if(d){let e=m(l),t=[],i=[];return e.forEach(e=>{e.start<s&&e.end>s?(t.push({start:0,end:e.end-s}),i.push({start:e.start,end:s})):e.start>=s?t.push({start:e.start-s,end:e.end-s}):i.push(e)}),{score:d,labelMatch:t,descriptionMatch:i}}}return h}function m(e){let t,i=[];if(!e)return i;for(let o of e)t&&t.end===o?t.end+=1:(t={start:o,end:o+1},i.push(t));return i}function v(e){let t,i=e.sort((e,t)=>e.start-t.start),o=[];for(let e of i){var r,n;!t||(r=t,n=e,r.end<n.start||n.end<r.start)?(t=e,o.push(e)):(t.start=Math.min(t.start,e.start),t.end=Math.max(t.end,e.end))}return o}function y(e,t,i){let o=-1,r=-1;if(t.descriptionMatch?.length?o=t.descriptionMatch[0].start:t.labelMatch?.length&&(o=t.labelMatch[0].start),t.labelMatch?.length){if(r=t.labelMatch[t.labelMatch.length-1].end,t.descriptionMatch?.length){let t=i.getItemDescription(e);t&&(r+=t.length)}}else t.descriptionMatch?.length&&(r=t.descriptionMatch[t.descriptionMatch.length-1].end);return r-o}function f(e){return e.startsWith('"')&&e.endsWith('"')}function _(e){let t;"string"!=typeof e&&(e="");let i=e.toLowerCase(),{pathNormalized:o,normalized:r,normalizedLowercase:s}=C(e),a=o.indexOf(n.sep)>=0,d=f(e),c=e.split(" ");if(c.length>1)for(let e of c){let i=f(e),{pathNormalized:o,normalized:r,normalizedLowercase:n}=C(e);r&&(t||(t=[]),t.push({original:e,originalLowercase:e.toLowerCase(),pathNormalized:o,normalized:r,normalizedLowercase:n,expectContiguousMatch:i}))}return{original:e,originalLowercase:i,pathNormalized:o,normalized:r,normalizedLowercase:s,values:t,containsPathSeparator:a,expectContiguousMatch:d}}function C(e){let t,i=(t=s.isWindows?e.replace(/\//g,n.sep):e.replace(/\\/g,n.sep)).replace(/[\*\u2026\s"]/g,"").replace(/(?<=.)#$/,"");return{pathNormalized:t,normalized:i,normalizedLowercase:i.toLowerCase()}}e.s(["compareItemsByFuzzyScore",0,function(e,t,o,r,n,s){let a=p(e,o,r,n,s),d=p(t,o,r,n,s),c=a.score,l=d.score;if((262144===c||262144===l)&&c!==l)return 262144===c?-1:1;if(c>65536||l>65536){if(c!==l)return c>l?-1:1;if(c<131072&&l<131072){let e=function(e,t){if(!e&&!t||!e?.length&&!t?.length)return 0;if(!t?.length)return -1;if(!e?.length)return 1;let i=e[0].start,o=e[e.length-1].end-i,r=t[0].start,n=t[t.length-1].end-r;return o===n?0:n<o?1:-1}(a.labelMatch,d.labelMatch);if(0!==e)return e}let i=n.getItemLabel(e)||"",o=n.getItemLabel(t)||"";if(i.length!==o.length)return i.length-o.length}if(c!==l)return c>l?-1:1;let u=Array.isArray(a.labelMatch)&&a.labelMatch.length>0,h=Array.isArray(d.labelMatch)&&d.labelMatch.length>0;if(u&&!h)return -1;if(h&&!u)return 1;let g=y(e,a,n),m=y(t,d,n);return g&&m&&g!==m?m>g?-1:1:function(e,t,o,r){let n=r.getItemLabel(e)||"",s=r.getItemLabel(t)||"",a=r.getItemDescription(e),d=r.getItemDescription(t),c=n.length+(a?a.length:0),l=s.length+(d?d.length:0);if(c!==l)return c-l;let u=r.getItemPath(e),h=r.getItemPath(t);return u&&h&&u.length!==h.length?u.length-h.length:n!==s?(0,i.compareAnything)(n,s,o.normalized):a&&d&&a!==d?(0,i.compareAnything)(a,d,o.normalized):u&&h&&u!==h?(0,i.compareAnything)(u,h,o.normalized):0}(e,t,o,n)},"pieceToQuery",0,function(e){return Array.isArray(e)?_(e.map(e=>e.original).join(" ")):_(e.original)},"prepareQuery",0,_,"scoreFuzzy2",0,function(e,t,i=0,o=0){return t.values&&t.values.length>1?function(e,t,i,o){let r=0,n=[];for(let s of t){let[t,a]=u(e,s,i,o);if("number"!=typeof t)return l;r+=t,n.push(...a)}return[r,v(n)]}(e,t.values,i,o):u(e,t,i,o)},"scoreItemFuzzy",0,p])},746088,e=>{"use strict";var t,i=e.i(281482),o=e.i(590746),r=e.i(704994),n=e.i(155652),s=e.i(536367),a=e.i(193667),d=e.i(611130),c=e.i(693205),l=e.i(166969),u=e.i(600345),h=e.i(772649),p=e.i(952509),g=e.i(906756),m=e.i(650289),v=e.i(407791),y=e.i(237029);let f=class extends g.AbstractEditorNavigationQuickAccessProvider{static{t=this}static{this.PREFIX="@"}static{this.SCOPE_PREFIX=":"}static{this.PREFIX_BY_CATEGORY=`${this.PREFIX}${this.SCOPE_PREFIX}`}constructor(e,t,i=Object.create(null)){super(i),this._languageFeaturesService=e,this._outlineModelService=t,this.options=i,this.options.canAcceptInBackground=!0}provideWithoutTextEditor(e){return this.provideLabelPick(e,(0,m.localize)(1448,"To go to a symbol, first open a text editor with symbol information.")),d.Disposable.None}provideWithTextEditor(e,t,i,o){let r=e.editor,n=this.getModel(r);return n?this._languageFeaturesService.documentSymbolProvider.has(n)?this.doProvideWithEditorSymbols(e,n,t,i,o):this.doProvideWithoutEditorSymbols(e,n,t,i):d.Disposable.None}doProvideWithoutEditorSymbols(e,t,i,o){let r=new d.DisposableStore;return this.provideLabelPick(i,(0,m.localize)(1449,"The active text editor does not provide symbol information.")),(async()=>{await this.waitForLanguageSymbolRegistry(t,r)&&!o.isCancellationRequested&&r.add(this.doProvideWithEditorSymbols(e,t,i,o))})(),r}provideLabelPick(e,t){e.items=[{label:t,index:0,kind:h.SymbolKind.String}],e.ariaLabel=t}async waitForLanguageSymbolRegistry(e,t){if(this._languageFeaturesService.documentSymbolProvider.has(e))return!0;let i=new o.DeferredPromise,r=t.add(this._languageFeaturesService.documentSymbolProvider.onDidChange(()=>{this._languageFeaturesService.documentSymbolProvider.has(e)&&(r.dispose(),i.complete(!0))}));return t.add((0,d.toDisposable)(()=>i.complete(!1))),i.p}doProvideWithEditorSymbols(e,i,o,n,s){let c=e.editor,h=new d.DisposableStore;h.add(o.onDidAccept(t=>{let[i]=o.selectedItems;i&&i.range&&(this.gotoLocation(e,{range:i.range.selection,keyMods:o.keyMods,preserveFocus:t.inBackground}),s?.handleAccept?.(i,t.inBackground),t.inBackground||o.hide())})),h.add(o.onDidTriggerItemButton(({item:t})=>{t&&t.range&&(this.gotoLocation(e,{range:t.range.selection,keyMods:o.keyMods,forceSideBySide:!0}),o.hide())}));let p=this.getDocumentSymbols(i,n),g=h.add(new d.MutableDisposable),v=async e=>{g?.value?.cancel(),o.busy=!1,g.value=new r.CancellationTokenSource,o.busy=!0;try{let r=(0,a.prepareQuery)(o.value.substr(t.PREFIX.length).trim()),s=await this.doGetSymbolPicks(p,r,void 0,g.value.token,i);if(n.isCancellationRequested)return;if(s.length>0){if(o.items=s,e&&0===r.original.length){let t=(0,y.findLast)(s,t=>!!("separator"!==t.type&&t.range&&l.Range.containsPosition(t.range.decoration,e)));t&&(o.activeItems=[t])}}else r.original.length>0?this.provideLabelPick(o,(0,m.localize)(1450,"No matching editor symbols")):this.provideLabelPick(o,(0,m.localize)(1451,"No editor symbols"))}finally{n.isCancellationRequested||(o.busy=!1)}};return h.add(o.onDidChangeValue(()=>v(void 0))),v(c.getSelection()?.getPosition()),h.add(o.onDidChangeActive(()=>{let[e]=o.activeItems;e&&e.range&&(c.revealRangeInCenter(e.range.selection,u.ScrollType.Smooth),this.addDecorations(c,e.range.decoration))})),h}async doGetSymbolPicks(e,i,o,r,d){let u,p,g,v=await e;if(r.isCancellationRequested)return[];let y=0===i.original.indexOf(t.SCOPE_PREFIX),f=+!!y;i.values&&i.values.length>1?(u=(0,a.pieceToQuery)(i.values[0]),p=(0,a.pieceToQuery)(i.values.slice(1))):u=i;let S=this.options?.openSideBySideDirection?.();S&&(g=[{iconClass:"right"===S?s.ThemeIcon.asClassName(n.Codicon.splitHorizontal):s.ThemeIcon.asClassName(n.Codicon.splitVertical),tooltip:"right"===S?(0,m.localize)(1452,"Open to the Side"):(0,m.localize)(1453,"Open to the Bottom")}]);let b=[];for(let e=0;e<v.length;e++){let t,r,n,s,m=v[e],y=(0,c.trim)(m.name),_=`$(${h.SymbolKinds.toIcon(m.kind).id}) ${y}`,C=_.length-y.length,S=m.containerName;if(o?.extraContainerLabel&&(S=S?`${o.extraContainerLabel} • ${S}`:o.extraContainerLabel),i.original.length>f){let e=!1;if(u!==i&&([t,r]=(0,a.scoreFuzzy2)(_,{...i,values:void 0},f,C),"number"==typeof t&&(e=!0)),"number"!=typeof t&&([t,r]=(0,a.scoreFuzzy2)(_,u,f,C),"number"!=typeof t))continue;if(!e&&p){if(S&&p.original.length>0&&([n,s]=(0,a.scoreFuzzy2)(S,p)),"number"!=typeof n)continue;"number"==typeof t&&(t+=n)}}let I=m.tags&&m.tags.indexOf(h.SymbolTag.Deprecated)>=0;b.push({index:e,kind:m.kind,score:t,label:_,ariaLabel:(0,h.getAriaLabelForSymbol)(m.name,m.kind),description:S,highlights:I?void 0:{label:r,description:s},range:{selection:l.Range.collapseToStart(m.selectionRange),decoration:m.range},uri:d.uri,symbolName:y,strikethrough:I,buttons:g})}let I=b.sort((e,t)=>y?this.compareByKindAndScore(e,t):this.compareByScore(e,t)),E=[];if(y){let e,t,i=0;function w(){t&&"number"==typeof e&&i>0&&(t.label=(0,c.format)(C[e]||_,i))}for(let o of I)e!==o.kind?(w(),e=o.kind,i=1,t={type:"separator"},E.push(t)):i++,E.push(o);w()}else I.length>0&&(E=[{label:(0,m.localize)(1454,"symbols ({0})",b.length),type:"separator"},...I]);return E}compareByScore(e,t){if("number"!=typeof e.score&&"number"==typeof t.score)return 1;if("number"==typeof e.score&&"number"!=typeof t.score)return -1;if("number"==typeof e.score&&"number"==typeof t.score){if(e.score>t.score)return -1;else if(e.score<t.score)return 1}return e.index<t.index?-1:+(e.index>t.index)}compareByKindAndScore(e,t){let i=C[e.kind]||_,o=C[t.kind]||_,r=i.localeCompare(o);return 0===r?this.compareByScore(e,t):r}async getDocumentSymbols(e,t){let i=await this._outlineModelService.getOrCreate(e,t);return t.isCancellationRequested?[]:i.asListOfDocumentSymbols()}};f=t=(0,i.__decorate)([(0,i.__param)(0,v.ILanguageFeaturesService),(0,i.__param)(1,p.IOutlineModelService)],f);let _=(0,m.localize)(1455,"properties ({0})"),C={[h.SymbolKind.Method]:(0,m.localize)(1456,"methods ({0})"),[h.SymbolKind.Function]:(0,m.localize)(1457,"functions ({0})"),[h.SymbolKind.Constructor]:(0,m.localize)(1458,"constructors ({0})"),[h.SymbolKind.Variable]:(0,m.localize)(1459,"variables ({0})"),[h.SymbolKind.Class]:(0,m.localize)(1460,"classes ({0})"),[h.SymbolKind.Struct]:(0,m.localize)(1461,"structs ({0})"),[h.SymbolKind.Event]:(0,m.localize)(1462,"events ({0})"),[h.SymbolKind.Operator]:(0,m.localize)(1463,"operators ({0})"),[h.SymbolKind.Interface]:(0,m.localize)(1464,"interfaces ({0})"),[h.SymbolKind.Namespace]:(0,m.localize)(1465,"namespaces ({0})"),[h.SymbolKind.Package]:(0,m.localize)(1466,"packages ({0})"),[h.SymbolKind.TypeParameter]:(0,m.localize)(1467,"type parameters ({0})"),[h.SymbolKind.Module]:(0,m.localize)(1468,"modules ({0})"),[h.SymbolKind.Property]:(0,m.localize)(1455,"properties ({0})"),[h.SymbolKind.Enum]:(0,m.localize)(1469,"enumerations ({0})"),[h.SymbolKind.EnumMember]:(0,m.localize)(1470,"enumeration members ({0})"),[h.SymbolKind.String]:(0,m.localize)(1471,"strings ({0})"),[h.SymbolKind.File]:(0,m.localize)(1472,"files ({0})"),[h.SymbolKind.Array]:(0,m.localize)(1473,"arrays ({0})"),[h.SymbolKind.Number]:(0,m.localize)(1474,"numbers ({0})"),[h.SymbolKind.Boolean]:(0,m.localize)(1475,"booleans ({0})"),[h.SymbolKind.Object]:(0,m.localize)(1476,"objects ({0})"),[h.SymbolKind.Key]:(0,m.localize)(1477,"keys ({0})"),[h.SymbolKind.Field]:(0,m.localize)(1478,"fields ({0})"),[h.SymbolKind.Constant]:(0,m.localize)(1479,"constants ({0})")};e.s(["AbstractGotoSymbolQuickAccessProvider",0,f])},815411,e=>{"use strict";var t,i,o,r,n,s;(r=t||(t={}))[r.OutlinePane=1]="OutlinePane",r[r.Breadcrumbs=2]="Breadcrumbs",r[r.QuickPick=4]="QuickPick",(n=i||(i={})).icons="outline.icons",n.collapseItems="outline.collapseItems",n.problemsEnabled="outline.problems.enabled",n.problemsColors="outline.problems.colors",n.problemsBadges="outline.problems.badges",(s=o||(o={})).Collapsed="alwaysCollapse",s.Expanded="alwaysExpand",e.s(["OutlineTarget",0,t])},188050,641243,846140,770848,782139,669009,e=>{"use strict";var t,i,o,r=e.i(281482),n=e.i(650289),s=e.i(828730),a=e.i(428048),d=e.i(362361),c=e.i(621826),l=e.i(370507),u=e.i(746088),h=e.i(731931),p=e.i(611130),g=e.i(590746),m=e.i(704994),v=e.i(686380),y=e.i(83823),f=e.i(193667),_=e.i(772649),C=e.i(546198),S=e.i(619122),b=e.i(718596),I=e.i(815411),E=e.i(241006),w=e.i(163731),D=e.i(891110),A=e.i(952509),x=e.i(407791),k=e.i(568101),T=e.i(781080),M=e.i(896783);let P=class extends u.AbstractGotoSymbolQuickAccessProvider{static{t=this}constructor(e,t,i,o,r,n){super(o,n,{openSideBySideDirection:()=>this.configuration.openSideBySideDirection}),this.editorService=e,this.editorGroupService=t,this.configurationService=i,this.outlineService=r,this.onDidActiveTextEditorControlChange=this.editorService.onDidActiveEditorChange}get configuration(){let e=this.configurationService.getValue().workbench?.editor;return{openEditorPinned:!e?.enablePreviewFromQuickOpen||!e?.enablePreview,openSideBySideDirection:e?.openSideBySideDirection}}get activeTextEditorControl(){if(!(0,w.isCompositeEditor)(this.editorService.activeEditorPane?.getControl()))return this.editorService.activeTextEditorControl}gotoLocation(e,t){if((t.keyMods.alt||this.configuration.openEditorPinned&&t.keyMods.ctrlCmd||t.forceSideBySide)&&this.editorService.activeEditor){e.restoreViewState?.();let i={selection:t.range,pinned:t.keyMods.ctrlCmd||this.configuration.openEditorPinned,preserveFocus:t.preserveFocus};this.editorGroupService.sideGroup.openEditor(this.editorService.activeEditor,i)}else super.gotoLocation(e,t)}static{this.SYMBOL_PICKS_TIMEOUT=8e3}async getSymbolPicks(e,i,o,r,n){return!await Promise.race([this.waitForLanguageSymbolRegistry(e,r),(0,g.timeout)(t.SYMBOL_PICKS_TIMEOUT)])||n.isCancellationRequested?[]:this.doGetSymbolPicks(this.getDocumentSymbols(e,n),(0,f.prepareQuery)(i),o,n,e)}provideWithoutTextEditor(e){return this.canPickWithOutlineService()?this.doGetOutlinePicks(e):super.provideWithoutTextEditor(e)}canPickWithOutlineService(){return!!this.editorService.activeEditorPane&&this.outlineService.canCreateOutline(this.editorService.activeEditorPane)}doGetOutlinePicks(e){let t=this.editorService.activeEditorPane;if(!t)return p.Disposable.None;let i=new m.CancellationTokenSource,o=new p.DisposableStore;return o.add((0,p.toDisposable)(()=>i.dispose(!0))),e.busy=!0,this.outlineService.createOutline(t,I.OutlineTarget.QuickPick,i.token).then(t=>{if(!t)return;if(i.token.isCancellationRequested)return void t.dispose();o.add(t);let r=t.captureViewState();o.add((0,p.toDisposable)(()=>{0===e.selectedItems.length&&r.dispose()}));let s=t.config.quickPickDataSource.getQuickPickElements(),a=s.map((e,t)=>({kind:_.SymbolKind.File,index:t,score:0,label:e.label,description:e.description,ariaLabel:e.ariaLabel,iconClasses:e.iconClasses}));o.add(e.onDidAccept(()=>{e.hide();let[i]=e.selectedItems;i&&s[i.index]&&t.reveal(s[i.index].element,{},!1,!1)}));let d=()=>{let t=a.filter(t=>{if("@"===e.value)return t.score=0,t.highlights=void 0,!0;let i=e.value.substring(u.AbstractGotoSymbolQuickAccessProvider.PREFIX.length).trim(),o=(0,M.parseLabelWithIcons)(t.label),r=(0,C.fuzzyScore)(i,i.toLowerCase(),0,o.text,o.text.toLowerCase(),0,{firstMatchCanBeWeak:!0,boostFullMatch:!0});return!!r&&(t.score=r[1],t.highlights={label:(0,M.matchesFuzzyIconAware)(i,o)??void 0},!0)});if(0===t.length){let t=(0,n.localize)(6190,"No matching entries");e.items=[{label:t,index:-1,kind:_.SymbolKind.String}],e.ariaLabel=t}else e.items=t};d(),o.add(e.onDidChangeValue(d));let c=new p.MutableDisposable;o.add(c),o.add(e.onDidChangeActive(()=>{let[i]=e.activeItems;i&&s[i.index]?c.value=t.preview(s[i.index].element):c.clear()}))}).catch(t=>{(0,S.onUnexpectedError)(t),e.hide()}).finally(()=>{e.busy=!1}),o}};P=t=(0,r.__decorate)([(0,r.__param)(0,d.IEditorService),(0,r.__param)(1,D.IEditorGroupsService),(0,r.__param)(2,h.IConfigurationService),(0,r.__param)(3,x.ILanguageFeaturesService),(0,r.__param)(4,E.IOutlineService),(0,r.__param)(5,A.IOutlineModelService)],P);class R extends v.Action2{static{this.ID="workbench.action.gotoSymbol"}constructor(){super({id:R.ID,title:{...(0,n.localize2)(6191,"Go to Symbol in Editor..."),mnemonicTitle:(0,n.localize)(6192,"Go to &&Symbol in Editor...")},f1:!0,keybinding:{when:k.ContextKeyExpr.and(T.accessibleViewIsShown.negate(),T.accessibilityHelpIsShown.negate()),weight:b.KeybindingWeight.WorkbenchContrib,primary:y.KeyMod.CtrlCmd|y.KeyMod.Shift|y.KeyCode.KeyO},menu:[{id:v.MenuId.MenubarGoMenu,group:"4_symbol_nav",order:1}]})}run(e){e.get(a.IQuickInputService).quickAccess.show(P.PREFIX,{itemActivation:s.ItemActivation.NONE})}}(0,v.registerAction2)(R),c.Registry.as(l.Extensions.Quickaccess).registerQuickAccessProvider({ctor:P,prefix:u.AbstractGotoSymbolQuickAccessProvider.PREFIX,contextKey:"inFileSymbolsPicker",placeholder:(0,n.localize)(6193,"Type the name of a symbol to go to."),helpEntries:[{description:(0,n.localize)(6194,"Go to Symbol in Editor"),prefix:u.AbstractGotoSymbolQuickAccessProvider.PREFIX,commandId:R.ID,commandCenterOrder:40},{description:(0,n.localize)(6195,"Go to Symbol in Editor by Category"),prefix:u.AbstractGotoSymbolQuickAccessProvider.PREFIX_BY_CATEGORY}]}),e.s([],188050);var L=v,N=e.i(84513),O=e.i(318581),F=e.i(551950),K=e.i(155652);let W={primary:y.KeyMod.CtrlCmd|y.KeyCode.KeyP,secondary:[y.KeyMod.CtrlCmd|y.KeyCode.KeyE],mac:{primary:y.KeyMod.CtrlCmd|y.KeyCode.KeyP,secondary:void 0}};b.KeybindingsRegistry.registerCommandAndKeybindingRule({id:"workbench.action.closeQuickOpen",weight:b.KeybindingWeight.WorkbenchContrib,when:F.inQuickPickContext,primary:y.KeyCode.Escape,secondary:[y.KeyMod.Shift|y.KeyCode.Escape],handler:e=>e.get(a.IQuickInputService).cancel(s.QuickInputHideReason.Gesture)}),b.KeybindingsRegistry.registerCommandAndKeybindingRule({id:"workbench.action.acceptSelectedQuickOpenItem",weight:b.KeybindingWeight.WorkbenchContrib,when:F.inQuickPickContext,primary:0,handler:e=>e.get(a.IQuickInputService).accept()}),b.KeybindingsRegistry.registerCommandAndKeybindingRule({id:"workbench.action.alternativeAcceptSelectedQuickOpenItem",weight:b.KeybindingWeight.WorkbenchContrib,when:F.inQuickPickContext,primary:0,handler:e=>e.get(a.IQuickInputService).accept({ctrlCmd:!0,alt:!1})}),b.KeybindingsRegistry.registerCommandAndKeybindingRule({id:"workbench.action.focusQuickOpen",weight:b.KeybindingWeight.WorkbenchContrib,when:F.inQuickPickContext,primary:0,handler:e=>{e.get(a.IQuickInputService).focus()}});let z="workbench.action.quickOpenNavigateNextInFilePicker";b.KeybindingsRegistry.registerCommandAndKeybindingRule({id:z,weight:b.KeybindingWeight.WorkbenchContrib+50,handler:(0,F.getQuickNavigateHandler)(z,!0),when:F.defaultQuickAccessContext,primary:W.primary,secondary:W.secondary,mac:W.mac});let V="workbench.action.quickOpenNavigatePreviousInFilePicker";b.KeybindingsRegistry.registerCommandAndKeybindingRule({id:V,weight:b.KeybindingWeight.WorkbenchContrib+50,handler:(0,F.getQuickNavigateHandler)(V,!1),when:F.defaultQuickAccessContext,primary:W.primary|y.KeyMod.Shift,secondary:[W.secondary[0]|y.KeyMod.Shift],mac:{primary:W.mac.primary|y.KeyMod.Shift,secondary:void 0}}),b.KeybindingsRegistry.registerCommandAndKeybindingRule({id:"workbench.action.quickPickManyToggle",weight:b.KeybindingWeight.WorkbenchContrib,when:F.inQuickPickContext,primary:0,handler:e=>{e.get(a.IQuickInputService).toggle()}}),b.KeybindingsRegistry.registerCommandAndKeybindingRule({id:"workbench.action.quickInputBack",weight:b.KeybindingWeight.WorkbenchContrib+50,when:F.inQuickPickContext,primary:0,win:{primary:y.KeyMod.Alt|y.KeyCode.LeftArrow},mac:{primary:y.KeyMod.WinCtrl|y.KeyCode.Minus},linux:{primary:y.KeyMod.CtrlCmd|y.KeyMod.Alt|y.KeyCode.Minus},handler:e=>{e.get(a.IQuickInputService).back()}}),(0,L.registerAction2)(class extends L.Action2{constructor(){super({id:"workbench.action.quickOpen",title:(0,n.localize2)(2912,"Go to File..."),metadata:{description:"Quick access",args:[{name:"prefix",schema:{type:"string"}}]},keybinding:{weight:b.KeybindingWeight.WorkbenchContrib,primary:W.primary,secondary:W.secondary,mac:W.mac},f1:!0})}run(e,t){e.get(a.IQuickInputService).quickAccess.show("string"==typeof t?t:void 0,{preserveValue:"string"==typeof t})}}),(0,L.registerAction2)(class extends L.Action2{constructor(){super({id:"workbench.action.quickOpenWithModes",title:(0,n.localize)(2913,"Quick Open"),icon:K.Codicon.search,menu:{id:L.MenuId.CommandCenterCenter,order:100}})}run(e){e.get(a.IQuickInputService).quickAccess.show(void 0,{preserveValue:!0,providerOptions:{includeHelp:!0,from:"commandCenter"}})}}),O.CommandsRegistry.registerCommand("workbench.action.quickOpenPreviousEditor",async e=>{e.get(a.IQuickInputService).quickAccess.show("",{itemActivation:s.ItemActivation.SECOND})});class B extends L.Action2{constructor(e,t,i,o,r){super({id:e,title:t,f1:!0,keybinding:r}),this.id=e,this.next=i,this.quickNavigate=o}async run(e){let t=e.get(N.IKeybindingService),i=e.get(a.IQuickInputService),o=t.lookupKeybindings(this.id),r=this.quickNavigate?{keybindings:o}:void 0;i.navigate(this.next,r)}}(0,L.registerAction2)(class extends B{constructor(){super("workbench.action.quickOpenSelectNext",(0,n.localize2)(2916,"Select Next in Quick Open"),!0,!1,{weight:b.KeybindingWeight.WorkbenchContrib+50,when:F.inQuickPickContext,primary:0,mac:{primary:y.KeyMod.WinCtrl|y.KeyCode.KeyN}})}}),(0,L.registerAction2)(class extends B{constructor(){super("workbench.action.quickOpenSelectPrevious",(0,n.localize2)(2917,"Select Previous in Quick Open"),!1,!1,{weight:b.KeybindingWeight.WorkbenchContrib+50,when:F.inQuickPickContext,primary:0,mac:{primary:y.KeyMod.WinCtrl|y.KeyCode.KeyP}})}}),(0,L.registerAction2)(class extends B{constructor(){super("workbench.action.quickOpenNavigateNext",(0,n.localize2)(2914,"Navigate Next in Quick Open"),!0,!0)}}),(0,L.registerAction2)(class extends B{constructor(){super("workbench.action.quickOpenNavigatePrevious",(0,n.localize2)(2915,"Navigate Previous in Quick Open"),!1,!0)}}),e.s([],641243);let U=class{static{i=this}static{this.PREFIX="?"}constructor(e,t){this.quickInputService=e,this.keybindingService=t,this.registry=c.Registry.as(l.Extensions.Quickaccess)}provide(e){let t=new p.DisposableStore;return t.add(e.onDidAccept(()=>{let[t]=e.selectedItems;t&&this.quickInputService.quickAccess.show(t.prefix,{preserveValue:!0})})),t.add(e.onDidChangeValue(e=>{let t=this.registry.getQuickAccessProvider(e.substr(i.PREFIX.length));t&&t.prefix&&t.prefix!==i.PREFIX&&this.quickInputService.quickAccess.show(t.prefix,{preserveValue:!0})})),e.items=this.getQuickAccessProviders().filter(e=>e.prefix!==i.PREFIX),t}getQuickAccessProviders(){return this.registry.getQuickAccessProviders().sort((e,t)=>e.prefix.localeCompare(t.prefix)).flatMap(e=>this.createPicks(e))}createPicks(e){return e.helpEntries.map(t=>{let i=t.prefix||e.prefix,o=i||"…";return{prefix:i,label:o,keybinding:t.commandId?this.keybindingService.lookupKeybinding(t.commandId):void 0,ariaLabel:(0,n.localize)(2014,"{0}, {1}",o,t.description),description:t.description}})}};U=i=(0,r.__decorate)([(0,r.__param)(0,a.IQuickInputService),(0,r.__param)(1,N.IKeybindingService)],U);var H=e.i(226235),q=e.i(305063),G=e.i(447186),$=e.i(99419),Q=e.i(812491),j=e.i(195911),Y=e.i(9753),X=e.i(693205),Z=v,J=e.i(262072),ee=e.i(34422),et=e.i(423962),ei=e.i(352853);let eo=class extends H.PickerQuickAccessProvider{static{o=this}static{this.PREFIX="view "}constructor(e,t,i,r,s,a,d,c){super(o.PREFIX,{noResultsPick:{label:(0,n.localize)(10212,"No matching views"),containerLabel:""}}),this.viewDescriptorService=e,this.viewsService=t,this.outputService=i,this.terminalService=r,this.terminalGroupService=s,this.debugService=a,this.paneCompositeService=d,this.contextKeyService=c}_getPicks(e){let t,i=this.doGetViewPickItems().filter(t=>!e||(t.highlights={label:(0,C.matchesFuzzy)(e,t.label,!0)??void 0},t.highlights.label||(0,X.fuzzyContains)(t.containerLabel,e))),o=new Map;for(let e of i)o.has(e.label)||o.set(e.label,e.containerLabel);let r=[];for(let e of i){if(t!==e.containerLabel){let i;t=e.containerLabel,i=o.has(t)?`${o.get(t)} / ${t}`:t,r.push({type:"separator",label:i})}r.push(e)}return r}doGetViewPickItems(){let e=[],t=(e,t)=>{let i=this.viewDescriptorService.getViewContainerModel(t),o=[];for(let e of i.allViewDescriptors)this.contextKeyService.contextMatchesRules(e.when)&&o.push({label:e.name.value,containerLabel:i.title,accept:()=>this.viewsService.openView(e.id,!0)});return o},i=(t,i)=>{let o=this.paneCompositeService.getPaneComposites(t),r=this.paneCompositeService.getVisiblePaneCompositeIds(t);for(let n of(o.sort((e,t)=>{let i=r.findIndex(t=>e.id===t),n=r.findIndex(e=>t.id===e);return i<0&&(i=o.indexOf(e)+r.length),n<0&&(n=o.indexOf(t)+r.length),i-n}),o))if(this.includeViewContainer(n)){let o=this.viewDescriptorService.getViewContainerById(n.id);o&&e.push({label:this.viewDescriptorService.getViewContainerModel(o).title,containerLabel:i,accept:()=>this.paneCompositeService.openPaneComposite(n.id,t,!0)})}};i(q.ViewContainerLocation.Sidebar,(0,n.localize)(10213,"Side Bar")),i(q.ViewContainerLocation.Panel,(0,n.localize)(10214,"Panel")),i(q.ViewContainerLocation.AuxiliaryBar,(0,n.localize)(10215,"Secondary Side Bar"));let o=i=>{for(let o of this.paneCompositeService.getPaneComposites(i)){let i=this.viewDescriptorService.getViewContainerById(o.id);i&&e.push(...t(o,i))}};for(let t of(o(q.ViewContainerLocation.Sidebar),o(q.ViewContainerLocation.Panel),o(q.ViewContainerLocation.AuxiliaryBar),this.terminalGroupService.groups.forEach((t,i)=>{t.terminalInstances.forEach((t,o)=>{let r=(0,n.localize)(10216,"{0}: {1}",`${i+1}.${o+1}`,t.title);e.push({label:r,containerLabel:(0,n.localize)(10217,"Terminal"),accept:async()=>{await this.terminalGroupService.showPanel(!0),this.terminalService.setActiveInstance(t)}})})}),this.debugService.getModel().getSessions(!0).filter(e=>e.hasSeparateRepl()).forEach((t,i)=>{let o=t.name;e.push({label:o,containerLabel:(0,n.localize)(10218,"Debug Console"),accept:async()=>{await this.debugService.focusStackFrame(void 0,void 0,t,{explicit:!0}),this.viewsService.isViewVisible(et.REPL_VIEW_ID)||await this.viewsService.openView(et.REPL_VIEW_ID,!0)}})}),this.outputService.getChannelDescriptors()))e.push({label:t.label,containerLabel:(0,n.localize)(10219,"Output"),accept:()=>this.outputService.showChannel(t.id)});return e}includeViewContainer(e){let t=this.viewDescriptorService.getViewContainerById(e.id);return!t?.hideIfEmpty||this.viewDescriptorService.getViewContainerModel(t).activeViewDescriptors.length>0}};eo=o=(0,r.__decorate)([(0,r.__param)(0,G.IViewDescriptorService),(0,r.__param)(1,$.IViewsService),(0,r.__param)(2,Q.IOutputService),(0,r.__param)(3,j.ITerminalService),(0,r.__param)(4,j.ITerminalGroupService),(0,r.__param)(5,ei.IDebugService),(0,r.__param)(6,ee.IPaneCompositePartService),(0,r.__param)(7,Y.IContextKeyService)],eo);class er extends Z.Action2{static{this.ID="workbench.action.openView"}constructor(){super({id:er.ID,title:(0,n.localize2)(10220,"Open View"),category:J.Categories.View,f1:!0})}async run(e){e.get(a.IQuickInputService).quickAccess.show(eo.PREFIX)}}class en extends Z.Action2{static{this.ID="workbench.action.quickOpenView"}static{this.KEYBINDING={primary:y.KeyMod.CtrlCmd|y.KeyCode.KeyQ,mac:{primary:y.KeyMod.WinCtrl|y.KeyCode.KeyQ},linux:{primary:0}}}constructor(){super({id:en.ID,title:(0,n.localize2)(10221,"Quick Open View"),category:J.Categories.View,f1:!1,keybinding:{weight:b.KeybindingWeight.WorkbenchContrib,when:void 0,...en.KEYBINDING}})}async run(e){let t=e.get(N.IKeybindingService),i=e.get(a.IQuickInputService),o=t.lookupKeybindings(en.ID);i.quickAccess.show(eo.PREFIX,{quickNavigateConfiguration:{keybindings:o},itemActivation:s.ItemActivation.FIRST})}}var es=e.i(839511),ea=e.i(704409);let ed=c.Registry.as(l.Extensions.Quickaccess);ed.registerQuickAccessProvider({ctor:U,prefix:U.PREFIX,placeholder:(0,n.localize)(10200,"Type '{0}' to get help on the actions you can take from here.",U.PREFIX),helpEntries:[{description:(0,n.localize)(10201,"Show all Quick Access Providers"),commandCenterOrder:70,commandCenterLabel:(0,n.localize)(10202,"More")}]}),ed.registerQuickAccessProvider({ctor:eo,prefix:eo.PREFIX,contextKey:"inViewsPicker",placeholder:(0,n.localize)(10203,"Type the name of a view, output channel or terminal to open."),helpEntries:[{description:(0,n.localize)(10204,"Open View"),commandId:er.ID}]}),ed.registerQuickAccessProvider({ctor:es.CommandsQuickAccessProvider,prefix:es.CommandsQuickAccessProvider.PREFIX,contextKey:"inCommandsPicker",placeholder:(0,n.localize)(10205,"Type the name of a command to run."),helpEntries:[{description:(0,n.localize)(10206,"Show and Run Commands"),commandId:es.ShowAllCommandsAction.ID,commandCenterOrder:20}]}),v.MenuRegistry.appendMenuItem(v.MenuId.MenubarViewMenu,{group:"1_open",command:{id:es.ShowAllCommandsAction.ID,title:(0,n.localize)(10207,"&&Command Palette...")},order:1}),v.MenuRegistry.appendMenuItem(v.MenuId.MenubarHelpMenu,{group:"1_welcome",command:{id:es.ShowAllCommandsAction.ID,title:(0,n.localize)(10208,"Show All Commands")},order:2}),v.MenuRegistry.appendMenuItem(v.MenuId.MenubarViewMenu,{group:"1_open",command:{id:er.ID,title:(0,n.localize)(10209,"&&Open View...")},order:2}),v.MenuRegistry.appendMenuItem(v.MenuId.MenubarGoMenu,{group:"5_infile_nav",command:{id:"workbench.action.gotoLine",title:(0,n.localize)(10210,"Go to &&Line/Column...")},order:1}),v.MenuRegistry.appendMenuItem(v.MenuId.GlobalActivity,{group:"1_command",command:{id:es.ShowAllCommandsAction.ID,title:(0,n.localize)(10211,"Command Palette...")},order:1}),v.MenuRegistry.appendMenuItem(v.MenuId.EditorContext,{group:"z_commands",when:ea.EditorContextKeys.editorSimpleInput.toNegated(),command:{id:es.ShowAllCommandsAction.ID,title:(0,n.localize)(10211,"Command Palette...")},order:1}),(0,v.registerAction2)(es.ClearCommandHistoryAction),(0,v.registerAction2)(es.ShowAllCommandsAction),(0,v.registerAction2)(er),(0,v.registerAction2)(en);let ec=k.ContextKeyExpr.and(F.inQuickPickContext,k.ContextKeyExpr.has("inViewsPicker")),el=en.KEYBINDING,eu="workbench.action.quickOpenNavigateNextInViewPicker";b.KeybindingsRegistry.registerCommandAndKeybindingRule({id:eu,weight:b.KeybindingWeight.WorkbenchContrib+50,handler:(0,F.getQuickNavigateHandler)(eu,!0),when:ec,primary:el.primary,linux:el.linux,mac:el.mac});let eh="workbench.action.quickOpenNavigatePreviousInViewPicker";b.KeybindingsRegistry.registerCommandAndKeybindingRule({id:eh,weight:b.KeybindingWeight.WorkbenchContrib+50,handler:(0,F.getQuickNavigateHandler)(eh,!1),when:ec,primary:el.primary|y.KeyMod.Shift,linux:el.linux,mac:{primary:el.mac.primary|y.KeyMod.Shift}}),e.s([],846140);var ep=e.i(802136),eg=v,em=e.i(683578),ev=e.i(565836),ey=e.i(697786),ef=p,e_=e.i(65579),eC=e.i(176876);let eS=class extends ef.Disposable{static{this.ID="workbench.contrib.externalUriResolver"}constructor(e,t){super(),t.options?.resolveExternalUri&&this._register(e.registerExternalUriResolver({resolveExternalUri:async e=>({resolved:await t.options.resolveExternalUri(e),dispose:()=>{}})}))}};eS=(0,r.__decorate)([(0,r.__param)(0,e_.IOpenerService),(0,r.__param)(1,eC.IBrowserWorkbenchEnvironmentService)],eS);var eb=e.i(347589),eI=e.i(701575),eE=e.i(140889),ew=e.i(693162),eD=e.i(292608);let eA=ep.URI.parse("trustedDomains:/Trusted Domains"),ex="http.linkProtectionTrustedDomains",ek="http.linkProtectionTrustedDomainsContent";async function eT(e,t){let i;await e.openEditor({resource:t,languageId:"jsonc",options:{pinned:!0}});let o=e.activeTextEditorControl;if(!(0,w.isCodeEditor)(o))return;let r=o.getModel();if(!r||!(0,ew.isEqual)(r.uri,t))return;let n=(0,eD.createScanner)(r.getValue(),!0);for(let e=n.scan();e!==eD.SyntaxKind.EOF;e=n.scan())if(e===eD.SyntaxKind.OpenBracketToken){i=n.getTokenOffset()+n.getTokenLength();let e=n.scan();e!==eD.SyntaxKind.EOF&&e!==eD.SyntaxKind.CloseBracketToken&&(i=n.getTokenOffset());break}if(void 0!==i){let e=r.getPositionAt(i);o.setPosition(e),o.revealPositionInCenter(e)}}let eM={id:"workbench.action.manageTrustedDomain",description:{description:(0,n.localize2)(12912,"Manage Trusted Domains"),args:[]},handler:async e=>{let t=e.get(d.IEditorService);await eT(t,eA)}};async function eP(e,t,i,o,r,s,a){let d=ep.URI.parse(t),c=d.authority.split("."),l=c.slice(c.length-2).join("."),u=[];if(u.push({type:"item",label:(0,n.localize)(12913,"Trust {0}",t),id:"trust",toTrust:t,picked:!0}),4===c.length&&c.every(e=>Number.isInteger(+e)||Number.isInteger(+e.split(":")[0]))){if(d.authority.includes(":")){let e=d.authority.split(":")[0];u.push({type:"item",label:(0,n.localize)(12914,"Trust {0} on all ports",e),toTrust:e+":*",id:"trust"})}}else u.push({type:"item",label:(0,n.localize)(12915,"Trust {0} and all its subdomains",l),toTrust:"*."+l,id:"trust"});u.push({type:"item",label:(0,n.localize)(12916,"Trust all domains (disables link protection)"),toTrust:"*",id:"trust"}),u.push({type:"item",label:(0,n.localize)(12917,"Manage Trusted Domains"),id:"manage"});let h=await o.pick(u,{activeItem:u[0]});if(h&&h.id)switch(h.id){case"manage":{let t=eA.with({fragment:i.toString()});return await eT(s,t),e}case"trust":{let t=h.toTrust;if(-1===e.indexOf(t))return r.remove(ek,eI.StorageScope.APPLICATION),r.store(ex,JSON.stringify([...e,t]),eI.StorageScope.APPLICATION,eI.StorageTarget.USER),[...e,t]}}return[]}async function eR(e){let{defaultTrustedDomains:t,trustedDomains:i}=eL(e);return{defaultTrustedDomains:t,trustedDomains:i}}function eL(e){let t=e.get(eE.IStorageService),i=e.get(eb.IProductService),o=e.get(eC.IBrowserWorkbenchEnvironmentService),r=[...i.linkProtectionTrustedDomains??[],...o.options?.additionalTrustedDomains??[]],n=[];try{let e=t.get(ex,eI.StorageScope.APPLICATION);e&&(n=JSON.parse(e))}catch(e){}return{defaultTrustedDomains:r,trustedDomains:n}}var eN=e.i(781808),eO=e.i(652731),eF=e.i(553638),eK=e.i(107043),eW=e.i(535567),ez=e.i(488259);let eV={type:eO.FileType.File,ctime:Date.now(),mtime:Date.now(),size:0},eB=`// Links matching one or more entries in the list below can be opened without link protection.
|
|
47
|
+
// The following examples show what entries can look like:
|
|
48
|
+
// - "https://microsoft.com": Matches this specific domain using https
|
|
49
|
+
// - "https://microsoft.com:8080": Matches this specific domain on this port using https
|
|
50
|
+
// - "https://microsoft.com:*": Matches this specific domain on any port using https
|
|
51
|
+
// - "https://microsoft.com/foo": Matches https://microsoft.com/foo and https://microsoft.com/foo/bar,
|
|
52
|
+
// but not https://microsoft.com/foobar or https://microsoft.com/bar
|
|
53
|
+
// - "https://*.microsoft.com": Match all domains ending in "microsoft.com" using https
|
|
54
|
+
// - "microsoft.com": Match this specific domain using either http or https
|
|
55
|
+
// - "*.microsoft.com": Match all domains ending in "microsoft.com" using either http or https
|
|
56
|
+
// - "http://192.168.0.1: Matches this specific IP using http
|
|
57
|
+
// - "http://192.168.0.*: Matches all IP's with this prefix using http
|
|
58
|
+
// - "*": Match all domains using either http or https
|
|
59
|
+
//
|
|
60
|
+
`,eU=`//
|
|
61
|
+
// You can use the "Manage Trusted Domains" command to open this file.
|
|
62
|
+
// Save this file to apply the trusted domains rules.
|
|
63
|
+
`,eH=`[
|
|
64
|
+
// "https://microsoft.com"
|
|
65
|
+
]`,eq=class{static{this.ID="workbench.contrib.trustedDomainsFileSystemProvider"}constructor(e,t,i){this.fileService=e,this.storageService=t,this.instantiationService=i,this.capabilities=eO.FileSystemProviderCapabilities.FileReadWrite,this.onDidChangeCapabilities=eN.Event.None,this.onDidChangeFile=eN.Event.None,this.fileService.registerProvider("trustedDomains",this)}stat(e){return Promise.resolve(eV)}async readFile(e){let t,i=this.storageService.get(ek,eI.StorageScope.APPLICATION),o=e.fragment,{defaultTrustedDomains:r,trustedDomains:n}=await this.instantiationService.invokeFunction(eR);return(!i||-1===i.indexOf(eB)||-1===i.indexOf(eU)||-1===i.indexOf(o??"")||[...r,...n].some(e=>!(0,eW.assertReturnsDefined)(i).includes(e)))&&(t=eB,r.length>0?(t+=`// By default, VS Code trusts "localhost" as well as the following domains:
|
|
66
|
+
`,r.forEach(e=>{t+=`// - "${e}"
|
|
67
|
+
`})):t+=`// By default, VS Code trusts "localhost".
|
|
68
|
+
`,t+=eU,t+=o?`
|
|
69
|
+
// Currently configuring trust for ${o}
|
|
70
|
+
`:"",0===n.length?t+=eH:t+=JSON.stringify(n,null,2),i=t),eK.VSBuffer.fromString(i).buffer}writeFile(e,t,i){try{let e=eK.VSBuffer.wrap(t).toString(),i=(0,eD.parse)(e);this.storageService.store(ek,e,eI.StorageScope.APPLICATION,eI.StorageTarget.USER),this.storageService.store(ex,JSON.stringify(i)||"",eI.StorageScope.APPLICATION,eI.StorageTarget.USER)}catch(e){}return Promise.resolve()}watch(e,t){return{dispose(){}}}mkdir(e){return Promise.resolve(void 0)}readdir(e){return Promise.resolve(void 0)}delete(e,t){return Promise.resolve(void 0)}rename(e,t,i){return Promise.resolve(void 0)}};eq=(0,r.__decorate)([(0,r.__param)(0,eF.IFileService),(0,r.__param)(1,eE.IStorageService),(0,r.__param)(2,ez.IInstantiationService)],eq);var eG=e.i(702320),e$=e.i(770326),eQ=e.i(95526),ej=e.i(324726),eY=e.i(536766),eX=e.i(168363),eZ=e.i(380928);function eJ(e){let t="string"==typeof e?ep.URI.parse(e):e;return t.with({path:t.path.replace(/\/+$/,""),query:null,fragment:null})}function e0(e,t){let i,o=eJ(e);if(/^[^./:]*:\/\//.test(t))i=eJ(t);else{if("http"!==o.scheme&&"https"!==o.scheme)return!1;i=eJ(`${o.scheme}://${t}`)}return e1(o.scheme,i.scheme)&&e1(o.authority,i.authority,!0)&&("/"===i.path||e1(o.path,i.path))}function e1(e,t,i=!1){return function e(t,i,o,r,n,s){if(t[n]?.[s]!==void 0)return t[n][s];let a=[];if(n===o.length)return s===r.length||!!i&&r[s]+r[s+1]===":*"&&s+2===r.length;if(s===r.length)return"/"===o.slice(n)[0];if(o[n]===r[s]&&a.push(e(t,i,o,r,n+1,s+1)),r[s]+r[s+1]==="*."&&(["/",":"].includes(o[n])||a.push(e(t,i,o,r,n+1,s)),a.push(e(t,i,o,r,n,s+2))),"*"===r[s]&&(n+1===o.length?a.push(e(t,i,o,r,n+1,s+1)):a.push(e(t,i,o,r,n+1,s)),a.push(e(t,i,o,r,n,s+1))),i&&r[s]+r[s+1]===":*")if(":"===o[n]){let d=n+1;do d++;while(/[0-9]/.test(o[d]))a.push(e(t,i,o,r,d,s+2))}else a.push(e(t,i,o,r,n,s+2));return t[n][s]=a.some(e=>!0===e)}(Array.from({length:e.length+1}).map(()=>Array.from({length:t.length+1}).map(()=>void 0)),i,e,t,0,0)}function e2(e,t){var i;if(e=ep.URI.parse(e3(e)),t=t.map(e3),e8.test(i=e.authority)||e5.test(i)||e6.test(i))return!0;for(let i=0;i<t.length;i++)if("*"===t[i]||e0(e,t[i]))return!0;return!1}function e3(e){try{let t="string"==typeof e?ep.URI.parse(e,!0):e;if(["github.com"].includes(t.authority))return t.with({path:t.path.toLowerCase()}).toString(!0);return t.toString(!0)}catch{return e.toString()}}e.s(["testUrlMatchesGlob",0,e0],770848);let e8=/^(.+\.)?localhost(:\d+)?$/i,e5=/^127.0.0.1(:\d+)?$/,e6=/^\[::1\](:\d+)?$/,e7=class{constructor(e,t,i,o,r,n,s,a,d,c,l,u){this._openerService=e,this._storageService=t,this._dialogService=i,this._productService=o,this._quickInputService=r,this._editorService=n,this._clipboardService=s,this._telemetryService=a,this._instantiationService=d,this._configurationService=c,this._workspaceTrustService=l,this._trustedDomainService=u,this._openerService.registerValidator({shouldOpen:(e,t)=>this.validateLink(e,t)})}async validateLink(e,t){let i;if(!(0,eG.matchesScheme)(e,eG.Schemas.http)&&!(0,eG.matchesScheme)(e,eG.Schemas.https)||t?.fromWorkspace&&this._workspaceTrustService.isWorkspaceTrusted()&&!this._configurationService.getValue("workbench.trustedDomains.promptInTrustedWorkspace")||(i="string"==typeof e?ep.URI.parse(e):e,this._trustedDomainService.isValid(i)))return!0;{let{scheme:t,authority:o,path:r,query:s,fragment:a}=i,d=`${t}://${o}${r}`,c=`${s?"?"+s:""}${a?"#"+a:""}`,l=Math.min(Math.max(5,Math.max(0,60-d.length)),c.length);l===c.length?d+=c:d+=c.charAt(0)+"..."+c.substring(c.length-l+1);let{result:u}=await this._dialogService.prompt({type:e$.default.Info,message:(0,n.localize)(12918,"Do you want {0} to open the external website?",this._productService.nameShort),detail:"string"==typeof e?e:d,buttons:[{label:(0,n.localize)(12919,"&&Open"),run:()=>!0},{label:(0,n.localize)(12920,"&&Copy"),run:()=>(this._clipboardService.writeText("string"==typeof e?e:i.toString(!0)),!1)},{label:(0,n.localize)(12921,"Configure &&Trusted Domains"),run:async()=>{let{trustedDomains:e}=this._instantiationService.invokeFunction(eL),r=`${t}://${o}`,n=await eP(e,r,i,this._quickInputService,this._storageService,this._editorService);return!!(-1!==n.indexOf("*")||e2(i,n))}}],cancelButton:{run:()=>!1}});return u}}};e7=(0,r.__decorate)([(0,r.__param)(0,e_.IOpenerService),(0,r.__param)(1,eE.IStorageService),(0,r.__param)(2,ej.IDialogService),(0,r.__param)(3,eb.IProductService),(0,r.__param)(4,a.IQuickInputService),(0,r.__param)(5,d.IEditorService),(0,r.__param)(6,eQ.IClipboardService),(0,r.__param)(7,eY.ITelemetryService),(0,r.__param)(8,ez.IInstantiationService),(0,r.__param)(9,h.IConfigurationService),(0,r.__param)(10,eX.IWorkspaceTrustManagementService),(0,r.__param)(11,eZ.ITrustedDomainService)],e7);var e9=e.i(2267),e4=e.i(803777),te=e.i(850887),tt=e.i(865562),ti=p;let to=class extends ti.Disposable{constructor(e,t){super(),this._instantiationService=e,this._storageService=t,this._onDidChangeTrustedDomains=this._register(new eN.Emitter),this.onDidChangeTrustedDomains=this._onDidChangeTrustedDomains.event;const i=()=>new te.WindowIdleValue(tt.mainWindow,()=>{let{defaultTrustedDomains:e,trustedDomains:t}=this._instantiationService.invokeFunction(eL);return[...e,...t]});this._staticTrustedDomainsResult=i(),this._register(this._storageService.onDidChangeValue(eI.StorageScope.APPLICATION,ex,this._store)(()=>{this._staticTrustedDomainsResult?.dispose(),this._staticTrustedDomainsResult=i(),this._onDidChangeTrustedDomains.fire()}))}get trustedDomains(){return this._staticTrustedDomainsResult.value}isValid(e){let{defaultTrustedDomains:t,trustedDomains:i}=this._instantiationService.invokeFunction(eL);return e2(e,[...t,...i])}};to=(0,r.__decorate)([(0,r.__param)(0,ez.IInstantiationService),(0,r.__param)(1,eE.IStorageService)],to),e.s(["TrustedDomainService",0,to],782139),e.i(157255);class tr extends eg.Action2{static{this.STORAGE_KEY="workbench.action.url.openUrl.lastInput"}constructor(){super({id:"workbench.action.url.openUrl",title:(0,n.localize2)(12922,"Open URL"),category:J.Categories.Developer,f1:!0})}async run(e){let t=e.get(a.IQuickInputService),i=e.get(ev.IURLService),o=e.get(eE.IStorageService),r=o.get(tr.STORAGE_KEY,eI.StorageScope.WORKSPACE,"");return t.input({prompt:(0,n.localize)(12923,"URL to open"),value:r}).then(e=>{if(e){let t=ep.URI.parse(e);i.open(t,{originalUrl:e}),o.store(tr.STORAGE_KEY,e,eI.StorageScope.WORKSPACE,eI.StorageTarget.MACHINE)}})}}(0,eg.registerAction2)(tr),O.CommandsRegistry.registerCommand(eM),eg.MenuRegistry.appendMenuItem(eg.MenuId.CommandPalette,{command:{id:eM.id,title:eM.description.description}}),c.Registry.as(ey.Extensions.Workbench).registerWorkbenchContribution(e7,em.LifecyclePhase.Restored),(0,ey.registerWorkbenchContribution2)(eq.ID,eq,ey.WorkbenchPhase.BlockRestore),(0,ey.registerWorkbenchContribution2)(eS.ID,eS,ey.WorkbenchPhase.BlockRestore),c.Registry.as(e9.Extensions.Configuration).registerConfiguration({...e4.workbenchConfigurationNodeBase,properties:{"workbench.trustedDomains.promptInTrustedWorkspace":{scope:e9.ConfigurationScope.APPLICATION,type:"boolean",default:!1,description:(0,n.localize)(12924,"When enabled, trusted domain prompts will appear when opening links in trusted workspaces.")}}}),e.s([],669009)},612158,e=>{"use strict";var t,i=e.i(281482),o=e.i(781808),r=e.i(786091),n=e.i(611130),s=e.i(771275),a=e.i(693162),d=e.i(731931);e.i(157255);var c=e.i(399362),l=e.i(802186);e.i(488259);let u=class extends n.Disposable{static{t=this}static{this.SETTING_ID_PATTERNS="workbench.editor.customLabels.patterns"}static{this.SETTING_ID_ENABLED="workbench.editor.customLabels.enabled"}constructor(e,t){super(),this.configurationService=e,this.workspaceContextService=t,this._onDidChange=this._register(new o.Emitter),this.onDidChange=this._onDidChange.event,this.patterns=[],this.enabled=!0,this.cache=new l.MRUCache(1e3),this._templateRegexValidation=/[a-zA-Z0-9]/,this._parsedTemplateExpression=/\$\{(dirname|filename|extname|extname\((?<extnameN>[-+]?\d+)\)|dirname\((?<dirnameN>[-+]?\d+)\))\}/g,this._filenameCaptureExpression=/(?<filename>^\.*[^.]*)/,this.storeEnablementState(),this.storeCustomPatterns(),this.registerListeners()}registerListeners(){this._register(this.configurationService.onDidChangeConfiguration(e=>{if(e.affectsConfiguration(t.SETTING_ID_ENABLED)){let e=this.enabled;this.storeEnablementState(),e!==this.enabled&&this.patterns.length>0&&this._onDidChange.fire()}else e.affectsConfiguration(t.SETTING_ID_PATTERNS)&&(this.cache.clear(),this.storeCustomPatterns(),this._onDidChange.fire())}))}storeEnablementState(){this.enabled=this.configurationService.getValue(t.SETTING_ID_ENABLED)}storeCustomPatterns(){this.patterns=[];let e=this.configurationService.getValue(t.SETTING_ID_PATTERNS);for(let t in e){let i=e[t];if(!this._templateRegexValidation.test(i))continue;let o=(0,s.isAbsolute)(t),n=(0,r.parse)(t,{ignoreCase:!0});this.patterns.push({pattern:t,template:i,isAbsolutePath:o,parsedPattern:n})}this.patterns.sort((e,t)=>this.patternWeight(t.pattern)-this.patternWeight(e.pattern))}patternWeight(e){let t=0;for(let i of e.split("/"))"**"===i?t+=1:"*"===i?t+=10:i.includes("*")||i.includes("?")?t+=50:""!==i&&(t+=100);return t}getName(e){if(!this.enabled||0===this.patterns.length)return;let t=e.toString(),i=this.cache.get(t);if(void 0!==i)return i??void 0;let o=this.applyPatterns(e);return this.cache.set(t,o??null),o}applyPatterns(e){let t,i=this.workspaceContextService.getWorkspaceFolder(e);for(let o of this.patterns){let r;if(i&&!o.isAbsolutePath?(t||(t=(0,a.relativePath)((0,a.dirname)(i.uri),e)??e.path),r=t):r=e.path,o.parsedPattern(r))return this.applyTemplate(o.template,e,r)}}applyTemplate(e,t,i){let o;return e.replace(this._parsedTemplateExpression,(e,r,...n)=>{o=o??(0,s.parse)(t.path);let{dirnameN:a="0",extnameN:d="0"}=n.pop();if("filename"===r){let{filename:e}=this._filenameCaptureExpression.exec(o.base)?.groups??{};if(e)return e}else if("extname"===r){let e=this.getExtnames(o.base);if(e)return e}else if(r.startsWith("extname")){let e=parseInt(d),t=this.getNthExtname(o.base,e);if(t)return t}else if(r.startsWith("dirname")){let e=parseInt(a),t=this.getNthDirname((0,s.dirname)(i),e);if(t)return t}return e})}removeLeadingDot(e){let t=e;for(;t.startsWith(".");)t=t.slice(1);return t}getNthDirname(e,t){let i=(e=e.startsWith("/")?e.slice(1):e).split("/");return this.getNthFragment(i,t)}getExtnames(e){return this.removeLeadingDot(e).split(".").slice(1).join(".")}getNthExtname(e,t){let i=this.removeLeadingDot(e).split(".");return i.shift(),this.getNthFragment(i,t)}getNthFragment(e,t){let i=e.length,o=e[t<0?Math.abs(t)-1:i-t-1];if(void 0!==o&&""!==o)return o}};u=t=(0,i.__decorate)([(0,i.__param)(0,d.IConfigurationService),(0,i.__param)(1,c.IWorkspaceContextService)],u),e.s(["CustomEditorLabelService",0,u])},88702,e=>{"use strict";var t,i;(i=t||(t={}))[i.SHORT=0]="SHORT",i[i.MEDIUM=1]="MEDIUM",i[i.LONG=2]="LONG",e.s(["Verbosity",0,t])},319475,e=>{"use strict";var t,i,o,r=e.i(281482),n=e.i(650289),s=e.i(693162),a=e.i(731931),d=e.i(362361),c=e.i(611130),l=e.i(193391),u=e.i(176876),h=e.i(578953),p=e.i(399362),g=e.i(354244),m=e.i(693205),v=e.i(82648),y=e.i(88702),f=e.i(370973),_=e.i(781808),C=e.i(590746),S=e.i(347589),b=e.i(702320),I=e.i(927718),E=e.i(17607),w=e.i(99419),D=e.i(163731),A=e.i(9753),x=e.i(850887),k=e.i(359661),T=e.i(627886);(t=o||(o={})).titleSeparator="window.titleSeparator",t.title="window.title";let M=(()=>{if(g.isMacintosh&&g.isNative)return"${activeEditorShort}${separator}${rootName}${separator}${profileName}";let e="${dirty}${activeEditorShort}${separator}${rootName}${separator}${profileName}${separator}${appName}";return g.isWeb?e+"${separator}${remoteName}":e})(),P=g.isMacintosh?" — ":" - ",R=class extends c.Disposable{static{i=this}static{this.NLS_USER_IS_ADMIN=g.isWindows?(0,n.localize)(3685,"[Administrator]"):(0,n.localize)(3686,"[Superuser]")}static{this.NLS_EXTENSION_HOST=(0,n.localize)(3687,"[Extension Development Host]")}static{this.TITLE_DIRTY="● "}get value(){return this.title??""}get workspaceName(){return this.labelService.getWorkspaceLabel(this.contextService.getWorkspace())}get fileName(){let e=this.editorService.activeEditor;if(!e)return;let t=e.getTitle(l.Verbosity.SHORT),o=e?.isDirty()&&!e.isSaving()?i.TITLE_DIRTY:"";return`${o}${t}`}constructor(e,t,i,o,r,n,s,a,d,l,u,h){super(),this.configurationService=t,this.contextKeyService=i,this.editorService=o,this.environmentService=r,this.contextService=n,this.labelService=s,this.userDataProfileService=a,this.productService=d,this.viewsService=l,this.decorationsService=u,this.accessibilityService=h,this.properties={isPure:!0,isAdmin:!1,prefix:void 0},this.variables=new Map,this.activeEditorListeners=this._register(new c.DisposableStore),this.titleUpdater=this._register(new C.RunOnceScheduler(()=>this.doUpdateTitle(),0)),this.onDidChangeEmitter=new _.Emitter,this.onDidChange=this.onDidChangeEmitter.event,this.titleIncludesFocusedView=!1,this.titleIncludesEditorState=!1,this.windowId=e.vscodeWindowId,this.checkTitleVariables(),this.registerListeners()}registerListeners(){this._register(this.configurationService.onDidChangeConfiguration(e=>this.onConfigurationChanged(e))),this._register(this.editorService.onDidActiveEditorChange(()=>this.onActiveEditorChange())),this._register(this.contextService.onDidChangeWorkspaceFolders(()=>this.titleUpdater.schedule())),this._register(this.contextService.onDidChangeWorkbenchState(()=>this.titleUpdater.schedule())),this._register(this.contextService.onDidChangeWorkspaceName(()=>this.titleUpdater.schedule())),this._register(this.labelService.onDidChangeFormatters(()=>this.titleUpdater.schedule())),this._register(this.userDataProfileService.onDidChangeCurrentProfile(()=>this.titleUpdater.schedule())),this._register(this.viewsService.onDidChangeFocusedView(()=>{this.titleIncludesFocusedView&&this.titleUpdater.schedule()})),this._register(this.contextKeyService.onDidChangeContext(e=>{e.affectsSome(this.variables)&&this.titleUpdater.schedule()})),this._register(this.accessibilityService.onDidChangeScreenReaderOptimized(()=>this.titleUpdater.schedule()))}onConfigurationChanged(e){let t=e.affectsConfiguration(o.title);t&&this.checkTitleVariables(),(t||e.affectsConfiguration(o.titleSeparator))&&this.titleUpdater.schedule()}checkTitleVariables(){let e=this.configurationService.getValue(o.title);"string"==typeof e&&(this.titleIncludesFocusedView=e.includes("${focusedView}"),this.titleIncludesEditorState=e.includes("${activeEditorState}"))}onActiveEditorChange(){this.activeEditorListeners.clear(),this.titleUpdater.schedule();let e=this.editorService.activeEditor;if(e&&(this.activeEditorListeners.add(e.onDidChangeDirty(()=>this.titleUpdater.schedule())),this.activeEditorListeners.add(e.onDidChangeLabel(()=>this.titleUpdater.schedule()))),this.titleIncludesFocusedView){let e=this.editorService.activeTextEditorControl,t=[];for(let i of((0,D.isCodeEditor)(e)?t.push(e):(0,D.isDiffEditor)(e)&&t.push(e.getOriginalEditor(),e.getModifiedEditor()),t))this.activeEditorListeners.add(i.onDidBlurEditorText(()=>this.titleUpdater.schedule())),this.activeEditorListeners.add(i.onDidFocusEditorText(()=>this.titleUpdater.schedule()))}this.titleIncludesEditorState&&this.activeEditorListeners.add(this.decorationsService.onDidChangeDecorations(()=>this.titleUpdater.schedule()))}doUpdateTitle(){let e=this.getFullWindowTitle();if(e!==this.title){let t=e;(0,m.trim)(t)||(t=this.productService.nameLong);let o=(0,x.getWindowById)(this.windowId,!0).window;!o.document.title&&g.isMacintosh&&t===this.productService.nameLong&&(o.document.title=`${this.productService.nameLong} ${i.TITLE_DIRTY}`),o.document.title=t,this.title=e,this.onDidChangeEmitter.fire()}}getFullWindowTitle(){let{prefix:e,suffix:t}=this.getTitleDecorations(),i=this.getWindowTitle()||this.productService.nameLong;return e&&(i=`${e} ${i}`),t&&(i=`${i} ${t}`),i.replace(/[^\S ]/g," ")}getTitleDecorations(){let e,t;return this.properties.prefix&&(e=this.properties.prefix),this.environmentService.isExtensionDevelopment&&(e=e?`${i.NLS_EXTENSION_HOST} - ${e}`:i.NLS_EXTENSION_HOST),this.properties.isAdmin&&(t=i.NLS_USER_IS_ADMIN),{prefix:e,suffix:t}}updateProperties(e){let t="boolean"==typeof e.isAdmin?e.isAdmin:this.properties.isAdmin,i="boolean"==typeof e.isPure?e.isPure:this.properties.isPure,o="string"==typeof e.prefix?e.prefix:this.properties.prefix;(t!==this.properties.isAdmin||i!==this.properties.isPure||o!==this.properties.prefix)&&(this.properties.isAdmin=t,this.properties.isPure=i,this.properties.prefix=o,this.titleUpdater.schedule())}registerVariables(e){let t=!1;for(let{name:i,contextKey:o}of e)this.variables.has(o)||(this.variables.set(o,i),t=!0);t&&this.titleUpdater.schedule()}getWindowTitle(){let e,t,r,n=this.editorService.activeEditor,a=this.contextService.getWorkspace();a.configuration?e=a.configuration:a.folders.length&&(e=a.folders[0].uri);let d=l.EditorResourceAccessor.getOriginalUri(n,{supportSideBySide:l.SideBySideEditor.PRIMARY}),c=d?(0,s.dirname)(d):void 0;if(c?.path==="."&&(c=void 0),this.contextService.getWorkbenchState()===h.WorkbenchState.FOLDER?t=a.folders[0]:d&&(t=this.contextService.getWorkspaceFolder(d)??void 0),this.environmentService.remoteAuthority&&!g.isWeb)r=this.labelService.getHostLabel(b.Schemas.vscodeRemote,this.environmentService.remoteAuthority);else{let e=(0,I.getVirtualWorkspaceLocation)(a);e&&(r=this.labelService.getHostLabel(e.scheme,e.authority))}let u=n?n.getTitle(l.Verbosity.SHORT):"",p=n?n.getTitle(l.Verbosity.MEDIUM):u,m=n?n.getTitle(l.Verbosity.LONG):p,f=c?(0,s.basename)(c):"",_=c?this.labelService.getUriLabel(c,{relative:!0}):"",C=c?this.labelService.getUriLabel(c):"",S=this.labelService.getWorkspaceLabel(a),E=this.labelService.getWorkspaceLabel(a,{verbose:y.Verbosity.SHORT}),w=e?this.labelService.getUriLabel(e):"",D=t?t.name:"",A=t?this.labelService.getUriLabel(t.uri):"",x=n?.isDirty()&&!n.isSaving()?i.TITLE_DIRTY:"",k=this.productService.nameLong,T=this.userDataProfileService.currentProfile.isDefault?"":this.userDataProfileService.currentProfile.name,R=this.viewsService.getFocusedViewName(),L=d?this.decorationsService.getDecoration(d,!1)?.tooltip:void 0,N=this.editorService.activeTextEditorLanguageId,O={};for(let[e,t]of this.variables)O[t]=this.contextKeyService.getContextKeyValue(e)??"";let F=this.configurationService.getValue(o.title);"string"!=typeof F&&(F=M),!this.titleIncludesEditorState&&this.accessibilityService.isScreenReaderOptimized()&&this.configurationService.getValue("accessibility.windowTitleOptimized")&&(F+="${separator}${activeEditorState}");let K=this.configurationService.getValue(o.titleSeparator);return"string"!=typeof K&&(K=P),(0,v.template)(F,{...O,activeEditorShort:u,activeEditorLong:m,activeEditorMedium:p,activeEditorLanguageId:N,activeFolderShort:f,activeFolderMedium:_,activeFolderLong:C,rootName:S,rootPath:w,rootNameShort:E,folderName:D,folderPath:A,dirty:x,appName:k,remoteName:r,profileName:T,focusedView:R,activeEditorState:L,separator:{label:K}})}isCustomTitleFormat(){if(this.accessibilityService.isScreenReaderOptimized()||this.titleIncludesEditorState)return!0;let e=this.configurationService.inspect(o.title),t=this.configurationService.inspect(o.titleSeparator);return e.value!==e.defaultValue||t.value!==t.defaultValue}};R=i=(0,r.__decorate)([(0,r.__param)(1,a.IConfigurationService),(0,r.__param)(2,A.IContextKeyService),(0,r.__param)(3,d.IEditorService),(0,r.__param)(4,u.IBrowserWorkbenchEnvironmentService),(0,r.__param)(5,p.IWorkspaceContextService),(0,r.__param)(6,f.ILabelService),(0,r.__param)(7,E.IUserDataProfileService),(0,r.__param)(8,S.IProductService),(0,r.__param)(9,w.IViewsService),(0,r.__param)(10,k.IDecorationsService),(0,r.__param)(11,T.IAccessibilityService)],R),e.s(["WindowTitle",0,R,"defaultWindowTitle",0,M,"defaultWindowTitleSeparator",0,P])},706925,e=>{"use strict";let t;var i=e.i(322193),o=e.i(354244),r=e.i(650289),n=e.i(2267),s=e.i(367835),a=e.i(621826),d=e.i(803777),c=e.i(697786),l=e.i(612158),u=e.i(536561),h=e.i(319475);let p=a.Registry.as(n.Extensions.Configuration);(0,c.registerWorkbenchContribution2)(d.ConfigurationMigrationWorkbenchContribution.ID,d.ConfigurationMigrationWorkbenchContribution,c.WorkbenchPhase.Eventually),(0,c.registerWorkbenchContribution2)(d.DynamicWorkbenchSecurityConfiguration.ID,d.DynamicWorkbenchSecurityConfiguration,c.WorkbenchPhase.AfterRestored),p.registerConfiguration({...d.workbenchConfigurationNodeBase,properties:{"workbench.externalBrowser":{type:"string",markdownDescription:(0,r.localize)(3727,"Configure the browser to use for opening http or https links externally. This can either be the name of the browser (`edge`, `chrome`, `firefox`) or an absolute path to the browser's executable. Will use the system default if not set."),included:o.isNative,restricted:!0},"workbench.editor.titleScrollbarSizing":{type:"string",enum:["default","large"],enumDescriptions:[(0,r.localize)(3728,"The default size."),(0,r.localize)(3729,"Increases the size, so it can be grabbed more easily with the mouse.")],description:(0,r.localize)(3730,"Controls the height of the scrollbars used for tabs and breadcrumbs in the editor title area."),default:"default"},"workbench.editor.titleScrollbarVisibility":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[(0,r.localize)(3731,"The horizontal scrollbar will be visible only when necessary."),(0,r.localize)(3732,"The horizontal scrollbar will always be visible."),(0,r.localize)(3733,"The horizontal scrollbar will always be hidden.")],description:(0,r.localize)(3734,"Controls the visibility of the scrollbars used for tabs and breadcrumbs in the editor title area."),default:"auto"},[u.LayoutSettings.EDITOR_TABS_MODE]:{type:"string",enum:[u.EditorTabsMode.MULTIPLE,u.EditorTabsMode.SINGLE,u.EditorTabsMode.NONE],enumDescriptions:[(0,r.localize)(3735,"Each editor is displayed as a tab in the editor title area."),(0,r.localize)(3736,"The active editor is displayed as a single large tab in the editor title area."),(0,r.localize)(3737,"The editor title area is not displayed.")],description:(0,r.localize)(3738,"Controls whether opened editors should show as individual tabs, one single large tab or if the title area should not be shown."),default:"multiple"},[u.LayoutSettings.EDITOR_ACTIONS_LOCATION]:{type:"string",enum:[u.EditorActionsLocation.DEFAULT,u.EditorActionsLocation.TITLEBAR,u.EditorActionsLocation.HIDDEN],markdownEnumDescriptions:[(0,r.localize)(3739,"Show editor actions in the window title bar when {0} is set to {1}. Otherwise, editor actions are shown in the editor tab bar.","`#workbench.editor.showTabs#`","`none`"),(0,r.localize)(3740,"Show editor actions in the window title bar. If {0} is set to {1}, editor actions are hidden.","`#window.customTitleBarVisibility#`","`never`"),(0,r.localize)(3741,"Editor actions are not shown.")],markdownDescription:(0,r.localize)(3742,"Controls where the editor actions are shown."),default:"default"},"workbench.editor.alwaysShowEditorActions":{type:"boolean",markdownDescription:(0,r.localize)(3743,"Controls whether to always show the editor actions, even when the editor group is not active."),default:!1},"workbench.editor.wrapTabs":{type:"boolean",markdownDescription:(0,r.localize)(3744,"Controls whether tabs should be wrapped over multiple lines when exceeding available space or whether a scrollbar should appear instead. This value is ignored when {0} is not set to '{1}'.","`#workbench.editor.showTabs#`","`multiple`"),default:!1},"workbench.editor.scrollToSwitchTabs":{type:"boolean",markdownDescription:(0,r.localize)(3745,"Controls whether scrolling over tabs will open them or not. By default tabs will only reveal upon scrolling, but not open. You can press and hold the Shift-key while scrolling to change this behavior for that duration. This value is ignored when {0} is not set to {1}.","`#workbench.editor.showTabs#`","`multiple`"),default:!1},"workbench.editor.highlightModifiedTabs":{type:"boolean",markdownDescription:(0,r.localize)(3746,"Controls whether a top border is drawn on tabs for editors that have unsaved changes. This value is ignored when {0} is not set to {1}.","`#workbench.editor.showTabs#`","multiple"),default:!1},"workbench.editor.decorations.badges":{type:"boolean",markdownDescription:(0,r.localize)(3747,"Controls whether editor file decorations should use badges."),default:!0},"workbench.editor.decorations.colors":{type:"boolean",markdownDescription:(0,r.localize)(3748,"Controls whether editor file decorations should use colors."),default:!0},[l.CustomEditorLabelService.SETTING_ID_ENABLED]:{type:"boolean",markdownDescription:(0,r.localize)(3749,"Controls whether the custom workbench editor labels should be applied."),default:!0},[l.CustomEditorLabelService.SETTING_ID_PATTERNS]:{type:"object",markdownDescription:(0,r.localize)(3750,"Controls the rendering of the editor label. Each __Item__ is a pattern that matches a file path. Both relative and absolute file paths are supported. The relative path must include the WORKSPACE_FOLDER (e.g `WORKSPACE_FOLDER/src/**.tsx` or `*/src/**.tsx`). Absolute patterns must start with a `/`. In case multiple patterns match, the longest matching path will be picked. Each __Value__ is the template for the rendered editor when the __Item__ matches. Variables are substituted based on the context:")+"\n- "+[(0,r.localize)(3751,"`${dirname}`: name of the folder in which the file is located (e.g. `WORKSPACE_FOLDER/folder/file.txt -> folder`)."),(0,r.localize)(3752,"`${dirname(N)}`: name of the nth parent folder in which the file is located (e.g. `N=2: WORKSPACE_FOLDER/static/folder/file.txt -> WORKSPACE_FOLDER`). Folders can be picked from the start of the path by using negative numbers (e.g. `N=-1: WORKSPACE_FOLDER/folder/file.txt -> WORKSPACE_FOLDER`). If the __Item__ is an absolute pattern path, the first folder (`N=-1`) refers to the first folder in the absolute path, otherwise it corresponds to the workspace folder."),(0,r.localize)(3753,"`${filename}`: name of the file without the file extension (e.g. `WORKSPACE_FOLDER/folder/file.txt -> file`)."),(0,r.localize)(3754,"`${extname}`: the file extension (e.g. `WORKSPACE_FOLDER/folder/file.txt -> txt`)."),(0,r.localize)(3755,"`${extname(N)}`: the nth extension of the file separated by '.' (e.g. `N=2: WORKSPACE_FOLDER/folder/file.ext1.ext2.ext3 -> ext1`). Extension can be picked from the start of the extension by using negative numbers (e.g. `N=-1: WORKSPACE_FOLDER/folder/file.ext1.ext2.ext3 -> ext2`).")].join("\n- ")+"\n\n"+(0,r.localize)(3756,'Example: `"**/static/**/*.html": "${filename} - ${dirname} (${extname})"` will render a file `WORKSPACE_FOLDER/static/folder/file.html` as `file - folder (html)`.'),additionalProperties:{type:["string","null"],markdownDescription:(0,r.localize)(3757,"The template which should be rendered when the pattern matches. May include the variables ${dirname}, ${filename} and ${extname}."),minLength:1,pattern:".*[a-zA-Z0-9].*"},default:{}},"workbench.editor.labelFormat":{type:"string",enum:["default","short","medium","long"],enumDescriptions:[(0,r.localize)(3758,"Show the name of the file. When tabs are enabled and two files have the same name in one group the distinguishing sections of each file's path are added. When tabs are disabled, the path relative to the workspace folder is shown if the editor is active."),(0,r.localize)(3759,"Show the name of the file followed by its directory name."),(0,r.localize)(3760,"Show the name of the file followed by its path relative to the workspace folder."),(0,r.localize)(3761,"Show the name of the file followed by its absolute path.")],default:"default",description:(0,r.localize)(3762,"Controls the format of the label for an editor.")},"workbench.editor.untitled.labelFormat":{type:"string",enum:["content","name"],enumDescriptions:[(0,r.localize)(3763,"The name of the untitled file is derived from the contents of its first line unless it has an associated file path. It will fallback to the name in case the line is empty or contains no word characters."),(0,r.localize)(3764,"The name of the untitled file is not derived from the contents of the file.")],default:"content",description:(0,r.localize)(3765,"Controls the format of the label for an untitled editor.")},"workbench.editor.empty.hint":{type:"string",enum:["text","hidden"],default:"text",markdownDescription:(0,r.localize)(3766,"Controls if the empty editor text hint should be visible in the editor.")},"workbench.editor.languageDetection":{type:"boolean",default:!0,description:(0,r.localize)(3767,"Controls whether the language in a text editor is automatically detected unless the language has been explicitly set by the language picker. This can also be scoped by language so you can specify which languages you do not want to be switched off of. This is useful for languages like Markdown that often contain other languages that might trick language detection into thinking it's the embedded language and not Markdown."),scope:n.ConfigurationScope.LANGUAGE_OVERRIDABLE},"workbench.editor.historyBasedLanguageDetection":{type:"boolean",default:!0,description:(0,r.localize)(3768,"Enables use of editor history in language detection. This causes automatic language detection to favor languages that have been recently opened and allows for automatic language detection to operate with smaller inputs.")},"workbench.editor.preferHistoryBasedLanguageDetection":{type:"boolean",default:!1,description:(0,r.localize)(3769,"When enabled, a language detection model that takes into account editor history will be given higher precedence.")},"workbench.editor.languageDetectionHints":{type:"object",default:{untitledEditors:!0,notebookEditors:!0},description:(0,r.localize)(3770,"When enabled, shows a status bar Quick Fix when the editor language doesn't match detected content language."),additionalProperties:!1,properties:{untitledEditors:{type:"boolean",description:(0,r.localize)(3771,"Show in untitled text editors")},notebookEditors:{type:"boolean",description:(0,r.localize)(3772,"Show in notebook editors")}}},"workbench.editor.tabActionLocation":{type:"string",enum:["left","right"],default:"right",markdownDescription:(0,r.localize)(3773,"Controls the position of the editor's tabs action buttons (close, unpin). This value is ignored when {0} is not set to {1}.","`#workbench.editor.showTabs#`","`multiple`")},"workbench.editor.tabActionCloseVisibility":{type:"boolean",default:!0,description:(0,r.localize)(3774,"Controls the visibility of the tab close action button.")},"workbench.editor.tabActionUnpinVisibility":{type:"boolean",default:!0,description:(0,r.localize)(3775,"Controls the visibility of the tab unpin action button.")},"workbench.editor.showTabIndex":{type:"boolean",default:!1,markdownDescription:(0,r.localize)(3776,"When enabled, will show the tab index. This value is ignored when {0} is not set to {1}.","`#workbench.editor.showTabs#`","`multiple`")},"workbench.editor.tabSizing":{type:"string",enum:["fit","shrink","fixed"],default:"fit",enumDescriptions:[(0,r.localize)(3777,"Always keep tabs large enough to show the full editor label."),(0,r.localize)(3778,"Allow tabs to get smaller when the available space is not enough to show all tabs at once."),(0,r.localize)(3779,"Make all tabs the same size, while allowing them to get smaller when the available space is not enough to show all tabs at once.")],markdownDescription:(0,r.localize)(3780,"Controls the size of editor tabs. This value is ignored when {0} is not set to {1}.","`#workbench.editor.showTabs#`","`multiple`")},"workbench.editor.tabSizingFixedMinWidth":{type:"number",default:50,minimum:38,markdownDescription:(0,r.localize)(3781,"Controls the minimum width of tabs when {0} size is set to {1}.","`#workbench.editor.tabSizing#`","`fixed`")},"workbench.editor.tabSizingFixedMaxWidth":{type:"number",default:160,minimum:38,markdownDescription:(0,r.localize)(3782,"Controls the maximum width of tabs when {0} size is set to {1}.","`#workbench.editor.tabSizing#`","`fixed`")},"window.density.editorTabHeight":{type:"string",enum:["default","compact"],default:"default",markdownDescription:(0,r.localize)(3783,"Controls the height of editor tabs. Also applies to the title control bar when {0} is not set to {1}.","`#workbench.editor.showTabs#`","`multiple`")},"workbench.editor.pinnedTabSizing":{type:"string",enum:["normal","compact","shrink"],default:"normal",enumDescriptions:[(0,r.localize)(3784,"A pinned tab inherits the look of non pinned tabs."),(0,r.localize)(3785,"A pinned tab will show in a compact form with only icon or first letter of the editor name."),(0,r.localize)(3786,"A pinned tab shrinks to a compact fixed size showing parts of the editor name.")],markdownDescription:(0,r.localize)(3787,"Controls the size of pinned editor tabs. Pinned tabs are sorted to the beginning of all opened tabs and typically do not close until unpinned. This value is ignored when {0} is not set to {1}.","`#workbench.editor.showTabs#`","`multiple`")},"workbench.editor.pinnedTabsOnSeparateRow":{type:"boolean",default:!1,markdownDescription:(0,r.localize)(3788,"When enabled, displays pinned tabs in a separate row above all other tabs. This value is ignored when {0} is not set to {1}.","`#workbench.editor.showTabs#`","`multiple`")},"workbench.editor.preventPinnedEditorClose":{type:"string",enum:["keyboardAndMouse","keyboard","mouse","never"],default:"keyboardAndMouse",enumDescriptions:[(0,r.localize)(3789,"Always prevent closing the pinned editor when using mouse middle click or keyboard."),(0,r.localize)(3790,"Prevent closing the pinned editor when using the keyboard."),(0,r.localize)(3791,"Prevent closing the pinned editor when using mouse middle click."),(0,r.localize)(3792,"Never prevent closing a pinned editor.")],description:(0,r.localize)(3793,"Controls whether pinned editors should close when keyboard or middle mouse click is used for closing.")},"workbench.editor.splitSizing":{type:"string",enum:["auto","distribute","split"],default:"auto",enumDescriptions:[(0,r.localize)(3794,"Splits the active editor group to equal parts, unless all editor groups are already in equal parts. In that case, splits all the editor groups to equal parts."),(0,r.localize)(3795,"Splits all the editor groups to equal parts."),(0,r.localize)(3796,"Splits the active editor group to equal parts.")],description:(0,r.localize)(3797,"Controls the size of editor groups when splitting them.")},"workbench.editor.splitOnDragAndDrop":{type:"boolean",default:!0,description:(0,r.localize)(3798,"Controls if editor groups can be split from drag and drop operations by dropping an editor or file on the edges of the editor area.")},"workbench.editor.dragToOpenWindow":{type:"boolean",default:!0,markdownDescription:(0,r.localize)(3799,"Controls if editors can be dragged out of the window to open them in a new window. Press and hold the `Alt` key while dragging to toggle this dynamically.")},"workbench.editor.focusRecentEditorAfterClose":{type:"boolean",description:(0,r.localize)(3800,"Controls whether editors are closed in most recently used order or from left to right."),default:!0},"workbench.editor.showIcons":{type:"boolean",description:(0,r.localize)(3801,"Controls whether opened editors should show with an icon or not. This requires a file icon theme to be enabled as well."),default:!0},"workbench.editor.enablePreview":{type:"boolean",description:(0,r.localize)(3802,"Controls whether preview mode is used when editors open. There is a maximum of one preview mode editor per editor group. This editor displays its filename in italics on its tab or title label and in the Open Editors view. Its contents will be replaced by the next editor opened in preview mode. Making a change in a preview mode editor will persist it, as will a double-click on its label, or the 'Keep Open' option in its label context menu. Opening a file from Explorer with a double-click persists its editor immediately."),default:!0},"workbench.editor.enablePreviewFromQuickOpen":{type:"boolean",markdownDescription:(0,r.localize)(3803,"Controls whether editors opened from Quick Open show as preview editors. Preview editors do not stay open, and are reused until explicitly set to be kept open (via double-click or editing). When enabled, hold Ctrl before selection to open an editor as a non-preview. This value is ignored when {0} is not set to {1}.","`#workbench.editor.showTabs#`","`multiple`"),default:!1},"workbench.editor.enablePreviewFromCodeNavigation":{type:"boolean",markdownDescription:(0,r.localize)(3804,"Controls whether editors remain in preview when a code navigation is started from them. Preview editors do not stay open, and are reused until explicitly set to be kept open (via double-click or editing). This value is ignored when {0} is not set to {1}.","`#workbench.editor.showTabs#`","`multiple`"),default:!1},"workbench.editor.closeOnFileDelete":{type:"boolean",description:(0,r.localize)(3805,"Controls whether editors showing a file that was opened during the session should close automatically when getting deleted or renamed by some other process. Disabling this will keep the editor open on such an event. Note that deleting from within the application will always close the editor and that editors with unsaved changes will never close to preserve your data."),default:!1},"workbench.editor.openPositioning":{type:"string",enum:["left","right","first","last"],default:"right",markdownDescription:(0,r.localize)(3806,"Controls where editors open. Select {0} or {1} to open editors to the left or right of the currently active one. Select {2} or {3} to open editors independently from the currently active one.","`left`","`right`","`first`","`last`")},"workbench.editor.openSideBySideDirection":{type:"string",enum:["right","down"],default:"right",markdownDescription:(0,r.localize)(3807,"Controls the default direction of editors that are opened side by side (for example, from the Explorer). By default, editors will open on the right hand side of the currently active one. If changed to `down`, the editors will open below the currently active one. This also impacts the split editor action in the editor toolbar.")},"workbench.editor.closeEmptyGroups":{type:"boolean",description:(0,r.localize)(3808,"Controls the behavior of empty editor groups when the last tab in the group is closed. When enabled, empty groups will automatically close. When disabled, empty groups will remain part of the grid."),default:!0},"workbench.editor.revealIfOpen":{type:"boolean",description:(0,r.localize)(3809,"Controls whether an editor is revealed in any of the visible groups if opened. If disabled, an editor will prefer to open in the currently active editor group. If enabled, an already opened editor will be revealed instead of opened again in the currently active editor group. Note that there are some cases where this setting is ignored, such as when forcing an editor to open in a specific group or to the side of the currently active group."),default:!1},"workbench.editor.swipeToNavigate":{type:"boolean",description:(0,r.localize)(3810,"Navigate between open files using three-finger swipe horizontally. Note that System Preferences > Trackpad > More Gestures > 'Swipe between pages' must be set to 'Swipe with two or three fingers'."),default:!1,included:o.isMacintosh&&!o.isWeb},"workbench.editor.mouseBackForwardToNavigate":{type:"boolean",description:(0,r.localize)(3811,"Enables the use of mouse buttons four and five for commands 'Go Back' and 'Go Forward'."),default:!0},"workbench.editor.navigationScope":{type:"string",enum:["default","editorGroup","editor"],default:"default",markdownDescription:(0,r.localize)(3812,"Controls the scope of history navigation in editors for commands such as 'Go Back' and 'Go Forward'."),enumDescriptions:[(0,r.localize)(3813,"Navigate across all opened editors and editor groups."),(0,r.localize)(3814,"Navigate only in editors of the active editor group."),(0,r.localize)(3815,"Navigate only in the active editor.")]},"workbench.editor.restoreViewState":{type:"boolean",markdownDescription:(0,r.localize)(3816,"Restores the last editor view state (such as scroll position) when re-opening editors after they have been closed. Editor view state is stored per editor group and discarded when a group closes. Use the {0} setting to use the last known view state across all editor groups in case no previous view state was found for a editor group.","`#workbench.editor.sharedViewState#`"),default:!0,scope:n.ConfigurationScope.LANGUAGE_OVERRIDABLE},"workbench.editor.sharedViewState":{type:"boolean",description:(0,r.localize)(3817,"Preserves the most recent editor view state (such as scroll position) across all editor groups and restores that if no specific editor view state is found for the editor group."),default:!1},"workbench.editor.splitInGroupLayout":{type:"string",enum:["vertical","horizontal"],default:"horizontal",markdownDescription:(0,r.localize)(3818,"Controls the layout for when an editor is split in an editor group to be either vertical or horizontal."),enumDescriptions:[(0,r.localize)(3819,"Editors are positioned from top to bottom."),(0,r.localize)(3820,"Editors are positioned from left to right.")]},"workbench.editor.centeredLayoutAutoResize":{type:"boolean",default:!0,description:(0,r.localize)(3821,"Controls if the centered layout should automatically resize to maximum width when more than one group is open. Once only one group is open it will resize back to the original centered width.")},"workbench.editor.centeredLayoutFixedWidth":{type:"boolean",default:!1,description:(0,r.localize)(3822,"Controls whether the centered layout tries to maintain constant width when the window is resized.")},"workbench.editor.doubleClickTabToToggleEditorGroupSizes":{type:"string",enum:["maximize","expand","off"],default:"expand",markdownDescription:(0,r.localize)(3823,"Controls how the editor group is resized when double clicking on a tab. This value is ignored when {0} is not set to {1}.","`#workbench.editor.showTabs#`","`multiple`"),enumDescriptions:[(0,r.localize)(3824,"All other editor groups are hidden and the current editor group is maximized to take up the entire editor area."),(0,r.localize)(3825,"The editor group takes as much space as possible by making all other editor groups as small as possible."),(0,r.localize)(3826,"No editor group is resized when double clicking on a tab.")]},"workbench.editor.limit.enabled":{type:"boolean",default:!1,description:(0,r.localize)(3827,"Controls if the number of opened editors should be limited or not. When enabled, less recently used editors will close to make space for newly opening editors.")},"workbench.editor.limit.value":{type:"number",default:10,exclusiveMinimum:0,markdownDescription:(0,r.localize)(3828,"Controls the maximum number of opened editors. Use the {0} setting to control this limit per editor group or across all groups.","`#workbench.editor.limit.perEditorGroup#`")},"workbench.editor.limit.excludeDirty":{type:"boolean",default:!1,description:(0,r.localize)(3829,"Controls if the maximum number of opened editors should exclude dirty editors for counting towards the configured limit.")},"workbench.editor.limit.perEditorGroup":{type:"boolean",default:!1,description:(0,r.localize)(3830,"Controls if the limit of maximum opened editors should apply per editor group or across all editor groups.")},"workbench.localHistory.enabled":{type:"boolean",default:!0,description:(0,r.localize)(3831,"Controls whether local file history is enabled. When enabled, the file contents of an editor that is saved will be stored to a backup location to be able to restore or review the contents later. Changing this setting has no effect on existing local file history entries."),scope:n.ConfigurationScope.RESOURCE},"workbench.localHistory.maxFileSize":{type:"number",default:256,minimum:1,description:(0,r.localize)(3832,"Controls the maximum size of a file (in KB) to be considered for local file history. Files that are larger will not be added to the local file history. Changing this setting has no effect on existing local file history entries."),scope:n.ConfigurationScope.RESOURCE},"workbench.localHistory.maxFileEntries":{type:"number",default:50,minimum:0,description:(0,r.localize)(3833,"Controls the maximum number of local file history entries per file. When the number of local file history entries exceeds this number for a file, the oldest entries will be discarded."),scope:n.ConfigurationScope.RESOURCE},"workbench.localHistory.exclude":{type:"object",patternProperties:{".*":{type:"boolean"}},markdownDescription:(0,r.localize)(3834,"Configure paths or [glob patterns](https://aka.ms/vscode-glob-patterns) for excluding files from the local file history. Glob patterns are always evaluated relative to the path of the workspace folder unless they are absolute paths. Changing this setting has no effect on existing local file history entries."),scope:n.ConfigurationScope.RESOURCE},"workbench.localHistory.mergeWindow":{type:"number",default:10,minimum:1,markdownDescription:(0,r.localize)(3835,"Configure an interval in seconds during which the last entry in local file history is replaced with the entry that is being added. This helps reduce the overall number of entries that are added, for example when auto save is enabled. This setting is only applied to entries that have the same source of origin. Changing this setting has no effect on existing local file history entries."),scope:n.ConfigurationScope.RESOURCE},"workbench.commandPalette.history":{type:"number",description:(0,r.localize)(3836,"Controls the number of recently used commands to keep in history for the command palette. Set to 0 to disable command history."),default:50,minimum:0},"workbench.commandPalette.preserveInput":{type:"boolean",description:(0,r.localize)(3837,"Controls whether the last typed input to the command palette should be restored when opening it the next time."),default:!1},"workbench.commandPalette.experimental.suggestCommands":{type:"boolean",tags:["experimental"],description:(0,r.localize)(3838,"Controls whether the command palette should have a list of commonly used commands."),default:!1},"workbench.commandPalette.experimental.askChatLocation":{type:"string",tags:["experimental"],description:(0,r.localize)(3839,"Controls where the command palette should ask chat questions."),default:"chatView",enum:["chatView","quickChat"],enumDescriptions:[(0,r.localize)(3840,"Ask chat questions in the Chat view."),(0,r.localize)(3841,"Ask chat questions in Quick Chat.")]},"workbench.commandPalette.showAskInChat":{type:"boolean",tags:["experimental"],description:(0,r.localize)(3842,"Controls whether the command palette shows 'Ask in Chat' option at the bottom."),default:!0},"workbench.commandPalette.experimental.enableNaturalLanguageSearch":{type:"boolean",tags:["experimental"],description:(0,r.localize)(3843,"Controls whether the command palette should include similar commands. You must have an extension installed that provides Natural Language support."),default:!0},"workbench.quickOpen.closeOnFocusLost":{type:"boolean",description:(0,r.localize)(3844,"Controls whether Quick Open should close automatically once it loses focus."),default:!0},"workbench.quickOpen.preserveInput":{type:"boolean",description:(0,r.localize)(3845,"Controls whether the last typed input to Quick Open should be restored when opening it the next time."),default:!1},"workbench.settings.openDefaultSettings":{type:"boolean",description:(0,r.localize)(3846,"Controls whether opening settings also opens an editor showing all default settings."),default:!1},"workbench.settings.useSplitJSON":{type:"boolean",markdownDescription:(0,r.localize)(3847,"Controls whether to use the split JSON editor when editing settings as JSON."),default:!1},"workbench.settings.openDefaultKeybindings":{type:"boolean",description:(0,r.localize)(3848,"Controls whether opening keybinding settings also opens an editor showing all default keybindings."),default:!1},"workbench.settings.alwaysShowAdvancedSettings":{type:"boolean",description:(0,r.localize)(3849,"Controls whether advanced settings are always shown in the settings editor without requiring the `@tag:advanced` filter."),default:"stable"!==s.default.quality},"workbench.sideBar.location":{type:"string",enum:["left","right"],default:"left",description:(0,r.localize)(3850,"Controls the location of the primary side bar and activity bar. They can either show on the left or right of the workbench. The secondary side bar will show on the opposite side of the workbench.")},"workbench.panel.showLabels":{type:"boolean",default:!0,description:(0,r.localize)(3851,"Controls whether activity items in the panel title are shown as label or icon.")},"workbench.panel.defaultLocation":{type:"string",enum:["left","bottom","top","right"],default:"bottom",description:(0,r.localize)(3852,"Controls the default location of the panel (Terminal, Debug Console, Output, Problems) in a new workspace. It can either show at the bottom, top, right, or left of the editor area.")},"workbench.panel.opensMaximized":{type:"string",enum:["always","never","preserve"],default:"preserve",description:(0,r.localize)(3853,"Controls whether the panel opens maximized. It can either always open maximized, never open maximized, or open to the last state it was in before being closed."),enumDescriptions:[(0,r.localize)(3854,"Always maximize the panel when opening it."),(0,r.localize)(3855,"Never maximize the panel when opening it."),(0,r.localize)(3856,"Open the panel to the state that it was in, before it was closed.")]},"workbench.secondarySideBar.defaultVisibility":{type:"string",enum:["hidden","visibleInWorkspace","visible","maximizedInWorkspace","maximized"],default:"visibleInWorkspace",description:(0,r.localize)(3857,"Controls the default visibility of the secondary side bar in workspaces or empty windows that are opened for the first time."),enumDescriptions:[(0,r.localize)(3858,"The secondary side bar is hidden by default."),(0,r.localize)(3859,"The secondary side bar is visible by default if a workspace is opened."),(0,r.localize)(3860,"The secondary side bar is visible by default."),(0,r.localize)(3861,"The secondary side bar is visible and maximized by default if a workspace is opened."),(0,r.localize)(3862,"The secondary side bar is visible and maximized by default.")]},"workbench.secondarySideBar.showLabels":{type:"boolean",default:!0,markdownDescription:(0,r.localize)(3863,"Controls whether activity items in the secondary side bar title are shown as label or icon. This setting only has an effect when {0} is not set to {1}.","`#workbench.activityBar.location#`","`top`")},"workbench.statusBar.visible":{type:"boolean",default:!0,description:(0,r.localize)(3864,"Controls the visibility of the status bar at the bottom of the workbench.")},[u.LayoutSettings.ACTIVITY_BAR_LOCATION]:{type:"string",enum:["default","top","bottom","hidden"],default:"default",markdownDescription:(0,r.localize)(3865,"Controls the location of the Activity Bar relative to the Primary and Secondary Side Bars."),enumDescriptions:[(0,r.localize)(3866,"Show the Activity Bar on the side of the Primary Side Bar and on top of the Secondary Side Bar."),(0,r.localize)(3867,"Show the Activity Bar on top of the Primary and Secondary Side Bars."),(0,r.localize)(3868,"Show the Activity Bar at the bottom of the Primary and Secondary Side Bars."),(0,r.localize)(3869,"Hide the Activity Bar in the Primary and Secondary Side Bars.")]},"workbench.activityBar.iconClickBehavior":{type:"string",enum:["toggle","focus"],default:"toggle",markdownDescription:(0,r.localize)(3870,"Controls the behavior of clicking an Activity Bar icon in the workbench. This value is ignored when {0} is not set to {1}.","`#workbench.activityBar.location#`","`default`"),enumDescriptions:[(0,r.localize)(3871,"Hide the Primary Side Bar if the clicked item is already visible."),(0,r.localize)(3872,"Focus the Primary Side Bar if the clicked item is already visible.")]},"workbench.view.alwaysShowHeaderActions":{type:"boolean",default:!1,description:(0,r.localize)(3873,"Controls the visibility of view header actions. View header actions may either be always visible, or only visible when that view is focused or hovered over.")},"workbench.view.showQuietly":{type:"object",description:(0,r.localize)(3874,"If an extension requests a hidden view to be shown, display a clickable status bar indicator instead."),scope:n.ConfigurationScope.WINDOW,properties:{"workbench.panel.output":{type:"boolean",description:(0,r.localize)(3875,"Output view")}},additionalProperties:!1},"workbench.fontAliasing":{type:"string",enum:["default","antialiased","none","auto"],default:"default",description:(0,r.localize)(3876,"Controls font aliasing method in the workbench."),enumDescriptions:[(0,r.localize)(3877,"Sub-pixel font smoothing. On most non-retina displays this will give the sharpest text."),(0,r.localize)(3878,"Smooth the font on the level of the pixel, as opposed to the subpixel. Can make the font appear lighter overall."),(0,r.localize)(3879,"Disables font smoothing. Text will show with jagged sharp edges."),(0,r.localize)(3880,"Applies `default` or `antialiased` automatically based on the DPI of displays.")],included:o.isMacintosh},"workbench.settings.editor":{type:"string",enum:["ui","json"],enumDescriptions:[(0,r.localize)(3881,"Use the settings UI editor."),(0,r.localize)(3882,"Use the JSON file editor.")],description:(0,r.localize)(3883,"Determines which Settings editor to use by default."),default:"ui",scope:n.ConfigurationScope.WINDOW},"workbench.settings.showAISearchToggle":{type:"boolean",default:!0,description:(0,r.localize)(3884,"Controls whether the AI search results toggle is shown in the search bar in the Settings editor after doing a search and once AI search results are available.")},"workbench.hover.delay":{type:"number",description:(0,r.localize)(3885,"Controls the delay in milliseconds after which the hover is shown for workbench items (ex. some extension provided tree view items). Already visible items may require a refresh before reflecting this setting change."),default:o.isMacintosh?1500:500,minimum:0},"workbench.reduceMotion":{type:"string",description:(0,r.localize)(3886,"Controls whether the workbench should render with fewer animations."),enumDescriptions:[(0,r.localize)(3887,"Always render with reduced motion."),(0,r.localize)(3888,"Do not render with reduced motion"),(0,r.localize)(3889,"Render with reduced motion based on OS configuration.")],default:"auto",tags:["accessibility"],enum:["on","off","auto"]},"workbench.navigationControl.enabled":{type:"boolean",default:!0,markdownDescription:o.isWeb?(0,r.localize)(3890,"Controls whether the navigation control in the title bar is shown."):(0,r.localize)(3891,"Controls whether the navigation control is shown in the custom title bar. This setting only has an effect when {0} is not set to {1}.","`#window.customTitleBarVisibility#`","`never`")},[u.LayoutSettings.LAYOUT_ACTIONS]:{type:"boolean",default:!0,markdownDescription:o.isWeb?(0,r.localize)(3892,"Controls whether the layout control in the title bar is shown."):(0,r.localize)(3893,"Controls whether the layout control is shown in the custom title bar. This setting only has an effect when {0} is not set to {1}.","`#window.customTitleBarVisibility#`","`never`")},"workbench.layoutControl.type":{type:"string",enum:["menu","toggles","both"],enumDescriptions:[(0,r.localize)(3894,"Shows a single button with a dropdown of layout options."),(0,r.localize)(3895,"Shows several buttons for toggling the visibility of the panels and side bar."),(0,r.localize)(3896,"Shows both the dropdown and toggle buttons.")],default:"both",description:(0,r.localize)(3897,"Controls whether the layout control in the custom title bar is displayed as a single menu button or with multiple UI toggles.")},"workbench.tips.enabled":{type:"boolean",default:!0,description:(0,r.localize)(3898,"When enabled, will show the watermark tips when no editor is open.")}}}),t=(0,r.localize)(3899,"Controls the window title based on the current context such as the opened workspace or active editor. Variables are substituted based on the context:")+"\n- "+[(0,r.localize)(3900,"`${activeEditorShort}`: the file name (e.g. myFile.txt)."),(0,r.localize)(3901,"`${activeEditorMedium}`: the path of the file relative to the workspace folder (e.g. myFolder/myFileFolder/myFile.txt)."),(0,r.localize)(3902,"`${activeEditorLong}`: the full path of the file (e.g. /Users/Development/myFolder/myFileFolder/myFile.txt)."),(0,r.localize)(3903,"`${activeEditorLanguageId}`: the language identifier of the active editor (e.g. typescript)."),(0,r.localize)(3904,"`${activeFolderShort}`: the name of the folder the file is contained in (e.g. myFileFolder)."),(0,r.localize)(3905,"`${activeFolderMedium}`: the path of the folder the file is contained in, relative to the workspace folder (e.g. myFolder/myFileFolder)."),(0,r.localize)(3906,"`${activeFolderLong}`: the full path of the folder the file is contained in (e.g. /Users/Development/myFolder/myFileFolder)."),(0,r.localize)(3907,"`${folderName}`: name of the workspace folder the file is contained in (e.g. myFolder)."),(0,r.localize)(3908,"`${folderPath}`: file path of the workspace folder the file is contained in (e.g. /Users/Development/myFolder)."),(0,r.localize)(3909,"`${rootName}`: name of the workspace with optional remote name and workspace indicator if applicable (e.g. myFolder, myRemoteFolder [SSH] or myWorkspace (Workspace))."),(0,r.localize)(3910,"`${rootNameShort}`: shortened name of the workspace without suffixes (e.g. myFolder, myRemoteFolder or myWorkspace)."),(0,r.localize)(3911,"`${rootPath}`: file path of the opened workspace or folder (e.g. /Users/Development/myWorkspace)."),(0,r.localize)(3912,"`${profileName}`: name of the profile in which the workspace is opened (e.g. Data Science (Profile)). Ignored if default profile is used."),(0,r.localize)(3913,"`${appName}`: e.g. VS Code."),(0,r.localize)(3914,"`${remoteName}`: e.g. SSH"),(0,r.localize)(3915,"`${dirty}`: an indicator for when the active editor has unsaved changes."),(0,r.localize)(3916,"`${focusedView}`: the name of the view that is currently focused."),(0,r.localize)(3917,"`${activeRepositoryName}`: the name of the active repository (e.g. vscode)."),(0,r.localize)(3918,"`${activeRepositoryBranchName}`: the name of the active branch in the active repository (e.g. main)."),(0,r.localize)(3919,"`${activeEditorState}`: provides information about the state of the active editor (e.g. modified). This will be appended by default when in screen reader mode with {0} enabled.","`accessibility.windowTitleOptimized`"),(0,r.localize)(3920,'`${separator}`: a conditional separator (" - ") that only shows when surrounded by variables with values or static text.')].join("\n- "),p.registerConfiguration({...d.windowConfigurationNodeBase,properties:{"window.title":{type:"string",default:h.defaultWindowTitle,markdownDescription:t},"window.titleSeparator":{type:"string",default:h.defaultWindowTitleSeparator,markdownDescription:(0,r.localize)(3921,"Separator used by {0}.","`#window.title#`")},[u.LayoutSettings.COMMAND_CENTER]:{type:"boolean",default:!0,markdownDescription:o.isWeb?(0,r.localize)(3922,"Show command launcher together with the window title."):(0,r.localize)(3923,"Show command launcher together with the window title. This setting only has an effect when {0} is not set to {1}.","`#window.customTitleBarVisibility#`","`never`")},"window.menuBarVisibility":{type:"string",enum:["classic","visible","toggle","hidden","compact"],markdownEnumDescriptions:[(0,r.localize)(3924,"Menu is displayed at the top of the window and only hidden in full screen mode."),(0,r.localize)(3925,"Menu is always visible at the top of the window even in full screen mode."),o.isMacintosh?(0,r.localize)(3926,"Menu is hidden but can be displayed at the top of the window by executing the `Focus Application Menu` command."):(0,r.localize)(3927,"Menu is hidden but can be displayed at the top of the window via the Alt key."),(0,r.localize)(3928,"Menu is always hidden."),o.isWeb?(0,r.localize)(3929,"Menu is displayed as a compact button in the side bar."):(0,r.localize)(3930,"Menu is displayed as a compact button in the side bar. This value is ignored when {0} is {1} and {2} is either {3} or {4}.","`#window.titleBarStyle#`","`native`","`#window.menuStyle#`","`native`","`inherit`")],default:o.isWeb?"compact":"classic",scope:n.ConfigurationScope.APPLICATION,markdownDescription:o.isMacintosh?(0,r.localize)(3931,"Control the visibility of the menu bar. A setting of 'toggle' means that the menu bar is hidden and executing `Focus Application Menu` will show it. A setting of 'compact' will move the menu into the side bar."):(0,r.localize)(3932,"Control the visibility of the menu bar. A setting of 'toggle' means that the menu bar is hidden and a single press of the Alt key will show it. A setting of 'compact' will move the menu into the side bar."),included:o.isWindows||o.isLinux||o.isWeb},"window.enableMenuBarMnemonics":{type:"boolean",default:!0,scope:n.ConfigurationScope.APPLICATION,description:(0,r.localize)(3933,"Controls whether the main menus can be opened via Alt-key shortcuts. Disabling mnemonics allows to bind these Alt-key shortcuts to editor commands instead."),included:o.isWindows||o.isLinux},"window.customMenuBarAltFocus":{type:"boolean",default:!0,scope:n.ConfigurationScope.APPLICATION,markdownDescription:(0,r.localize)(3934,"Controls whether the menu bar will be focused by pressing the Alt-key. This setting has no effect on toggling the menu bar with the Alt-key."),included:o.isWindows||o.isLinux},"window.openFilesInNewWindow":{type:"string",enum:["on","off","default"],enumDescriptions:[(0,r.localize)(3935,"Files will open in a new window."),(0,r.localize)(3936,"Files will open in the window with the files' folder open or the last active window."),o.isMacintosh?(0,r.localize)(3937,"Files will open in the window with the files' folder open or the last active window unless opened via the Dock or from Finder."):(0,r.localize)(3938,"Files will open in a new window unless picked from within the application (e.g. via the File menu).")],default:"off",scope:n.ConfigurationScope.APPLICATION,markdownDescription:o.isMacintosh?(0,r.localize)(3939,"Controls whether files should open in a new window when using a command line or file dialog.\nNote that there can still be cases where this setting is ignored (e.g. when using the `--new-window` or `--reuse-window` command line option)."):(0,r.localize)(3940,"Controls whether files should open in a new window when using a command line or file dialog.\nNote that there can still be cases where this setting is ignored (e.g. when using the `--new-window` or `--reuse-window` command line option).")},"window.openFoldersInNewWindow":{type:"string",enum:["on","off","default"],enumDescriptions:[(0,r.localize)(3941,"Folders will open in a new window."),(0,r.localize)(3942,"Folders will replace the last active window."),(0,r.localize)(3943,"Folders will open in a new window unless a folder is picked from within the application (e.g. via the File menu).")],default:"default",scope:n.ConfigurationScope.APPLICATION,markdownDescription:(0,r.localize)(3944,"Controls whether folders should open in a new window or replace the last active window.\nNote that there can still be cases where this setting is ignored (e.g. when using the `--new-window` or `--reuse-window` command line option).")},"window.confirmBeforeClose":{type:"string",enum:["always","keyboardOnly","never"],enumDescriptions:[o.isWeb?(0,r.localize)(3945,"Always try to ask for confirmation. Note that browsers may still decide to close a tab or window without confirmation."):(0,r.localize)(3946,"Always ask for confirmation."),o.isWeb?(0,r.localize)(3947,"Only ask for confirmation if a keybinding was used to close the window. Note that detection may not be possible in some cases."):(0,r.localize)(3948,"Only ask for confirmation if a keybinding was used."),o.isWeb?(0,r.localize)(3949,"Never explicitly ask for confirmation unless data loss is imminent."):(0,r.localize)(3950,"Never explicitly ask for confirmation.")],default:o.isWeb&&!(0,i.isStandalone)()?"keyboardOnly":"never",markdownDescription:o.isWeb?(0,r.localize)(3951,"Controls whether to show a confirmation dialog before closing the browser tab or window. Note that even if enabled, browsers may still decide to close a tab or window without confirmation and that this setting is only a hint that may not work in all cases."):(0,r.localize)(3952,"Controls whether to show a confirmation dialog before closing a window or quitting the application."),scope:n.ConfigurationScope.APPLICATION}}}),(0,c.registerWorkbenchContribution2)(d.DynamicWindowConfiguration.ID,d.DynamicWindowConfiguration,c.WorkbenchPhase.Eventually),p.registerConfiguration({...d.problemsConfigurationNodeBase,properties:{"problems.visibility":{type:"boolean",default:!0,description:(0,r.localize)(3953,"Controls whether the problems are visible throughout the editor and workbench.")}}}),p.registerConfiguration({id:"zenMode",order:9,title:(0,r.localize)(3954,"Zen Mode"),type:"object",properties:{"zenMode.fullScreen":{type:"boolean",default:!0,description:(0,r.localize)(3955,"Controls whether turning on Zen Mode also puts the workbench into full screen mode.")},"zenMode.centerLayout":{type:"boolean",default:!0,description:(0,r.localize)(3956,"Controls whether turning on Zen Mode also centers the layout.")},"zenMode.showTabs":{type:"string",enum:["multiple","single","none"],description:(0,r.localize)(3957,"Controls whether turning on Zen Mode should show multiple editor tabs, a single editor tab, or hide the editor title area completely."),enumDescriptions:[(0,r.localize)(3958,"Each editor is displayed as a tab in the editor title area."),(0,r.localize)(3959,"The active editor is displayed as a single large tab in the editor title area."),(0,r.localize)(3960,"The editor title area is not displayed.")],default:"multiple"},"zenMode.hideStatusBar":{type:"boolean",default:!0,description:(0,r.localize)(3961,"Controls whether turning on Zen Mode also hides the status bar at the bottom of the workbench.")},"zenMode.hideActivityBar":{type:"boolean",default:!0,description:(0,r.localize)(3962,"Controls whether turning on Zen Mode also hides the activity bar either at the left or right of the workbench.")},"zenMode.hideLineNumbers":{type:"boolean",default:!0,description:(0,r.localize)(3963,"Controls whether turning on Zen Mode also hides the editor line numbers.")},"zenMode.restore":{type:"boolean",default:!0,description:(0,r.localize)(3964,"Controls whether a window should restore to Zen Mode if it was exited in Zen Mode.")},"zenMode.silentNotifications":{type:"boolean",default:!0,description:(0,r.localize)(3965,"Controls whether notifications do not disturb mode should be enabled while in Zen Mode. If true, only error notifications will pop out.")}}}),a.Registry.as(d.Extensions.ConfigurationMigration).registerConfigurationMigrations([{key:"workbench.activityBar.visible",migrateFn:e=>{let t=[];return void 0!==e&&t.push(["workbench.activityBar.visible",{value:void 0}]),!1===e&&t.push([u.LayoutSettings.ACTIVITY_BAR_LOCATION,{value:u.ActivityBarPosition.HIDDEN}]),t}}]),a.Registry.as(d.Extensions.ConfigurationMigration).registerConfigurationMigrations([{key:u.LayoutSettings.ACTIVITY_BAR_LOCATION,migrateFn:e=>{let t=[];return"side"===e&&t.push([u.LayoutSettings.ACTIVITY_BAR_LOCATION,{value:u.ActivityBarPosition.DEFAULT}]),t}}]),a.Registry.as(d.Extensions.ConfigurationMigration).registerConfigurationMigrations([{key:"workbench.editor.doubleClickTabToToggleEditorGroupSizes",migrateFn:e=>{let t=[];return"boolean"==typeof e&&t.push(["workbench.editor.doubleClickTabToToggleEditorGroupSizes",{value:e=e?"expand":"off"}]),t}},{key:u.LayoutSettings.EDITOR_TABS_MODE,migrateFn:e=>{let t=[];return"boolean"==typeof e&&(e=e?u.EditorTabsMode.MULTIPLE:u.EditorTabsMode.SINGLE,t.push([u.LayoutSettings.EDITOR_TABS_MODE,{value:e}])),t}},{key:"workbench.editor.tabCloseButton",migrateFn:e=>{let t=[];return"left"===e||"right"===e?t.push(["workbench.editor.tabActionLocation",{value:e}]):"off"===e&&t.push(["workbench.editor.tabActionCloseVisibility",{value:!1}]),t}},{key:"zenMode.hideTabs",migrateFn:e=>{let t=[["zenMode.hideTabs",{value:void 0}]];return!0===e&&t.push(["zenMode.showTabs",{value:"single"}]),t}}]),e.s([])},930941,885277,884425,e=>{"use strict";var t=e.i(281482),i=e.i(526097),o=e.i(428048),r=e.i(704994),n=e.i(827522),s=e.i(487106),a=e.i(488259);e.i(930383);var d=e.i(560165),c=e.i(79522),l=e.i(922292),u=e.i(839511);e.i(542154),e.i(188050),e.i(641243),e.i(846140),e.i(669009),e.i(706925);let h=()=>!1,p=()=>!1,g=u.CommandsQuickAccessProvider.prototype.getCommandPicks;u.CommandsQuickAccessProvider.prototype.getCommandPicks=async function(e){let t=await g.call(this,e);return h()||(t=t.map(e=>({...e,buttons:void 0}))),t};let m=class{constructor(e){this.instantiationService=e,this.workbenchQuickInputService=e.createInstance(d.QuickInputService)}toggleHover(){return this.activeService.toggleHover()}get activeService(){let e=s.StandaloneServices.get(c.ICodeEditorService).getFocusedCodeEditor();return null==e||p(e,e instanceof l.StandaloneCodeEditor)?this.workbenchQuickInputService:(this.standaloneQuickInputService??(this.standaloneQuickInputService=this.instantiationService.createInstance(n.StandaloneQuickInputService)),this.standaloneQuickInputService)}get currentQuickInput(){return this.activeService.currentQuickInput}get quickAccess(){return this.activeService.quickAccess}get backButton(){return this.activeService.backButton}get onShow(){return this.activeService.onShow}get onHide(){return this.activeService.onHide}createQuickWidget(){return this.activeService.createQuickWidget()}pick(e,t={},i=r.CancellationToken.None){return this.activeService.pick(e,t,i)}input(e,t){return this.activeService.input(e,t)}createQuickPick(e={useSeparators:!1}){return this.activeService.createQuickPick(e)}createQuickTree(){return this.activeService.createQuickTree()}createInputBox(){return this.activeService.createInputBox()}focus(){return this.activeService.focus()}toggle(){return this.activeService.toggle()}navigate(e,t){return this.activeService.navigate(e,t)}accept(){return this.activeService.accept()}back(){return this.activeService.back()}cancel(){return this.activeService.cancel()}setAlignment(e){return this.activeService.setAlignment(e)}};m=(0,t.__decorate)([(0,t.__param)(0,a.IInstantiationService)],m),e.s(["default",0,function({isKeybindingConfigurationVisible:e,shouldUseGlobalPicker:t}={}){return null!=e&&(h=e),null!=t&&(p=t),{[o.IQuickInputService.toString()]:new i.SyncDescriptor(m,[],!0)}}],930941);var v=e.i(702320),y=e.i(693162),f=e.i(802136),_=e.i(255338),C=e.i(619122),S=e.i(72469),b=e.i(290231),I=e.i(535567);e.i(650289),e.i(682807),e.i(354244),e.i(611130),e.i(771275),e.i(595996),e.i(601293),e.i(168221);let E=/^([^.]+\..+)[:=](.+)$/;e.s(["EXTENSION_IDENTIFIER_WITH_LOG_REGEX",0,E],885277);class w{get remoteAuthority(){return this.options.remoteAuthority}get expectsResolverExtension(){return!!this.options.remoteAuthority?.includes("+")&&!this.options.webSocketFactory}get isBuilt(){return!!this.productService.commit}get logLevel(){let e=this.payload?.get("logLevel");return e?e.split(",").find(e=>!E.test(e)):this.options.developmentOptions?.logLevel!==void 0?(0,b.LogLevelToString)(this.options.developmentOptions?.logLevel):void 0}get extensionLogLevel(){let e=this.payload?.get("logLevel");if(e){let t=[];for(let i of e.split(",")){let e=E.exec(i);e?.[1]&&e[2]&&t.push([e[1],e[2]])}return t.length?t:void 0}return this.options.developmentOptions?.extensionLogLevel!==void 0?this.options.developmentOptions?.extensionLogLevel.map(([e,t])=>[e,(0,b.LogLevelToString)(t)]):void 0}get profDurationMarkers(){let e=this.payload?.get("profDurationMarkers");if(e){let t=[];for(let i of e.split(","))t.push(i);return 2===t.length?t:void 0}}get windowLogsPath(){return this.logsHome}get logFile(){return(0,y.joinPath)(this.windowLogsPath,"window.log")}get userRoamingDataHome(){return f.URI.file("/User").with({scheme:v.Schemas.vscodeUserData})}get argvResource(){return(0,y.joinPath)(this.userRoamingDataHome,"argv.json")}get cacheHome(){return(0,y.joinPath)(this.userRoamingDataHome,"caches")}get workspaceStorageHome(){return(0,y.joinPath)(this.userRoamingDataHome,"workspaceStorage")}get localHistoryHome(){return(0,y.joinPath)(this.userRoamingDataHome,"History")}get stateResource(){return(0,y.joinPath)(this.userRoamingDataHome,"State","storage.json")}get userDataSyncHome(){return(0,y.joinPath)(this.userRoamingDataHome,"sync",this.workspaceId)}get sync(){}get keyboardLayoutResource(){return(0,y.joinPath)(this.userRoamingDataHome,"keyboardLayout.json")}get untitledWorkspacesHome(){return(0,y.joinPath)(this.userRoamingDataHome,"Workspaces")}get serviceMachineIdResource(){return(0,y.joinPath)(this.userRoamingDataHome,"machineid")}get extHostLogsPath(){return(0,y.joinPath)(this.logsHome,"exthost")}get debugExtensionHost(){return this.extensionHostDebugEnvironment||(this.extensionHostDebugEnvironment=this.resolveExtensionHostDebugEnvironment()),this.extensionHostDebugEnvironment.params}get isExtensionDevelopment(){return this.extensionHostDebugEnvironment||(this.extensionHostDebugEnvironment=this.resolveExtensionHostDebugEnvironment()),this.extensionHostDebugEnvironment.isExtensionDevelopment}get extensionDevelopmentLocationURI(){return this.extensionHostDebugEnvironment||(this.extensionHostDebugEnvironment=this.resolveExtensionHostDebugEnvironment()),this.extensionHostDebugEnvironment.extensionDevelopmentLocationURI}get extensionDevelopmentLocationKind(){return this.extensionHostDebugEnvironment||(this.extensionHostDebugEnvironment=this.resolveExtensionHostDebugEnvironment()),this.extensionHostDebugEnvironment.extensionDevelopmentKind}get extensionTestsLocationURI(){return this.extensionHostDebugEnvironment||(this.extensionHostDebugEnvironment=this.resolveExtensionHostDebugEnvironment()),this.extensionHostDebugEnvironment.extensionTestsLocationURI}get extensionEnabledProposedApi(){return this.extensionHostDebugEnvironment||(this.extensionHostDebugEnvironment=this.resolveExtensionHostDebugEnvironment()),this.extensionHostDebugEnvironment.extensionEnabledProposedApi}get debugRenderer(){return this.extensionHostDebugEnvironment||(this.extensionHostDebugEnvironment=this.resolveExtensionHostDebugEnvironment()),this.extensionHostDebugEnvironment.debugRenderer}get enableSmokeTestDriver(){return this.options.developmentOptions?.enableSmokeTestDriver}get disableExtensions(){return this.payload?.get("disableExtensions")==="true"}get enableExtensions(){return this.options.enabledExtensions}get webviewExternalEndpoint(){let e=this.options.webviewEndpoint||this.productService.webviewContentExternalBaseUrlTemplate||"https://{{uuid}}.vscode-cdn.net/{{quality}}/{{commit}}/out/vs/workbench/contrib/webview/browser/pre/",t=this.payload?.get("webviewExternalEndpointCommit");return e.replace("{{commit}}",t??this.productService.commit??"ef65ac1ba57f57f2a3961bfe94aa20481caca4c6").replace("{{quality}}",(t?"insider":this.productService.quality)??"insider")}get extensionTelemetryLogResource(){return(0,y.joinPath)(this.logsHome,"extensionTelemetry.log")}get disableTelemetry(){return!1}get disableExperiments(){return!1}get verbose(){return this.payload?.get("verbose")==="true"}get logExtensionHostCommunication(){return this.payload?.get("logExtensionHostCommunication")==="true"}get skipReleaseNotes(){return this.payload?.get("skipReleaseNotes")==="true"}get skipWelcome(){return this.payload?.get("skipWelcome")==="true"}get disableWorkspaceTrust(){return!this.options.enableWorkspaceTrust}get profile(){return this.payload?.get("profile")}get editSessionId(){return this.options.editSessionId}constructor(e,t,i,o){if(this.workspaceId=e,this.logsHome=t,this.options=i,this.productService=o,this.extensionHostDebugEnvironment=void 0,i.workspaceProvider&&Array.isArray(i.workspaceProvider.payload))try{this.payload=new Map(i.workspaceProvider.payload)}catch(e){(0,C.onUnexpectedError)(e)}}resolveExtensionHostDebugEnvironment(){let e={params:{port:null,break:!1},debugRenderer:!1,isExtensionDevelopment:!1,extensionDevelopmentLocationURI:void 0,extensionDevelopmentKind:void 0};if(this.payload)for(let[t,i]of this.payload)switch(t){case"extensionDevelopmentPath":e.extensionDevelopmentLocationURI||(e.extensionDevelopmentLocationURI=[]),e.extensionDevelopmentLocationURI.push(f.URI.parse(i)),e.isExtensionDevelopment=!0;break;case"extensionDevelopmentKind":e.extensionDevelopmentKind=[i];break;case"extensionTestsPath":e.extensionTestsLocationURI=f.URI.parse(i);break;case"debugRenderer":e.debugRenderer="true"===i;break;case"debugId":e.params.debugId=i;break;case"inspect-brk-extensions":e.params.port=parseInt(i),e.params.break=!0;break;case"inspect-extensions":e.params.port=parseInt(i);break;case"enableProposedApi":e.extensionEnabledProposedApi=[]}let t=this.options.developmentOptions;return t&&!e.isExtensionDevelopment&&(t.extensions?.length&&(e.extensionDevelopmentLocationURI=t.extensions.map(e=>f.URI.revive(e)),e.isExtensionDevelopment=!0),t.extensionTestsPath&&(e.extensionTestsLocationURI=f.URI.revive(t.extensionTestsPath))),e}get filesToOpenOrCreate(){if(this.payload){let e=this.payload.get("openFile");if(e){let t=f.URI.parse(e);if(this.payload.has("gotoLineMode")){let e=(0,S.parseLineAndColumnAware)(t.path);return[{fileUri:t.with({path:e.path}),options:{selection:(0,I.isUndefined)(e.line)?void 0:{startLineNumber:e.line,startColumn:e.column||1}}}]}return[{fileUri:t}]}}}get filesToDiff(){if(this.payload){let e=this.payload.get("diffFilePrimary"),t=this.payload.get("diffFileSecondary");if(e&&t)return[{fileUri:f.URI.parse(t)},{fileUri:f.URI.parse(e)}]}}get filesToMerge(){if(this.payload){let e=this.payload.get("mergeFile1"),t=this.payload.get("mergeFile2"),i=this.payload.get("mergeFileBase"),o=this.payload.get("mergeFileResult");if(e&&t&&i&&o)return[{fileUri:f.URI.parse(e)},{fileUri:f.URI.parse(t)},{fileUri:f.URI.parse(i)},{fileUri:f.URI.parse(o)}]}}}w.__decorator=(0,t.__decorate)([_.memoize],w.prototype,"remoteAuthority",null),w.__decorator=(0,t.__decorate)([_.memoize],w.prototype,"expectsResolverExtension",null),w.__decorator=(0,t.__decorate)([_.memoize],w.prototype,"isBuilt",null),w.__decorator=(0,t.__decorate)([_.memoize],w.prototype,"logLevel",null),w.__decorator=(0,t.__decorate)([_.memoize],w.prototype,"windowLogsPath",null),w.__decorator=(0,t.__decorate)([_.memoize],w.prototype,"logFile",null),w.__decorator=(0,t.__decorate)([_.memoize],w.prototype,"userRoamingDataHome",null),w.__decorator=(0,t.__decorate)([_.memoize],w.prototype,"argvResource",null),w.__decorator=(0,t.__decorate)([_.memoize],w.prototype,"cacheHome",null),w.__decorator=(0,t.__decorate)([_.memoize],w.prototype,"workspaceStorageHome",null),w.__decorator=(0,t.__decorate)([_.memoize],w.prototype,"localHistoryHome",null),w.__decorator=(0,t.__decorate)([_.memoize],w.prototype,"stateResource",null),w.__decorator=(0,t.__decorate)([_.memoize],w.prototype,"userDataSyncHome",null),w.__decorator=(0,t.__decorate)([_.memoize],w.prototype,"sync",null),w.__decorator=(0,t.__decorate)([_.memoize],w.prototype,"keyboardLayoutResource",null),w.__decorator=(0,t.__decorate)([_.memoize],w.prototype,"untitledWorkspacesHome",null),w.__decorator=(0,t.__decorate)([_.memoize],w.prototype,"serviceMachineIdResource",null),w.__decorator=(0,t.__decorate)([_.memoize],w.prototype,"extHostLogsPath",null),w.__decorator=(0,t.__decorate)([_.memoize],w.prototype,"debugExtensionHost",null),w.__decorator=(0,t.__decorate)([_.memoize],w.prototype,"isExtensionDevelopment",null),w.__decorator=(0,t.__decorate)([_.memoize],w.prototype,"extensionDevelopmentLocationURI",null),w.__decorator=(0,t.__decorate)([_.memoize],w.prototype,"extensionDevelopmentLocationKind",null),w.__decorator=(0,t.__decorate)([_.memoize],w.prototype,"extensionTestsLocationURI",null),w.__decorator=(0,t.__decorate)([_.memoize],w.prototype,"extensionEnabledProposedApi",null),w.__decorator=(0,t.__decorate)([_.memoize],w.prototype,"debugRenderer",null),w.__decorator=(0,t.__decorate)([_.memoize],w.prototype,"enableSmokeTestDriver",null),w.__decorator=(0,t.__decorate)([_.memoize],w.prototype,"disableExtensions",null),w.__decorator=(0,t.__decorate)([_.memoize],w.prototype,"enableExtensions",null),w.__decorator=(0,t.__decorate)([_.memoize],w.prototype,"webviewExternalEndpoint",null),w.__decorator=(0,t.__decorate)([_.memoize],w.prototype,"extensionTelemetryLogResource",null),w.__decorator=(0,t.__decorate)([_.memoize],w.prototype,"disableTelemetry",null),w.__decorator=(0,t.__decorate)([_.memoize],w.prototype,"disableExperiments",null),w.__decorator=(0,t.__decorate)([_.memoize],w.prototype,"verbose",null),w.__decorator=(0,t.__decorate)([_.memoize],w.prototype,"logExtensionHostCommunication",null),w.__decorator=(0,t.__decorate)([_.memoize],w.prototype,"skipReleaseNotes",null),w.__decorator=(0,t.__decorate)([_.memoize],w.prototype,"skipWelcome",null),w.__decorator=(0,t.__decorate)([_.memoize],w.prototype,"disableWorkspaceTrust",null),w.__decorator=(0,t.__decorate)([_.memoize],w.prototype,"profile",null),w.__decorator=(0,t.__decorate)([_.memoize],w.prototype,"editSessionId",null),w.__decorator=(0,t.__decorate)([_.memoize],w.prototype,"filesToOpenOrCreate",null),w.__decorator=(0,t.__decorate)([_.memoize],w.prototype,"filesToDiff",null),w.__decorator=(0,t.__decorate)([_.memoize],w.prototype,"filesToMerge",null);var D=e.i(253642),A=e.i(347589),x=e.i(63876);let k=class extends w{constructor(e=(0,x.getWorkspaceIdentifier)().id,t=(0,x.getWorkbenchConstructionOptions)(),i){super(e,x.logsPath,t,i)}};k=(0,t.__decorate)([(0,t.__param)(2,A.IProductService)],k),e.s(["default",0,function(e){return{[D.IEnvironmentService.toString()]:new i.SyncDescriptor(k,[void 0,e],!0)}}],884425)},292663,497795,485882,694956,91198,508267,e=>{"use strict";var t=e.i(654295),i=e.i(687449),o=e.i(850887),r=e.i(781808),n=e.i(535567),s=e.i(611130);(0,t.registerCss)(void 0);class a extends i.Component{get dimension(){return this._dimension}get contentPosition(){return this._contentPosition}constructor(e,t,i,o,n){super(e,i,o),this.options=t,this.layoutService=n,this._onDidVisibilityChange=this._register(new r.Emitter),this.onDidVisibilityChange=this._onDidVisibilityChange.event,this._onDidChange=this._register(new r.Emitter),this._register(n.registerPart(this))}onThemeChange(e){this.parent&&super.onThemeChange(e)}create(e,t){this.parent=e,this.titleArea=this.createTitleArea(e,t),this.contentArea=this.createContentArea(e,t),this.partLayout=new d(this.options,this.contentArea),this.updateStyles()}getContainer(){return this.parent}createTitleArea(e,t){}createContentArea(e,t){}setHeaderArea(e){if(this.headerArea)throw Error("Header already exists");this.parent&&this.titleArea&&((0,o.prepend)(this.parent,e),e.classList.add("header-or-footer"),e.classList.add("header"),this.headerArea=e,this.partLayout?.setHeaderVisibility(!0),this.relayout())}setFooterArea(e){if(this.footerArea)throw Error("Footer already exists");this.parent&&this.titleArea&&(this.parent.appendChild(e),e.classList.add("header-or-footer"),e.classList.add("footer"),this.footerArea=e,this.partLayout?.setFooterVisibility(!0),this.relayout())}removeHeaderArea(){this.headerArea&&(this.headerArea.remove(),this.headerArea=void 0,this.partLayout?.setHeaderVisibility(!1),this.relayout())}removeFooterArea(){this.footerArea&&(this.footerArea.remove(),this.footerArea=void 0,this.partLayout?.setFooterVisibility(!1),this.relayout())}relayout(){this.dimension&&this.contentPosition&&this.layout(this.dimension.width,this.dimension.height,this.contentPosition.top,this.contentPosition.left)}layoutContents(e,t){return(0,n.assertReturnsDefined)(this.partLayout).layout(e,t)}get onDidChange(){return this._onDidChange.event}layout(e,t,i,r){this._dimension=new o.Dimension(e,t),this._contentPosition={top:i,left:r}}setVisible(e){this._onDidVisibilityChange.fire(e)}}class d{static{this.HEADER_HEIGHT=35}static{this.TITLE_HEIGHT=35}static{this.Footer_HEIGHT=35}constructor(e,t){this.options=e,this.contentArea=t,this.headerVisible=!1,this.footerVisible=!1}layout(e,t){let i,r,n;i=this.options.hasTitle?new o.Dimension(e,Math.min(t,d.TITLE_HEIGHT)):o.Dimension.None,r=this.headerVisible?new o.Dimension(e,Math.min(t,d.HEADER_HEIGHT)):o.Dimension.None,n=this.footerVisible?new o.Dimension(e,Math.min(t,d.Footer_HEIGHT)):o.Dimension.None;let s=e;this.options&&"function"==typeof this.options.borderWidth&&(s-=this.options.borderWidth());let a=new o.Dimension(s,t-i.height-r.height-n.height);return this.contentArea&&(0,o.size)(this.contentArea,a.width,a.height),{headerSize:r,titleSize:i,contentSize:a,footerSize:n}}setFooterVisibility(e){this.footerVisible=e}setHeaderVisibility(e){this.headerVisible=e}}class c extends i.Component{constructor(){super(...arguments),this._parts=new Set}get parts(){return Array.from(this._parts)}registerPart(e){return this._parts.add(e),(0,s.toDisposable)(()=>this.unregisterPart(e))}unregisterPart(e){this._parts.delete(e)}getPart(e){return this.getPartByDocument(e.ownerDocument)}getPartByDocument(e){if(this._parts.size>1){for(let t of this._parts)if(t.element?.ownerDocument===e)return t}return this.mainPart}get activePart(){return this.getPartByDocument((0,o.getActiveDocument)())}}e.s(["MultiWindowParts",0,c,"Part",0,a],292663);var l=e.i(650289),u=e.i(686380),h=e.i(262072),p=e.i(731931),g=e.i(323325),m=e.i(536561),v=e.i(957994),y=e.i(488259),f=e.i(83823),_=e.i(354244),C=e.i(777997),S=e.i(718596),b=e.i(568101),I=e.i(9753),E=e.i(305063),w=e.i(447186),D=e.i(99419),A=e.i(428048),x=e.i(324726),k=e.i(34422),T=e.i(155652),M=u,P=e.i(321012),R=e.i(856884),L=e.i(281482),N=e.i(701898),O=e.i(846960),F=e.i(919101),K=e.i(970672),W=e.i(575210);class z{constructor(e,t){this.descriptorFn=e,this.stylesFn=t}getDescription(){return this.descriptorFn(null)}getColors(e){return this.stylesFn?.(e)}}class V extends z{constructor(e,t){super(t,void 0),this.number=e,this.number=e}getDescription(){return this.descriptorFn(this.number)}}class B extends z{constructor(e,t,i){super(t,i),this.icon=e}}class U extends z{constructor(e){super(e,void 0)}}e.s(["IconBadge",0,B,"NumberBadge",0,V,"ProgressBadge",0,U],497795);var H=e.i(250147),q=e.i(84513),G=e.i(134939),$=e.i(527180),Q=e.i(536367),j=e.i(487495);e.i(575129);var Y=e.i(698014);e.i(140331),e.i(471999),e.i(900329),e.i(785266),e.i(181268),e.i(70177),e.i(890787),e.i(67920);var X=u,Z=e.i(553547),J=e.i(788355);class ee extends N.Action{constructor(e){super(e.id,e.name,e.classNames?.join(" "),!0),this.item=e,this._onDidChangeCompositeBarActionItem=this._register(new r.Emitter),this.onDidChangeCompositeBarActionItem=this._onDidChangeCompositeBarActionItem.event,this._onDidChangeActivity=this._register(new r.Emitter),this.onDidChangeActivity=this._onDidChangeActivity.event,this._activities=[]}get compositeBarActionItem(){return this.item}set compositeBarActionItem(e){this._label=e.name,this.item=e,this._onDidChangeCompositeBarActionItem.fire(this)}get activities(){return this._activities}set activities(e){this._activities=e,this._onDidChangeActivity.fire(e)}activate(){this.checked||this._setChecked(!0)}deactivate(){this.checked&&this._setChecked(!1)}}let et=class extends $.BaseActionViewItem{constructor(e,t,i,o,n,a,d){super(null,e,t),this.badgesEnabled=i,this.themeService=o,this.hoverService=n,this.configurationService=a,this.keybindingService=d,this.badgeDisposable=this._register(new s.MutableDisposable),this.options=t,this._register(this.themeService.onDidColorThemeChange(this.onThemeChange,this)),this._register(e.onDidChangeCompositeBarActionItem(()=>this.update())),this._register(r.Event.filter(d.onDidUpdateKeybindings,()=>this.keybindingLabel!==this.computeKeybindingLabel())(()=>this.updateTitle())),this._register(e.onDidChangeActivity(()=>this.updateActivity()))}get compositeBarActionItem(){return this._action.compositeBarActionItem}updateStyles(){let e=this.themeService.getColorTheme(),t=this.options.colors(e);if(this.label){if(this.options.icon){let e=this._action.checked?t.activeForegroundColor:t.inactiveForegroundColor;this.compositeBarActionItem.iconUrl?(this.label.style.backgroundColor=e?e.toString():"",this.label.style.color=""):(this.label.style.color=e?e.toString():"",this.label.style.backgroundColor="")}else{let e=this._action.checked?t.activeForegroundColor:t.inactiveForegroundColor,i=this._action.checked?t.activeBorderBottomColor:null;this.label.style.color=e?e.toString():"",this.label.style.borderBottomColor=i?i.toString():""}this.container.style.setProperty("--insert-border-color",t.dragAndDropBorder?t.dragAndDropBorder.toString():"")}if(this.badgeContent){let i=this.getActivities()[0]?.badge.getColors(e),o=i?.badgeForeground??t.badgeForeground??e.getColor(W.badgeForeground),r=i?.badgeBackground??t.badgeBackground??e.getColor(W.badgeBackground),n=i?.badgeBorder??e.getColor(Y.contrastBorder);this.badgeContent.style.color=o?o.toString():"",this.badgeContent.style.backgroundColor=r?r.toString():"",this.badgeContent.style.borderStyle=n&&!this.options.compact?"solid":"",this.badgeContent.style.borderWidth=n?"1px":"",this.badgeContent.style.borderColor=n?n.toString():""}}render(e){super.render(e),this.container=e,this.options.icon&&this.container.classList.add("icon"),this.options.hasPopup?(this.container.setAttribute("role","button"),this.container.setAttribute("aria-haspopup","true")):this.container.setAttribute("role","tab"),this._register((0,o.addDisposableListener)(this.container,o.EventType.MOUSE_DOWN,()=>{this.container.classList.add("clicked")})),this._register((0,o.addDisposableListener)(this.container,o.EventType.MOUSE_UP,()=>{this.mouseUpTimeout&&clearTimeout(this.mouseUpTimeout),this.mouseUpTimeout=setTimeout(()=>{this.container.classList.remove("clicked")},800)})),this._register(this.hoverService.setupDelayedHover(this.container,()=>({content:this.computeTitle(),style:J.HoverStyle.Pointer,position:{hoverPosition:this.options.hoverOptions.position()},persistence:{hideOnKeyDown:!0}}),{groupId:"composite-bar-actions"})),this.label=(0,o.append)(e,(0,o.$)("a")),this.badge=(0,o.append)(e,(0,o.$)(".badge")),this.badgeContent=(0,o.append)(this.badge,(0,o.$)(".badge-content")),(0,o.append)(e,(0,o.$)(".active-item-indicator")),(0,o.hide)(this.badge),this.update(),this.updateStyles(),this.updateTitle()}onThemeChange(e){this.updateStyles()}update(){this.updateLabel(),this.updateActivity(),this.updateTitle(),this.updateStyles()}getActivities(){return this._action instanceof ee?this._action.activities:[]}updateActivity(){if(!this.badge||!this.badgeContent||!(this._action instanceof ee))return;let{badges:e,type:t}=this.getVisibleBadges(this.getActivities());this.badgeDisposable.value=new s.DisposableStore,(0,o.clearNode)(this.badgeContent),(0,o.hide)(this.badge);let i=this.badgesEnabled(this.compositeBarActionItem.id);if(e.length>0&&i){let i=[];if(this.options.compact&&i.push("compact"),"progress"===t)(0,o.show)(this.badge),i.push("progress-badge");else if("number"===t){let t=e.reduce((e,t)=>e+(t instanceof V?t.number:0),0);if(t>0){let e=t.toString();if(t>999){let i=t/1e3,o=Math.floor(i);e=i>o?`${o}K+`:`${i}K`}this.options.compact&&e.length>=3&&i.push("compact-content"),this.badgeContent.textContent=e,(0,o.show)(this.badge)}}else if("icon"===t){i.push("icon-badge");let t=["icon-overlay",...Q.ThemeIcon.asClassNameArray(e[0].icon)];this.badgeContent.classList.add(...t),this.badgeDisposable.value.add((0,s.toDisposable)(()=>this.badgeContent?.classList.remove(...t))),(0,o.show)(this.badge)}i.length&&(this.badge.classList.add(...i),this.badgeDisposable.value.add((0,s.toDisposable)(()=>this.badge.classList.remove(...i))))}this.updateTitle(),this.updateStyles()}getVisibleBadges(e){let t=e.filter(e=>e.badge instanceof U).map(e=>e.badge);if(t.length>0)return{badges:t,type:"progress"};let i=e.filter(e=>e.badge instanceof B).map(e=>e.badge);if(i.length>0)return{badges:i,type:"icon"};let o=e.filter(e=>e.badge instanceof V).map(e=>e.badge);return o.length>0?{badges:o,type:"number"}:{badges:[],type:void 0}}updateLabel(){this.label.className="action-label",this.compositeBarActionItem.classNames&&this.label.classList.add(...this.compositeBarActionItem.classNames),this.options.icon||(this.label.textContent=this.action.label)}updateTitle(){let e=this.computeTitle();[this.label,this.badge,this.container].forEach(t=>{t&&(t.setAttribute("aria-label",e),t.setAttribute("title",""),t.removeAttribute("title"))})}computeTitle(){this.keybindingLabel=this.computeKeybindingLabel();let e=this.keybindingLabel?(0,l.localize)(3035,"{0} ({1})",this.compositeBarActionItem.name,this.keybindingLabel):this.compositeBarActionItem.name;for(let t of this.getVisibleBadges(this.action.activities).badges)t.getDescription()&&(e=`${e} - ${t.getDescription()}`);return e}computeKeybindingLabel(){let e=this.compositeBarActionItem.keybindingId?this.keybindingService.lookupKeybinding(this.compositeBarActionItem.keybindingId):null;return e?.getLabel()}dispose(){super.dispose(),this.mouseUpTimeout&&clearTimeout(this.mouseUpTimeout),this.badge.remove()}};et=(0,L.__decorate)([(0,L.__param)(3,K.IThemeService),(0,L.__param)(4,j.IHoverService),(0,L.__param)(5,p.IConfigurationService),(0,L.__param)(6,q.IKeybindingService)],et);let ei=class extends et{constructor(e,t,i,o,r,n,s,a,d,c,l,u){super(e,{icon:!0,colors:n,hasPopup:!0,hoverOptions:s},()=>!0,d,c,l,u),this.getOverflowingComposites=t,this.getActiveCompositeId=i,this.getBadge=o,this.getCompositeOpenAction=r,this.contextMenuService=a}showMenu(){this.contextMenuService.showContextMenu({getAnchor:()=>this.container,getActions:()=>this.getActions(),getCheckedActionsRepresentation:()=>"radio"})}getActions(){return this.getOverflowingComposites().map(e=>{let t,i=this.getCompositeOpenAction(e.id);i.checked=this.getActiveCompositeId()===i.id;let o=this.getBadge(e.id);return o instanceof V&&(t=o.number),t?i.label=(0,l.localize)(3037,"{0} ({1})",e.name,t):i.label=e.name||"",i})}};ei=(0,L.__decorate)([(0,L.__param)(7,F.IContextMenuService),(0,L.__param)(8,K.IThemeService),(0,L.__param)(9,j.IHoverService),(0,L.__param)(10,p.IConfigurationService),(0,L.__param)(11,q.IKeybindingService)],ei);let eo=class extends et{constructor(e,t,i,o,r,n,s,a,d,c,l,u,h,p,g){super(t,e,a.areBadgesEnabled.bind(a),u,h,p,c),this.toggleCompositePinnedAction=i,this.toggleCompositeBadgeAction=o,this.compositeContextMenuActionsProvider=r,this.contextMenuActionsProvider=n,this.dndHandler=s,this.compositeBar=a,this.contextMenuService=d,this.commandService=g}render(e){let t;super.render(e),this.updateChecked(),this.updateEnabled(),this._register((0,o.addDisposableListener)(this.container,o.EventType.CONTEXT_MENU,t=>{o.EventHelper.stop(t,!0),this.showContextMenu(e)})),this._register(G.CompositeDragAndDropObserver.INSTANCE.registerDraggable(this.container,()=>({type:"composite",id:this.compositeBarActionItem.id}),{onDragOver:i=>{let o=i.dragAndDropData.getData().id!==this.compositeBarActionItem.id&&this.dndHandler.onDragOver(i.dragAndDropData,this.compositeBarActionItem.id,i.eventData);(0,G.toggleDropEffect)(i.eventData.dataTransfer,"move",o),t=this.updateFromDragging(e,o,i.eventData)},onDragLeave:i=>{t=this.updateFromDragging(e,!1,i.eventData)},onDragEnd:i=>{t=this.updateFromDragging(e,!1,i.eventData)},onDrop:i=>{o.EventHelper.stop(i.eventData,!0),this.dndHandler.drop(i.dragAndDropData,this.compositeBarActionItem.id,i.eventData,t),t=this.updateFromDragging(e,!1,i.eventData)},onDragStart:e=>{e.dragAndDropData.getData().id===this.compositeBarActionItem.id&&(e.eventData.dataTransfer&&(e.eventData.dataTransfer.effectAllowed="move"),this.blur())}})),[this.badge,this.label].forEach(e=>this._register(new H.DelayedDragHandler(e,()=>{this.action.checked||this.action.run()}))),this.updateStyles()}updateFromDragging(e,t,i){let o=e.getBoundingClientRect(),r=i.clientX,n=i.clientY,s=o.bottom-o.top,a=o.right-o.left,d=n<=o.top+.4*s,c=n>o.bottom-.4*s,l=n<=o.top+.5*s,u=r<=o.left+.4*a,h=r>o.right-.4*a,p=r<=o.left+.5*a,g=e.classList,m={vertical:g.contains("top")?"top":g.contains("bottom")?"bottom":void 0,horizontal:g.contains("left")?"left":g.contains("right")?"right":void 0},v=d||l&&!m.vertical||!c&&"top"===m.vertical,y=c||!l&&!m.vertical||!d&&"bottom"===m.vertical,f=u||p&&!m.horizontal||!h&&"left"===m.horizontal,_=h||!p&&!m.horizontal||!u&&"right"===m.horizontal;if(e.classList.toggle("top",t&&v),e.classList.toggle("bottom",t&&y),e.classList.toggle("left",t&&f),e.classList.toggle("right",t&&_),t)return{verticallyBefore:v,horizontallyBefore:f}}showContextMenu(e){let t=[];this.compositeBarActionItem.keybindingId&&t.push((0,Z.createConfigureKeybindingAction)(this.commandService,this.keybindingService,this.compositeBarActionItem.keybindingId)),t.push(this.toggleCompositePinnedAction,this.toggleCompositeBadgeAction);let i=this.compositeContextMenuActionsProvider(this.compositeBarActionItem.id);i.length&&t.push(...i),this.compositeBar.isPinned(this.compositeBarActionItem.id)?(this.toggleCompositePinnedAction.label=(0,l.localize)(3038,"Hide '{0}'",this.compositeBarActionItem.name),this.toggleCompositePinnedAction.checked=!1,this.toggleCompositePinnedAction.enabled=this.compositeBar.getPinnedCompositeIds().length>1):(this.toggleCompositePinnedAction.label=(0,l.localize)(3039,"Keep '{0}'",this.compositeBarActionItem.name),this.toggleCompositePinnedAction.enabled=!0),this.compositeBar.areBadgesEnabled(this.compositeBarActionItem.id)?this.toggleCompositeBadgeAction.label=(0,l.localize)(3040,"Hide Badge"):this.toggleCompositeBadgeAction.label=(0,l.localize)(3041,"Show Badge");let r=this.contextMenuActionsProvider();r.length&&(t.push(new N.Separator),t.push(...r));let n=(0,o.getDomNodePagePosition)(e),s={x:Math.floor(n.left+n.width/2),y:n.top+n.height};this.contextMenuService.showContextMenu({getAnchor:()=>s,getActions:()=>t,getActionsContext:()=>this.compositeBarActionItem.id})}updateChecked(){this.action.checked?(this.container.classList.add("checked"),this.container.setAttribute("aria-label",this.getTooltip()??this.container.title),this.container.setAttribute("aria-expanded","true"),this.container.setAttribute("aria-selected","true")):(this.container.classList.remove("checked"),this.container.setAttribute("aria-label",this.getTooltip()??this.container.title),this.container.setAttribute("aria-expanded","false"),this.container.setAttribute("aria-selected","false")),this.updateStyles()}updateEnabled(){this.element&&(this.action.enabled?this.element.classList.remove("disabled"):this.element.classList.add("disabled"))}dispose(){super.dispose(),this.label.remove()}};eo=(0,L.__decorate)([(0,L.__param)(8,F.IContextMenuService),(0,L.__param)(9,q.IKeybindingService),(0,L.__param)(10,y.IInstantiationService),(0,L.__param)(11,K.IThemeService),(0,L.__param)(12,j.IHoverService),(0,L.__param)(13,p.IConfigurationService),(0,L.__param)(14,O.ICommandService)],eo);class er extends N.Action{constructor(e,t){super("show.toggleCompositePinned",e?e.name:(0,l.localize)(3042,"Toggle View Pinned")),this.activity=e,this.compositeBar=t,this.checked=!!this.activity&&this.compositeBar.isPinned(this.activity.id)}async run(e){let t=this.activity?this.activity.id:e;this.compositeBar.isPinned(t)?this.compositeBar.unpin(t):this.compositeBar.pin(t)}}class en extends N.Action{constructor(e,t){super("show.toggleCompositeBadge",e?e.name:(0,l.localize)(3043,"Toggle View Badge")),this.compositeBarActionItem=e,this.compositeBar=t,this.checked=!1}async run(e){let t=this.compositeBarActionItem?this.compositeBarActionItem.id:e;this.compositeBar.toggleBadgeEnablement(t)}}class es extends X.Action2{constructor(e,t,i){super(e),this.location=t,this.offset=i}async run(e){let t,i=e.get(k.IPaneCompositePartService),o=i.getActivePaneComposite(this.location);if(!o)return;let r=i.getVisiblePaneCompositeIds(this.location);for(let e=0;e<r.length;e++)if(r[e]===o.getId()){t=r[(e+r.length+this.offset)%r.length];break}void 0!==t&&await i.openPaneComposite(t,this.location,!0)}}e.s(["CompositeActionViewItem",0,eo,"CompositeBarAction",0,ee,"CompositeBarActionViewItem",0,et,"CompositeOverflowActivityAction",0,class extends ee{constructor(e){super({id:"additionalComposites.action",name:(0,l.localize)(3036,"Additional Views"),classNames:Q.ThemeIcon.asClassNameArray(T.Codicon.more)}),this.showMenu=e}async run(){this.showMenu()}},"CompositeOverflowActivityActionViewItem",0,ei,"SwitchCompositeViewAction",0,es,"ToggleCompositeBadgeAction",0,en,"ToggleCompositePinnedAction",0,er],485882);var ea=u,ed=e.i(975445);(0,t.registerCss)(void 0);let ec=(0,P.registerIcon)("panel-maximize",T.Codicon.screenFull,(0,l.localize)(3596,"Icon to maximize a panel.")),el=(0,P.registerIcon)("panel-close",T.Codicon.close,(0,l.localize)(3597,"Icon to close a panel.")),eu=(0,P.registerIcon)("panel-layout-icon",T.Codicon.layoutPanel,(0,l.localize)(3598,"Icon to toggle the panel off when it is on.")),eh=(0,P.registerIcon)("panel-layout-icon-off",T.Codicon.layoutPanelOff,(0,l.localize)(3599,"Icon to toggle the panel on when it is off."));class ep extends ea.Action2{static{this.ID="workbench.action.togglePanel"}static{this.LABEL=(0,l.localize2)(3600,"Toggle Panel Visibility")}constructor(){super({id:ep.ID,title:ep.LABEL,toggled:{condition:R.PanelVisibleContext,title:(0,l.localize)(3601,"Hide Panel"),icon:el,mnemonicTitle:(0,l.localize)(3602,"&&Panel")},icon:el,f1:!0,category:h.Categories.View,metadata:{description:(0,l.localize)(3603,"Open/Show and Close/Hide Panel")},keybinding:{primary:f.KeyMod.CtrlCmd|f.KeyCode.KeyJ,weight:S.KeybindingWeight.WorkbenchContrib},menu:[{id:ea.MenuId.MenubarAppearanceMenu,group:"2_workbench_layout",order:5},{id:ea.MenuId.LayoutControlMenuSubmenu,group:"0_workbench_layout",order:4}]})}async run(e){let t=e.get(v.IWorkbenchLayoutService);t.setPartHidden(t.isVisible(m.Parts.PANEL_PART),m.Parts.PANEL_PART)}}(0,ea.registerAction2)(ep),ea.MenuRegistry.appendMenuItem(ea.MenuId.PanelTitle,{command:{id:ep.ID,title:(0,l.localize)(3601,"Hide Panel"),icon:el},group:"navigation",order:2}),(0,ea.registerAction2)(class extends ea.Action2{constructor(){super({id:"workbench.action.closePanel",title:(0,l.localize2)(3601,"Hide Panel"),category:h.Categories.View,precondition:R.PanelVisibleContext,f1:!0})}run(e){e.get(v.IWorkbenchLayoutService).setPartHidden(!0,m.Parts.PANEL_PART)}}),(0,ea.registerAction2)(class extends ea.Action2{static{this.ID="workbench.action.focusPanel"}static{this.LABEL=(0,l.localize)(3604,"Focus into Panel")}constructor(){super({id:"workbench.action.focusPanel",title:(0,l.localize2)(3604,"Focus into Panel"),category:h.Categories.View,f1:!0})}async run(e){let t=e.get(v.IWorkbenchLayoutService),i=e.get(k.IPaneCompositePartService);t.isVisible(m.Parts.PANEL_PART)||t.setPartHidden(!1,m.Parts.PANEL_PART);let o=i.getActivePaneComposite(E.ViewContainerLocation.Panel);o?.focus()}});function eg(e,t,i,o,r){return{id:e,title:t,shortLabel:i,value:o,when:r}}function em(e,t,i,o){return eg(e,t,i,o,R.PanelPositionContext.notEqualsTo((0,m.positionToString)(o)))}function ev(e,t,i,o){return eg(e,t,i,o,R.PanelAlignmentContext.notEqualsTo(o))}let ey=[em("workbench.action.positionPanelTop",(0,l.localize2)(3605,"Move Panel To Top"),(0,l.localize)(3606,"Top"),m.Position.TOP),em("workbench.action.positionPanelLeft",(0,l.localize2)(3607,"Move Panel Left"),(0,l.localize)(3608,"Left"),m.Position.LEFT),em("workbench.action.positionPanelRight",(0,l.localize2)(3609,"Move Panel Right"),(0,l.localize)(3610,"Right"),m.Position.RIGHT),em("workbench.action.positionPanelBottom",(0,l.localize2)(3611,"Move Panel To Bottom"),(0,l.localize)(3612,"Bottom"),m.Position.BOTTOM)],ef=[ev("workbench.action.alignPanelLeft",(0,l.localize2)(3613,"Set Panel Alignment to Left"),(0,l.localize)(3614,"Left"),"left"),ev("workbench.action.alignPanelRight",(0,l.localize2)(3615,"Set Panel Alignment to Right"),(0,l.localize)(3616,"Right"),"right"),ev("workbench.action.alignPanelCenter",(0,l.localize2)(3617,"Set Panel Alignment to Center"),(0,l.localize)(3618,"Center"),"center"),ev("workbench.action.alignPanelJustify",(0,l.localize2)(3619,"Set Panel Alignment to Justify"),(0,l.localize)(3620,"Justify"),"justify")];ea.MenuRegistry.appendMenuItem(ea.MenuId.MenubarAppearanceMenu,{submenu:ea.MenuId.PanelPositionMenu,title:(0,l.localize)(3621,"Panel Position"),group:"3_workbench_layout_move",order:4}),ey.forEach((e,t)=>{let{id:i,title:o,shortLabel:r,value:n,when:s}=e;(0,ea.registerAction2)(class extends ea.Action2{constructor(){super({id:i,title:o,category:h.Categories.View,f1:!0})}run(e){e.get(v.IWorkbenchLayoutService).setPanelPosition(void 0===n?m.Position.BOTTOM:n)}}),ea.MenuRegistry.appendMenuItem(ea.MenuId.PanelPositionMenu,{command:{id:i,title:r,toggled:s.negate()},order:5+t})}),ea.MenuRegistry.appendMenuItem(ea.MenuId.MenubarAppearanceMenu,{submenu:ea.MenuId.PanelAlignmentMenu,title:(0,l.localize)(3622,"Align Panel"),group:"3_workbench_layout_move",order:5}),ef.forEach(e=>{let{id:t,title:i,shortLabel:o,value:r,when:n}=e;(0,ea.registerAction2)(class extends ea.Action2{constructor(){super({id:t,title:i,category:h.Categories.View,toggled:n.negate(),f1:!0})}run(e){e.get(v.IWorkbenchLayoutService).setPanelAlignment(void 0===r?"center":r)}}),ea.MenuRegistry.appendMenuItem(ea.MenuId.PanelAlignmentMenu,{command:{id:t,title:o,toggled:n.negate()},order:5})}),(0,ea.registerAction2)(class extends es{constructor(){super({id:"workbench.action.previousPanelView",title:(0,l.localize2)(3623,"Previous Panel View"),category:h.Categories.View,f1:!0},E.ViewContainerLocation.Panel,-1)}}),(0,ea.registerAction2)(class extends es{constructor(){super({id:"workbench.action.nextPanelView",title:(0,l.localize2)(3624,"Next Panel View"),category:h.Categories.View,f1:!0},E.ViewContainerLocation.Panel,1)}}),(0,ea.registerAction2)(class extends ea.Action2{constructor(){super({id:"workbench.action.toggleMaximizedPanel",title:(0,l.localize2)(3625,"Toggle Maximized Panel"),tooltip:(0,l.localize)(3626,"Maximize Panel Size"),category:h.Categories.View,f1:!0,icon:ec,precondition:b.ContextKeyExpr.or(R.PanelAlignmentContext.isEqualTo("center"),b.ContextKeyExpr.and(R.PanelPositionContext.notEqualsTo("bottom"),R.PanelPositionContext.notEqualsTo("top"))),toggled:{condition:R.PanelMaximizedContext,icon:ec,tooltip:(0,l.localize)(3627,"Restore Panel Size")},menu:[{id:ea.MenuId.PanelTitle,group:"navigation",order:1,when:b.ContextKeyExpr.or(R.PanelAlignmentContext.isEqualTo("center"),b.ContextKeyExpr.and(R.PanelPositionContext.notEqualsTo("bottom"),R.PanelPositionContext.notEqualsTo("top")))}]})}run(e){let t=e.get(v.IWorkbenchLayoutService),i=e.get(ed.INotificationService);"center"!==t.getPanelAlignment()&&(0,m.isHorizontal)(t.getPanelPosition())?i.warn((0,l.localize)(3628,"Maximizing the panel is only supported when it is center aligned.")):t.isVisible(m.Parts.PANEL_PART)?t.toggleMaximizedPanel():(t.setPartHidden(!1,m.Parts.PANEL_PART),t.isPanelMaximized()||t.toggleMaximizedPanel())}}),ea.MenuRegistry.appendMenuItems([{id:ea.MenuId.LayoutControlMenu,item:{group:"2_pane_toggles",command:{id:ep.ID,title:(0,l.localize)(3629,"Toggle Panel"),icon:eh,toggled:{condition:R.PanelVisibleContext,icon:eu}},when:b.ContextKeyExpr.and(R.IsAuxiliaryWindowContext.negate(),b.ContextKeyExpr.or(b.ContextKeyExpr.equals("config.workbench.layoutControl.type","toggles"),b.ContextKeyExpr.equals("config.workbench.layoutControl.type","both"))),order:1}}]);class e_ extends ea.Action2{constructor(e,t,i){super(i),this.source=e,this.destination=t}run(e){let t=e.get(w.IViewDescriptorService),i=e.get(v.IWorkbenchLayoutService),o=e.get(D.IViewsService),r=t.getViewContainersByLocation(this.source),n=t.getViewContainersByLocation(this.destination);if(r.length){let e=o.getVisibleViewContainer(this.source);r.forEach(e=>t.moveViewContainerToLocation(e,this.destination,void 0,this.desc.id)),i.setPartHidden(!1,this.destination===E.ViewContainerLocation.Panel?m.Parts.PANEL_PART:m.Parts.AUXILIARYBAR_PART),e&&0===n.length&&o.openViewContainer(e.id,!0)}}}class eC extends e_{static{this.ID="workbench.action.movePanelToSidePanel"}constructor(){super(E.ViewContainerLocation.Panel,E.ViewContainerLocation.AuxiliaryBar,{id:eC.ID,title:(0,l.localize2)(3630,"Move Panel Views To Secondary Side Bar"),category:h.Categories.View,f1:!1})}}class eS extends e_{static{this.ID="workbench.action.movePanelToSecondarySideBar"}constructor(){super(E.ViewContainerLocation.Panel,E.ViewContainerLocation.AuxiliaryBar,{id:eS.ID,title:(0,l.localize2)(3630,"Move Panel Views To Secondary Side Bar"),category:h.Categories.View,f1:!0})}}(0,ea.registerAction2)(eC),(0,ea.registerAction2)(eS);class eb extends e_{static{this.ID="workbench.action.moveSidePanelToPanel"}constructor(){super(E.ViewContainerLocation.AuxiliaryBar,E.ViewContainerLocation.Panel,{id:eb.ID,title:(0,l.localize2)(3631,"Move Secondary Side Bar Views To Panel"),category:h.Categories.View,f1:!1})}}class eI extends e_{static{this.ID="workbench.action.moveSecondarySideBarToPanel"}constructor(){super(E.ViewContainerLocation.AuxiliaryBar,E.ViewContainerLocation.Panel,{id:eI.ID,title:(0,l.localize2)(3631,"Move Secondary Side Bar Views To Panel"),category:h.Categories.View,f1:!0})}}(0,ea.registerAction2)(eb),(0,ea.registerAction2)(eI),e.s(["TogglePanelAction",0,ep,"closeIcon",0,el],694956);let eE=(0,P.registerIcon)("auxiliarybar-maximize",T.Codicon.screenFull,(0,l.localize)(3004,"Icon to maximize the secondary side bar.")),ew=(0,P.registerIcon)("auxiliarybar-close",el,(0,l.localize)(3005,"Icon to close the secondary side bar.")),eD=(0,P.registerIcon)("auxiliarybar-right-layout-icon",T.Codicon.layoutSidebarRight,(0,l.localize)(3006,"Icon to toggle the secondary side bar off in its right position.")),eA=(0,P.registerIcon)("auxiliarybar-right-off-layout-icon",T.Codicon.layoutSidebarRightOff,(0,l.localize)(3007,"Icon to toggle the secondary side bar on in its right position.")),ex=(0,P.registerIcon)("auxiliarybar-left-layout-icon",T.Codicon.layoutSidebarLeft,(0,l.localize)(3008,"Icon to toggle the secondary side bar in its left position.")),ek=(0,P.registerIcon)("auxiliarybar-left-off-layout-icon",T.Codicon.layoutSidebarLeftOff,(0,l.localize)(3009,"Icon to toggle the secondary side bar on in its left position."));class eT extends M.Action2{static{this.ID="workbench.action.toggleAuxiliaryBar"}static{this.LABEL=(0,l.localize2)(3010,"Toggle Secondary Side Bar Visibility")}constructor(){super({id:eT.ID,title:eT.LABEL,toggled:{condition:R.AuxiliaryBarVisibleContext,title:(0,l.localize)(3011,"Hide Secondary Side Bar"),icon:ew,mnemonicTitle:(0,l.localize)(3012,"&&Secondary Side Bar")},icon:ew,category:h.Categories.View,metadata:{description:(0,l.localize)(3013,"Open/Show and Close/Hide Secondary Side Bar")},f1:!0,keybinding:{weight:S.KeybindingWeight.WorkbenchContrib,primary:f.KeyMod.CtrlCmd|f.KeyMod.Alt|f.KeyCode.KeyB},menu:[{id:M.MenuId.LayoutControlMenuSubmenu,group:"0_workbench_layout",order:1},{id:M.MenuId.MenubarAppearanceMenu,group:"2_workbench_layout",order:2}]})}async run(e){let t=e.get(v.IWorkbenchLayoutService),i=t.isVisible(m.Parts.AUXILIARYBAR_PART);t.setPartHidden(i,m.Parts.AUXILIARYBAR_PART);let o=i?(0,l.localize)(3014,"Secondary Side Bar hidden"):(0,l.localize)(3015,"Secondary Side Bar shown");(0,g.alert)(o)}}(0,M.registerAction2)(eT),M.MenuRegistry.appendMenuItem(M.MenuId.AuxiliaryBarTitle,{command:{id:eT.ID,title:(0,l.localize)(3011,"Hide Secondary Side Bar"),icon:ew},group:"navigation",order:2,when:b.ContextKeyExpr.equals(`config.${m.LayoutSettings.ACTIVITY_BAR_LOCATION}`,m.ActivityBarPosition.DEFAULT)}),(0,M.registerAction2)(class extends M.Action2{constructor(){super({id:"workbench.action.closeAuxiliaryBar",title:(0,l.localize2)(3011,"Hide Secondary Side Bar"),category:h.Categories.View,precondition:R.AuxiliaryBarVisibleContext,f1:!0})}run(e){e.get(v.IWorkbenchLayoutService).setPartHidden(!0,m.Parts.AUXILIARYBAR_PART)}}),(0,M.registerAction2)(class e extends M.Action2{static{this.ID="workbench.action.focusAuxiliaryBar"}static{this.LABEL=(0,l.localize2)(3016,"Focus into Secondary Side Bar")}constructor(){super({id:e.ID,title:e.LABEL,category:h.Categories.View,f1:!0})}async run(e){let t=e.get(k.IPaneCompositePartService),i=e.get(v.IWorkbenchLayoutService);i.isVisible(m.Parts.AUXILIARYBAR_PART)||i.setPartHidden(!1,m.Parts.AUXILIARYBAR_PART);let o=t.getActivePaneComposite(E.ViewContainerLocation.AuxiliaryBar);o?.focus()}}),M.MenuRegistry.appendMenuItems([{id:M.MenuId.LayoutControlMenu,item:{group:"2_pane_toggles",command:{id:eT.ID,title:(0,l.localize)(3017,"Toggle Secondary Side Bar"),toggled:{condition:R.AuxiliaryBarVisibleContext,icon:ex},icon:ek},when:b.ContextKeyExpr.and(R.IsAuxiliaryWindowContext.negate(),b.ContextKeyExpr.or(b.ContextKeyExpr.equals("config.workbench.layoutControl.type","toggles"),b.ContextKeyExpr.equals("config.workbench.layoutControl.type","both")),b.ContextKeyExpr.equals("config.workbench.sideBar.location","right")),order:0}},{id:M.MenuId.LayoutControlMenu,item:{group:"2_pane_toggles",command:{id:eT.ID,title:(0,l.localize)(3017,"Toggle Secondary Side Bar"),toggled:{condition:R.AuxiliaryBarVisibleContext,icon:eD},icon:eA},when:b.ContextKeyExpr.and(R.IsAuxiliaryWindowContext.negate(),b.ContextKeyExpr.or(b.ContextKeyExpr.equals("config.workbench.layoutControl.type","toggles"),b.ContextKeyExpr.equals("config.workbench.layoutControl.type","both")),b.ContextKeyExpr.equals("config.workbench.sideBar.location","left")),order:2}},{id:M.MenuId.ViewContainerTitleContext,item:{group:"3_workbench_layout_move",command:{id:eT.ID,title:(0,l.localize2)(3018,"Hide Secondary Side Bar")},when:b.ContextKeyExpr.and(R.AuxiliaryBarVisibleContext,b.ContextKeyExpr.equals("viewContainerLocation",(0,E.ViewContainerLocationToString)(E.ViewContainerLocation.AuxiliaryBar))),order:2}}]),(0,M.registerAction2)(class extends es{constructor(){super({id:"workbench.action.previousAuxiliaryBarView",title:(0,l.localize2)(3019,"Previous Secondary Side Bar View"),category:h.Categories.View,f1:!0},E.ViewContainerLocation.AuxiliaryBar,-1)}}),(0,M.registerAction2)(class extends es{constructor(){super({id:"workbench.action.nextAuxiliaryBarView",title:(0,l.localize2)(3020,"Next Secondary Side Bar View"),category:h.Categories.View,f1:!0},E.ViewContainerLocation.AuxiliaryBar,1)}});class eM extends M.Action2{static{this.ID="workbench.action.maximizeAuxiliaryBar"}constructor(){super({id:eM.ID,title:(0,l.localize2)(3021,"Maximize Secondary Side Bar"),tooltip:(0,l.localize)(3022,"Maximize Secondary Side Bar Size"),category:h.Categories.View,f1:!0,precondition:R.AuxiliaryBarMaximizedContext.negate(),icon:eE,menu:{id:M.MenuId.AuxiliaryBarTitle,group:"navigation",order:1,when:R.AuxiliaryBarMaximizedContext.negate()}})}run(e){e.get(v.IWorkbenchLayoutService).setAuxiliaryBarMaximized(!0)}}(0,M.registerAction2)(eM);class eP extends M.Action2{static{this.ID="workbench.action.restoreAuxiliaryBar"}constructor(){super({id:eP.ID,title:(0,l.localize2)(3023,"Restore Secondary Side Bar"),tooltip:(0,l.localize)(3024,"Restore Secondary Side Bar Size"),category:h.Categories.View,f1:!0,precondition:R.AuxiliaryBarMaximizedContext,toggled:R.AuxiliaryBarMaximizedContext,icon:eE,menu:{id:M.MenuId.AuxiliaryBarTitle,group:"navigation",order:1,when:R.AuxiliaryBarMaximizedContext}})}run(e){e.get(v.IWorkbenchLayoutService).setAuxiliaryBarMaximized(!1)}}(0,M.registerAction2)(eP);class eR extends M.Action2{static{this.ID="workbench.action.toggleMaximizedAuxiliaryBar"}constructor(){super({id:eR.ID,title:(0,l.localize2)(3025,"Toggle Maximized Secondary Side Bar"),f1:!0,category:h.Categories.View})}run(e){e.get(v.IWorkbenchLayoutService).toggleMaximizedAuxiliaryBar()}}(0,M.registerAction2)(eR),e.s(["ToggleAuxiliaryBarAction",0,eT],91198);var eL=e.i(865562),eN=e.i(670913),eO=e.i(509046),eF=e.i(121234),eK=e.i(891110);let eW=(0,P.registerIcon)("menuBar",T.Codicon.layoutMenubar,(0,l.localize)(2774,"Represents the menu bar")),ez=(0,P.registerIcon)("activity-bar-left",T.Codicon.layoutActivitybarLeft,(0,l.localize)(2775,"Represents the activity bar in the left position")),eV=(0,P.registerIcon)("activity-bar-right",T.Codicon.layoutActivitybarRight,(0,l.localize)(2776,"Represents the activity bar in the right position")),eB=(0,P.registerIcon)("panel-left",T.Codicon.layoutSidebarLeft,(0,l.localize)(2777,"Represents a side bar in the left position")),eU=(0,P.registerIcon)("panel-left-off",T.Codicon.layoutSidebarLeftOff,(0,l.localize)(2778,"Represents a side bar in the left position toggled off")),eH=(0,P.registerIcon)("panel-right",T.Codicon.layoutSidebarRight,(0,l.localize)(2779,"Represents side bar in the right position")),eq=(0,P.registerIcon)("panel-right-off",T.Codicon.layoutSidebarRightOff,(0,l.localize)(2780,"Represents side bar in the right position toggled off")),eG=(0,P.registerIcon)("panel-bottom",T.Codicon.layoutPanel,(0,l.localize)(2781,"Represents the bottom panel")),e$=(0,P.registerIcon)("statusBar",T.Codicon.layoutStatusbar,(0,l.localize)(2782,"Represents the status bar")),eQ=(0,P.registerIcon)("panel-align-left",T.Codicon.layoutPanelLeft,(0,l.localize)(2783,"Represents the bottom panel alignment set to the left")),ej=(0,P.registerIcon)("panel-align-right",T.Codicon.layoutPanelRight,(0,l.localize)(2784,"Represents the bottom panel alignment set to the right")),eY=(0,P.registerIcon)("panel-align-center",T.Codicon.layoutPanelCenter,(0,l.localize)(2785,"Represents the bottom panel alignment set to the center")),eX=(0,P.registerIcon)("panel-align-justify",T.Codicon.layoutPanelJustify,(0,l.localize)(2786,"Represents the bottom panel alignment set to justified")),eZ=(0,P.registerIcon)("quickInputAlignmentTop",T.Codicon.arrowUp,(0,l.localize)(2787,"Represents quick input alignment set to the top")),eJ=(0,P.registerIcon)("quickInputAlignmentCenter",T.Codicon.circle,(0,l.localize)(2788,"Represents quick input alignment set to the center")),e0=(0,P.registerIcon)("fullscreen",T.Codicon.screenFull,(0,l.localize)(2789,"Represents full screen")),e1=(0,P.registerIcon)("centerLayoutIcon",T.Codicon.layoutCentered,(0,l.localize)(2790,"Represents centered layout mode")),e2=(0,P.registerIcon)("zenMode",T.Codicon.target,(0,l.localize)(2791,"Represents zen mode")),e3="workbench.action.toggleActivityBarVisibility";(0,u.registerAction2)(class extends u.Action2{constructor(){super({id:"workbench.action.toggleCenteredLayout",title:{...(0,l.localize2)(2792,"Toggle Centered Layout"),mnemonicTitle:(0,l.localize)(2793,"&&Centered Layout")},precondition:R.IsAuxiliaryWindowFocusedContext.toNegated(),category:h.Categories.View,f1:!0,toggled:R.IsMainEditorCenteredLayoutContext,menu:[{id:u.MenuId.MenubarAppearanceMenu,group:"1_toggle_view",order:3}]})}run(e){let t=e.get(v.IWorkbenchLayoutService),i=e.get(eK.IEditorGroupsService);t.centerMainEditorLayout(!t.isMainEditorLayoutCentered()),i.activeGroup.focus()}});let e8="workbench.sideBar.location";class e5 extends u.Action2{constructor(e,t,i){super({id:e,title:t,f1:!1}),this.position=i}async run(e){let t=e.get(v.IWorkbenchLayoutService),i=e.get(p.IConfigurationService);if(t.getSideBarPosition()!==this.position)return i.updateValue(e8,(0,m.positionToString)(this.position))}}class e6 extends e5{static{this.ID="workbench.action.moveSideBarRight"}constructor(){super(e6.ID,(0,l.localize2)(2794,"Move Primary Side Bar Right"),m.Position.RIGHT)}}class e7 extends e5{static{this.ID="workbench.action.moveSideBarLeft"}constructor(){super(e7.ID,(0,l.localize2)(2795,"Move Primary Side Bar Left"),m.Position.LEFT)}}(0,u.registerAction2)(e6),(0,u.registerAction2)(e7);class e9 extends u.Action2{static{this.ID="workbench.action.toggleSidebarPosition"}static{this.LABEL=(0,l.localize)(2796,"Toggle Primary Side Bar Position")}static getLabel(e){return e.getSideBarPosition()===m.Position.LEFT?(0,l.localize)(2794,"Move Primary Side Bar Right"):(0,l.localize)(2795,"Move Primary Side Bar Left")}constructor(){super({id:e9.ID,title:(0,l.localize2)(2796,"Toggle Primary Side Bar Position"),category:h.Categories.View,f1:!0})}run(e){let t=e.get(v.IWorkbenchLayoutService),i=e.get(p.IConfigurationService),o=t.getSideBarPosition()===m.Position.LEFT?"right":"left";return i.updateValue(e8,o)}}(0,u.registerAction2)(e9);let e4=(0,P.registerIcon)("configure-layout-icon",T.Codicon.layout,(0,l.localize)(2797,"Icon represents workbench layout configuration."));u.MenuRegistry.appendMenuItem(u.MenuId.LayoutControlMenu,{submenu:u.MenuId.LayoutControlMenuSubmenu,title:(0,l.localize)(2798,"Configure Layout"),icon:e4,group:"1_workbench_layout",when:b.ContextKeyExpr.and(R.IsAuxiliaryWindowContext.negate(),b.ContextKeyExpr.equals("config.workbench.layoutControl.type","menu"))}),u.MenuRegistry.appendMenuItems([{id:u.MenuId.ViewContainerTitleContext,item:{group:"3_workbench_layout_move",command:{id:e9.ID,title:(0,l.localize)(2799,"Move Primary Side Bar Right")},when:b.ContextKeyExpr.and(b.ContextKeyExpr.notEquals("config.workbench.sideBar.location","right"),b.ContextKeyExpr.equals("viewContainerLocation",(0,E.ViewContainerLocationToString)(E.ViewContainerLocation.Sidebar))),order:1}},{id:u.MenuId.ViewContainerTitleContext,item:{group:"3_workbench_layout_move",command:{id:e9.ID,title:(0,l.localize)(2800,"Move Primary Side Bar Left")},when:b.ContextKeyExpr.and(b.ContextKeyExpr.equals("config.workbench.sideBar.location","right"),b.ContextKeyExpr.equals("viewContainerLocation",(0,E.ViewContainerLocationToString)(E.ViewContainerLocation.Sidebar))),order:1}},{id:u.MenuId.ViewContainerTitleContext,item:{group:"3_workbench_layout_move",command:{id:e9.ID,title:(0,l.localize)(2801,"Move Secondary Side Bar Left")},when:b.ContextKeyExpr.and(b.ContextKeyExpr.notEquals("config.workbench.sideBar.location","right"),b.ContextKeyExpr.equals("viewContainerLocation",(0,E.ViewContainerLocationToString)(E.ViewContainerLocation.AuxiliaryBar))),order:1}},{id:u.MenuId.ViewContainerTitleContext,item:{group:"3_workbench_layout_move",command:{id:e9.ID,title:(0,l.localize)(2802,"Move Secondary Side Bar Right")},when:b.ContextKeyExpr.and(b.ContextKeyExpr.equals("config.workbench.sideBar.location","right"),b.ContextKeyExpr.equals("viewContainerLocation",(0,E.ViewContainerLocationToString)(E.ViewContainerLocation.AuxiliaryBar))),order:1}}]),u.MenuRegistry.appendMenuItem(u.MenuId.MenubarAppearanceMenu,{group:"3_workbench_layout_move",command:{id:e9.ID,title:(0,l.localize)(2803,"&&Move Primary Side Bar Right")},when:b.ContextKeyExpr.notEquals("config.workbench.sideBar.location","right"),order:2}),u.MenuRegistry.appendMenuItem(u.MenuId.MenubarAppearanceMenu,{group:"3_workbench_layout_move",command:{id:e9.ID,title:(0,l.localize)(2804,"&&Move Primary Side Bar Left")},when:b.ContextKeyExpr.equals("config.workbench.sideBar.location","right"),order:2}),(0,u.registerAction2)(class extends u.Action2{constructor(){super({id:"workbench.action.toggleEditorVisibility",title:{...(0,l.localize2)(2805,"Toggle Editor Area Visibility"),mnemonicTitle:(0,l.localize)(2806,"Show &&Editor Area")},category:h.Categories.View,f1:!0,toggled:R.MainEditorAreaVisibleContext,precondition:b.ContextKeyExpr.and(R.IsAuxiliaryWindowFocusedContext.toNegated(),b.ContextKeyExpr.or(R.PanelAlignmentContext.isEqualTo("center"),R.PanelPositionContext.notEqualsTo("bottom")))})}run(e){e.get(v.IWorkbenchLayoutService).toggleMaximizedPanel()}}),u.MenuRegistry.appendMenuItem(u.MenuId.MenubarViewMenu,{group:"2_appearance",title:(0,l.localize)(2807,"&&Appearance"),submenu:u.MenuId.MenubarAppearanceMenu,order:1});class te extends u.Action2{static{this.ID="workbench.action.toggleSidebarVisibility"}static{this.LABEL=(0,l.localize)(2808,"Hide Primary Side Bar")}constructor(){super({id:te.ID,title:(0,l.localize2)(2809,"Toggle Primary Side Bar Visibility"),toggled:{condition:R.SideBarVisibleContext,title:(0,l.localize)(2810,"Primary Side Bar"),mnemonicTitle:(0,l.localize)(2811,"&&Primary Side Bar")},metadata:{description:(0,l.localize)(2812,"Open/Show and Close/Hide Sidebar")},category:h.Categories.View,f1:!0,keybinding:{weight:S.KeybindingWeight.WorkbenchContrib,primary:f.KeyMod.CtrlCmd|f.KeyCode.KeyB},menu:[{id:u.MenuId.LayoutControlMenuSubmenu,group:"0_workbench_layout",order:0},{id:u.MenuId.MenubarAppearanceMenu,group:"2_workbench_layout",order:1}]})}run(e){let t=e.get(v.IWorkbenchLayoutService),i=t.isVisible(m.Parts.SIDEBAR_PART);t.setPartHidden(i,m.Parts.SIDEBAR_PART);let o=i?(0,l.localize)(2813,"Primary Side Bar hidden"):(0,l.localize)(2814,"Primary Side Bar shown");(0,g.alert)(o)}}(0,u.registerAction2)(te),u.MenuRegistry.appendMenuItems([{id:u.MenuId.ViewContainerTitleContext,item:{group:"3_workbench_layout_move",command:{id:te.ID,title:(0,l.localize)(2808,"Hide Primary Side Bar")},when:b.ContextKeyExpr.and(R.SideBarVisibleContext,b.ContextKeyExpr.equals("viewContainerLocation",(0,E.ViewContainerLocationToString)(E.ViewContainerLocation.Sidebar))),order:2}},{id:u.MenuId.LayoutControlMenu,item:{group:"2_pane_toggles",command:{id:te.ID,title:(0,l.localize)(2815,"Toggle Primary Side Bar"),icon:eU,toggled:{condition:R.SideBarVisibleContext,icon:eB}},when:b.ContextKeyExpr.and(R.IsAuxiliaryWindowContext.negate(),b.ContextKeyExpr.or(b.ContextKeyExpr.equals("config.workbench.layoutControl.type","toggles"),b.ContextKeyExpr.equals("config.workbench.layoutControl.type","both")),b.ContextKeyExpr.equals("config.workbench.sideBar.location","left")),order:0}},{id:u.MenuId.LayoutControlMenu,item:{group:"2_pane_toggles",command:{id:te.ID,title:(0,l.localize)(2815,"Toggle Primary Side Bar"),icon:eq,toggled:{condition:R.SideBarVisibleContext,icon:eH}},when:b.ContextKeyExpr.and(R.IsAuxiliaryWindowContext.negate(),b.ContextKeyExpr.or(b.ContextKeyExpr.equals("config.workbench.layoutControl.type","toggles"),b.ContextKeyExpr.equals("config.workbench.layoutControl.type","both")),b.ContextKeyExpr.equals("config.workbench.sideBar.location","right")),order:2}}]);class tt extends u.Action2{static{this.ID="workbench.action.toggleStatusbarVisibility"}static{this.statusbarVisibleKey="workbench.statusBar.visible"}constructor(){super({id:tt.ID,title:{...(0,l.localize2)(2816,"Toggle Status Bar Visibility"),mnemonicTitle:(0,l.localize)(2817,"S&&tatus Bar")},category:h.Categories.View,f1:!0,toggled:b.ContextKeyExpr.equals("config.workbench.statusBar.visible",!0),menu:[{id:u.MenuId.MenubarAppearanceMenu,group:"2_workbench_layout",order:3}]})}run(e){let t=e.get(v.IWorkbenchLayoutService),i=e.get(p.IConfigurationService),o=t.isVisible(m.Parts.STATUSBAR_PART,eL.mainWindow);return i.updateValue(tt.statusbarVisibleKey,!o)}}(0,u.registerAction2)(tt);class ti extends u.Action2{constructor(e,t,i,o,r,n){super({id:o,title:i,category:h.Categories.View,precondition:r,metadata:n?{description:n}:void 0,f1:!0}),this.settingName=e,this.value=t}run(e){return e.get(p.IConfigurationService).updateValue(this.settingName,this.value)}}class to extends ti{static{this.ID="workbench.action.hideEditorTabs"}constructor(){const e=b.ContextKeyExpr.and(b.ContextKeyExpr.equals(`config.${m.LayoutSettings.EDITOR_TABS_MODE}`,m.EditorTabsMode.NONE).negate(),R.InEditorZenModeContext.negate()),t=(0,l.localize2)(2818,"Hide Editor Tabs");super(m.LayoutSettings.EDITOR_TABS_MODE,m.EditorTabsMode.NONE,t,to.ID,e,(0,l.localize2)(2819,"Hide Tab Bar"))}}class tr extends ti{static{this.ID="workbench.action.zenHideEditorTabs"}constructor(){const e=b.ContextKeyExpr.and(b.ContextKeyExpr.equals(`config.${m.ZenModeSettings.SHOW_TABS}`,m.EditorTabsMode.NONE).negate(),R.InEditorZenModeContext),t=(0,l.localize2)(2820,"Hide Editor Tabs in Zen Mode");super(m.ZenModeSettings.SHOW_TABS,m.EditorTabsMode.NONE,t,tr.ID,e,(0,l.localize2)(2821,"Hide Tab Bar in Zen Mode"))}}class tn extends ti{static{this.ID="workbench.action.showMultipleEditorTabs"}constructor(){const e=b.ContextKeyExpr.and(b.ContextKeyExpr.equals(`config.${m.LayoutSettings.EDITOR_TABS_MODE}`,m.EditorTabsMode.MULTIPLE).negate(),R.InEditorZenModeContext.negate()),t=(0,l.localize2)(2822,"Show Multiple Editor Tabs");super(m.LayoutSettings.EDITOR_TABS_MODE,m.EditorTabsMode.MULTIPLE,t,tn.ID,e,(0,l.localize2)(2823,"Show Tab Bar with multiple tabs"))}}class ts extends ti{static{this.ID="workbench.action.zenShowMultipleEditorTabs"}constructor(){const e=b.ContextKeyExpr.and(b.ContextKeyExpr.equals(`config.${m.ZenModeSettings.SHOW_TABS}`,m.EditorTabsMode.MULTIPLE).negate(),R.InEditorZenModeContext),t=(0,l.localize2)(2824,"Show Multiple Editor Tabs in Zen Mode");super(m.ZenModeSettings.SHOW_TABS,m.EditorTabsMode.MULTIPLE,t,ts.ID,e,(0,l.localize2)(2825,"Show Tab Bar in Zen Mode"))}}class ta extends ti{static{this.ID="workbench.action.showEditorTab"}constructor(){const e=b.ContextKeyExpr.and(b.ContextKeyExpr.equals(`config.${m.LayoutSettings.EDITOR_TABS_MODE}`,m.EditorTabsMode.SINGLE).negate(),R.InEditorZenModeContext.negate()),t=(0,l.localize2)(2826,"Show Single Editor Tab");super(m.LayoutSettings.EDITOR_TABS_MODE,m.EditorTabsMode.SINGLE,t,ta.ID,e,(0,l.localize2)(2827,"Show Tab Bar with one Tab"))}}class td extends ti{static{this.ID="workbench.action.zenShowEditorTab"}constructor(){const e=b.ContextKeyExpr.and(b.ContextKeyExpr.equals(`config.${m.ZenModeSettings.SHOW_TABS}`,m.EditorTabsMode.SINGLE).negate(),R.InEditorZenModeContext),t=(0,l.localize2)(2828,"Show Single Editor Tab in Zen Mode");super(m.ZenModeSettings.SHOW_TABS,m.EditorTabsMode.SINGLE,t,td.ID,e,(0,l.localize2)(2829,"Show Tab Bar in Zen Mode with one Tab"))}}(0,u.registerAction2)(to),(0,u.registerAction2)(tr),(0,u.registerAction2)(tn),(0,u.registerAction2)(ts),(0,u.registerAction2)(ta),(0,u.registerAction2)(td),u.MenuRegistry.appendMenuItem(u.MenuId.MenubarAppearanceMenu,{submenu:u.MenuId.EditorTabsBarShowTabsSubmenu,title:(0,l.localize)(2830,"Tab Bar"),group:"3_workbench_layout_move",order:10,when:R.InEditorZenModeContext.negate()}),u.MenuRegistry.appendMenuItem(u.MenuId.MenubarAppearanceMenu,{submenu:u.MenuId.EditorTabsBarShowTabsZenModeSubmenu,title:(0,l.localize)(2830,"Tab Bar"),group:"3_workbench_layout_move",order:10,when:R.InEditorZenModeContext});class tc extends u.Action2{static{this.ID="workbench.action.editorActionsTitleBar"}constructor(){super({id:tc.ID,title:(0,l.localize2)(2831,"Move Editor Actions to Title Bar"),category:h.Categories.View,precondition:b.ContextKeyExpr.equals(`config.${m.LayoutSettings.EDITOR_ACTIONS_LOCATION}`,m.EditorActionsLocation.TITLEBAR).negate(),metadata:{description:(0,l.localize2)(2832,"Move Editor Actions from the tab bar to the title bar")},f1:!0})}run(e){return e.get(p.IConfigurationService).updateValue(m.LayoutSettings.EDITOR_ACTIONS_LOCATION,m.EditorActionsLocation.TITLEBAR)}}(0,u.registerAction2)(tc);class tl extends u.Action2{static{this.ID="workbench.action.editorActionsDefault"}constructor(){super({id:tl.ID,title:(0,l.localize2)(2833,"Move Editor Actions to Tab Bar"),category:h.Categories.View,precondition:b.ContextKeyExpr.and(b.ContextKeyExpr.equals(`config.${m.LayoutSettings.EDITOR_ACTIONS_LOCATION}`,m.EditorActionsLocation.DEFAULT).negate(),b.ContextKeyExpr.equals(`config.${m.LayoutSettings.EDITOR_TABS_MODE}`,m.EditorTabsMode.NONE).negate()),metadata:{description:(0,l.localize2)(2834,"Move Editor Actions from the title bar to the tab bar")},f1:!0})}run(e){return e.get(p.IConfigurationService).updateValue(m.LayoutSettings.EDITOR_ACTIONS_LOCATION,m.EditorActionsLocation.DEFAULT)}}(0,u.registerAction2)(tl);class tu extends u.Action2{static{this.ID="workbench.action.hideEditorActions"}constructor(){super({id:tu.ID,title:(0,l.localize2)(2835,"Hide Editor Actions"),category:h.Categories.View,precondition:b.ContextKeyExpr.equals(`config.${m.LayoutSettings.EDITOR_ACTIONS_LOCATION}`,m.EditorActionsLocation.HIDDEN).negate(),metadata:{description:(0,l.localize2)(2836,"Hide Editor Actions in the tab and title bar")},f1:!0})}run(e){return e.get(p.IConfigurationService).updateValue(m.LayoutSettings.EDITOR_ACTIONS_LOCATION,m.EditorActionsLocation.HIDDEN)}}(0,u.registerAction2)(tu);class th extends u.Action2{static{this.ID="workbench.action.showEditorActions"}constructor(){super({id:th.ID,title:(0,l.localize2)(2837,"Show Editor Actions"),category:h.Categories.View,precondition:b.ContextKeyExpr.equals(`config.${m.LayoutSettings.EDITOR_ACTIONS_LOCATION}`,m.EditorActionsLocation.HIDDEN),metadata:{description:(0,l.localize2)(2838,"Make Editor Actions visible.")},f1:!0})}run(e){return e.get(p.IConfigurationService).updateValue(m.LayoutSettings.EDITOR_ACTIONS_LOCATION,m.EditorActionsLocation.DEFAULT)}}(0,u.registerAction2)(th),u.MenuRegistry.appendMenuItem(u.MenuId.MenubarAppearanceMenu,{submenu:u.MenuId.EditorActionsPositionSubmenu,title:(0,l.localize)(2839,"Editor Actions Position"),group:"3_workbench_layout_move",order:11});class tp extends u.Action2{static{this.ID="workbench.action.configureEditorTabs"}constructor(){super({id:tp.ID,title:(0,l.localize2)(2840,"Configure Tabs"),category:h.Categories.View})}run(e){e.get(eO.IPreferencesService).openSettings({jsonEditor:!1,query:"workbench.editor tab"})}}(0,u.registerAction2)(tp);class tg extends u.Action2{static{this.ID="workbench.action.configureEditor"}constructor(){super({id:tg.ID,title:(0,l.localize2)(2841,"Configure Editors"),category:h.Categories.View})}run(e){e.get(eO.IPreferencesService).openSettings({jsonEditor:!1,query:"workbench.editor"})}}if((0,u.registerAction2)(tg),(0,u.registerAction2)(class extends u.Action2{constructor(){super({id:"workbench.action.toggleSeparatePinnedEditorTabs",title:(0,l.localize2)(2842,"Separate Pinned Editor Tabs"),category:h.Categories.View,precondition:b.ContextKeyExpr.equals(`config.${m.LayoutSettings.EDITOR_TABS_MODE}`,m.EditorTabsMode.MULTIPLE),metadata:{description:(0,l.localize2)(2843,"Toggle whether pinned editor tabs are shown on a separate row above unpinned tabs.")},f1:!0})}run(e){let t=e.get(p.IConfigurationService),i=t.getValue("workbench.editor.pinnedTabsOnSeparateRow");return t.updateValue("workbench.editor.pinnedTabsOnSeparateRow",!i)}}),(0,u.registerAction2)(class extends u.Action2{constructor(){super({id:"workbench.action.toggleZenMode",title:{...(0,l.localize2)(2844,"Toggle Zen Mode"),mnemonicTitle:(0,l.localize)(2845,"Zen Mode")},precondition:R.IsAuxiliaryWindowFocusedContext.toNegated(),category:h.Categories.View,f1:!0,keybinding:{weight:S.KeybindingWeight.WorkbenchContrib,primary:(0,f.KeyChord)(f.KeyMod.CtrlCmd|f.KeyCode.KeyK,f.KeyCode.KeyZ)},toggled:R.InEditorZenModeContext,menu:[{id:u.MenuId.MenubarAppearanceMenu,group:"1_toggle_view",order:2}]})}run(e){return e.get(v.IWorkbenchLayoutService).toggleZenMode()}}),S.KeybindingsRegistry.registerCommandAndKeybindingRule({id:"workbench.action.exitZenMode",weight:S.KeybindingWeight.EditorContrib-1e3,handler(e){let t=e.get(v.IWorkbenchLayoutService),i=e.get(I.IContextKeyService);R.InEditorZenModeContext.getValue(i)&&t.toggleZenMode()},when:R.InEditorZenModeContext,primary:(0,f.KeyChord)(f.KeyCode.Escape,f.KeyCode.Escape)}),_.isWindows||_.isLinux||_.isWeb)for(let e of((0,u.registerAction2)(class extends u.Action2{constructor(){super({id:"workbench.action.toggleMenuBar",title:{...(0,l.localize2)(2846,"Toggle Menu Bar"),mnemonicTitle:(0,l.localize)(2847,"Menu &&Bar")},category:h.Categories.View,f1:!0,toggled:b.ContextKeyExpr.and(C.IsMacNativeContext.toNegated(),b.ContextKeyExpr.notEquals(`config.${eN.MenuSettings.MenuBarVisibility}`,"hidden"),b.ContextKeyExpr.notEquals(`config.${eN.MenuSettings.MenuBarVisibility}`,"toggle"),b.ContextKeyExpr.notEquals(`config.${eN.MenuSettings.MenuBarVisibility}`,"compact")),menu:[{id:u.MenuId.MenubarAppearanceMenu,group:"2_workbench_layout",order:0}]})}run(e){return e.get(v.IWorkbenchLayoutService).toggleMenuBar()}}),[u.MenuId.TitleBarContext,u.MenuId.TitleBarTitleContext]))u.MenuRegistry.appendMenuItem(e,{command:{id:"workbench.action.toggleMenuBar",title:(0,l.localize)(2848,"Menu Bar"),toggled:b.ContextKeyExpr.and(C.IsMacNativeContext.toNegated(),b.ContextKeyExpr.notEquals(`config.${eN.MenuSettings.MenuBarVisibility}`,"hidden"),b.ContextKeyExpr.notEquals(`config.${eN.MenuSettings.MenuBarVisibility}`,"toggle"),b.ContextKeyExpr.notEquals(`config.${eN.MenuSettings.MenuBarVisibility}`,"compact"))},when:b.ContextKeyExpr.and(R.IsAuxiliaryWindowFocusedContext.toNegated(),b.ContextKeyExpr.notEquals(R.TitleBarStyleContext.key,eN.TitlebarStyle.NATIVE),R.IsMainWindowFullscreenContext.negate()),group:"2_config",order:0});(0,u.registerAction2)(class extends u.Action2{constructor(){super({id:"workbench.action.resetViewLocations",title:(0,l.localize2)(2849,"Reset View Locations"),category:h.Categories.View,f1:!0})}run(e){return e.get(w.IViewDescriptorService).reset()}}),(0,u.registerAction2)(class extends u.Action2{constructor(){super({id:"workbench.action.moveView",title:(0,l.localize2)(2850,"Move View"),category:h.Categories.View,f1:!0})}async run(e){let t,i=e.get(w.IViewDescriptorService),o=e.get(y.IInstantiationService),r=e.get(A.IQuickInputService),n=e.get(I.IContextKeyService),s=e.get(k.IPaneCompositePartService),a=R.FocusedViewContext.getValue(n);a&&i.getViewDescriptorById(a)?.canMoveView&&(t=a);try{if(!(t=await this.getView(r,i,s,t)))return;let e=new tm;o.invokeFunction(i=>e.run(i,t))}catch{}}getViewItems(e,t){let i=[];return t.getVisiblePaneCompositeIds(E.ViewContainerLocation.Sidebar).forEach(t=>{let o=e.getViewContainerById(t),r=e.getViewContainerModel(o),n=!1;r.visibleViewDescriptors.forEach(e=>{e.canMoveView&&(n||(i.push({type:"separator",label:(0,l.localize)(2851,"Side Bar / {0}",r.title)}),n=!0),i.push({id:e.id,label:e.name.value}))})}),t.getPinnedPaneCompositeIds(E.ViewContainerLocation.Panel).forEach(t=>{let o=e.getViewContainerById(t),r=e.getViewContainerModel(o),n=!1;r.visibleViewDescriptors.forEach(e=>{e.canMoveView&&(n||(i.push({type:"separator",label:(0,l.localize)(2852,"Panel / {0}",r.title)}),n=!0),i.push({id:e.id,label:e.name.value}))})}),t.getPinnedPaneCompositeIds(E.ViewContainerLocation.AuxiliaryBar).forEach(t=>{let o=e.getViewContainerById(t),r=e.getViewContainerModel(o),n=!1;r.visibleViewDescriptors.forEach(e=>{e.canMoveView&&(n||(i.push({type:"separator",label:(0,l.localize)(2853,"Secondary Side Bar / {0}",r.title)}),n=!0),i.push({id:e.id,label:e.name.value}))})}),i}async getView(e,t,i,o){let r=new s.DisposableStore,n=r.add(e.createQuickPick({useSeparators:!0}));return n.placeholder=(0,l.localize)(2854,"Select a View to Move"),n.items=this.getViewItems(t,i),n.selectedItems=n.items.filter(e=>e.id===o),new Promise((e,t)=>{r.add(n.onDidAccept(()=>{let i=n.selectedItems[0];i.id?e(i.id):t(),n.hide()})),r.add(n.onDidHide(()=>{r.dispose(),t()})),n.show()})}});class tm extends u.Action2{constructor(){super({id:"workbench.action.moveFocusedView",title:(0,l.localize2)(2855,"Move Focused View"),category:h.Categories.View,precondition:R.FocusedViewContext.notEqualsTo(""),f1:!0})}run(e,t){let i=e.get(w.IViewDescriptorService),o=e.get(D.IViewsService),r=e.get(A.IQuickInputService),n=e.get(I.IContextKeyService),a=e.get(x.IDialogService),d=e.get(k.IPaneCompositePartService),c=t||R.FocusedViewContext.getValue(n);if(void 0===c||""===c.trim())return void a.error((0,l.localize)(2856,"There is no view currently focused."));let u=i.getViewDescriptorById(c);if(!u?.canMoveView)return void a.error((0,l.localize)(2857,"The currently focused view is not movable."));let h=new s.DisposableStore,p=h.add(r.createQuickPick({useSeparators:!0}));p.placeholder=(0,l.localize)(2858,"Select a Destination for the View"),p.title=(0,l.localize)(2859,"View: Move {0}",u.name.value);let g=[],m=i.getViewContainerByViewId(c),v=i.getViewLocationById(c),y=1===i.getViewContainerModel(m).allViewDescriptors.length;y&&v===E.ViewContainerLocation.Panel||g.push({id:"_.panel.newcontainer",label:(0,l.localize)(2860,"New Panel Entry")}),y&&v===E.ViewContainerLocation.Sidebar||g.push({id:"_.sidebar.newcontainer",label:(0,l.localize)(2861,"New Side Bar Entry")}),y&&v===E.ViewContainerLocation.AuxiliaryBar||g.push({id:"_.auxiliarybar.newcontainer",label:(0,l.localize)(2862,"New Secondary Side Bar Entry")}),g.push({type:"separator",label:(0,l.localize)(2863,"Side Bar")}),g.push(...d.getVisiblePaneCompositeIds(E.ViewContainerLocation.Sidebar).filter(e=>e!==i.getViewContainerByViewId(c).id&&!i.getViewContainerById(e).rejectAddedViews).map(e=>({id:e,label:i.getViewContainerModel(i.getViewContainerById(e)).title}))),g.push({type:"separator",label:(0,l.localize)(2864,"Panel")}),g.push(...d.getPinnedPaneCompositeIds(E.ViewContainerLocation.Panel).filter(e=>e!==i.getViewContainerByViewId(c).id&&!i.getViewContainerById(e).rejectAddedViews).map(e=>({id:e,label:i.getViewContainerModel(i.getViewContainerById(e)).title}))),g.push({type:"separator",label:(0,l.localize)(2865,"Secondary Side Bar")}),g.push(...d.getPinnedPaneCompositeIds(E.ViewContainerLocation.AuxiliaryBar).filter(e=>e!==i.getViewContainerByViewId(c).id&&!i.getViewContainerById(e).rejectAddedViews).map(e=>({id:e,label:i.getViewContainerModel(i.getViewContainerById(e)).title}))),p.items=g,h.add(p.onDidAccept(()=>{let e=p.selectedItems[0];"_.panel.newcontainer"===e.id?(i.moveViewToLocation(u,E.ViewContainerLocation.Panel,this.desc.id),o.openView(c,!0)):"_.sidebar.newcontainer"===e.id?(i.moveViewToLocation(u,E.ViewContainerLocation.Sidebar,this.desc.id),o.openView(c,!0)):"_.auxiliarybar.newcontainer"===e.id?(i.moveViewToLocation(u,E.ViewContainerLocation.AuxiliaryBar,this.desc.id),o.openView(c,!0)):e.id&&(i.moveViewsToContainer([u],i.getViewContainerById(e.id),void 0,this.desc.id),o.openView(c,!0)),p.hide()})),h.add(p.onDidHide(()=>h.dispose())),p.show()}}(0,u.registerAction2)(tm),(0,u.registerAction2)(class extends u.Action2{constructor(){super({id:"workbench.action.resetFocusedViewLocation",title:(0,l.localize2)(2866,"Reset Focused View Location"),category:h.Categories.View,f1:!0,precondition:R.FocusedViewContext.notEqualsTo("")})}run(e){let t=e.get(w.IViewDescriptorService),i=e.get(I.IContextKeyService),o=e.get(x.IDialogService),r=e.get(D.IViewsService),n=R.FocusedViewContext.getValue(i),s=null;if(void 0!==n&&""!==n.trim()&&(s=t.getViewDescriptorById(n)),!s)return void o.error((0,l.localize)(2867,"There is no view currently focused."));let a=t.getDefaultContainerById(s.id);a&&a!==t.getViewContainerByViewId(s.id)&&(t.moveViewsToContainer([s],a,void 0,this.desc.id),r.openView(s.id,!0))}});class tv extends u.Action2{static{this.RESIZE_INCREMENT=60}resizePart(e,t,i,o){let r;if(i.activeContainer===i.mainContainer){if(void 0===o){let e=i.hasFocus(m.Parts.EDITOR_PART),t=i.hasFocus(m.Parts.SIDEBAR_PART),o=i.hasFocus(m.Parts.PANEL_PART),n=i.hasFocus(m.Parts.AUXILIARYBAR_PART);t?r=m.Parts.SIDEBAR_PART:o?r=m.Parts.PANEL_PART:e?r=m.Parts.EDITOR_PART:n&&(r=m.Parts.AUXILIARYBAR_PART)}else r=o;r&&i.resizePart(r,e,t)}}}(0,u.registerAction2)(class extends tv{constructor(){super({id:"workbench.action.increaseViewSize",title:(0,l.localize2)(2868,"Increase Current View Size"),f1:!0,precondition:R.IsAuxiliaryWindowFocusedContext.toNegated()})}run(e){this.resizePart(tv.RESIZE_INCREMENT,tv.RESIZE_INCREMENT,e.get(v.IWorkbenchLayoutService))}}),(0,u.registerAction2)(class extends tv{constructor(){super({id:"workbench.action.increaseViewWidth",title:(0,l.localize2)(2869,"Increase Editor Width"),f1:!0,precondition:R.IsAuxiliaryWindowFocusedContext.toNegated()})}run(e){this.resizePart(tv.RESIZE_INCREMENT,0,e.get(v.IWorkbenchLayoutService),m.Parts.EDITOR_PART)}}),(0,u.registerAction2)(class extends tv{constructor(){super({id:"workbench.action.increaseViewHeight",title:(0,l.localize2)(2870,"Increase Editor Height"),f1:!0,precondition:R.IsAuxiliaryWindowFocusedContext.toNegated()})}run(e){this.resizePart(0,tv.RESIZE_INCREMENT,e.get(v.IWorkbenchLayoutService),m.Parts.EDITOR_PART)}}),(0,u.registerAction2)(class extends tv{constructor(){super({id:"workbench.action.decreaseViewSize",title:(0,l.localize2)(2871,"Decrease Current View Size"),f1:!0,precondition:R.IsAuxiliaryWindowFocusedContext.toNegated()})}run(e){this.resizePart(-tv.RESIZE_INCREMENT,-tv.RESIZE_INCREMENT,e.get(v.IWorkbenchLayoutService))}}),(0,u.registerAction2)(class extends tv{constructor(){super({id:"workbench.action.decreaseViewWidth",title:(0,l.localize2)(2872,"Decrease Editor Width"),f1:!0,precondition:R.IsAuxiliaryWindowFocusedContext.toNegated()})}run(e){this.resizePart(-tv.RESIZE_INCREMENT,0,e.get(v.IWorkbenchLayoutService),m.Parts.EDITOR_PART)}}),(0,u.registerAction2)(class extends tv{constructor(){super({id:"workbench.action.decreaseViewHeight",title:(0,l.localize2)(2873,"Decrease Editor Height"),f1:!0,precondition:R.IsAuxiliaryWindowFocusedContext.toNegated()})}run(e){this.resizePart(0,-tv.RESIZE_INCREMENT,e.get(v.IWorkbenchLayoutService),m.Parts.EDITOR_PART)}}),(0,u.registerAction2)(class extends u.Action2{constructor(){super({id:"workbench.action.alignQuickInputTop",title:(0,l.localize2)(2874,"Align Quick Input Top"),f1:!1})}run(e){e.get(A.IQuickInputService).setAlignment("top")}}),(0,u.registerAction2)(class extends u.Action2{constructor(){super({id:"workbench.action.alignQuickInputCenter",title:(0,l.localize2)(2875,"Align Quick Input Center"),f1:!1})}run(e){e.get(A.IQuickInputService).setAlignment("center")}});let ty=(e,t,i,o)=>({id:e,active:t,label:i,visualIcon:o,activeIcon:T.Codicon.eye,inactiveIcon:T.Codicon.eyeClosed,activeAriaLabel:(0,l.localize)(2876,"Select to Hide"),inactiveAriaLabel:(0,l.localize)(2877,"Select to Show"),useButtons:!0}),tf=(e,t,i,o)=>({id:e,active:t,label:i,visualIcon:o,activeIcon:T.Codicon.check,activeAriaLabel:(0,l.localize)(2878,"Active"),useButtons:!1}),t_=b.ContextKeyExpr.and(C.IsMacNativeContext.toNegated(),b.ContextKeyExpr.notEquals(`config.${eN.MenuSettings.MenuBarVisibility}`,"hidden"),b.ContextKeyExpr.notEquals(`config.${eN.MenuSettings.MenuBarVisibility}`,"toggle"),b.ContextKeyExpr.notEquals(`config.${eN.MenuSettings.MenuBarVisibility}`,"compact")),tC=[];_.isMacintosh&&_.isNative||tC.push(ty("workbench.action.toggleMenuBar",t_,(0,l.localize)(2879,"Menu Bar"),eW)),tC.push(ty(e3,b.ContextKeyExpr.notEquals("config.workbench.activityBar.location","hidden"),(0,l.localize)(2880,"Activity Bar"),{whenA:b.ContextKeyExpr.equals("config.workbench.sideBar.location","left"),iconA:ez,iconB:eV}),ty(te.ID,R.SideBarVisibleContext,(0,l.localize)(2881,"Primary Side Bar"),{whenA:b.ContextKeyExpr.equals("config.workbench.sideBar.location","left"),iconA:eB,iconB:eH}),ty(eT.ID,R.AuxiliaryBarVisibleContext,(0,l.localize)(2865,"Secondary Side Bar"),{whenA:b.ContextKeyExpr.equals("config.workbench.sideBar.location","left"),iconA:eH,iconB:eB}),ty(ep.ID,R.PanelVisibleContext,(0,l.localize)(2864,"Panel"),eG),ty(tt.ID,b.ContextKeyExpr.equals("config.workbench.statusBar.visible",!0),(0,l.localize)(2882,"Status Bar"),e$));let tS=[tf(e7.ID,b.ContextKeyExpr.equals("config.workbench.sideBar.location","left"),(0,l.localize)(2883,"Left"),eB),tf(e6.ID,b.ContextKeyExpr.equals("config.workbench.sideBar.location","right"),(0,l.localize)(2884,"Right"),eH)],tb=[tf("workbench.action.alignPanelLeft",R.PanelAlignmentContext.isEqualTo("left"),(0,l.localize)(2885,"Left"),eQ),tf("workbench.action.alignPanelRight",R.PanelAlignmentContext.isEqualTo("right"),(0,l.localize)(2886,"Right"),ej),tf("workbench.action.alignPanelCenter",R.PanelAlignmentContext.isEqualTo("center"),(0,l.localize)(2887,"Center"),eY),tf("workbench.action.alignPanelJustify",R.PanelAlignmentContext.isEqualTo("justify"),(0,l.localize)(2888,"Justify"),eX)],tI=[tf("workbench.action.alignQuickInputTop",eF.QuickInputAlignmentContextKey.isEqualTo("top"),(0,l.localize)(2889,"Top"),eZ),tf("workbench.action.alignQuickInputCenter",eF.QuickInputAlignmentContextKey.isEqualTo("center"),(0,l.localize)(2890,"Center"),eJ)],tE=[tf("workbench.action.toggleFullScreen",R.IsMainWindowFullscreenContext,(0,l.localize)(2891,"Full Screen"),e0),tf("workbench.action.toggleZenMode",R.InEditorZenModeContext,(0,l.localize)(2892,"Zen Mode"),e2),tf("workbench.action.toggleCenteredLayout",R.IsMainEditorCenteredLayoutContext,(0,l.localize)(2893,"Centered Layout"),e1)],tw=new Set;for(let{active:e}of[...tC,...tS,...tb,...tI,...tE])for(let t of e.keys())tw.add(t);(0,u.registerAction2)(class extends u.Action2{constructor(){super({id:"workbench.action.customizeLayout",title:(0,l.localize2)(2894,"Customize Layout..."),f1:!0,icon:e4,menu:[{id:u.MenuId.LayoutControlMenuSubmenu,group:"z_end"},{id:u.MenuId.LayoutControlMenu,when:b.ContextKeyExpr.and(R.IsAuxiliaryWindowContext.toNegated(),b.ContextKeyExpr.equals("config.workbench.layoutControl.type","both")),group:"1_layout"}]})}getItems(e,t){let i=i=>{let o=i.active.evaluate(e.getContext(null)),r=i.useButtons?i.label:i.label+(o&&i.activeIcon?` $(${i.activeIcon.id})`:!o&&i.inactiveIcon?` $(${i.inactiveIcon.id})`:""),n=i.label+(o&&i.activeAriaLabel?` (${i.activeAriaLabel})`:!o&&i.inactiveAriaLabel?` (${i.inactiveAriaLabel})`:"");if(i.visualIcon){let t=i.visualIcon;void 0!==t.iconA&&(t=t.whenA.evaluate(e.getContext(null))?t.iconA:t.iconB),r=`$(${t.id}) ${r}`}let s=o?i.activeIcon:i.inactiveIcon;return{type:"item",id:i.id,label:r,ariaLabel:n,keybinding:t.lookupKeybinding(i.id,e),buttons:i.useButtons?[{alwaysVisible:!1,tooltip:n,iconClass:s?Q.ThemeIcon.asClassName(s):void 0}]:void 0}};return[{type:"separator",label:(0,l.localize)(2895,"Visibility")},...tC.map(i),{type:"separator",label:(0,l.localize)(2896,"Primary Side Bar Position")},...tS.map(i),{type:"separator",label:(0,l.localize)(2897,"Panel Alignment")},...tb.map(i),{type:"separator",label:(0,l.localize)(2898,"Quick Input Position")},...tI.map(i),{type:"separator",label:(0,l.localize)(2899,"Modes")},...tE.map(i)]}run(e){let t;if(this._currentQuickPick)return void this._currentQuickPick.hide();let i=e.get(p.IConfigurationService),o=e.get(I.IContextKeyService),r=e.get(O.ICommandService),n=e.get(A.IQuickInputService),a=e.get(q.IKeybindingService),d=new s.DisposableStore,c=d.add(n.createQuickPick({useSeparators:!0}));this._currentQuickPick=c,c.items=this.getItems(o,a),c.ignoreFocusOut=!0,c.hideInput=!0,c.title=(0,l.localize)(2900,"Customize Layout");let u={alwaysVisible:!0,iconClass:Q.ThemeIcon.asClassName(T.Codicon.close),tooltip:(0,l.localize)(2901,"Close")},h={alwaysVisible:!0,iconClass:Q.ThemeIcon.asClassName(T.Codicon.discard),tooltip:(0,l.localize)(2902,"Restore Defaults")};c.buttons=[h,u],d.add(o.onDidChangeContext(e=>{e.affectsSome(tw)&&(c.items=this.getItems(o,a),t&&(c.activeItems=c.items.filter(e=>e.id===t?.id)),setTimeout(()=>n.focus(),0))})),d.add(c.onDidAccept(e=>{c.selectedItems.length&&(t=c.selectedItems[0],r.executeCommand(t.id))})),d.add(c.onDidTriggerItemButton(e=>{e.item&&(t=e.item,r.executeCommand(t.id))})),d.add(c.onDidTriggerButton(e=>{if(e===u)c.hide();else if(e===h){let e=e=>{let t=i.inspect(e);i.updateValue(e,t.defaultValue)};e("workbench.activityBar.location"),e("workbench.sideBar.location"),e("workbench.statusBar.visible"),e("workbench.panel.defaultLocation"),_.isMacintosh&&_.isNative||e("window.menuBarVisibility"),r.executeCommand("workbench.action.alignPanelCenter"),r.executeCommand("workbench.action.alignQuickInputTop")}})),d.add(c.onDidHide(()=>{c.dispose()})),d.add(c.onDispose(()=>{this._currentQuickPick=void 0,d.dispose()})),c.show()}}),e.s(["ConfigureEditorAction",0,tg,"ConfigureEditorTabsAction",0,tp,"EditorActionsDefaultAction",0,tl,"EditorActionsTitleBarAction",0,tc,"HideEditorActionsAction",0,tu,"HideEditorTabsAction",0,to,"ShowMultipleEditorTabsAction",0,tn,"ShowSingleEditorTabAction",0,ta,"ToggleActivityBarVisibilityActionId",0,e3,"ToggleSidebarPositionAction",0,e9,"ToggleSidebarVisibilityAction",0,te,"ToggleStatusbarVisibilityAction",0,tt,"ZenHideEditorTabsAction",0,tr,"ZenShowMultipleEditorTabsAction",0,ts,"ZenShowSingleEditorTabAction",0,td],508267)},95940,242671,e=>{"use strict";var t=e.i(72469),i=e.i(292608);function o(e,t){let i="";for(let o=0;o<t;o++)i+=e;return i}function r(e,t){return -1!=="\r\n".indexOf(e.charAt(t))}function n(e,t,i){return s(e,t,void 0,i)}function s(e,t,o,r,n){let s,d,c=t.slice(),l=(0,i.parseTree)(e,[]);for(;c.length>0;)if(d=c.pop(),void 0===(s=(0,i.findNodeAtLocation)(l,c))&&void 0!==o)o="string"==typeof d?{[d]:o}:[o];else break;if(s)if("object"===s.type&&"string"==typeof d&&Array.isArray(s.children)){let t=(0,i.findNodeAtLocation)(s,[d]);if(void 0!==t)if(void 0!==o)return a(e,{offset:t.offset,length:t.length,content:JSON.stringify(o)},r);else{let i;if(!t.parent)throw Error("Malformed AST");let o=s.children.indexOf(t.parent),n=t.parent.offset+t.parent.length;if(o>0){let e=s.children[o-1];i=e.offset+e.length}else i=s.offset+1,s.children.length>1&&(n=s.children[1].offset);return a(e,{offset:i,length:n-i,content:""},r)}{let t;if(void 0===o)return[];let i=`${JSON.stringify(d)}: ${JSON.stringify(o)}`,n=s.children.length;if(n>0){let e=s.children[n-1];t={offset:e.offset+e.length,length:0,content:","+i}}else t=0===s.children.length?{offset:s.offset+1,length:0,content:i}:{offset:s.offset+1,length:0,content:i+","};return a(e,t,r)}}else if("array"===s.type&&"number"==typeof d&&Array.isArray(s.children))if(void 0!==o){let t,i=`${JSON.stringify(o)}`;if(0===s.children.length||0===d)t={offset:s.offset+1,length:0,content:0===s.children.length?i:i+","};else{let e=-1===d||d>s.children.length?s.children.length:d,o=s.children[e-1];t={offset:o.offset+o.length,length:0,content:","+i}}return a(e,t,r)}else{let t,i=d,o=s.children[i];if(1===s.children.length)t={offset:s.offset+1,length:s.length-2,content:""};else if(s.children.length-1===i){let e=s.children[i-1],o=e.offset+e.length;t={offset:o,length:s.offset+s.length-2-o,content:""}}else t={offset:o.offset,length:s.children[i+1].offset-o.offset,content:""};return a(e,t,r)}else throw Error(`Can not add ${"number"!=typeof d?"index":"property"} to parent of type ${s.type}`);return void 0===o?[]:a(e,{offset:l?l.offset:0,length:l?l.length:0,content:JSON.stringify(o)},r)}function a(e,t,n){let s=d(e,t),a=t.offset,c=t.offset+t.content.length;if(0===t.length||0===t.content.length){for(;a>0&&!r(s,a-1);)a--;for(;c<s.length&&!r(s,c);)c++}let l=function(e,t,n){let s,a,d,c,l,u;if(t){for(l=(c=t.offset)+t.length,d=c;d>0&&!r(e,d-1);)d--;let i=l;for(;i<e.length&&!r(e,i);)i++;s=function(e,t){let i=0,o=0,r=t.tabSize||4;for(;i<e.length;){let t=e.charAt(i);if(" "===t)o++;else if(" "===t)o+=r;else break;i++}return Math.floor(o/r)}(a=e.substring(d,i),n)}else a=e,s=0,d=0,c=0,l=e.length;let h=function(e,t){for(let e=0;e<t.length;e++){let i=t.charAt(e);if("\r"===i){if(e+1<t.length&&"\n"===t.charAt(e+1))return"\r\n";return"\r"}if("\n"===i)return"\n"}return e&&e.eol||"\n"}(n,e),p=!1,g=0;u=n.insertSpaces?o(" ",n.tabSize||4):" ";let m=(0,i.createScanner)(a,!1),v=!1;function y(){return h+o(u,s+g)}function f(){let e=m.scan();for(p=!1;e===i.SyntaxKind.Trivia||e===i.SyntaxKind.LineBreakTrivia;)p=p||e===i.SyntaxKind.LineBreakTrivia,e=m.scan();return v=e===i.SyntaxKind.Unknown||m.getTokenError()!==i.ScanError.None,e}let _=[];function C(t,i,o){!v&&i<l&&o>c&&e.substring(i,o)!==t&&_.push({offset:i,length:o-i,content:t})}let S=f();if(S!==i.SyntaxKind.EOF){let e=m.getTokenOffset()+d;C(o(u,s),d,e)}for(;S!==i.SyntaxKind.EOF;){let e=m.getTokenOffset()+m.getTokenLength()+d,t=f(),o="";for(;!p&&(t===i.SyntaxKind.LineCommentTrivia||t===i.SyntaxKind.BlockCommentTrivia);)C(" ",e,m.getTokenOffset()+d),e=m.getTokenOffset()+m.getTokenLength()+d,o=t===i.SyntaxKind.LineCommentTrivia?y():"",t=f();if(t===i.SyntaxKind.CloseBraceToken)S!==i.SyntaxKind.OpenBraceToken&&(g--,o=y());else if(t===i.SyntaxKind.CloseBracketToken)S!==i.SyntaxKind.OpenBracketToken&&(g--,o=y());else{switch(S){case i.SyntaxKind.OpenBracketToken:case i.SyntaxKind.OpenBraceToken:g++,o=y();break;case i.SyntaxKind.CommaToken:case i.SyntaxKind.LineCommentTrivia:o=y();break;case i.SyntaxKind.BlockCommentTrivia:o=p?y():" ";break;case i.SyntaxKind.ColonToken:o=" ";break;case i.SyntaxKind.StringLiteral:if(t===i.SyntaxKind.ColonToken){o="";break}case i.SyntaxKind.NullKeyword:case i.SyntaxKind.TrueKeyword:case i.SyntaxKind.FalseKeyword:case i.SyntaxKind.NumericLiteral:case i.SyntaxKind.CloseBraceToken:case i.SyntaxKind.CloseBracketToken:t===i.SyntaxKind.LineCommentTrivia||t===i.SyntaxKind.BlockCommentTrivia?o=" ":t!==i.SyntaxKind.CommaToken&&t!==i.SyntaxKind.EOF&&(v=!0);break;case i.SyntaxKind.Unknown:v=!0}p&&(t===i.SyntaxKind.LineCommentTrivia||t===i.SyntaxKind.BlockCommentTrivia)&&(o=y())}C(o,e,m.getTokenOffset()+d),S=t}return _}(s,{offset:a,length:c-a},n);for(let e=l.length-1;e>=0;e--){let t=l[e];s=d(s,t),a=Math.min(a,t.offset),c=Math.max(c,t.offset+t.length)+(t.content.length-t.length)}let u=e.length-(s.length-c)-a;return[{offset:a,length:u,content:s.substring(a,c)}]}function d(e,t){return e.substring(0,t.offset)+t.content+e.substring(t.offset+t.length)}function c(e,t){let i=t.slice(0).sort((e,t)=>{let i=e.offset-t.offset;return 0===i?e.length-t.length:i}),o=e.length;for(let t=i.length-1;t>=0;t--){let r=i[t];if(r.offset+r.length<=o)e=d(e,r);else throw Error("Overlapping edit");o=r.offset}return e}e.s(["applyEdits",0,c,"removeProperty",0,n,"setProperty",0,s],242671);var l=e.i(82648),u=e.i(702320),h=e.i(771275),p=e.i(354244),g=e.i(693162),m=e.i(802136),v=e.i(821788),y=e.i(578953);function f(e){return e.hasOwnProperty("folderUri")}function _(e){return C(e)||S(e)}function C(e){return"string"==typeof e?.path&&(!e.name||"string"==typeof e.name)}function S(e){return"string"==typeof e?.uri&&(!e.name||"string"==typeof e.name)}function b(e,t,i,o,r){if(e.scheme!==o.scheme)return{name:i,uri:e.toString(!0)};let n=t?void 0:r.relativePath(o,e);if(void 0!==n)0===n.length?n=".":p.isWindows&&(n=I(n));else if(e.scheme===u.Schemas.file)n=e.fsPath,p.isWindows&&(n=I(n));else{if(!r.isEqualAuthority(e.authority,o.authority))return{name:i,uri:e.toString(!0)};n=e.path}return{name:i,path:n}}function I(e){return e=(0,l.normalizeDriveLetter)(e),(0,t.isUNC)(e)||(e=(0,t.toSlashes)(e)),e}e.s(["getStoredWorkspaceFolder",0,b,"isRecentFile",0,function(e){return e.hasOwnProperty("fileUri")},"isRecentFolder",0,f,"isRecentWorkspace",0,function(e){return e.hasOwnProperty("workspace")},"isStoredWorkspaceFolder",0,_,"restoreRecentlyOpened",0,function(e,t){let i={workspaces:[],files:[]};return e&&Array.isArray(e.entries)&&function(e,i){for(let o=0;o<e.length;o++)try{i(e[o],o)}catch(i){t.warn(`Error restoring recent entry ${JSON.stringify(e[o])}: ${i.toString()}. Skip entry.`)}}(e.entries,e=>{let t=e.label,o=e.remoteAuthority;"object"==typeof e?.workspace&&"string"==typeof e.workspace.id&&"string"==typeof e.workspace.configPath?i.workspaces.push({label:t,remoteAuthority:o,workspace:{id:e.workspace.id,configPath:m.URI.parse(e.workspace.configPath)}}):"string"==typeof e?.folderUri?i.workspaces.push({label:t,remoteAuthority:o,folderUri:m.URI.parse(e.folderUri)}):"string"==typeof e?.fileUri&&i.files.push({label:t,remoteAuthority:o,fileUri:m.URI.parse(e.fileUri)})}),i},"rewriteWorkspaceFileForNewLocation",0,function(e,t,o,r,a){let d=function(e,t){let o=(0,i.parse)(t);if(o&&Array.isArray(o.folders))o.folders=o.folders.filter(e=>_(e));else throw Error(`${e} looks like an invalid workspace file.`);return o}(t,e),l=a.dirname(t),u=a.dirname(r),y=[];for(let e of d.folders){let t,i=C(e)?a.resolvePath(l,e.path):m.URI.parse(e.uri);t=!o&&(!C(e)||(0,h.isAbsolute)(e.path)),y.push(b(i,t,e.name,u,a))}let f={insertSpaces:!1,tabSize:4,eol:p.isLinux||p.isMacintosh?"\n":"\r\n"},S=s(e,["folders"],y,f),I=c(e,S);return(0,g.isEqualAuthority)(d.remoteAuthority,(0,v.getRemoteAuthority)(r))&&(I=c(I,n(I,["remoteAuthority"],f))),I},"toStoreData",0,function(e){let t={entries:[]},i=(e,t)=>e&&e!==t.fsPath&&e!==t.path;for(let o of e.workspaces)f(o)?t.entries.push({folderUri:o.folderUri.toString(),label:i(o.label,o.folderUri)?o.label:void 0,remoteAuthority:o.remoteAuthority}):t.entries.push({workspace:{id:o.workspace.id,configPath:o.workspace.configPath.toString()},label:i(o.label,o.workspace.configPath)?o.label:void 0,remoteAuthority:o.remoteAuthority});for(let o of e.files)t.entries.push({fileUri:o.fileUri.toString(),label:i(o.label,o.fileUri)?o.label:void 0,remoteAuthority:o.remoteAuthority});return t},"toWorkspaceFolders",0,function(e,t,i){let o=[],r=new Set,n=i.dirname(t);for(let t of e){let e;if(C(t))t.path&&(e=i.resolvePath(n,t.path));else if(S(t))try{(e=m.URI.parse(t.uri)).path[0]!==h.posix.sep&&(e=e.with({path:h.posix.sep+e.path}))}catch(e){console.warn(e)}if(e){let n=i.getComparisonKey(e);if(!r.has(n)){r.add(n);let s=t.name||i.basenameOrAuthority(e);o.push(new y.WorkspaceFolder({uri:e,name:s,index:o.length},t))}}}return o}],95940)},788405,e=>{"use strict";var t,i,o=e.i(654295),r=e.i(322193),n=e.i(850887),s=e.i(842577),a=e.i(828318),d=e.i(660284),c=e.i(314005),l=e.i(701898),u=e.i(454514),h=e.i(590746),p=e.i(155652),g=e.i(536367),m=e.i(781808),v=e.i(83823),y=e.i(611130),f=e.i(354244),_=e.i(693205),C=e.i(650289),S=e.i(865562);(0,o.registerCss)(void 0);let b=n.$;(t=i||(i={}))[t.HIDDEN=0]="HIDDEN",t[t.VISIBLE=1]="VISIBLE",t[t.FOCUSED=2]="FOCUSED",t[t.OPEN=3]="OPEN";class I extends y.Disposable{static{this.OVERFLOW_INDEX=-1}constructor(e,t,o){super(),this.container=e,this.options=t,this.menuStyle=o,this._mnemonicsInUse=!1,this.openedViaKeyboard=!1,this.awaitingAltRelease=!1,this.ignoreNextMouseUp=!1,this.updatePending=!1,this.numMenusShown=0,this.overflowLayoutScheduled=void 0,this.menuDisposables=this._register(new y.DisposableStore),this.container.setAttribute("role","menubar"),this.isCompact&&this.container.classList.add("compact"),this.menus=[],this.mnemonics=new Map,this._focusState=i.VISIBLE,this._onVisibilityChange=this._register(new m.Emitter),this._onFocusStateChange=this._register(new m.Emitter),this.createOverflowMenu(),this.menuUpdater=this._register(new h.RunOnceScheduler(()=>this.update(),200)),this.actionRunner=this.options.actionRunner??this._register(new l.ActionRunner),this._register(this.actionRunner.onWillRun(()=>{this.setUnfocusedState()})),this._register(n.ModifierKeyEmitter.getInstance().event(this.onModifierKeyToggled,this)),this._register((0,n.addDisposableListener)(this.container,n.EventType.KEY_DOWN,e=>{let t=new s.StandardKeyboardEvent(e),i=!0,o=e.key?e.key.toLocaleLowerCase():"",r=f.isMacintosh&&!this.isCompact;if(t.equals(v.KeyCode.LeftArrow)||r&&t.equals(v.KeyCode.Tab|v.KeyMod.Shift))this.focusPrevious();else if(t.equals(v.KeyCode.RightArrow)||r&&t.equals(v.KeyCode.Tab))this.focusNext();else if(t.equals(v.KeyCode.Escape)&&this.isFocused&&!this.isOpen)this.setUnfocusedState();else if(!this.isOpen&&!t.ctrlKey&&this.options.enableMnemonics&&this.mnemonicsInUse&&this.mnemonics.has(o)){let e=this.mnemonics.get(o);this.onMenuTriggered(e,!1)}else i=!1;!this.isCompact&&(t.equals(v.KeyCode.Tab|v.KeyMod.Shift)||t.equals(v.KeyCode.Tab))&&t.preventDefault(),i&&(t.preventDefault(),t.stopPropagation())}));const r=(0,n.getWindow)(this.container);this._register((0,n.addDisposableListener)(r,n.EventType.MOUSE_DOWN,()=>{this.isFocused&&this.setUnfocusedState()})),this._register((0,n.addDisposableListener)(this.container,n.EventType.FOCUS_IN,e=>{e.relatedTarget&&!this.container.contains(e.relatedTarget)&&(this.focusToReturn=e.relatedTarget)})),this._register((0,n.addDisposableListener)(this.container,n.EventType.FOCUS_OUT,e=>{e.relatedTarget?e.relatedTarget&&!this.container.contains(e.relatedTarget)&&(this.focusToReturn=void 0,this.setUnfocusedState()):this.setUnfocusedState()})),this._register((0,n.addDisposableListener)(r,n.EventType.KEY_DOWN,e=>{if(!this.options.enableMnemonics||!e.altKey||e.ctrlKey||e.defaultPrevented)return;let t=e.key.toLocaleLowerCase();if(!this.mnemonics.has(t))return;this.mnemonicsInUse=!0,this.updateMnemonicVisibility(!0);let i=this.mnemonics.get(t);this.onMenuTriggered(i,!1)})),this.setUnfocusedState()}push(e){(0,u.asArray)(e).forEach(e=>{let t=this.menus.length,o=(0,c.cleanMnemonic)(e.label),r=c.MENU_MNEMONIC_REGEX.exec(e.label);if(r){let e=r[1]?r[1]:r[3];this.registerMnemonic(this.menus.length,e)}if(this.isCompact)this.menus.push(e);else{let r=b("div.menubar-menu-button",{role:"menuitem",tabindex:-1,"aria-label":o,"aria-haspopup":!0}),c=b("div.menubar-menu-title",{role:"none","aria-hidden":!0});r.appendChild(c),this.container.insertBefore(r,this.overflowMenu.buttonElement),this.updateLabels(c,r,e.label),this._register((0,n.addDisposableListener)(r,n.EventType.KEY_UP,e=>{let o=new s.StandardKeyboardEvent(e),r=!0;(o.equals(v.KeyCode.DownArrow)||o.equals(v.KeyCode.Enter))&&!this.isOpen?(this.focusedMenu={index:t},this.openedViaKeyboard=!0,this.focusState=i.OPEN):r=!1,r&&(o.preventDefault(),o.stopPropagation())})),this._register(d.Gesture.addTarget(r)),this._register((0,n.addDisposableListener)(r,d.EventType.Tap,e=>{this.isOpen&&this.focusedMenu&&this.focusedMenu.holder&&(0,n.isAncestor)(e.initialTarget,this.focusedMenu.holder)||(this.ignoreNextMouseUp=!1,this.onMenuTriggered(t,!0),e.preventDefault(),e.stopPropagation())})),this._register((0,n.addDisposableListener)(r,n.EventType.MOUSE_DOWN,e=>{new a.StandardMouseEvent((0,n.getWindow)(r),e).leftButton?(this.isOpen?this.ignoreNextMouseUp=!1:(this.ignoreNextMouseUp=!0,this.onMenuTriggered(t,!0)),e.preventDefault(),e.stopPropagation()):e.preventDefault()})),this._register((0,n.addDisposableListener)(r,n.EventType.MOUSE_UP,e=>{!e.defaultPrevented&&(this.ignoreNextMouseUp?this.ignoreNextMouseUp=!1:this.isFocused&&this.onMenuTriggered(t,!0))})),this._register((0,n.addDisposableListener)(r,n.EventType.MOUSE_ENTER,()=>{this.isOpen&&!this.isCurrentMenu(t)?(r.focus(),this.cleanupCustomMenu(),this.showCustomMenu(t,!1)):this.isFocused&&!this.isOpen&&(this.focusedMenu={index:t},r.focus())})),this.menus.push({label:e.label,actions:e.actions,buttonElement:r,titleElement:c})}})}createOverflowMenu(){let e=this.isCompact?(0,C.localize)(27,"Application Menu"):(0,C.localize)(28,"More"),t=b("div.menubar-menu-button",{role:"menuitem",tabindex:this.isCompact?0:-1,"aria-label":e,"aria-haspopup":!0}),o=b("div.menubar-menu-title.toolbar-toggle-more"+g.ThemeIcon.asCSSSelector(p.Codicon.menuBarMore),{role:"none","aria-hidden":!0});t.appendChild(o),this.container.appendChild(t),t.style.visibility="hidden",this._register((0,n.addDisposableListener)(t,n.EventType.KEY_UP,e=>{let t=new s.StandardKeyboardEvent(e),o=!0,r=[v.KeyCode.Enter];this.isCompact?(r.push(v.KeyCode.Space),this.options.compactMode?.horizontal===c.HorizontalDirection.Right?r.push(v.KeyCode.RightArrow):this.options.compactMode?.horizontal===c.HorizontalDirection.Left&&r.push(v.KeyCode.LeftArrow)):r.push(v.KeyCode.DownArrow),r.some(e=>t.equals(e))&&!this.isOpen?(this.focusedMenu={index:I.OVERFLOW_INDEX},this.openedViaKeyboard=!0,this.focusState=i.OPEN):o=!1,o&&(t.preventDefault(),t.stopPropagation())})),this._register(d.Gesture.addTarget(t)),this._register((0,n.addDisposableListener)(t,d.EventType.Tap,e=>{this.isOpen&&this.focusedMenu&&this.focusedMenu.holder&&(0,n.isAncestor)(e.initialTarget,this.focusedMenu.holder)||(this.ignoreNextMouseUp=!1,this.onMenuTriggered(I.OVERFLOW_INDEX,!0),e.preventDefault(),e.stopPropagation())})),this._register((0,n.addDisposableListener)(t,n.EventType.MOUSE_DOWN,e=>{new a.StandardMouseEvent((0,n.getWindow)(t),e).leftButton?(this.isOpen?this.ignoreNextMouseUp=!1:(this.ignoreNextMouseUp=!0,this.onMenuTriggered(I.OVERFLOW_INDEX,!0)),e.preventDefault(),e.stopPropagation()):e.preventDefault()})),this._register((0,n.addDisposableListener)(t,n.EventType.MOUSE_UP,e=>{!e.defaultPrevented&&(this.ignoreNextMouseUp?this.ignoreNextMouseUp=!1:this.isFocused&&this.onMenuTriggered(I.OVERFLOW_INDEX,!0))})),this._register((0,n.addDisposableListener)(t,n.EventType.MOUSE_ENTER,()=>{this.isOpen&&!this.isCurrentMenu(I.OVERFLOW_INDEX)?(this.overflowMenu.buttonElement.focus(),this.cleanupCustomMenu(),this.showCustomMenu(I.OVERFLOW_INDEX,!1)):this.isFocused&&!this.isOpen&&(this.focusedMenu={index:I.OVERFLOW_INDEX},t.focus())})),this.overflowMenu={buttonElement:t,titleElement:o,label:"More",actions:[]}}updateMenu(e){let t=this.menus.filter(t=>t.label===e.label);t&&t.length&&(t[0].actions=e.actions)}dispose(){super.dispose(),this.menus.forEach(e=>{e.titleElement?.remove(),e.buttonElement?.remove()}),this.overflowMenu.titleElement.remove(),this.overflowMenu.buttonElement.remove(),(0,y.dispose)(this.overflowLayoutScheduled),this.overflowLayoutScheduled=void 0}blur(){this.setUnfocusedState()}getWidth(){if(!this.isCompact&&this.menus){let e=this.menus[0].buttonElement.getBoundingClientRect().left;return(this.hasOverflow?this.overflowMenu.buttonElement.getBoundingClientRect().right:this.menus[this.menus.length-1].buttonElement.getBoundingClientRect().right)-e}return 0}getHeight(){return this.container.clientHeight}toggleFocus(){this.isFocused||"hidden"===this.options.visibility?this.isOpen||this.setUnfocusedState():(this.mnemonicsInUse=!0,this.focusedMenu={index:this.numMenusShown>0?0:I.OVERFLOW_INDEX},this.focusState=i.FOCUSED)}updateOverflowAction(){if(!this.menus||!this.menus.length)return;let e="overflow-menu-only";this.container.classList.toggle(e,!1);let t=this.container.offsetWidth,i=0,o=this.isCompact,r=this.numMenusShown;this.numMenusShown=0;let n=this.menus.filter(e=>void 0!==e.buttonElement&&void 0!==e.titleElement);for(let e of n){if(!o){let n=e.buttonElement.offsetWidth;i+n>t?o=!0:(i+=n,this.numMenusShown++,this.numMenusShown>r&&(e.buttonElement.style.visibility="visible"))}o&&(e.buttonElement.style.visibility="hidden")}if(this.numMenusShown-1<=n.length/4){for(let e of n)e.buttonElement.style.visibility="hidden";o=!0,this.numMenusShown=0,i=0}if(this.isCompact){this.overflowMenu.actions=[];for(let e=this.numMenusShown;e<this.menus.length;e++)this.overflowMenu.actions.push(new l.SubmenuAction(`menubar.submenu.${this.menus[e].label}`,this.menus[e].label,this.menus[e].actions||[]));let e=this.options.getCompactMenuActions?.();e&&e.length&&(this.overflowMenu.actions.push(new l.Separator),this.overflowMenu.actions.push(...e)),this.overflowMenu.buttonElement.style.visibility="visible"}else if(o){for(;i+this.overflowMenu.buttonElement.offsetWidth>t&&this.numMenusShown>0;){this.numMenusShown--;let e=n[this.numMenusShown].buttonElement.offsetWidth;n[this.numMenusShown].buttonElement.style.visibility="hidden",i-=e}this.overflowMenu.actions=[];for(let e=this.numMenusShown;e<n.length;e++)this.overflowMenu.actions.push(new l.SubmenuAction(`menubar.submenu.${n[e].label}`,n[e].label,n[e].actions||[]));this.overflowMenu.buttonElement.nextElementSibling!==n[this.numMenusShown].buttonElement&&(this.overflowMenu.buttonElement.remove(),this.container.insertBefore(this.overflowMenu.buttonElement,n[this.numMenusShown].buttonElement)),this.overflowMenu.buttonElement.style.visibility="visible"}else this.overflowMenu.buttonElement.remove(),this.container.appendChild(this.overflowMenu.buttonElement),this.overflowMenu.buttonElement.style.visibility="hidden";this.container.classList.toggle(e,0===this.numMenusShown)}updateLabels(e,t,i){let o=(0,c.cleanMnemonic)(i);if(this.options.enableMnemonics){let t=(0,_.escape)(i);c.MENU_ESCAPED_MNEMONIC_REGEX.lastIndex=0;let o=c.MENU_ESCAPED_MNEMONIC_REGEX.exec(t);for(;o&&o[1];)o=c.MENU_ESCAPED_MNEMONIC_REGEX.exec(t);o?(e.textContent="",e.append((0,_.ltrim)(t.substr(0,o.index).replace(/&&/g,"&")," "),b("mnemonic",{"aria-hidden":"true"},o[3]),(0,_.rtrim)(t.substr(o.index+o[0].length).replace(/&&/g,"&")," "))):e.textContent=t.replace(/&&/g,"&").trim()}else e.textContent=o.replace(/&&/g,"&");let r=c.MENU_MNEMONIC_REGEX.exec(i);if(r){let e=r[1]?r[1]:r[3];this.options.enableMnemonics?t.setAttribute("aria-keyshortcuts","Alt+"+e.toLocaleLowerCase()):t.removeAttribute("aria-keyshortcuts")}}update(e){if(e&&(this.options=e),this.isFocused){this.updatePending=!0;return}this.menus.forEach(e=>{e.buttonElement&&e.titleElement&&this.updateLabels(e.titleElement,e.buttonElement,e.label)}),this.overflowLayoutScheduled||(this.overflowLayoutScheduled=(0,n.scheduleAtNextAnimationFrame)((0,n.getWindow)(this.container),()=>{this.updateOverflowAction(),this.overflowLayoutScheduled=void 0})),this.setUnfocusedState()}registerMnemonic(e,t){this.mnemonics.set(t.toLocaleLowerCase(),e)}hideMenubar(){"none"!==this.container.style.display&&(this.container.style.display="none",this._onVisibilityChange.fire(!1))}showMenubar(){"flex"!==this.container.style.display&&(this.container.style.display="flex",this._onVisibilityChange.fire(!0),this.updateOverflowAction())}get focusState(){return this._focusState}set focusState(e){if(this._focusState>=i.FOCUSED&&e<i.FOCUSED&&this.updatePending&&(this.menuUpdater.schedule(),this.updatePending=!1),e===this._focusState)return;let t=this.isVisible,o=this.isOpen,r=this.isFocused;switch(this._focusState=e,e){case i.HIDDEN:t&&this.hideMenubar(),o&&this.cleanupCustomMenu(),r&&(this.focusedMenu=void 0,this.focusToReturn&&(this.focusToReturn.focus(),this.focusToReturn=void 0));break;case i.VISIBLE:t||this.showMenubar(),o&&this.cleanupCustomMenu(),r&&(this.focusedMenu&&(this.focusedMenu.index===I.OVERFLOW_INDEX?this.overflowMenu.buttonElement.blur():this.menus[this.focusedMenu.index].buttonElement?.blur()),this.focusedMenu=void 0,this.focusToReturn&&(this.focusToReturn.focus(),this.focusToReturn=void 0));break;case i.FOCUSED:t||this.showMenubar(),o&&this.cleanupCustomMenu(),this.focusedMenu&&(0===this.focusedMenu.index&&0===this.numMenusShown&&(this.focusedMenu.index=I.OVERFLOW_INDEX),this.focusedMenu.index===I.OVERFLOW_INDEX?this.overflowMenu.buttonElement.focus():this.menus[this.focusedMenu.index].buttonElement?.focus());break;case i.OPEN:t||this.showMenubar(),this.focusedMenu&&(this.cleanupCustomMenu(),this.showCustomMenu(this.focusedMenu.index,this.openedViaKeyboard))}this._focusState=e,this._onFocusStateChange.fire(this.focusState>=i.FOCUSED)}get isVisible(){return this.focusState>=i.VISIBLE}get isFocused(){return this.focusState>=i.FOCUSED}get isOpen(){return this.focusState>=i.OPEN}get hasOverflow(){return this.isCompact||this.numMenusShown<this.menus.length}get isCompact(){return void 0!==this.options.compactMode}setUnfocusedState(){"toggle"===this.options.visibility||"hidden"===this.options.visibility||"classic"===this.options.visibility&&(0,r.isFullscreen)(S.mainWindow)?this.focusState=i.HIDDEN:this.focusState=i.VISIBLE,this.ignoreNextMouseUp=!1,this.mnemonicsInUse=!1,this.updateMnemonicVisibility(!1)}focusPrevious(){if(!this.focusedMenu||0===this.numMenusShown)return;let e=(this.focusedMenu.index-1+this.numMenusShown)%this.numMenusShown;this.focusedMenu.index===I.OVERFLOW_INDEX?e=this.numMenusShown-1:0===this.focusedMenu.index&&this.hasOverflow&&(e=I.OVERFLOW_INDEX),e!==this.focusedMenu.index&&(this.isOpen?(this.cleanupCustomMenu(),this.showCustomMenu(e)):this.isFocused&&(this.focusedMenu.index=e,e===I.OVERFLOW_INDEX?this.overflowMenu.buttonElement.focus():this.menus[e].buttonElement?.focus()))}focusNext(){if(!this.focusedMenu||0===this.numMenusShown)return;let e=(this.focusedMenu.index+1)%this.numMenusShown;this.focusedMenu.index===I.OVERFLOW_INDEX?e=0:this.focusedMenu.index===this.numMenusShown-1&&(e=I.OVERFLOW_INDEX),e!==this.focusedMenu.index&&(this.isOpen?(this.cleanupCustomMenu(),this.showCustomMenu(e)):this.isFocused&&(this.focusedMenu.index=e,e===I.OVERFLOW_INDEX?this.overflowMenu.buttonElement.focus():this.menus[e].buttonElement?.focus()))}updateMnemonicVisibility(e){this.menus&&this.menus.forEach(t=>{if(t.titleElement&&t.titleElement.children.length){let i=t.titleElement.children.item(0);i&&(i.style.textDecoration=this.options.alwaysOnMnemonics||e?"underline":"")}})}get mnemonicsInUse(){return this._mnemonicsInUse}set mnemonicsInUse(e){this._mnemonicsInUse=e}get shouldAltKeyFocus(){return!f.isMacintosh&&(!this.options.disableAltFocus||"toggle"===this.options.visibility)}get onVisibilityChange(){return this._onVisibilityChange.event}get onFocusStateChange(){return this._onFocusStateChange.event}onMenuTriggered(e,t){this.isOpen?this.isCurrentMenu(e)?this.setUnfocusedState():(this.cleanupCustomMenu(),this.showCustomMenu(e,this.openedViaKeyboard)):(this.focusedMenu={index:e},this.openedViaKeyboard=!t,this.focusState=i.OPEN)}onModifierKeyToggled(e){let t=!e.altKey&&!e.ctrlKey&&!e.shiftKey&&!e.metaKey;"hidden"!==this.options.visibility&&(e.event&&this.shouldAltKeyFocus&&v.ScanCodeUtils.toEnum(e.event.code)===v.ScanCode.AltLeft&&e.event.preventDefault(),this.isFocused&&"alt"===e.lastKeyPressed&&e.altKey&&(this.setUnfocusedState(),this.mnemonicsInUse=!1,this.awaitingAltRelease=!0),t&&"alt"===e.lastKeyPressed&&"alt"===e.lastKeyReleased&&!this.awaitingAltRelease&&(!this.isFocused&&this.shouldAltKeyFocus?(this.mnemonicsInUse=!0,this.focusedMenu={index:this.numMenusShown>0?0:I.OVERFLOW_INDEX},this.focusState=i.FOCUSED):this.isOpen||this.setUnfocusedState()),e.altKey||"alt"!==e.lastKeyReleased||(this.awaitingAltRelease=!1),this.options.enableMnemonics&&this.menus&&!this.isOpen&&this.updateMnemonicVisibility(!this.awaitingAltRelease&&e.altKey||this.mnemonicsInUse))}isCurrentMenu(e){return!!this.focusedMenu&&this.focusedMenu.index===e}cleanupCustomMenu(){this.focusedMenu&&(this.focusedMenu.index===I.OVERFLOW_INDEX?this.overflowMenu.buttonElement.focus():this.menus[this.focusedMenu.index].buttonElement?.focus(),this.focusedMenu.holder&&(this.focusedMenu.holder.parentElement?.classList.remove("open"),this.focusedMenu.holder.remove()),this.focusedMenu.widget?.dispose(),this.focusedMenu={index:this.focusedMenu.index}),this.menuDisposables.clear()}showCustomMenu(e,t=!0){let o=e>=this.numMenusShown?I.OVERFLOW_INDEX:e,r=o===I.OVERFLOW_INDEX?this.overflowMenu:this.menus[o];if(!r.actions||!r.buttonElement||!r.titleElement)return;let s=b("div.menubar-menu-items-holder",{title:""});r.buttonElement.classList.add("open");let a=r.titleElement.getBoundingClientRect(),d=(0,n.getDomNodeZoomLevel)(r.titleElement);if(this.options.compactMode?.horizontal===c.HorizontalDirection.Right)s.style.left=`${a.left+this.container.clientWidth}px`;else if(this.options.compactMode?.horizontal===c.HorizontalDirection.Left){let e=(0,n.getWindow)(this.container).innerWidth;s.style.right=`${e-a.left}px`,s.style.left="auto"}else s.style.left=`${a.left*d}px`;this.options.compactMode?.vertical===c.VerticalDirection.Above?s.style.top=`${a.top-30*this.menus.length+this.container.clientHeight}px`:this.options.compactMode?.vertical===c.VerticalDirection.Below?s.style.top=`${a.top}px`:s.style.top=`${a.bottom*d}px`,r.buttonElement.appendChild(s);let l={getKeyBinding:this.options.getKeybinding,actionRunner:this.actionRunner,enableMnemonics:this.options.alwaysOnMnemonics||this.mnemonicsInUse&&this.options.enableMnemonics,ariaLabel:r.buttonElement.getAttribute("aria-label")??void 0,expandDirection:this.isCompact?this.options.compactMode:{horizontal:c.HorizontalDirection.Right,vertical:c.VerticalDirection.Below},useEventAsContext:!0},u=this.menuDisposables.add(new c.Menu(s,r.actions,l,this.menuStyle));this.menuDisposables.add(u.onDidCancel(()=>{this.focusState=i.FOCUSED})),o!==e?u.trigger(e-this.numMenusShown):u.focus(t),this.focusedMenu={index:o,holder:s,widget:u}}}e.s(["MenuBar",0,I])},741206,296847,e=>{"use strict";let t;var i=e.i(654295),o=e.i(281482),r=e.i(650289),n=e.i(686380),s=e.i(94361),a=e.i(670913),d=e.i(9753),c=e.i(701898),l=e.i(850887),u=e.i(84513),h=e.i(354244),p=e.i(731931),g=e.i(781808),m=e.i(611130),v=e.i(95940),y=e.i(506986),f=e.i(590746),_=e.i(88702),C=e.i(370973),S=e.i(302346),b=e.i(391677),I=e.i(701575),E=e.i(140889);e.i(216822);var w=e.i(975445),D=e.i(509046),A=e.i(772383),x=e.i(788405),k=e.i(314005),T=e.i(82648),M=e.i(627886),P=e.i(322193),R=e.i(74304),L=e.i(915454),N=e.i(83823),O=e.i(718596),F=e.i(777997),K=e.i(846960),W=e.i(536766),z=e.i(324726),V=n,B=e.i(856884),U=e.i(262072),H=e.i(428048),q=e.i(578953),G=e.i(399362),$=e.i(326659),Q=e.i(58762),j=e.i(633450),Y=e.i(652731),X=e.i(568101),Z=e.i(551950),J=e.i(802186),ee=e.i(155652),et=e.i(536367),ei=e.i(318581);function eo(e){return e?.hasOwnProperty("folderUri")}let er="inRecentFilesPicker";class en extends V.Action2{constructor(){super(...arguments),this.removeFromRecentlyOpened={iconClass:et.ThemeIcon.asClassName(ee.Codicon.removeClose),tooltip:(0,r.localize)(2924,"Remove from Recently Opened")},this.dirtyRecentlyOpenedFolder={iconClass:"dirty-workspace "+et.ThemeIcon.asClassName(ee.Codicon.closeDirty),tooltip:(0,r.localize)(2925,"Folder With Unsaved Files"),alwaysVisible:!0},this.dirtyRecentlyOpenedWorkspace={...this.dirtyRecentlyOpenedFolder,tooltip:(0,r.localize)(2926,"Workspace With Unsaved Files")},this.windowOpenedRecentlyOpenedFolder={iconClass:"opened-workspace "+et.ThemeIcon.asClassName(ee.Codicon.window),tooltip:(0,r.localize)(2927,"Folder Opened in a Window"),alwaysVisible:!0},this.windowOpenedRecentlyOpenedWorkspace={...this.windowOpenedRecentlyOpenedFolder,tooltip:(0,r.localize)(2928,"Workspace Opened in a Window")},this.activeWindowOpenedRecentlyOpenedFolder={iconClass:"opened-workspace "+et.ThemeIcon.asClassName(ee.Codicon.windowActive),tooltip:(0,r.localize)(2929,"Folder Opened in Active Window"),alwaysVisible:!0},this.activeWindowOpenedRecentlyOpenedWorkspace={...this.activeWindowOpenedRecentlyOpenedFolder,tooltip:(0,r.localize)(2930,"Workspace Opened in Active Window")}}async run(e){let t,i=e.get(y.IWorkspacesService),o=e.get(H.IQuickInputService),n=e.get(G.IWorkspaceContextService),s=e.get(C.ILabelService),a=e.get(u.IKeybindingService),d=e.get($.IModelService),c=e.get(Q.ILanguageService),p=e.get(R.IHostService),g=e.get(z.IDialogService),[m,f,_]=await Promise.all([p.getWindows({includeAuxiliaryWindows:!1}),i.getRecentlyOpened(),i.getDirtyWorkspaces()]),S=!1,b=new J.ResourceMap,I=new J.ResourceMap;for(let e of _)eo(e)?b.set(e.folderUri,!0):(I.set(e.workspace.configPath,e.workspace),S=!0);let E=(0,l.getActiveWindow)().vscodeWindowId,w=new J.ResourceMap;for(let e of m){let t=e.id===E;(0,q.isSingleFolderWorkspaceIdentifier)(e.workspace)?w.set(e.workspace.uri,{isActive:t}):(0,q.isWorkspaceIdentifier)(e.workspace)&&w.set(e.workspace.configPath,{isActive:t})}let D=new J.ResourceMap,A=new J.ResourceMap;for(let e of f.workspaces)(0,v.isRecentFolder)(e)?D.set(e.folderUri,!0):(A.set(e.workspace.configPath,e.workspace),S=!0);let x=[];for(let e of f.workspaces){let t=(0,v.isRecentFolder)(e)?b.has(e.folderUri):I.has(e.workspace.configPath),i=(0,v.isRecentFolder)(e)?w.get(e.folderUri):w.get(e.workspace.configPath);x.push(this.toQuickPick(d,c,s,e,{isDirty:t,windowState:i}))}for(let e of _)if(eo(e)&&!D.has(e.folderUri))x.push(this.toQuickPick(d,c,s,e,{isDirty:!0,windowState:void 0}));else e?.hasOwnProperty("workspace")&&!A.has(e.workspace.configPath)&&x.push(this.toQuickPick(d,c,s,e,{isDirty:!0,windowState:void 0}));let k=f.files.map(e=>this.toQuickPick(d,c,s,e,{isDirty:!1,windowState:void 0})),T=f.workspaces[0],M=T&&n.isCurrentWorkspace((0,v.isRecentWorkspace)(T)?T.workspace:T.folderUri),P=[{type:"separator",label:S?(0,r.localize)(2931,"folders & workspaces"):(0,r.localize)(2932,"folders")},...x,{type:"separator",label:(0,r.localize)(2933,"files")},...k],L=await o.pick(P,{contextKey:er,activeItem:[...x,...k][+!!M],placeHolder:h.isMacintosh?(0,r.localize)(2934,"Select to open (hold Cmd-key to force new window or Option-key for same window)"):(0,r.localize)(2935,"Select to open (hold Ctrl-key to force new window or Alt-key for same window)"),matchOnDescription:!0,sortByLabel:!1,onKeyMods:e=>t=e,quickNavigate:this.isQuickNavigate()?{keybindings:a.lookupKeybindings(this.desc.id)}:void 0,hideInput:this.isQuickNavigate(),onDidTriggerItemButton:async e=>{if(e.button===this.removeFromRecentlyOpened||e.button===this.windowOpenedRecentlyOpenedFolder||e.button===this.windowOpenedRecentlyOpenedWorkspace)await i.removeRecentlyOpened([e.item.resource]),e.removeItem();else if(e.button===this.dirtyRecentlyOpenedFolder||e.button===this.dirtyRecentlyOpenedWorkspace){let t=e.button===this.dirtyRecentlyOpenedWorkspace,{confirmed:i}=await g.confirm({title:t?(0,r.localize)(2936,"Workspace with Unsaved Files"):(0,r.localize)(2937,"Folder with Unsaved Files"),message:t?(0,r.localize)(2938,"Do you want to open the workspace to review the unsaved files?"):(0,r.localize)(2939,"Do you want to open the folder to review the unsaved files?"),detail:t?(0,r.localize)(2940,"Workspaces with unsaved files cannot be removed until all unsaved files have been saved or reverted."):(0,r.localize)(2941,"Folders with unsaved files cannot be removed until all unsaved files have been saved or reverted.")});i&&(p.openWindow([e.item.openable],{remoteAuthority:e.item.remoteAuthority||null}),o.cancel())}}});if(L)return p.openWindow([L.openable],{forceNewWindow:t?.ctrlCmd,forceReuseWindow:t?.alt,remoteAuthority:L.remoteAuthority||null})}toQuickPick(e,t,i,o,n){let s,a,d,c,l=!1;(0,v.isRecentFolder)(o)?(c=o.folderUri,a=(0,j.getIconClasses)(e,t,c,Y.FileKind.FOLDER),s={folderUri:c},d=o.label||i.getWorkspaceLabel(c,{verbose:_.Verbosity.LONG})):(0,v.isRecentWorkspace)(o)?(c=o.workspace.configPath,a=(0,j.getIconClasses)(e,t,c,Y.FileKind.ROOT_FOLDER),s={workspaceUri:c},d=o.label||i.getWorkspaceLabel(o.workspace,{verbose:_.Verbosity.LONG}),l=!0):(c=o.fileUri,a=(0,j.getIconClasses)(e,t,c,Y.FileKind.FILE),s={fileUri:c},d=o.label||i.getUriLabel(c,{appendWorkspaceSuffix:!0}));let{name:u,parentPath:h}=(0,T.splitRecentLabel)(d),p=[];return n.isDirty?p.push(l?this.dirtyRecentlyOpenedWorkspace:this.dirtyRecentlyOpenedFolder):n.windowState?n.windowState.isActive?p.push(l?this.activeWindowOpenedRecentlyOpenedWorkspace:this.activeWindowOpenedRecentlyOpenedFolder):p.push(l?this.windowOpenedRecentlyOpenedWorkspace:this.windowOpenedRecentlyOpenedFolder):p.push(this.removeFromRecentlyOpened),{iconClasses:a,label:u,ariaLabel:n.isDirty?l?(0,r.localize)(2942,"{0}, workspace with unsaved changes",u):(0,r.localize)(2943,"{0}, folder with unsaved changes",u):u,description:h,buttons:p,openable:s,resource:c,remoteAuthority:o.remoteAuthority}}}class es extends en{static{this.ID="workbench.action.openRecent"}constructor(){super({id:es.ID,title:{...(0,r.localize2)(2944,"Open Recent..."),mnemonicTitle:(0,r.localize)(2945,"&&More...")},category:U.Categories.File,f1:!0,keybinding:{weight:O.KeybindingWeight.WorkbenchContrib,primary:N.KeyMod.CtrlCmd|N.KeyCode.KeyR,mac:{primary:N.KeyMod.WinCtrl|N.KeyCode.KeyR}},precondition:B.IsSandboxWorkspaceContext.toNegated(),menu:{id:V.MenuId.MenubarRecentMenu,group:"y_more",order:1,when:B.IsSandboxWorkspaceContext.toNegated()}})}isQuickNavigate(){return!1}}class ea extends V.Action2{constructor(){super({id:"workbench.action.toggleFullScreen",title:{...(0,r.localize2)(2947,"Toggle Full Screen"),mnemonicTitle:(0,r.localize)(2948,"&&Full Screen")},category:U.Categories.View,f1:!0,keybinding:{weight:O.KeybindingWeight.WorkbenchContrib,primary:N.KeyCode.F11,mac:{primary:N.KeyMod.CtrlCmd|N.KeyMod.WinCtrl|N.KeyCode.KeyF}},precondition:F.IsIOSContext.toNegated(),toggled:B.IsMainWindowFullscreenContext,menu:[{id:V.MenuId.MenubarAppearanceMenu,group:"1_toggle_view",order:1}]})}run(e){return e.get(R.IHostService).toggleFullScreen((0,l.getActiveWindow)())}}class ed extends V.Action2{static{this.ID="workbench.action.reloadWindow"}constructor(){super({id:ed.ID,title:(0,r.localize2)(2949,"Reload Window"),category:U.Categories.Developer,f1:!0,keybinding:{weight:O.KeybindingWeight.WorkbenchContrib+50,when:F.IsDevelopmentContext,primary:N.KeyMod.CtrlCmd|N.KeyCode.KeyR}})}async run(e){return e.get(R.IHostService).reload()}}class ec extends V.Action2{constructor(){super({id:"workbench.action.showAboutDialog",title:{...(0,r.localize2)(2950,"About"),mnemonicTitle:(0,r.localize)(2951,"&&About")},category:U.Categories.Help,f1:!0,menu:{id:V.MenuId.MenubarHelpMenu,group:"z_about",order:1,when:F.IsMacNativeContext.toNegated()}})}run(e){return e.get(z.IDialogService).about()}}class el extends V.Action2{constructor(){super({id:"workbench.action.newWindow",title:{...(0,r.localize2)(2952,"New Window"),mnemonicTitle:(0,r.localize)(2953,"New &&Window")},f1:!0,keybinding:{weight:O.KeybindingWeight.WorkbenchContrib,primary:h.isWeb?h.isWindows?(0,N.KeyChord)(N.KeyMod.CtrlCmd|N.KeyCode.KeyK,N.KeyMod.Shift|N.KeyCode.KeyN):N.KeyMod.CtrlCmd|N.KeyMod.Alt|N.KeyMod.Shift|N.KeyCode.KeyN:N.KeyMod.CtrlCmd|N.KeyMod.Shift|N.KeyCode.KeyN,secondary:h.isWeb?[N.KeyMod.CtrlCmd|N.KeyMod.Shift|N.KeyCode.KeyN]:void 0},precondition:B.IsSandboxWorkspaceContext.toNegated(),menu:{id:V.MenuId.MenubarFileMenu,group:"1_new",order:3,when:B.IsSandboxWorkspaceContext.toNegated()}})}run(e){return e.get(R.IHostService).openWindow({remoteAuthority:null})}}class eu extends V.Action2{constructor(){super({id:"workbench.action.blur",title:(0,r.localize2)(2954,"Remove keyboard focus from focused element")})}run(){let e=(0,l.getActiveElement)();(0,l.isHTMLElement)(e)&&e.blur()}}(0,V.registerAction2)(el),(0,V.registerAction2)(ea),(0,V.registerAction2)(class extends en{constructor(){super({id:"workbench.action.quickOpenRecent",title:(0,r.localize2)(2946,"Quick Open Recent..."),category:U.Categories.File,f1:!1})}isQuickNavigate(){return!0}}),(0,V.registerAction2)(es),(0,V.registerAction2)(ed),(0,V.registerAction2)(ec),(0,V.registerAction2)(eu);let eh=X.ContextKeyExpr.and(Z.inQuickPickContext,X.ContextKeyExpr.has(er)),ep="workbench.action.quickOpenNavigateNextInRecentFilesPicker";O.KeybindingsRegistry.registerCommandAndKeybindingRule({id:ep,weight:O.KeybindingWeight.WorkbenchContrib+50,handler:(0,Z.getQuickNavigateHandler)(ep,!0),when:eh,primary:N.KeyMod.CtrlCmd|N.KeyCode.KeyR,mac:{primary:N.KeyMod.WinCtrl|N.KeyCode.KeyR}});let eg="workbench.action.quickOpenNavigatePreviousInRecentFilesPicker";O.KeybindingsRegistry.registerCommandAndKeybindingRule({id:eg,weight:O.KeybindingWeight.WorkbenchContrib+50,handler:(0,Z.getQuickNavigateHandler)(eg,!1),when:eh,primary:N.KeyMod.CtrlCmd|N.KeyMod.Shift|N.KeyCode.KeyR,mac:{primary:N.KeyMod.WinCtrl|N.KeyMod.Shift|N.KeyCode.KeyR}}),ei.CommandsRegistry.registerCommand("workbench.action.toggleConfirmBeforeClose",e=>{let t=e.get(p.IConfigurationService),i=t.inspect("window.confirmBeforeClose").userValue;return t.updateValue("window.confirmBeforeClose","never"===i?"keyboardOnly":"never")}),V.MenuRegistry.appendMenuItem(V.MenuId.MenubarFileMenu,{group:"z_ConfirmClose",command:{id:"workbench.action.toggleConfirmBeforeClose",title:(0,r.localize)(2955,"Confirm Before Close"),toggled:X.ContextKeyExpr.notEquals("config.window.confirmBeforeClose","never")},order:1,when:X.ContextKeyExpr.and(B.IsSandboxWorkspaceContext.toNegated(),F.IsWebContext)}),V.MenuRegistry.appendMenuItem(V.MenuId.MenubarFileMenu,{title:(0,r.localize)(2956,"Open &&Recent"),submenu:V.MenuId.MenubarRecentMenu,group:"2_open",order:4,when:B.IsSandboxWorkspaceContext.toNegated()}),e.s(["OpenRecentAction",0,es],296847);var em=e.i(700820),ev=e.i(2301),ey=e.i(490819),ef=e.i(865562),e_=e.i(536561),eC=e.i(770326);(0,i.registerCss)(void 0),n.MenuRegistry.appendMenuItem(n.MenuId.MenubarMainMenu,{submenu:n.MenuId.MenubarFileMenu,title:{value:"File",original:"File",mnemonicTitle:(0,r.localize)(3650,"&&File")},order:1}),n.MenuRegistry.appendMenuItem(n.MenuId.MenubarMainMenu,{submenu:n.MenuId.MenubarEditMenu,title:{value:"Edit",original:"Edit",mnemonicTitle:(0,r.localize)(3651,"&&Edit")},order:2}),n.MenuRegistry.appendMenuItem(n.MenuId.MenubarMainMenu,{submenu:n.MenuId.MenubarSelectionMenu,title:{value:"Selection",original:"Selection",mnemonicTitle:(0,r.localize)(3652,"&&Selection")},order:3}),n.MenuRegistry.appendMenuItem(n.MenuId.MenubarMainMenu,{submenu:n.MenuId.MenubarViewMenu,title:{value:"View",original:"View",mnemonicTitle:(0,r.localize)(3653,"&&View")},order:4}),n.MenuRegistry.appendMenuItem(n.MenuId.MenubarMainMenu,{submenu:n.MenuId.MenubarGoMenu,title:{value:"Go",original:"Go",mnemonicTitle:(0,r.localize)(3654,"&&Go")},order:5}),n.MenuRegistry.appendMenuItem(n.MenuId.MenubarMainMenu,{submenu:n.MenuId.MenubarTerminalMenu,title:{value:"Terminal",original:"Terminal",mnemonicTitle:(0,r.localize)(3655,"&&Terminal")},order:7}),n.MenuRegistry.appendMenuItem(n.MenuId.MenubarMainMenu,{submenu:n.MenuId.MenubarHelpMenu,title:{value:"Help",original:"Help",mnemonicTitle:(0,r.localize)(3656,"&&Help")},order:8}),n.MenuRegistry.appendMenuItem(n.MenuId.MenubarMainMenu,{submenu:n.MenuId.MenubarPreferencesMenu,title:{value:"Preferences",original:"Preferences",mnemonicTitle:(0,r.localize)(3657,"Preferences")},when:F.IsMacNativeContext,order:9});class eS extends m.Disposable{static{this.MAX_MENU_RECENT_ENTRIES=10}constructor(e,t,i,o,r,s,d,c,l,u,h,p,g,v){super(),this.menuService=e,this.workspacesService=t,this.contextKeyService=i,this.keybindingService=o,this.configurationService=r,this.labelService=s,this.updateService=d,this.storageService=c,this.notificationService=l,this.preferencesService=u,this.environmentService=h,this.accessibilityService=p,this.hostService=g,this.commandService=v,this.keys=[a.MenuSettings.MenuBarVisibility,"window.enableMenuBarMnemonics","window.customMenuBarAltFocus","workbench.sideBar.location","window.nativeTabs"],this.menus={},this.topLevelTitles={},this.recentlyOpened={files:[],workspaces:[]},this.mainMenu=this._register(this.menuService.createMenu(n.MenuId.MenubarMainMenu,this.contextKeyService)),this.mainMenuDisposables=this._register(new m.DisposableStore),this.setupMainMenu(),this.menuUpdater=this._register(new f.RunOnceScheduler(()=>this.doUpdateMenubar(!1),200)),this.notifyUserOfCustomMenubarAccessibility()}registerListeners(){this._register(this.hostService.onDidChangeFocus(e=>this.onDidChangeWindowFocus(e))),this._register(this.configurationService.onDidChangeConfiguration(e=>this.onConfigurationUpdated(e))),this._register(this.updateService.onStateChange(()=>this.onUpdateStateChange())),this._register(this.workspacesService.onDidChangeRecentlyOpened(()=>{this.onDidChangeRecentlyOpened()})),this._register(this.keybindingService.onDidUpdateKeybindings(()=>this.updateMenubar())),this._register(this.labelService.onDidChangeFormatters(()=>{this.onDidChangeRecentlyOpened()})),this._register(this.mainMenu.onDidChange(()=>{this.setupMainMenu(),this.doUpdateMenubar(!0)}))}setupMainMenu(){this.mainMenuDisposables.clear(),this.menus={},this.topLevelTitles={};let[,e]=this.mainMenu.getActions()[0];for(let t of e)t instanceof n.SubmenuItemAction&&"string"!=typeof t.item.title&&(this.menus[t.item.title.original]=this.mainMenuDisposables.add(this.menuService.createMenu(t.item.submenu,this.contextKeyService,{emitEventsForSubmenuChanges:!0})),this.topLevelTitles[t.item.title.original]=t.item.title.mnemonicTitle??t.item.title.value)}updateMenubar(){this.menuUpdater.schedule()}calculateActionLabel(e){return e.label}onUpdateStateChange(){this.updateMenubar()}onUpdateKeybindings(){this.updateMenubar()}getOpenRecentActions(){if(!this.recentlyOpened)return[];let{workspaces:e,files:t}=this.recentlyOpened,i=[];if(e.length>0){for(let t=0;t<eS.MAX_MENU_RECENT_ENTRIES&&t<e.length;t++)i.push(this.createOpenRecentMenuAction(e[t]));i.push(new c.Separator)}if(t.length>0){for(let e=0;e<eS.MAX_MENU_RECENT_ENTRIES&&e<t.length;e++)i.push(this.createOpenRecentMenuAction(t[e]));i.push(new c.Separator)}return i}onDidChangeWindowFocus(e){e&&this.onDidChangeRecentlyOpened()}onConfigurationUpdated(e){this.keys.some(t=>e.affectsConfiguration(t))&&this.updateMenubar(),e.affectsConfiguration("editor.accessibilitySupport")&&this.notifyUserOfCustomMenubarAccessibility(),e.affectsConfiguration(a.MenuSettings.MenuBarVisibility)&&this.onDidChangeRecentlyOpened()}get menubarHidden(){return(!h.isMacintosh||!h.isNative)&&"hidden"===(0,a.getMenuBarVisibility)(this.configurationService)}onDidChangeRecentlyOpened(){this.menubarHidden||this.workspacesService.getRecentlyOpened().then(e=>{this.recentlyOpened=e,this.updateMenubar()})}createOpenRecentMenuAction(e){let t,i,o,r,n=e.remoteAuthority;return(0,v.isRecentFolder)(e)?(i=e.folderUri,t=e.label||this.labelService.getWorkspaceLabel(i,{verbose:_.Verbosity.LONG}),o="openRecentFolder",r={folderUri:i}):(0,v.isRecentWorkspace)(e)?(i=e.workspace.configPath,t=e.label||this.labelService.getWorkspaceLabel(e.workspace,{verbose:_.Verbosity.LONG}),o="openRecentWorkspace",r={workspaceUri:i}):(i=e.fileUri,t=e.label||this.labelService.getUriLabel(i,{appendWorkspaceSuffix:!0}),o="openRecentFile",r={fileUri:i}),Object.assign((0,c.toAction)({id:o,label:(0,T.unmnemonicLabel)(t),run:e=>{let t=e&&(!h.isMacintosh&&(e.ctrlKey||e.shiftKey)||h.isMacintosh&&(e.metaKey||e.altKey));return this.hostService.openWindow([r],{forceNewWindow:!!t,remoteAuthority:n||null})}}),{uri:i,remoteAuthority:n})}notifyUserOfCustomMenubarAccessibility(){if(h.isWeb||h.isMacintosh)return;let e=this.storageService.getBoolean("menubar/accessibleMenubarNotified",I.StorageScope.APPLICATION,!1),t=!(0,a.hasNativeMenu)(this.configurationService);if(e||t||!this.accessibilityService.isScreenReaderOptimized())return;let i=(0,r.localize)(3658,"Accessibility support is enabled for you. For the most accessible experience, we recommend the custom menu style.");this.notificationService.prompt(eC.default.Info,i,[{label:(0,r.localize)(3659,"Open Settings"),run:()=>this.preferencesService.openUserSettings({query:a.MenuSettings.MenuStyle})}]),this.storageService.store("menubar/accessibleMenubarNotified",!0,I.StorageScope.APPLICATION,I.StorageTarget.USER)}}let eb=class extends eS{constructor(e,t,i,o,r,s,a,d,l,u,h,p,v,y,f){super(e,t,i,o,r,s,a,d,l,u,h,p,y,f),this.telemetryService=v,this.alwaysOnMnemonics=!1,this.focusInsideMenubar=!1,this.pendingFirstTimeUpdate=!1,this.visible=!0,this.webNavigationMenu=this._register(this.menuService.createMenu(n.MenuId.MenubarHomeMenu,this.contextKeyService)),this.reinstallDisposables=this._register(new m.DisposableStore),this.updateActionsDisposables=this._register(new m.DisposableStore),this._onVisibilityChange=this._register(new g.Emitter),this._onFocusStateChange=this._register(new g.Emitter),this.actionRunner=this._register(new c.ActionRunner),this.actionRunner.onDidRun(e=>{this.telemetryService.publicLog2("workbenchActionExecuted",{id:e.action.id,from:"menu"})}),this.workspacesService.getRecentlyOpened().then(e=>{this.recentlyOpened=e}),this.registerListeners()}doUpdateMenubar(e){this.focusInsideMenubar||this.setupCustomMenubar(e),e&&(this.pendingFirstTimeUpdate=!0)}getUpdateAction(){switch(this.updateService.state.type){case S.StateType.Idle:return(0,c.toAction)({id:"update.check",label:(0,r.localize)(3661,"Check for &&Updates..."),enabled:!0,run:()=>this.updateService.checkForUpdates(!0)});case S.StateType.CheckingForUpdates:return(0,c.toAction)({id:"update.checking",label:(0,r.localize)(3662,"Checking for Updates..."),enabled:!1,run:()=>{}});case S.StateType.AvailableForDownload:return(0,c.toAction)({id:"update.downloadNow",label:(0,r.localize)(3663,"D&&ownload Update"),enabled:!0,run:()=>this.updateService.downloadUpdate()});case S.StateType.Downloading:return(0,c.toAction)({id:"update.downloading",label:(0,r.localize)(3664,"Downloading Update..."),enabled:!1,run:()=>{}});case S.StateType.Downloaded:return h.isMacintosh?null:(0,c.toAction)({id:"update.install",label:(0,r.localize)(3665,"Install &&Update..."),enabled:!0,run:()=>this.updateService.applyUpdate()});case S.StateType.Updating:return(0,c.toAction)({id:"update.updating",label:(0,r.localize)(3666,"Installing Update..."),enabled:!1,run:()=>{}});case S.StateType.Ready:return(0,c.toAction)({id:"update.restart",label:(0,r.localize)(3667,"Restart to &&Update"),enabled:!0,run:()=>this.updateService.quitAndInstall()});default:return null}}get currentMenubarVisibility(){return(0,a.getMenuBarVisibility)(this.configurationService)}get currentDisableMenuBarAltFocus(){let e=this.configurationService.getValue("window.customMenuBarAltFocus"),t=!1;return"boolean"==typeof e&&(t=!e),t}insertActionsBefore(e,t){switch(e.id){case es.ID:t.push(...this.getOpenRecentActions());break;case"workbench.action.showAboutDialog":if(!h.isMacintosh&&!h.isWeb){let e=this.getUpdateAction();e&&(e.label=(0,T.mnemonicMenuLabel)(e.label),t.push(e),t.push(new c.Separator))}}}get currentEnableMenuBarMnemonics(){let e=this.configurationService.getValue("window.enableMenuBarMnemonics");return"boolean"!=typeof e&&(e=!0),e&&(!h.isWeb||(0,P.isFullscreen)(ef.mainWindow))}get currentCompactMenuMode(){if("compact"===this.currentMenubarVisibility)return{horizontal:"right"===this.configurationService.getValue("workbench.sideBar.location")?k.HorizontalDirection.Left:k.HorizontalDirection.Right,vertical:this.configurationService.getValue("workbench.activityBar.location")===e_.ActivityBarPosition.BOTTOM?k.VerticalDirection.Above:k.VerticalDirection.Below}}onDidVisibilityChange(e){this.visible=e,this.onDidChangeRecentlyOpened(),this._onVisibilityChange.fire(e)}toActionsArray(e){return(0,ev.getFlatContextMenuActions)(e.getActions({shouldForwardArgs:!0}))}setupCustomMenubar(e){if(!this.container)return;e?(this.menubar&&this.reinstallDisposables.clear(),this.menubar=this.reinstallDisposables.add(new x.MenuBar(this.container,this.getMenuBarOptions(),ey.defaultMenuStyles)),this.accessibilityService.alwaysUnderlineAccessKeys().then(e=>{this.alwaysOnMnemonics=e,this.menubar?.update(this.getMenuBarOptions())}),this.reinstallDisposables.add(this.menubar.onFocusStateChange(e=>{this._onFocusStateChange.fire(e),e||(this.pendingFirstTimeUpdate?(this.setupCustomMenubar(!0),this.pendingFirstTimeUpdate=!1):this.updateMenubar(),this.focusInsideMenubar=!1)})),this.reinstallDisposables.add(this.menubar.onVisibilityChange(e=>this.onDidVisibilityChange(e))),this.reinstallDisposables.add((0,l.addDisposableListener)(this.container,l.EventType.FOCUS_IN,()=>{this.focusInsideMenubar=!0})),this.reinstallDisposables.add((0,l.addDisposableListener)(this.container,l.EventType.FOCUS_OUT,()=>{this.focusInsideMenubar=!1})),this.menubar.isVisible&&this.onDidVisibilityChange(!0)):this.menubar?.update(this.getMenuBarOptions());let t=(e,i,o,r)=>{for(let s of(i.splice(0),e))if(this.insertActionsBefore(s,i),s instanceof c.Separator)i.push(s);else if(s instanceof n.SubmenuItemAction||s instanceof n.MenuItemAction){let e="string"==typeof s.item.title?s.item.title:s.item.title.mnemonicTitle??s.item.title.value;if(s instanceof n.SubmenuItemAction){let n=[];t(s.actions,n,o,r),n.length>0&&i.push(new c.SubmenuAction(s.id,(0,T.mnemonicMenuLabel)(e),n))}else{(0,em.isICommandActionToggleInfo)(s.item.toggled)&&(e=s.item.toggled.mnemonicTitle??s.item.toggled.title??e);let t=r.add(new c.Action(s.id,(0,T.mnemonicMenuLabel)(e),s.class,s.enabled,()=>this.commandService.executeCommand(s.id)));t.tooltip=s.tooltip,t.checked=s.checked,i.push(t)}}if("File"===o&&void 0===this.currentCompactMenuMode){let e=this.getWebNavigationActions();e.length&&i.push(...e)}};for(let i of Object.keys(this.topLevelTitles)){let o=this.menus[i];if(e&&o){let e=this.reinstallDisposables.add(new m.DisposableStore);if(this.reinstallDisposables.add(o.onDidChange(()=>{if(!this.focusInsideMenubar){let r=[];e.clear(),t(this.toActionsArray(o),r,i,e),this.menubar?.updateMenu({actions:r,label:(0,T.mnemonicMenuLabel)(this.topLevelTitles[i])})}})),o===this.menus.File){let e=this.reinstallDisposables.add(new m.DisposableStore);this.reinstallDisposables.add(this.webNavigationMenu.onDidChange(()=>{if(!this.focusInsideMenubar){let r=[];e.clear(),t(this.toActionsArray(o),r,i,e),this.menubar?.updateMenu({actions:r,label:(0,T.mnemonicMenuLabel)(this.topLevelTitles[i])})}}))}}let r=[];o&&(this.updateActionsDisposables.clear(),t(this.toActionsArray(o),r,i,this.updateActionsDisposables)),this.menubar&&(e?this.menubar.push({actions:r,label:(0,T.mnemonicMenuLabel)(this.topLevelTitles[i])}):this.menubar.updateMenu({actions:r,label:(0,T.mnemonicMenuLabel)(this.topLevelTitles[i])}))}}getWebNavigationActions(){if(!h.isWeb)return[];let e=[];for(let t of this.webNavigationMenu.getActions()){let[,i]=t;for(let t of i)if(t instanceof n.MenuItemAction){let i="string"==typeof t.item.title?t.item.title:t.item.title.mnemonicTitle??t.item.title.value;e.push((0,c.toAction)({id:t.id,label:(0,T.mnemonicMenuLabel)(i),class:t.class,enabled:t.enabled,run:async e=>{this.commandService.executeCommand(t.id,e)}}))}e.push(new c.Separator)}return e.length&&e.pop(),e}getMenuBarOptions(){return{enableMnemonics:this.currentEnableMenuBarMnemonics,disableAltFocus:this.currentDisableMenuBarAltFocus,visibility:this.currentMenubarVisibility,actionRunner:this.actionRunner,getKeybinding:e=>this.keybindingService.lookupKeybinding(e.id),alwaysOnMnemonics:this.alwaysOnMnemonics,compactMode:this.currentCompactMenuMode,getCompactMenuActions:()=>h.isWeb?this.getWebNavigationActions():[]}}onDidChangeWindowFocus(e){this.visible&&(super.onDidChangeWindowFocus(e),this.container&&(e?this.container.classList.remove("inactive"):(this.container.classList.add("inactive"),this.menubar?.blur())))}onUpdateStateChange(){this.visible&&super.onUpdateStateChange()}onDidChangeRecentlyOpened(){this.visible&&super.onDidChangeRecentlyOpened()}onUpdateKeybindings(){this.visible&&super.onUpdateKeybindings()}registerListeners(){super.registerListeners(),this._register((0,l.addDisposableListener)(ef.mainWindow,l.EventType.RESIZE,()=>{this.menubar&&!(h.isIOS&&L.BrowserFeatures.pointerEvents)&&this.menubar.blur()})),h.isWeb&&(this._register((0,P.onDidChangeFullscreen)(e=>{e===ef.mainWindow.vscodeWindowId&&this.updateMenubar()})),this._register(this.webNavigationMenu.onDidChange(()=>this.updateMenubar())),this._register((!t&&(t=new g.Emitter,(0,n.registerAction2)(class extends n.Action2{constructor(){super({id:"workbench.actions.menubar.focus",title:(0,r.localize2)(3660,"Focus Application Menu"),keybinding:{primary:N.KeyMod.Alt|N.KeyCode.F10,weight:O.KeybindingWeight.WorkbenchContrib,when:F.IsWebContext},f1:!0})}async run(){t?.fire()}})),t).event(()=>this.menubar?.toggleFocus())))}get onVisibilityChange(){return this._onVisibilityChange.event}get onFocusStateChange(){return this._onFocusStateChange.event}getMenubarItemsDimensions(){return this.menubar?new l.Dimension(this.menubar.getWidth(),this.menubar.getHeight()):new l.Dimension(0,0)}create(e){return this.container=e,this.container&&this.doUpdateMenubar(!0),this.container}layout(e){this.menubar?.update(this.getMenuBarOptions())}toggleFocus(){this.menubar?.toggleFocus()}};eb=(0,o.__decorate)([(0,o.__param)(0,s.IMenuService),(0,o.__param)(1,y.IWorkspacesService),(0,o.__param)(2,d.IContextKeyService),(0,o.__param)(3,u.IKeybindingService),(0,o.__param)(4,p.IConfigurationService),(0,o.__param)(5,C.ILabelService),(0,o.__param)(6,b.IUpdateService),(0,o.__param)(7,E.IStorageService),(0,o.__param)(8,w.INotificationService),(0,o.__param)(9,D.IPreferencesService),(0,o.__param)(10,A.IWorkbenchEnvironmentService),(0,o.__param)(11,M.IAccessibilityService),(0,o.__param)(12,W.ITelemetryService),(0,o.__param)(13,R.IHostService),(0,o.__param)(14,K.ICommandService)],eb),e.s(["CustomMenubarControl",0,eb],741206)},44383,e=>{"use strict";var t,i=e.i(281482),o=e.i(650289),r=e.i(32637),n=e.i(258861),s=e.i(536561),a=e.i(957994),d=e.i(488259),c=e.i(611130),l=e.i(701898),u=e.i(485882),h=e.i(850887),p=e.i(828318),g=e.i(919101),m=e.i(598720),v=e.i(535567),y=e.i(781808),f=e.i(447186),_=e.i(134939),C=e.i(660284);class S{constructor(e,t,i,o,r,n){this.viewDescriptorService=e,this.targetContainerLocation=t,this.orientation=i,this.openComposite=o,this.moveComposite=r,this.getItems=n}drop(e,t,i,o){let r=e.getData();if("composite"===r.type){let e=this.viewDescriptorService.getViewContainerById(r.id),i=this.viewDescriptorService.getViewContainerLocation(e),n=!1;i===this.targetContainerLocation?t&&(this.moveComposite(r.id,t,o),n=!0):(this.viewDescriptorService.moveViewContainerToLocation(e,this.targetContainerLocation,this.getTargetIndex(t,o),"dnd"),n=!0),n&&this.openComposite(e.id,!0)}if("view"===r.type){let e=this.viewDescriptorService.getViewDescriptorById(r.id);if(e.canMoveView){this.viewDescriptorService.moveViewToLocation(e,this.targetContainerLocation,"dnd");let i=this.viewDescriptorService.getViewContainerByViewId(e.id);t&&this.moveComposite(i.id,t,o),this.openComposite(i.id,!0).then(t=>{t?.openView(e.id,!0)})}}}onDragEnter(e,t,i){return this.canDrop(e,t)}onDragOver(e,t,i){return this.canDrop(e,t)}getTargetIndex(e,t){if(!e)return;let i=this.getItems(),o=this.orientation===r.ActionsOrientation.HORIZONTAL?t?.horizontallyBefore:t?.verticallyBefore;return i.filter(e=>e.visible).findIndex(t=>t.id===e)+ +!o}canDrop(e,t){let i=e.getData();if("composite"===i.type){let e=this.viewDescriptorService.getViewContainerById(i.id);return this.viewDescriptorService.getViewContainerLocation(e)!==this.targetContainerLocation||i.id!==t}{let e=this.viewDescriptorService.getViewDescriptorById(i.id);return!!e?.canMoveView}}}class b{constructor(e,t,i,o,r){this.compositeBarContainer=e,this.actionBarContainer=t,this.compositeBarModel=i,this.dndHandler=o,this.orientation=r,this.insertDropBefore=void 0}onDragOver(e){let t=this.compositeBarModel.visibleItems;if(!t.length||e.eventData.target&&(0,h.isAncestor)(e.eventData.target,this.actionBarContainer)){this.insertDropBefore=this.updateFromDragging(this.compositeBarContainer,!1,!1,!0);return}let i=this.insertAtFront(this.actionBarContainer,e.eventData),o=i?t[0]:t[t.length-1],r=this.dndHandler.onDragOver(e.dragAndDropData,o.id,e.eventData);(0,_.toggleDropEffect)(e.eventData.dataTransfer,"move",r),this.insertDropBefore=this.updateFromDragging(this.compositeBarContainer,r,i,!0)}onDragLeave(e){this.insertDropBefore=this.updateFromDragging(this.compositeBarContainer,!1,!1,!1)}onDragEnd(e){this.insertDropBefore=this.updateFromDragging(this.compositeBarContainer,!1,!1,!1)}onDrop(e){let t,i=this.compositeBarModel.visibleItems;i.length&&(t=this.insertAtFront(this.actionBarContainer,e.eventData)?i[0].id:i[i.length-1].id),this.dndHandler.drop(e.dragAndDropData,t,e.eventData,this.insertDropBefore),this.insertDropBefore=this.updateFromDragging(this.compositeBarContainer,!1,!1,!1)}insertAtFront(e,t){let i=e.getBoundingClientRect(),o=t.clientX,n=t.clientY;switch(this.orientation){case r.ActionsOrientation.HORIZONTAL:return o<i.left;case r.ActionsOrientation.VERTICAL:return n<i.top}}updateFromDragging(e,t,i,o){if(e.classList.toggle("dragged-over",o),e.classList.toggle("dragged-over-head",t&&i),e.classList.toggle("dragged-over-tail",t&&!i),t)return{verticallyBefore:i,horizontallyBefore:i}}}let I=class extends m.Widget{constructor(e,t,i,o,r){super(),this.options=t,this.instantiationService=i,this.contextMenuService=o,this.viewDescriptorService=r,this._onDidChange=this._register(new y.Emitter),this.onDidChange=this._onDidChange.event,this.compositeOverflowAction=this._register(new c.MutableDisposable),this.compositeOverflowActionViewItem=this._register(new c.MutableDisposable),this.model=new E(e,t),this.visibleComposites=[],this.compositeSizeInBar=new Map,this.computeSizes(this.model.visibleItems)}getCompositeBarItems(){return[...this.model.items]}setCompositeBarItems(e){this.model.setItems(e),this.updateCompositeSwitcher(!0)}getPinnedComposites(){return this.model.pinnedItems}getPinnedCompositeIds(){return this.getPinnedComposites().map(e=>e.id)}getVisibleComposites(){return this.model.visibleItems}create(e){let t=e.appendChild((0,h.$)(".composite-bar"));this.compositeSwitcherBar=this._register(new r.ActionBar(t,{actionViewItemProvider:(e,t)=>{if(e instanceof u.CompositeOverflowActivityAction)return this.compositeOverflowActionViewItem.value;let i=this.model.findItem(e.id);return i&&this.instantiationService.createInstance(u.CompositeActionViewItem,{...t,draggable:!0,colors:this.options.colors,icon:this.options.icon,hoverOptions:this.options.activityHoverOptions,compact:this.options.compact},e,i.pinnedAction,i.toggleBadgeAction,e=>this.options.getContextMenuActionsForComposite(e),()=>this.getContextMenuActions(),this.options.dndHandler,this)},orientation:this.options.orientation,ariaLabel:(0,o.localize)(3034,"Active View Switcher"),ariaRole:"tablist",preventLoopNavigation:this.options.preventLoopNavigation,triggerKeys:{keyDown:!0}})),this._register((0,h.addDisposableListener)(e,h.EventType.CONTEXT_MENU,t=>this.showContextMenu((0,h.getWindow)(e),t))),this._register(C.Gesture.addTarget(e)),this._register((0,h.addDisposableListener)(e,C.EventType.Contextmenu,t=>this.showContextMenu((0,h.getWindow)(e),t)));let i=new b(e,t,this.model,this.options.dndHandler,this.options.orientation);return this._register(_.CompositeDragAndDropObserver.INSTANCE.registerTarget(e,i)),t}focus(e){this.compositeSwitcherBar?.focus(e)}recomputeSizes(){this.computeSizes(this.model.visibleItems),this.updateCompositeSwitcher()}layout(e){this.dimension=e,0!==e.height&&0!==e.width&&(0===this.compositeSizeInBar.size&&this.computeSizes(this.model.visibleItems),this.updateCompositeSwitcher())}addComposite({id:e,name:t,order:i,requestedIndex:o}){this.model.add(e,t,i,o)&&(this.computeSizes([this.model.findItem(e)]),this.updateCompositeSwitcher())}removeComposite(e){this.isPinned(e)&&this.unpin(e),this.model.remove(e)&&this.updateCompositeSwitcher()}hideComposite(e){this.model.hide(e)&&(this.resetActiveComposite(e),this.updateCompositeSwitcher())}activateComposite(e){let t=this.model.activeItem;this.model.activate(e)&&(-1===this.visibleComposites.indexOf(e)||this.model.activeItem&&!this.model.activeItem.pinned||t&&!t.pinned)&&this.updateCompositeSwitcher()}deactivateComposite(e){let t=this.model.activeItem;this.model.deactivate()&&t&&!t.pinned&&this.updateCompositeSwitcher()}async pin(e,t){this.model.setPinned(e,!0)&&(this.updateCompositeSwitcher(),t&&(await this.options.openComposite(e),this.activateComposite(e)))}unpin(e){this.model.setPinned(e,!1)&&(this.updateCompositeSwitcher(),this.resetActiveComposite(e))}areBadgesEnabled(e){return this.viewDescriptorService.getViewContainerBadgeEnablementState(e)}toggleBadgeEnablement(e){this.viewDescriptorService.setViewContainerBadgeEnablementState(e,!this.areBadgesEnabled(e)),this.updateCompositeSwitcher();let t=this.model.findItem(e);t&&(t.activityAction.activities=t.activityAction.activities)}resetActiveComposite(e){let t=this.options.getDefaultCompositeId();if(this.model.activeItem&&this.model.activeItem.id===e)if(this.deactivateComposite(e),t&&t!==e&&this.isPinned(t))this.options.openComposite(t,!0);else{let t=this.visibleComposites.find(t=>t!==e);t&&this.options.openComposite(t)}}isPinned(e){let t=this.model.findItem(e);return t?.pinned}move(e,t,i){if(void 0!==i){let o=this.model.items.findIndex(t=>t.id===e),r=this.model.items.findIndex(e=>e.id===t);o>=0&&r>=0&&(!i&&o>r&&r++,i&&o<r&&r--,r<this.model.items.length&&r>=0&&r!==o&&this.model.move(this.model.items[o].id,this.model.items[r].id)&&setTimeout(()=>this.updateCompositeSwitcher(),0))}else this.model.move(e,t)&&setTimeout(()=>this.updateCompositeSwitcher(),0)}getAction(e){let t=this.model.findItem(e);return t?.activityAction}computeSizes(e){let t=this.options.compositeSize;if(t)e.forEach(e=>this.compositeSizeInBar.set(e.id,t));else{let t=this.compositeSwitcherBar;if(t&&this.dimension&&0!==this.dimension.height&&0!==this.dimension.width){let i=t.viewItems.length;t.push(e.map(e=>e.activityAction)),e.forEach((e,o)=>this.compositeSizeInBar.set(e.id,this.options.orientation===r.ActionsOrientation.VERTICAL?t.getHeight(i+o):t.getWidth(i+o))),e.forEach(()=>t.pull(t.viewItems.length-1))}}}updateCompositeSwitcher(e){let t=this.compositeSwitcherBar;if(!t||!this.dimension)return;let i=this.model.visibleItems.filter(e=>e.pinned||this.model.activeItem&&this.model.activeItem.id===e.id).map(e=>e.id),o=i.length,n=i.length,s=0,a=this.options.orientation===r.ActionsOrientation.VERTICAL?this.dimension.height:this.dimension.width;for(let e=0;e<i.length;e++){let t=this.compositeSizeInBar.get(i[e]);if(s+t>a){o=e;break}s+=t}for(n>o&&(i=i.slice(0,o)),this.model.activeItem&&i.every(e=>!!this.model.activeItem&&e!==this.model.activeItem.id)&&(s+=this.compositeSizeInBar.get(this.model.activeItem.id),i.push(this.model.activeItem.id));s>a&&i.length;){let e=i.length>1?i.splice(i.length-2,1)[0]:i.pop();s-=this.compositeSizeInBar.get(e)}for(n>i.length&&(s+=this.options.overflowActionSize);s>a&&i.length;){let e=i.length>1&&i[i.length-1]===this.model.activeItem?.id?i.splice(i.length-2,1)[0]:i.pop();s-=this.compositeSizeInBar.get(e)}n===i.length&&this.compositeOverflowAction.value&&(t.pull(t.length()-1),this.compositeOverflowAction.value=void 0,this.compositeOverflowActionViewItem.value=void 0);let d=[];this.visibleComposites.forEach((e,t)=>{i.includes(e)||d.push(t)}),d.reverse().forEach(e=>{t.pull(e),this.visibleComposites.splice(e,1)}),i.forEach((e,i)=>{let o=this.visibleComposites.indexOf(e);i!==o&&(-1!==o&&(t.pull(o),this.visibleComposites.splice(o,1)),t.push(this.model.findItem(e).activityAction,{label:!0,icon:this.options.icon,index:i}),this.visibleComposites.splice(i,0,e))}),n>i.length&&!this.compositeOverflowAction.value&&(this.compositeOverflowAction.value=this.instantiationService.createInstance(u.CompositeOverflowActivityAction,()=>{this.compositeOverflowActionViewItem.value?.showMenu()}),this.compositeOverflowActionViewItem.value=this.instantiationService.createInstance(u.CompositeOverflowActivityActionViewItem,this.compositeOverflowAction.value,()=>this.getOverflowingComposites(),()=>this.model.activeItem?this.model.activeItem.id:void 0,e=>{let t=this.model.findItem(e);return t?.activity[0]?.badge},this.options.getOnCompositeClickAction,this.options.colors,this.options.activityHoverOptions),t.push(this.compositeOverflowAction.value,{label:!1,icon:!0})),e||this._onDidChange.fire()}getOverflowingComposites(){let e=this.model.visibleItems.filter(e=>e.pinned).map(e=>e.id);return this.model.activeItem&&!this.model.activeItem.pinned&&e.push(this.model.activeItem.id),e=e.filter(e=>!this.visibleComposites.includes(e)),this.model.visibleItems.filter(t=>e.includes(t.id)).map(e=>({id:e.id,name:this.getAction(e.id)?.label||e.name}))}showContextMenu(e,t){h.EventHelper.stop(t,!0);let i=new p.StandardMouseEvent(e,t);this.contextMenuService.showContextMenu({getAnchor:()=>i,getActions:()=>this.getContextMenuActions(t)})}getContextMenuActions(e){let t=this.model.visibleItems.map(({id:e,name:t,activityAction:i})=>{let o=this.isPinned(e);return(0,l.toAction)({id:e,label:this.getAction(e).label||t||e,checked:o,enabled:i.enabled&&(!o||this.getPinnedCompositeIds().length>1),run:()=>{this.isPinned(e)?this.unpin(e):this.pin(e,!0)}})});return this.options.fillExtraContextMenuActions(t,e),t}};I=(0,i.__decorate)([(0,i.__param)(2,d.IInstantiationService),(0,i.__param)(3,g.IContextMenuService),(0,i.__param)(4,f.IViewDescriptorService)],I);class E{get items(){return this._items}constructor(e,t){this._items=[],this.options=t,this.setItems(e)}setItems(e){this._items=[],this._items=e.map(e=>this.createCompositeBarItem(e.id,e.name,e.order,e.pinned,e.visible))}get visibleItems(){return this.items.filter(e=>e.visible)}get pinnedItems(){return this.items.filter(e=>e.visible&&e.pinned)}createCompositeBarItem(e,t,i,o,r){let n=this.options;return{id:e,name:t,pinned:o,order:i,visible:r,activity:[],get activityAction(){return n.getActivityAction(e)},get pinnedAction(){return n.getCompositePinnedAction(e)},get toggleBadgeAction(){return n.getCompositeBadgeAction(e)}}}add(e,t,i,o){let r=this.findItem(e);if(r){let e=!1;return r.name=t,(0,v.isUndefinedOrNull)(i)||(e=r.order!==i,r.order=i),r.visible||(r.visible=!0,e=!0),e}{let r=this.createCompositeBarItem(e,t,i,!0,!0);if((0,v.isUndefinedOrNull)(o))if((0,v.isUndefinedOrNull)(i))this.items.push(r);else{let e=0;for(;e<this.items.length&&"number"==typeof this.items[e].order&&this.items[e].order<i;)e++;this.items.splice(e,0,r)}else{let e=0,t=o;for(;t>0&&e<this.items.length;)this.items[e++].visible&&t--;this.items.splice(e,0,r)}return!0}}remove(e){for(let t=0;t<this.items.length;t++)if(this.items[t].id===e)return this.items.splice(t,1),!0;return!1}hide(e){for(let t of this.items)if(t.id===e){if(t.visible)return t.visible=!1,!0;break}return!1}move(e,t){let i=this.findIndex(e),o=this.findIndex(t);if(-1===i||-1===o)return!1;let r=this.items.splice(i,1)[0];return this.items.splice(o,0,r),r.pinned=!0,!0}setPinned(e,t){for(let i of this.items)if(i.id===e){if(i.pinned!==t)return i.pinned=t,!0;break}return!1}activate(e){if(!this.activeItem||this.activeItem.id!==e){for(let t of(this.activeItem&&this.deactivate(),this.items))if(t.id===e)return this.activeItem=t,this.activeItem.activityAction.activate(),!0}return!1}deactivate(){return!!this.activeItem&&(this.activeItem.activityAction.deactivate(),this.activeItem=void 0,!0)}findItem(e){return this.items.filter(t=>t.id===e)[0]}findIndex(e){for(let t=0;t<this.items.length;t++)if(this.items[t].id===e)return t;return -1}}var w=e.i(325438),D=e.i(365808),A=e.i(701575),x=e.i(140889),k=e.i(981399),T=e.i(802136),M=u,P=e.i(305063),R=e.i(568101),L=e.i(9753),N=e.i(772383),O=e.i(354244),F=e.i(536367),K=e.i(182504),W=e.i(731931),z=e.i(99419);let V=class extends c.Disposable{constructor(e,t,i,o,n,a,d,l,u,h,p){super(),this.options=e,this.part=t,this.paneCompositePart=i,this.instantiationService=o,this.storageService=n,this.extensionService=a,this.viewDescriptorService=d,this.viewService=l,this.contextKeyService=u,this.environmentService=h,this.layoutService=p,this.viewContainerDisposables=this._register(new c.DisposableMap),this.compositeActions=new Map,this.hasExtensionsRegistered=!1,this._cachedViewContainers=void 0,this.location=i.partId===s.Parts.PANEL_PART?P.ViewContainerLocation.Panel:i.partId===s.Parts.AUXILIARYBAR_PART?P.ViewContainerLocation.AuxiliaryBar:P.ViewContainerLocation.Sidebar,this.dndHandler=new S(this.viewDescriptorService,this.location,this.options.orientation,async(e,t)=>await this.paneCompositePart.openPaneComposite(e,t)??null,(e,t,i)=>this.compositeBar.move(e,t,this.options.orientation===r.ActionsOrientation.VERTICAL?i?.verticallyBefore:i?.horizontallyBefore),()=>this.compositeBar.getCompositeBarItems());const g=this.cachedViewContainers.map(e=>({id:e.id,name:e.name,visible:!this.shouldBeHidden(e.id,e),order:e.order,pinned:e.pinned}));this.compositeBar=this.createCompositeBar(g),this.onDidRegisterViewContainers(this.getViewContainers()),this.registerListeners()}createCompositeBar(e){return this._register(this.instantiationService.createInstance(I,e,{icon:this.options.icon,compact:this.options.compact,orientation:this.options.orientation,activityHoverOptions:this.options.activityHoverOptions,preventLoopNavigation:this.options.preventLoopNavigation,openComposite:async(e,t)=>await this.paneCompositePart.openPaneComposite(e,!t)??null,getActivityAction:e=>this.getCompositeActions(e).activityAction,getCompositePinnedAction:e=>this.getCompositeActions(e).pinnedAction,getCompositeBadgeAction:e=>this.getCompositeActions(e).badgeAction,getOnCompositeClickAction:e=>this.getCompositeActions(e).activityAction,fillExtraContextMenuActions:(e,t)=>this.options.fillExtraContextMenuActions(e,t),getContextMenuActionsForComposite:e=>this.getContextMenuActionsForComposite(e),getDefaultCompositeId:()=>this.viewDescriptorService.getDefaultViewContainer(this.location)?.id,dndHandler:this.dndHandler,compositeSize:this.options.compositeSize,overflowActionSize:this.options.overflowActionSize,colors:e=>this.options.colors(e)}))}getContextMenuActionsForComposite(e){let t=[new l.Separator],i=this.viewDescriptorService.getViewContainerById(e),r=this.viewDescriptorService.getDefaultViewContainerLocation(i),n=this.viewDescriptorService.getViewContainerLocation(i),s=[];for(let e of[P.ViewContainerLocation.Sidebar,P.ViewContainerLocation.AuxiliaryBar,P.ViewContainerLocation.Panel])n!==e&&s.push(this.createMoveAction(i,e,r));if(t.push(new l.SubmenuAction("moveToMenu",(0,o.localize)(3588,"Move To"),s)),r!==n)t.push((0,l.toAction)({id:"resetLocationAction",label:(0,o.localize)(3589,"Reset Location"),run:()=>{this.viewDescriptorService.moveViewContainerToLocation(i,r,void 0,"resetLocationAction"),this.viewService.openViewContainer(i.id,!0)}}));else{let e=this.viewDescriptorService.getViewContainerModel(i);if(1===e.allViewDescriptors.length){let r=e.allViewDescriptors[0],n=this.viewDescriptorService.getDefaultContainerById(r.id);n!==i&&t.push((0,l.toAction)({id:"resetLocationAction",label:(0,o.localize)(3589,"Reset Location"),run:()=>{this.viewDescriptorService.moveViewsToContainer([r],n,void 0,"resetLocationAction"),this.viewService.openViewContainer(i.id,!0)}}))}}return t}createMoveAction(e,t,i){return(0,l.toAction)({id:`moveViewContainerTo${t}`,label:t===P.ViewContainerLocation.Panel?(0,o.localize)(3590,"Panel"):t===P.ViewContainerLocation.Sidebar?(0,o.localize)(3591,"Primary Side Bar"):(0,o.localize)(3592,"Secondary Side Bar"),run:()=>{let o;o=t!==i?this.viewDescriptorService.getViewContainersByLocation(t).length:void 0,this.viewDescriptorService.moveViewContainerToLocation(e,t,o),this.viewService.openViewContainer(e.id,!0)}})}registerListeners(){this._register(this.viewDescriptorService.onDidChangeViewContainers(({added:e,removed:t})=>this.onDidChangeViewContainers(e,t))),this._register(this.viewDescriptorService.onDidChangeContainerLocation(({viewContainer:e,from:t,to:i})=>this.onDidChangeViewContainerLocation(e,t,i))),this._register(this.paneCompositePart.onDidPaneCompositeOpen(e=>this.onDidChangeViewContainerVisibility(e.getId(),!0))),this._register(this.paneCompositePart.onDidPaneCompositeClose(e=>this.onDidChangeViewContainerVisibility(e.getId(),!1))),this.extensionService.whenInstalledExtensionsRegistered().then(()=>{this._store.isDisposed||(this.onDidRegisterExtensions(),this._register(this.compositeBar.onDidChange(()=>{this.updateCompositeBarItemsFromStorage(!0),this.saveCachedViewContainers()})),this._register(this.storageService.onDidChangeValue(A.StorageScope.PROFILE,this.options.pinnedViewContainersKey,this._store)(()=>this.updateCompositeBarItemsFromStorage(!1))))})}onDidChangeViewContainers(e,t){t.filter(({location:e})=>e===this.location).forEach(({container:e})=>this.onDidDeregisterViewContainer(e)),this.onDidRegisterViewContainers(e.filter(({location:e})=>e===this.location).map(({container:e})=>e))}onDidChangeViewContainerLocation(e,t,i){t===this.location&&this.onDidDeregisterViewContainer(e),i===this.location&&this.onDidRegisterViewContainers([e])}onDidChangeViewContainerVisibility(e,t){t?this.onDidViewContainerVisible(e):this.compositeBar.deactivateComposite(e)}onDidRegisterExtensions(){for(let{id:e}of(this.hasExtensionsRegistered=!0,this.cachedViewContainers)){let t=this.getViewContainer(e);t?this.showOrHideViewContainer(t):this.viewDescriptorService.isViewContainerRemovedPermanently(e)?this.removeComposite(e):this.hideComposite(e)}this.saveCachedViewContainers()}onDidViewContainerVisible(e){let t=this.getViewContainer(e);t&&(this.addComposite(t),this.compositeBar.activateComposite(t.id),this.shouldBeHidden(t)&&0===this.viewDescriptorService.getViewContainerModel(t).activeViewDescriptors.length&&this.hideComposite(t.id))}create(e){return this.compositeBar.create(e)}getCompositeActions(e){let t=this.compositeActions.get(e);if(!t){let i=this.getViewContainer(e);if(i){let e=this.viewDescriptorService.getViewContainerModel(i);t={activityAction:this._register(this.instantiationService.createInstance(B,this.toCompositeBarActionItemFrom(e),this.part,this.paneCompositePart)),pinnedAction:this._register(new M.ToggleCompositePinnedAction(this.toCompositeBarActionItemFrom(e),this.compositeBar)),badgeAction:this._register(new M.ToggleCompositeBadgeAction(this.toCompositeBarActionItemFrom(e),this.compositeBar))}}else{let i=this.cachedViewContainers.filter(t=>t.id===e)[0];t={activityAction:this._register(this.instantiationService.createInstance(U,this.toCompositeBarActionItem(e,i?.name??e,i?.icon,void 0),this.part,this.paneCompositePart)),pinnedAction:this._register(new H(e,this.compositeBar)),badgeAction:this._register(new q(e,this.compositeBar))}}this.compositeActions.set(e,t)}return t}onDidRegisterViewContainers(e){for(let t of e){this.addComposite(t),this.cachedViewContainers.filter(({id:e})=>e===t.id)[0]||this.compositeBar.pin(t.id);let e=this.paneCompositePart.getActivePaneComposite();e?.getId()===t.id&&this.compositeBar.activateComposite(t.id);let i=this.viewDescriptorService.getViewContainerModel(t);this.updateCompositeBarActionItem(t,i),this.showOrHideViewContainer(t);let o=new c.DisposableStore;o.add(i.onDidChangeContainerInfo(()=>this.updateCompositeBarActionItem(t,i))),o.add(i.onDidChangeActiveViewDescriptors(()=>this.showOrHideViewContainer(t))),o.add(i.onDidChangeEnablement(()=>this.showOrHideViewContainer(t))),this.viewContainerDisposables.set(t.id,o)}}onDidDeregisterViewContainer(e){this.viewContainerDisposables.deleteAndDispose(e.id),this.removeComposite(e.id)}updateCompositeBarActionItem(e,t){let i=this.toCompositeBarActionItemFrom(t),{activityAction:o,pinnedAction:r}=this.getCompositeActions(e.id);o.updateCompositeBarActionItem(i),r instanceof H&&r.setActivity(i),this.options.recomputeSizes&&this.compositeBar.recomputeSizes(),this.saveCachedViewContainers()}toCompositeBarActionItemFrom(e){return this.toCompositeBarActionItem(e.viewContainer.id,e.title,e.icon,e.keybindingId)}toCompositeBarActionItem(e,t,i,o){let r,n;if(this.options.icon)if(T.URI.isUri(i)){n=i;let t=(0,D.asCSSUrl)(i),o=new K.StringSHA1;o.update(t);let s=`activity-${e.replace(/\./g,"-")}-${o.digest()}`,a=`.monaco-workbench .${this.options.partContainerClass} .monaco-action-bar .action-label.${s}`;r=[s,"uri-icon"],(0,w.createCSSRule)(a,`
|
|
71
|
+
mask: ${t} no-repeat 50% 50%;
|
|
72
|
+
mask-size: ${this.options.iconSize}px;
|
|
73
|
+
-webkit-mask: ${t} no-repeat 50% 50%;
|
|
74
|
+
-webkit-mask-size: ${this.options.iconSize}px;
|
|
75
|
+
mask-origin: padding;
|
|
76
|
+
-webkit-mask-origin: padding;
|
|
77
|
+
`)}else F.ThemeIcon.isThemeIcon(i)&&(r=F.ThemeIcon.asClassNameArray(i));return{id:e,name:t,classNames:r,iconUrl:n,keybindingId:o}}showOrHideViewContainer(e){if(this.shouldBeHidden(e))this.hideComposite(e.id);else{this.addComposite(e);let t=this.paneCompositePart.getActivePaneComposite();t?.getId()===e.id&&this.compositeBar.activateComposite(e.id)}}shouldBeHidden(e,t){let i=(0,v.isString)(e)?this.getViewContainer(e):e,o=(0,v.isString)(e)?e:e.id;if(i&&this.viewService.isViewContainerActive(o))return!1;if(!this.hasExtensionsRegistered&&!(this.part===s.Parts.SIDEBAR_PART&&this.environmentService.remoteAuthority&&O.isNative)){if(t=t||this.cachedViewContainers.find(({id:e})=>e===o),!i&&t?.isBuiltin&&t?.visible)return!1;if(t?.views?.length)return t.views.every(({when:e})=>!!e&&!this.contextKeyService.contextMatchesRules(R.ContextKeyExpr.deserialize(e)))}return!0}addComposite(e){this.compositeBar.addComposite({id:e.id,name:"string"==typeof e.title?e.title:e.title.value,order:e.order,requestedIndex:e.requestedIndex})}hideComposite(e){this.compositeBar.hideComposite(e);let t=this.compositeActions.get(e);t&&(t.activityAction.dispose(),t.pinnedAction.dispose(),this.compositeActions.delete(e))}removeComposite(e){this.compositeBar.removeComposite(e);let t=this.compositeActions.get(e);t&&(t.activityAction.dispose(),t.pinnedAction.dispose(),this.compositeActions.delete(e))}getPinnedPaneCompositeIds(){let e=this.compositeBar.getPinnedComposites().map(e=>e.id);return this.getViewContainers().filter(e=>this.compositeBar.isPinned(e.id)).sort((t,i)=>e.indexOf(t.id)-e.indexOf(i.id)).map(e=>e.id)}getVisiblePaneCompositeIds(){return this.compositeBar.getVisibleComposites().filter(e=>this.paneCompositePart.getActivePaneComposite()?.getId()===e.id||this.compositeBar.isPinned(e.id)).map(e=>e.id)}getPaneCompositeIds(){return this.compositeBar.getVisibleComposites().map(e=>e.id)}getContextMenuActions(){return this.compositeBar.getContextMenuActions()}focus(e){this.compositeBar.focus(e)}layout(e,t){this.compositeBar.layout(new h.Dimension(e,t))}getViewContainer(e){let t=this.viewDescriptorService.getViewContainerById(e);return t&&this.viewDescriptorService.getViewContainerLocation(t)===this.location?t:void 0}getViewContainers(){return this.viewDescriptorService.getViewContainersByLocation(this.location)}updateCompositeBarItemsFromStorage(e){if(this.pinnedViewContainersValue===this.getStoredPinnedViewContainersValue())return;this._placeholderViewContainersValue=void 0,this._pinnedViewContainersValue=void 0,this._cachedViewContainers=void 0;let t=[],i=this.compositeBar.getCompositeBarItems();for(let e of this.cachedViewContainers)t.push({id:e.id,name:e.name,order:e.order,pinned:e.pinned,visible:e.visible&&!!this.getViewContainer(e.id)});for(let e of this.getViewContainers())if(!t.some(({id:t})=>t===e.id)){let o=i.findIndex(({id:t})=>t===e.id);if(-1!==o){let r=i[o];t.splice(o,0,{id:e.id,name:"string"==typeof e.title?e.title:e.title.value,order:r.order,pinned:r.pinned,visible:r.visible})}else t.push({id:e.id,name:"string"==typeof e.title?e.title:e.title.value,order:e.order,pinned:!0,visible:!this.shouldBeHidden(e)})}if(e)for(let e of i)t.find(({id:t})=>t===e.id)||t.push(e);this.compositeBar.setCompositeBarItems(t)}saveCachedViewContainers(){let e=[];for(let t of this.compositeBar.getCompositeBarItems()){let i=this.getViewContainer(t.id);if(i){let o=this.viewDescriptorService.getViewContainerModel(i),r=[];for(let{when:e}of o.allViewDescriptors)r.push({when:e?e.serialize():void 0});e.push({id:t.id,name:o.title,icon:T.URI.isUri(o.icon)&&this.environmentService.remoteAuthority?void 0:o.icon,views:r,pinned:t.pinned,order:t.order,visible:t.visible,isBuiltin:!i.extensionId})}else e.push({id:t.id,name:t.name,pinned:t.pinned,order:t.order,visible:!1,isBuiltin:!1})}this.storeCachedViewContainersState(e)}get cachedViewContainers(){if(void 0===this._cachedViewContainers){for(let e of(this._cachedViewContainers=this.getPinnedViewContainers(),this.getPlaceholderViewContainers())){let t=this._cachedViewContainers.find(t=>t.id===e.id);t&&(t.visible=e.visible??t.visible,t.name=e.name,t.icon=e.themeIcon?e.themeIcon:e.iconUrl?T.URI.revive(e.iconUrl):void 0,T.URI.isUri(t.icon)&&this.environmentService.remoteAuthority&&(t.icon=void 0),t.views=e.views,t.isBuiltin=e.isBuiltin)}for(let e of this.getViewContainersWorkspaceState()){let t=this._cachedViewContainers.find(t=>t.id===e.id);t&&(t.visible=e.visible??t.visible)}}return this._cachedViewContainers}storeCachedViewContainersState(e){let t=this.getPinnedViewContainers();this.setPinnedViewContainers(e.map(({id:e,pinned:i,order:o})=>({id:e,pinned:i,visible:!!t.find(({id:t})=>t===e)?.visible,order:o}))),this.setPlaceholderViewContainers(e.map(({id:e,icon:t,name:i,views:o,isBuiltin:r})=>({id:e,iconUrl:T.URI.isUri(t)?t:void 0,themeIcon:F.ThemeIcon.isThemeIcon(t)?t:void 0,name:i,isBuiltin:r,views:o}))),this.setViewContainersWorkspaceState(e.map(({id:e,visible:t})=>({id:e,visible:t})))}getPinnedViewContainers(){return JSON.parse(this.pinnedViewContainersValue)}setPinnedViewContainers(e){this.pinnedViewContainersValue=JSON.stringify(e)}get pinnedViewContainersValue(){return this._pinnedViewContainersValue||(this._pinnedViewContainersValue=this.getStoredPinnedViewContainersValue()),this._pinnedViewContainersValue}set pinnedViewContainersValue(e){this.pinnedViewContainersValue!==e&&(this._pinnedViewContainersValue=e,this.setStoredPinnedViewContainersValue(e))}getStoredPinnedViewContainersValue(){return this.storageService.get(this.options.pinnedViewContainersKey,A.StorageScope.PROFILE,"[]")}setStoredPinnedViewContainersValue(e){this.storageService.store(this.options.pinnedViewContainersKey,e,A.StorageScope.PROFILE,A.StorageTarget.USER)}getPlaceholderViewContainers(){return JSON.parse(this.placeholderViewContainersValue)}setPlaceholderViewContainers(e){this.placeholderViewContainersValue=JSON.stringify(e)}get placeholderViewContainersValue(){return this._placeholderViewContainersValue||(this._placeholderViewContainersValue=this.getStoredPlaceholderViewContainersValue()),this._placeholderViewContainersValue}set placeholderViewContainersValue(e){this.placeholderViewContainersValue!==e&&(this._placeholderViewContainersValue=e,this.setStoredPlaceholderViewContainersValue(e))}getStoredPlaceholderViewContainersValue(){return this.storageService.get(this.options.placeholderViewContainersKey,A.StorageScope.PROFILE,"[]")}setStoredPlaceholderViewContainersValue(e){this.storageService.store(this.options.placeholderViewContainersKey,e,A.StorageScope.PROFILE,A.StorageTarget.MACHINE)}getViewContainersWorkspaceState(){return JSON.parse(this.viewContainersWorkspaceStateValue)}setViewContainersWorkspaceState(e){this.viewContainersWorkspaceStateValue=JSON.stringify(e)}get viewContainersWorkspaceStateValue(){return this._viewContainersWorkspaceStateValue||(this._viewContainersWorkspaceStateValue=this.getStoredViewContainersWorkspaceStateValue()),this._viewContainersWorkspaceStateValue}set viewContainersWorkspaceStateValue(e){this.viewContainersWorkspaceStateValue!==e&&(this._viewContainersWorkspaceStateValue=e,this.setStoredViewContainersWorkspaceStateValue(e))}getStoredViewContainersWorkspaceStateValue(){return this.storageService.get(this.options.viewContainersWorkspaceStateKey,A.StorageScope.WORKSPACE,"[]")}setStoredViewContainersWorkspaceStateValue(e){this.storageService.store(this.options.viewContainersWorkspaceStateKey,e,A.StorageScope.WORKSPACE,A.StorageTarget.MACHINE)}};V=(0,i.__decorate)([(0,i.__param)(3,d.IInstantiationService),(0,i.__param)(4,x.IStorageService),(0,i.__param)(5,k.IExtensionService),(0,i.__param)(6,f.IViewDescriptorService),(0,i.__param)(7,z.IViewsService),(0,i.__param)(8,L.IContextKeyService),(0,i.__param)(9,N.IWorkbenchEnvironmentService),(0,i.__param)(10,a.IWorkbenchLayoutService)],V);let B=class extends M.CompositeBarAction{static{t=this}static{this.preventDoubleClickDelay=300}constructor(e,t,i,o,r,n){super(e),this.part=t,this.paneCompositePart=i,this.layoutService=o,this.configurationService=r,this.activityService=n,this.lastRun=0,this.updateActivity(),this._register(this.activityService.onDidChangeActivity(e=>{(0,v.isString)(e)||e.id!==this.compositeBarActionItem.id||this.updateActivity()}))}updateCompositeBarActionItem(e){this.compositeBarActionItem=e}updateActivity(){this.activities=this.activityService.getViewContainerActivities(this.compositeBarActionItem.id)}async run(e){if((0,h.isMouseEvent)(e)&&2===e.button)return;let i=Date.now();if(i>this.lastRun&&i-this.lastRun<t.preventDoubleClickDelay)return;this.lastRun=i;let o=!e||!("preserveFocus"in e)||!e.preserveFocus;if(this.part===s.Parts.ACTIVITYBAR_PART){let e=this.layoutService.isVisible(s.Parts.SIDEBAR_PART),t=this.paneCompositePart.getActivePaneComposite(),i=this.configurationService.getValue("workbench.activityBar.iconClickBehavior");if(e&&t?.getId()===this.compositeBarActionItem.id)return void("focus"===i?this.paneCompositePart.openPaneComposite(this.compositeBarActionItem.id,o):this.layoutService.setPartHidden(!0,s.Parts.SIDEBAR_PART))}return await this.paneCompositePart.openPaneComposite(this.compositeBarActionItem.id,o),this.activate()}};B=t=(0,i.__decorate)([(0,i.__param)(3,a.IWorkbenchLayoutService),(0,i.__param)(4,W.IConfigurationService),(0,i.__param)(5,n.IActivityService)],B);class U extends B{}class H extends M.ToggleCompositePinnedAction{constructor(e,t){super({id:e,name:e,classNames:void 0},t)}setActivity(e){this.label=e.name}}class q extends M.ToggleCompositeBadgeAction{constructor(e,t){super({id:e,name:e,classNames:void 0},t)}setCompositeBarActionItem(e){this.label=e.name}}e.s(["PaneCompositeBar",0,V],44383)},786896,727019,847677,e=>{"use strict";var t,i,o=e.i(654295),r=e.i(281482),n=e.i(650289),s=e.i(32637),a=e.i(292663),d=e.i(536561),c=e.i(957994),l=e.i(488259),u=e.i(611130),h=e.i(508267),p=e.i(388064),g=e.i(970672),m=e.i(428521);e.i(575129);var v=e.i(698014);e.i(140331),e.i(471999),e.i(900329),e.i(785266),e.i(181268),e.i(70177),e.i(575210),e.i(890787),e.i(67920);var y=e.i(850887),f=e.i(535567),_=e.i(741206),C=e.i(731931),S=e.i(670913),b=e.i(701898),I=e.i(842577),E=e.i(83823),w=e.i(93153),D=e.i(44383);let A="workbench.actions.manage",x="workbench.actions.accounts";e.s(["ACCOUNTS_ACTIVITY_ID",0,x,"GLOBAL_ACTIVITY_ID",0,A],727019);var k=e.i(258861),T=u,M=e.i(701575),P=e.i(140889),R=e.i(981399),L=e.i(485882),N=e.i(155652),O=e.i(536367),F=e.i(321012),K=e.i(686380),W=e.i(94361),z=e.i(828318),V=e.i(660284),B=e.i(895737),U=e.i(682807),H=e.i(2301),q=e.i(9753),G=e.i(919101),$=e.i(84513),Q=e.i(853457),j=e.i(347589),Y=e.i(371620),X=e.i(540395),Z=e.i(380456),J=e.i(527605),ee=e.i(772383),et=e.i(487495),ei=e.i(683578),eo=e.i(278725),er=e.i(17607);let en=(0,F.registerIcon)("settings-view-bar-icon",N.Codicon.settingsGear,(0,n.localize)(14568,"Settings icon in the view bar."));N.Codicon.vm,N.Codicon.server,N.Codicon.recordKeys,N.Codicon.deviceMobile,N.Codicon.watch,N.Codicon.vr,N.Codicon.piano,N.Codicon.ruby,N.Codicon.code,N.Codicon.coffee,N.Codicon.snake,N.Codicon.project,N.Codicon.window,N.Codicon.library,N.Codicon.extensions,N.Codicon.terminal,N.Codicon.terminalDebian,N.Codicon.terminalLinux,N.Codicon.terminalUbuntu,N.Codicon.beaker,N.Codicon.package,N.Codicon.cloud,N.Codicon.book,N.Codicon.globe,N.Codicon.database,N.Codicon.notebook,N.Codicon.robot,N.Codicon.game,N.Codicon.chip,N.Codicon.music,N.Codicon.remoteExplorer,N.Codicon.github,N.Codicon.azure,N.Codicon.vscode,N.Codicon.copilot,N.Codicon.gift,N.Codicon.send,N.Codicon.bookmark,N.Codicon.briefcase,N.Codicon.megaphone,N.Codicon.comment,N.Codicon.telescope,N.Codicon.creditCard,N.Codicon.map,N.Codicon.deviceCameraVideo,N.Codicon.unmute,N.Codicon.law,N.Codicon.graphLine,N.Codicon.heart,N.Codicon.home,N.Codicon.inbox,N.Codicon.mortarBoard,N.Codicon.rocket,N.Codicon.magnet,N.Codicon.lock,N.Codicon.milestone,N.Codicon.tag,N.Codicon.pulse,N.Codicon.radioTower,N.Codicon.smiley,N.Codicon.zap,N.Codicon.squirrel,N.Codicon.symbolColor,N.Codicon.mail,N.Codicon.key,N.Codicon.pieChart,N.Codicon.organization,N.Codicon.preview,N.Codicon.wand,N.Codicon.starEmpty,N.Codicon.lightbulb,N.Codicon.symbolRuler,N.Codicon.dashboard,N.Codicon.calendar,N.Codicon.shield,N.Codicon.verified,N.Codicon.debug,N.Codicon.flame,N.Codicon.compass,N.Codicon.paintcan,N.Codicon.archive,N.Codicon.mic,N.Codicon.jersey;var es=e.i(846960);let ea=class extends T.Disposable{static{t=this}static{this.ACCOUNTS_ACTION_INDEX=0}static{this.ACCOUNTS_ICON=(0,F.registerIcon)("accounts-view-bar-icon",N.Codicon.account,(0,n.localize)(3513,"Accounts icon in the view bar."))}constructor(e,i,o,r,a,d,c){super(),this.contextMenuActionsProvider=e,this.colors=i,this.activityHoverOptions=o,this.instantiationService=a,this.storageService=d,this.extensionService=c,this.globalActivityAction=this._register(new b.Action(A)),this.accountAction=this._register(new b.Action(x)),this.element=(0,y.$)("div");const l=()=>({anchorAlignment:"left"===r.getValue("workbench.sideBar.location")?B.AnchorAlignment.RIGHT:B.AnchorAlignment.LEFT,anchorAxisAlignment:B.AnchorAxisAlignment.HORIZONTAL});this.globalActivityActionBar=this._register(new s.ActionBar(this.element,{actionViewItemProvider:(e,t)=>{if(e.id===A)return this.instantiationService.createInstance(el,this.contextMenuActionsProvider,{...t,colors:this.colors,hoverOptions:this.activityHoverOptions},l);if(e.id===x)return this.instantiationService.createInstance(ec,this.contextMenuActionsProvider,{...t,colors:this.colors,hoverOptions:this.activityHoverOptions},l,e=>{e.unshift((0,b.toAction)({id:"hideAccounts",label:(0,n.localize)(3514,"Hide Accounts"),run:()=>em(d,!1)}),new b.Separator)});throw Error(`No view item for action '${e.id}'`)},orientation:s.ActionsOrientation.VERTICAL,ariaLabel:(0,n.localize)(3515,"Manage"),preventLoopNavigation:!0})),this.accountsVisibilityPreference&&this.globalActivityActionBar.push(this.accountAction,{index:t.ACCOUNTS_ACTION_INDEX}),this.globalActivityActionBar.push(this.globalActivityAction),this.registerListeners()}registerListeners(){this.extensionService.whenInstalledExtensionsRegistered().then(()=>{this._store.isDisposed||this._register(this.storageService.onDidChangeValue(M.StorageScope.PROFILE,ec.ACCOUNTS_VISIBILITY_PREFERENCE_KEY,this._store)(()=>this.toggleAccountsActivity()))})}create(e){e.appendChild(this.element)}focus(){this.globalActivityActionBar.focus(!0)}size(){return this.globalActivityActionBar.viewItems.length}getContextMenuActions(){return[(0,b.toAction)({id:"toggleAccountsVisibility",label:(0,n.localize)(3516,"Accounts"),checked:this.accountsVisibilityPreference,run:()=>this.accountsVisibilityPreference=!this.accountsVisibilityPreference})]}toggleAccountsActivity(){2===this.globalActivityActionBar.length()&&this.accountsVisibilityPreference||(2===this.globalActivityActionBar.length()?this.globalActivityActionBar.pull(t.ACCOUNTS_ACTION_INDEX):this.globalActivityActionBar.push(this.accountAction,{index:t.ACCOUNTS_ACTION_INDEX}))}get accountsVisibilityPreference(){return eg(this.storageService)}set accountsVisibilityPreference(e){em(this.storageService,e)}};ea=t=(0,r.__decorate)([(0,r.__param)(3,C.IConfigurationService),(0,r.__param)(4,l.IInstantiationService),(0,r.__param)(5,P.IStorageService),(0,r.__param)(6,R.IExtensionService)],ea);let ed=class extends L.CompositeBarActionViewItem{constructor(e,t,i,o,r,n,s,a,d,c,l,u,h){super(t,{draggable:!1,icon:!0,hasPopup:!0,...i},()=>!0,n,s,l,u),this.menuId=e,this.contextMenuActionsProvider=o,this.contextMenuAlignmentOptions=r,this.menuService=a,this.contextMenuService=d,this.contextKeyService=c,this.activityService=h,this.updateItemActivity(),this._register(this.activityService.onDidChangeActivity(e=>{(0,f.isString)(e)&&e===this.compositeBarActionItem.id&&this.updateItemActivity()}))}updateItemActivity(){this.action.activities=this.activityService.getActivity(this.compositeBarActionItem.id)}render(e){super.render(e),this._register((0,y.addDisposableListener)(this.container,y.EventType.MOUSE_DOWN,async e=>{y.EventHelper.stop(e,!0),e?.button!==2&&this.run()})),this._register((0,y.addDisposableListener)(this.container,y.EventType.CONTEXT_MENU,async e=>{e.stopPropagation();let t=new T.DisposableStore,i=await this.resolveContextMenuActions(t),o=new z.StandardMouseEvent((0,y.getWindow)(this.container),e);this.contextMenuService.showContextMenu({getAnchor:()=>o,getActions:()=>i,onHide:()=>t.dispose()})})),this._register((0,y.addDisposableListener)(this.container,y.EventType.KEY_UP,e=>{let t=new I.StandardKeyboardEvent(e);(t.equals(E.KeyCode.Enter)||t.equals(E.KeyCode.Space))&&(y.EventHelper.stop(e,!0),this.run())})),this._register((0,y.addDisposableListener)(this.container,V.EventType.Tap,e=>{y.EventHelper.stop(e,!0),this.run()}))}async resolveContextMenuActions(e){return this.contextMenuActionsProvider()}async run(){let e=new T.DisposableStore,t=e.add(this.menuService.createMenu(this.menuId,this.contextKeyService)),i=await this.resolveMainMenuActions(t,e),{anchorAlignment:o,anchorAxisAlignment:r}=this.contextMenuAlignmentOptions()??{anchorAlignment:void 0,anchorAxisAlignment:void 0};this.contextMenuService.showContextMenu({getAnchor:()=>this.label,anchorAlignment:o,anchorAxisAlignment:r,getActions:()=>i,onHide:()=>e.dispose(),menuActionOptions:{renderShortTitle:!0}})}async resolveMainMenuActions(e,t){return(0,H.getActionBarActions)(e.getActions({renderShortTitle:!0})).secondary}};ed=(0,r.__decorate)([(0,r.__param)(5,g.IThemeService),(0,r.__param)(6,et.IHoverService),(0,r.__param)(7,W.IMenuService),(0,r.__param)(8,G.IContextMenuService),(0,r.__param)(9,q.IContextKeyService),(0,r.__param)(10,C.IConfigurationService),(0,r.__param)(11,$.IKeybindingService),(0,r.__param)(12,k.IActivityService)],ed);let ec=class extends ed{static{this.ACCOUNTS_VISIBILITY_PREFERENCE_KEY="workbench.activity.showAccounts"}constructor(e,t,i,o,r,s,a,d,c,l,u,h,p,g,m,v,y,f,_,C){const S=_.createInstance(L.CompositeBarAction,{id:x,name:(0,n.localize)(3516,"Accounts"),classNames:O.ThemeIcon.asClassNameArray(ea.ACCOUNTS_ICON)});super(K.MenuId.AccountsContext,S,t,e,i,r,a,c,d,l,g,m,f),this.fillContextMenuActions=o,this.lifecycleService=s,this.authenticationService=u,this.productService=p,this.secretStorageService=v,this.logService=y,this.commandService=C,this.groupedAccounts=new Map,this.problematicProviders=new Set,this.initialized=!1,this.sessionFromEmbedder=new U.Lazy(()=>(0,X.getCurrentAuthenticationSessionInfo)(this.secretStorageService,this.productService)),this._register(S),this.registerListeners(),this.initialize()}registerListeners(){this._register(this.authenticationService.onDidRegisterAuthenticationProvider(async e=>{await this.addAccountsFromProvider(e.id)})),this._register(this.authenticationService.onDidUnregisterAuthenticationProvider(e=>{this.groupedAccounts.delete(e.id),this.problematicProviders.delete(e.id)})),this._register(this.authenticationService.onDidChangeSessions(async e=>{if(e.event.removed)for(let t of e.event.removed)this.removeAccount(e.providerId,t.account);for(let t of[...e.event.changed??[],...e.event.added??[]])try{await this.addOrUpdateAccount(e.providerId,t.account)}catch(e){this.logService.error(e)}}))}async initialize(){if(await this.lifecycleService.when(ei.LifecyclePhase.Restored),this._store.isDisposed)return;let e=this._register((0,y.runWhenWindowIdle)((0,y.getWindow)(this.element),async()=>{await this.doInitialize(),e.dispose()}))}async doInitialize(){let e=this.authenticationService.getProviderIds();for(let t of(await Promise.allSettled(e.map(e=>this.addAccountsFromProvider(e)))))"rejected"===t.status&&this.logService.error(t.reason);this.initialized=!0}async resolveMainMenuActions(e,t){await super.resolveMainMenuActions(e,t);let i=this.authenticationService.getProviderIds().filter(e=>!e.startsWith(Z.INTERNAL_AUTH_PROVIDER_PREFIX)),o=e.getActions(),r=[],s=i.filter(e=>!this.authenticationService.isDynamicAuthenticationProvider(e)),a=i.filter(e=>this.authenticationService.isDynamicAuthenticationProvider(e));if(this.initialized){for(let e of s){let i=this.authenticationService.getProvider(e),o=this.groupedAccounts.get(e);if(!o){if(this.problematicProviders.has(e)){let o=t.add(new b.Action("providerUnavailable",(0,n.localize)(3518,"{0} is currently unavailable",i.label),void 0,!1));r.push(o);try{await this.addAccountsFromProvider(e)}catch(e){this.logService.error(e)}}continue}let s=!!i.authorizationServers?.length;for(let t of o){let o=[(0,b.toAction)({id:`configureSessions${t.label}`,label:(0,n.localize)(3519,"Manage Trusted Extensions"),enabled:!0,run:()=>this.commandService.executeCommand("_manageTrustedExtensionsForAccount",{providerId:e,accountLabel:t.label})})];if(s){let i=(0,b.toAction)({id:`configureSessions${t.label}`,label:(0,n.localize)(3520,"Manage Trusted MCP Servers"),enabled:!0,run:()=>this.commandService.executeCommand("_manageTrustedMCPServersForAccount",{providerId:e,accountLabel:t.label})});o.push(i)}t.canSignOut&&o.push((0,b.toAction)({id:"signOut",label:(0,n.localize)(3521,"Sign Out"),enabled:!0,run:()=>this.commandService.executeCommand("_signOutOfAccount",{providerId:e,accountLabel:t.label})}));let a=new b.SubmenuAction("activitybar.submenu",`${t.label} (${i.label})`,o);r.push(a)}}for(let e of(a.length&&s.length&&r.push(new b.Separator),a)){let i=this.authenticationService.getProvider(e),o=this.groupedAccounts.get(e),s=(0,b.toAction)({id:"manageDynamicAuthProviders",label:(0,n.localize)(3522,"Manage Dynamic Authentication Providers..."),enabled:!0,run:()=>this.commandService.executeCommand("workbench.action.removeDynamicAuthenticationProviders")});if(!o){if(this.problematicProviders.has(e)){let o=t.add(new b.Action("providerUnavailable",(0,n.localize)(3518,"{0} is currently unavailable",i.label),void 0,!1));r.push(o);try{await this.addAccountsFromProvider(e)}catch(e){this.logService.error(e)}}r.push(s);continue}for(let t of o){let o=[],a=(0,b.toAction)({id:`configureSessions${t.label}`,label:(0,n.localize)(3520,"Manage Trusted MCP Servers"),enabled:!0,run:()=>this.commandService.executeCommand("_manageTrustedMCPServersForAccount",{providerId:e,accountLabel:t.label})});o.push(a),o.push(s),t.canSignOut&&o.push((0,b.toAction)({id:"signOut",label:(0,n.localize)(3521,"Sign Out"),enabled:!0,run:()=>this.commandService.executeCommand("_signOutOfAccount",{providerId:e,accountLabel:t.label})}));let d=new b.SubmenuAction("activitybar.submenu",`${t.label} (${i.label})`,o);r.push(d)}}}else{let e=t.add(new b.Action("noAccountsAvailable",(0,n.localize)(3517,"Loading..."),void 0,!1));r.push(e)}return r.length&&o.length&&r.push(new b.Separator),o.forEach((e,t)=>{let i=e[1];r=r.concat(i),t!==o.length-1&&r.push(new b.Separator)}),r}async resolveContextMenuActions(e){let t=await super.resolveContextMenuActions(e);return this.fillContextMenuActions(t),t}async addOrUpdateAccount(e,t){let i=this.groupedAccounts.get(e);i||(i=[],this.groupedAccounts.set(e,i));let o=await this.sessionFromEmbedder.value,r=!0;o&&!o.canSignOut&&(await this.authenticationService.getSessions(e)).some(e=>e.id===o.id&&e.account.id===t.id)&&(r=!1);let n=i.find(e=>e.label===t.label);n?r||(n.canSignOut=r):i.push({...t,canSignOut:r})}removeAccount(e,t){let i=this.groupedAccounts.get(e);if(!i)return;let o=i.findIndex(e=>e.id===t.id);-1!==o&&(i.splice(o,1),0===i.length&&this.groupedAccounts.delete(e))}async addAccountsFromProvider(e){try{let t=await this.authenticationService.getSessions(e);for(let i of(this.problematicProviders.delete(e),t))try{await this.addOrUpdateAccount(e,i.account)}catch(e){this.logService.error(e)}}catch(t){this.logService.error(t),this.problematicProviders.add(e)}}};ec=(0,r.__decorate)([(0,r.__param)(4,g.IThemeService),(0,r.__param)(5,eo.ILifecycleService),(0,r.__param)(6,et.IHoverService),(0,r.__param)(7,G.IContextMenuService),(0,r.__param)(8,W.IMenuService),(0,r.__param)(9,q.IContextKeyService),(0,r.__param)(10,J.IAuthenticationService),(0,r.__param)(11,ee.IWorkbenchEnvironmentService),(0,r.__param)(12,j.IProductService),(0,r.__param)(13,C.IConfigurationService),(0,r.__param)(14,$.IKeybindingService),(0,r.__param)(15,Y.ISecretStorageService),(0,r.__param)(16,Q.ILogService),(0,r.__param)(17,k.IActivityService),(0,r.__param)(18,l.IInstantiationService),(0,r.__param)(19,es.ICommandService)],ec);let el=class extends ed{constructor(e,t,i,o,r,s,a,d,c,l,u,h,p,g){const m=p.createInstance(L.CompositeBarAction,{id:A,name:(0,n.localize)(3515,"Manage"),classNames:O.ThemeIcon.asClassNameArray(o.currentProfile.icon?O.ThemeIcon.fromId(o.currentProfile.icon):en)});super(K.MenuId.GlobalActivity,m,t,e,i,r,s,a,d,c,l,h,g),this.userDataProfileService=o,this._register(m),this._register(this.userDataProfileService.onDidChangeCurrentProfile(e=>{m.compositeBarActionItem={...m.compositeBarActionItem,classNames:O.ThemeIcon.asClassNameArray(o.currentProfile.icon?O.ThemeIcon.fromId(o.currentProfile.icon):en)}}))}render(e){super.render(e),this.profileBadge=(0,y.append)(e,(0,y.$)(".profile-badge")),this.profileBadgeContent=(0,y.append)(this.profileBadge,(0,y.$)(".profile-badge-content")),this.updateProfileBadge()}updateProfileBadge(){!this.profileBadge||!this.profileBadgeContent||((0,y.clearNode)(this.profileBadgeContent),(0,y.hide)(this.profileBadge),this.userDataProfileService.currentProfile.isDefault||this.userDataProfileService.currentProfile.icon&&this.userDataProfileService.currentProfile.icon!==en.id||this.action.activities.length>0||((0,y.show)(this.profileBadge),this.profileBadgeContent.classList.add("profile-text-overlay"),this.profileBadgeContent.textContent=this.userDataProfileService.currentProfile.name.substring(0,2).toUpperCase()))}updateActivity(){super.updateActivity(),this.updateProfileBadge()}computeTitle(){return this.userDataProfileService.currentProfile.isDefault?super.computeTitle():(0,n.localize)(3523,"Manage {0} (Profile)",this.userDataProfileService.currentProfile.name)}};el=(0,r.__decorate)([(0,r.__param)(3,er.IUserDataProfileService),(0,r.__param)(4,g.IThemeService),(0,r.__param)(5,et.IHoverService),(0,r.__param)(6,W.IMenuService),(0,r.__param)(7,G.IContextMenuService),(0,r.__param)(8,q.IContextKeyService),(0,r.__param)(9,C.IConfigurationService),(0,r.__param)(10,ee.IWorkbenchEnvironmentService),(0,r.__param)(11,$.IKeybindingService),(0,r.__param)(12,l.IInstantiationService),(0,r.__param)(13,k.IActivityService)],el);let eu=class extends ec{constructor(e,t,i,o,r,n,s,a,d,c,l,u,h,p,g,v,y,f,_){super(()=>ep(g,!0),{...t,colors:e=>({badgeBackground:e.getColor(m.ACTIVITY_BAR_BADGE_BACKGROUND),badgeForeground:e.getColor(m.ACTIVITY_BAR_BADGE_FOREGROUND)}),hoverOptions:e,compact:!0},()=>void 0,e=>e,i,o,r,n,s,a,d,c,l,u,h,p,v,y,f,_)}};eu=(0,r.__decorate)([(0,r.__param)(2,g.IThemeService),(0,r.__param)(3,eo.ILifecycleService),(0,r.__param)(4,et.IHoverService),(0,r.__param)(5,G.IContextMenuService),(0,r.__param)(6,W.IMenuService),(0,r.__param)(7,q.IContextKeyService),(0,r.__param)(8,J.IAuthenticationService),(0,r.__param)(9,ee.IWorkbenchEnvironmentService),(0,r.__param)(10,j.IProductService),(0,r.__param)(11,C.IConfigurationService),(0,r.__param)(12,$.IKeybindingService),(0,r.__param)(13,Y.ISecretStorageService),(0,r.__param)(14,P.IStorageService),(0,r.__param)(15,Q.ILogService),(0,r.__param)(16,k.IActivityService),(0,r.__param)(17,l.IInstantiationService),(0,r.__param)(18,es.ICommandService)],eu);let eh=class extends el{constructor(e,t,i,o,r,n,s,a,d,c,l,u,h,p){super(()=>ep(p,!1),{...t,colors:e=>({badgeBackground:e.getColor(m.ACTIVITY_BAR_BADGE_BACKGROUND),badgeForeground:e.getColor(m.ACTIVITY_BAR_BADGE_FOREGROUND)}),hoverOptions:e,compact:!0},()=>void 0,i,o,r,n,s,a,d,c,l,u,h)}};function ep(e,t){let i=[];return t&&i.push((0,b.toAction)({id:"hideAccounts",label:(0,n.localize)(3514,"Hide Accounts"),run:()=>em(e,!1)}),new b.Separator),[...i,(0,b.toAction)({id:"toggle.hideAccounts",label:(0,n.localize)(3516,"Accounts"),checked:eg(e),run:()=>em(e,!eg(e))}),(0,b.toAction)({id:"toggle.hideManage",label:(0,n.localize)(3515,"Manage"),checked:!0,enabled:!1,run:()=>{throw Error('"Manage" can not be hidden')}})]}function eg(e){return e.getBoolean(ec.ACCOUNTS_VISIBILITY_PREFERENCE_KEY,M.StorageScope.PROFILE,!0)}function em(e,t){e.store(ec.ACCOUNTS_VISIBILITY_PREFERENCE_KEY,t,M.StorageScope.PROFILE,M.StorageTarget.USER)}eh=(0,r.__decorate)([(0,r.__param)(2,er.IUserDataProfileService),(0,r.__param)(3,g.IThemeService),(0,r.__param)(4,et.IHoverService),(0,r.__param)(5,W.IMenuService),(0,r.__param)(6,G.IContextMenuService),(0,r.__param)(7,q.IContextKeyService),(0,r.__param)(8,C.IConfigurationService),(0,r.__param)(9,ee.IWorkbenchEnvironmentService),(0,r.__param)(10,$.IKeybindingService),(0,r.__param)(11,l.IInstantiationService),(0,r.__param)(12,k.IActivityService),(0,r.__param)(13,P.IStorageService)],eh),e.s(["AccountsActivityActionViewItem",0,ec,"GlobalCompositeBar",0,ea,"SimpleAccountActivityActionViewItem",0,eu,"SimpleGlobalActivityActionViewItem",0,eh,"isAccountsActionVisible",0,eg],847677);var ev=K,ey=e.i(568101),ef=e.i(262072),e_=e.i(305063),eC=e.i(447186),eS=e.i(99419),eb=L;(0,o.registerCss)(void 0),(0,o.registerCss)(void 0);let eI=class extends a.Part{static{i=this}static{this.ACTION_HEIGHT=48}static{this.pinnedViewContainersKey="workbench.activity.pinnedViewlets2"}static{this.placeholderViewContainersKey="workbench.activity.placeholderViewlets"}static{this.viewContainersWorkspaceStateKey="workbench.activity.viewletsWorkspaceState"}constructor(e,t,i,o,r){super(d.Parts.ACTIVITYBAR_PART,{hasTitle:!1},o,r,i),this.paneCompositePart=e,this.instantiationService=t,this.minimumWidth=48,this.maximumWidth=48,this.minimumHeight=0,this.maximumHeight=1/0,this.compositeBar=this._register(new u.MutableDisposable)}createCompositeBar(){return this.instantiationService.createInstance(eE,{partContainerClass:"activitybar",pinnedViewContainersKey:i.pinnedViewContainersKey,placeholderViewContainersKey:i.placeholderViewContainersKey,viewContainersWorkspaceStateKey:i.viewContainersWorkspaceStateKey,orientation:s.ActionsOrientation.VERTICAL,icon:!0,iconSize:24,activityHoverOptions:{position:()=>this.layoutService.getSideBarPosition()===d.Position.LEFT?w.HoverPosition.RIGHT:w.HoverPosition.LEFT},preventLoopNavigation:!0,recomputeSizes:!1,fillExtraContextMenuActions:(e,t)=>{},compositeSize:52,colors:e=>({activeForegroundColor:e.getColor(m.ACTIVITY_BAR_FOREGROUND),inactiveForegroundColor:e.getColor(m.ACTIVITY_BAR_INACTIVE_FOREGROUND),activeBorderColor:e.getColor(m.ACTIVITY_BAR_ACTIVE_BORDER),activeBackground:e.getColor(m.ACTIVITY_BAR_ACTIVE_BACKGROUND),badgeBackground:e.getColor(m.ACTIVITY_BAR_BADGE_BACKGROUND),badgeForeground:e.getColor(m.ACTIVITY_BAR_BADGE_FOREGROUND),dragAndDropBorder:e.getColor(m.ACTIVITY_BAR_DRAG_AND_DROP_BORDER),activeBackgroundColor:void 0,inactiveBackgroundColor:void 0,activeBorderBottomColor:void 0}),overflowActionSize:i.ACTION_HEIGHT},d.Parts.ACTIVITYBAR_PART,this.paneCompositePart,!0)}createContentArea(e){return this.element=e,this.content=(0,y.append)(this.element,(0,y.$)(".content")),this.layoutService.isVisible(d.Parts.ACTIVITYBAR_PART)&&this.show(),this.content}getPinnedPaneCompositeIds(){return this.compositeBar.value?.getPinnedPaneCompositeIds()??[]}getVisiblePaneCompositeIds(){return this.compositeBar.value?.getVisiblePaneCompositeIds()??[]}getPaneCompositeIds(){return this.compositeBar.value?.getPaneCompositeIds()??[]}focus(){this.compositeBar.value?.focus()}updateStyles(){super.updateStyles();let e=(0,f.assertReturnsDefined)(this.getContainer()),t=this.getColor(m.ACTIVITY_BAR_BACKGROUND)||"";e.style.backgroundColor=t;let i=this.getColor(m.ACTIVITY_BAR_BORDER)||this.getColor(v.contrastBorder)||"";e.classList.toggle("bordered",!!i),e.style.borderColor=i||""}show(e){this.content&&(!this.compositeBar.value&&(this.compositeBar.value=this.createCompositeBar(),this.compositeBar.value.create(this.content),this.dimension&&this.layout(this.dimension.width,this.dimension.height)),e&&this.focus())}hide(){this.compositeBar.value&&(this.compositeBar.clear(),this.content&&(0,y.clearNode)(this.content))}layout(e,t){if(super.layout(e,t,0,0),!this.compositeBar.value)return;let i=super.layoutContents(e,t).contentSize;this.compositeBar.value.layout(e,i.height)}toJSON(){return{type:d.Parts.ACTIVITYBAR_PART}}};eI=i=(0,r.__decorate)([(0,r.__param)(1,l.IInstantiationService),(0,r.__param)(2,c.IWorkbenchLayoutService),(0,r.__param)(3,g.IThemeService),(0,r.__param)(4,P.IStorageService)],eI);let eE=class extends D.PaneCompositeBar{constructor(e,t,i,o,r,n,s,a,d,c,l,h,p,g){super({...e,fillExtraContextMenuActions:(t,i)=>{e.fillExtraContextMenuActions(t,i),this.fillContextMenuActions(t,i)}},t,i,r,n,s,a,d,c,l,g),this.configurationService=h,this.menuService=p,this.menuBar=this._register(new u.MutableDisposable),this.keyboardNavigationDisposables=this._register(new u.DisposableStore),o&&(this.globalCompositeBar=this._register(r.createInstance(ea,()=>this.getContextMenuActions(),e=>this.options.colors(e),this.options.activityHoverOptions))),this._register(this.configurationService.onDidChangeConfiguration(e=>{e.affectsConfiguration(S.MenuSettings.MenuBarVisibility)&&("compact"===(0,S.getMenuBarVisibility)(this.configurationService)?this.installMenubar():this.uninstallMenubar())}))}fillContextMenuActions(e,t){let i=(0,S.getMenuBarVisibility)(this.configurationService);("compact"===i||"hidden"===i||"toggle"===i)&&e.unshift((0,b.toAction)({id:"toggleMenuVisibility",label:(0,n.localize)(2985,"Menu"),checked:"compact"===i,run:()=>this.configurationService.updateValue(S.MenuSettings.MenuBarVisibility,"compact"===i?"toggle":"compact")}),new b.Separator),"compact"===i&&this.menuBarContainer&&t?.target&&(0,y.isAncestor)(t.target,this.menuBarContainer)&&e.unshift((0,b.toAction)({id:"hideCompactMenu",label:(0,n.localize)(2986,"Hide Menu"),run:()=>this.configurationService.updateValue(S.MenuSettings.MenuBarVisibility,"toggle")}),new b.Separator),this.globalCompositeBar&&(e.push(new b.Separator),e.push(...this.globalCompositeBar.getContextMenuActions())),e.push(new b.Separator),e.push(...this.getActivityBarContextMenuActions())}uninstallMenubar(){this.menuBar.value&&(this.menuBar.value=void 0),this.menuBarContainer&&(this.menuBarContainer.remove(),this.menuBarContainer=void 0)}installMenubar(){this.menuBar.value||(this.menuBarContainer=(0,y.$)(".menubar"),(0,f.assertReturnsDefined)(this.element).prepend(this.menuBarContainer),this.menuBar.value=this._register(this.instantiationService.createInstance(_.CustomMenubarControl)),this.menuBar.value.create(this.menuBarContainer))}registerKeyboardNavigationListeners(){this.keyboardNavigationDisposables.clear(),this.menuBarContainer&&this.keyboardNavigationDisposables.add((0,y.addDisposableListener)(this.menuBarContainer,y.EventType.KEY_DOWN,e=>{let t=new I.StandardKeyboardEvent(e);(t.equals(E.KeyCode.DownArrow)||t.equals(E.KeyCode.RightArrow))&&this.focus()})),this.compositeBarContainer&&this.keyboardNavigationDisposables.add((0,y.addDisposableListener)(this.compositeBarContainer,y.EventType.KEY_DOWN,e=>{let t=new I.StandardKeyboardEvent(e);t.equals(E.KeyCode.DownArrow)||t.equals(E.KeyCode.RightArrow)?this.globalCompositeBar?.focus():(t.equals(E.KeyCode.UpArrow)||t.equals(E.KeyCode.LeftArrow))&&this.menuBar.value?.toggleFocus()})),this.globalCompositeBar&&this.keyboardNavigationDisposables.add((0,y.addDisposableListener)(this.globalCompositeBar.element,y.EventType.KEY_DOWN,e=>{let t=new I.StandardKeyboardEvent(e);(t.equals(E.KeyCode.UpArrow)||t.equals(E.KeyCode.LeftArrow))&&this.focus(this.getVisiblePaneCompositeIds().length-1)}))}create(e){return this.element=e,"compact"===(0,S.getMenuBarVisibility)(this.configurationService)&&this.installMenubar(),this.compositeBarContainer=super.create(this.element),this.globalCompositeBar&&this.globalCompositeBar.create(this.element),this.registerKeyboardNavigationListeners(),this.compositeBarContainer}layout(e,t){this.menuBarContainer&&(this.options.orientation===s.ActionsOrientation.VERTICAL?t-=this.menuBarContainer.clientHeight:e-=this.menuBarContainer.clientWidth),this.globalCompositeBar&&(this.options.orientation===s.ActionsOrientation.VERTICAL?t-=this.globalCompositeBar.size()*eI.ACTION_HEIGHT:e-=this.globalCompositeBar.element.clientWidth),super.layout(e,t)}getActivityBarContextMenuActions(){let e=this.menuService.getMenuActions(ev.MenuId.ActivityBarPositionMenu,this.contextKeyService,{shouldForwardArgs:!0,renderShortTitle:!0}),t=(0,H.getContextMenuActions)(e).secondary,i=[new b.SubmenuAction("workbench.action.panel.position",(0,n.localize)(2987,"Activity Bar Position"),t),(0,b.toAction)({id:h.ToggleSidebarPositionAction.ID,label:h.ToggleSidebarPositionAction.getLabel(this.layoutService),run:()=>this.instantiationService.invokeFunction(e=>new h.ToggleSidebarPositionAction().run(e))})];return this.part===d.Parts.SIDEBAR_PART&&i.push((0,b.toAction)({id:h.ToggleSidebarVisibilityAction.ID,label:h.ToggleSidebarVisibilityAction.LABEL,run:()=>this.instantiationService.invokeFunction(e=>new h.ToggleSidebarVisibilityAction().run(e))})),i}};eE=(0,r.__decorate)([(0,r.__param)(4,l.IInstantiationService),(0,r.__param)(5,P.IStorageService),(0,r.__param)(6,R.IExtensionService),(0,r.__param)(7,eC.IViewDescriptorService),(0,r.__param)(8,eS.IViewsService),(0,r.__param)(9,q.IContextKeyService),(0,r.__param)(10,ee.IWorkbenchEnvironmentService),(0,r.__param)(11,C.IConfigurationService),(0,r.__param)(12,W.IMenuService),(0,r.__param)(13,c.IWorkbenchLayoutService)],eE),(0,ev.registerAction2)(class extends ev.Action2{constructor(){super({id:"workbench.action.activityBarLocation.default",title:{...(0,n.localize2)(2988,"Move Activity Bar to Side"),mnemonicTitle:(0,n.localize)(2989,"&&Default")},shortTitle:(0,n.localize)(2990,"Default"),category:ef.Categories.View,toggled:ey.ContextKeyExpr.equals(`config.${d.LayoutSettings.ACTIVITY_BAR_LOCATION}`,d.ActivityBarPosition.DEFAULT),menu:[{id:ev.MenuId.ActivityBarPositionMenu,order:1},{id:ev.MenuId.CommandPalette,when:ey.ContextKeyExpr.notEquals(`config.${d.LayoutSettings.ACTIVITY_BAR_LOCATION}`,d.ActivityBarPosition.DEFAULT)}]})}run(e){e.get(C.IConfigurationService).updateValue(d.LayoutSettings.ACTIVITY_BAR_LOCATION,d.ActivityBarPosition.DEFAULT)}}),(0,ev.registerAction2)(class extends ev.Action2{constructor(){super({id:"workbench.action.activityBarLocation.top",title:{...(0,n.localize2)(2991,"Move Activity Bar to Top"),mnemonicTitle:(0,n.localize)(2992,"&&Top")},shortTitle:(0,n.localize)(2993,"Top"),category:ef.Categories.View,toggled:ey.ContextKeyExpr.equals(`config.${d.LayoutSettings.ACTIVITY_BAR_LOCATION}`,d.ActivityBarPosition.TOP),menu:[{id:ev.MenuId.ActivityBarPositionMenu,order:2},{id:ev.MenuId.CommandPalette,when:ey.ContextKeyExpr.notEquals(`config.${d.LayoutSettings.ACTIVITY_BAR_LOCATION}`,d.ActivityBarPosition.TOP)}]})}run(e){e.get(C.IConfigurationService).updateValue(d.LayoutSettings.ACTIVITY_BAR_LOCATION,d.ActivityBarPosition.TOP)}}),(0,ev.registerAction2)(class extends ev.Action2{constructor(){super({id:"workbench.action.activityBarLocation.bottom",title:{...(0,n.localize2)(2994,"Move Activity Bar to Bottom"),mnemonicTitle:(0,n.localize)(2995,"&&Bottom")},shortTitle:(0,n.localize)(2996,"Bottom"),category:ef.Categories.View,toggled:ey.ContextKeyExpr.equals(`config.${d.LayoutSettings.ACTIVITY_BAR_LOCATION}`,d.ActivityBarPosition.BOTTOM),menu:[{id:ev.MenuId.ActivityBarPositionMenu,order:3},{id:ev.MenuId.CommandPalette,when:ey.ContextKeyExpr.notEquals(`config.${d.LayoutSettings.ACTIVITY_BAR_LOCATION}`,d.ActivityBarPosition.BOTTOM)}]})}run(e){e.get(C.IConfigurationService).updateValue(d.LayoutSettings.ACTIVITY_BAR_LOCATION,d.ActivityBarPosition.BOTTOM)}}),(0,ev.registerAction2)(class extends ev.Action2{constructor(){super({id:"workbench.action.activityBarLocation.hide",title:{...(0,n.localize2)(2997,"Hide Activity Bar"),mnemonicTitle:(0,n.localize)(2998,"&&Hidden")},shortTitle:(0,n.localize)(2999,"Hidden"),category:ef.Categories.View,toggled:ey.ContextKeyExpr.equals(`config.${d.LayoutSettings.ACTIVITY_BAR_LOCATION}`,d.ActivityBarPosition.HIDDEN),menu:[{id:ev.MenuId.ActivityBarPositionMenu,order:4},{id:ev.MenuId.CommandPalette,when:ey.ContextKeyExpr.notEquals(`config.${d.LayoutSettings.ACTIVITY_BAR_LOCATION}`,d.ActivityBarPosition.HIDDEN)}]})}run(e){e.get(C.IConfigurationService).updateValue(d.LayoutSettings.ACTIVITY_BAR_LOCATION,d.ActivityBarPosition.HIDDEN)}}),ev.MenuRegistry.appendMenuItem(ev.MenuId.MenubarAppearanceMenu,{submenu:ev.MenuId.ActivityBarPositionMenu,title:(0,n.localize)(3e3,"Activity Bar Position"),group:"3_workbench_layout_move",order:2}),ev.MenuRegistry.appendMenuItem(ev.MenuId.ViewContainerTitleContext,{submenu:ev.MenuId.ActivityBarPositionMenu,title:(0,n.localize)(3e3,"Activity Bar Position"),when:ey.ContextKeyExpr.or(ey.ContextKeyExpr.equals("viewContainerLocation",(0,e_.ViewContainerLocationToString)(e_.ViewContainerLocation.Sidebar)),ey.ContextKeyExpr.equals("viewContainerLocation",(0,e_.ViewContainerLocationToString)(e_.ViewContainerLocation.AuxiliaryBar))),group:"3_workbench_layout_move",order:1}),(0,ev.registerAction2)(class extends eb.SwitchCompositeViewAction{constructor(){super({id:"workbench.action.previousSideBarView",title:(0,n.localize2)(3001,"Previous Primary Side Bar View"),category:ef.Categories.View,f1:!0},e_.ViewContainerLocation.Sidebar,-1)}}),(0,ev.registerAction2)(class extends eb.SwitchCompositeViewAction{constructor(){super({id:"workbench.action.nextSideBarView",title:(0,n.localize2)(3002,"Next Primary Side Bar View"),category:ef.Categories.View,f1:!0},e_.ViewContainerLocation.Sidebar,1)}}),(0,ev.registerAction2)(class extends ev.Action2{constructor(){super({id:"workbench.action.focusActivityBar",title:(0,n.localize2)(3003,"Focus Activity Bar"),category:ef.Categories.View,f1:!0})}async run(e){e.get(c.IWorkbenchLayoutService).focusPart(d.Parts.ACTIVITYBAR_PART)}}),(0,p.registerThemingParticipant)((e,t)=>{let i=e.getColor(m.ACTIVITY_BAR_ACTIVE_BORDER);i&&t.addRule(`
|
|
78
|
+
.monaco-workbench .activitybar > .content :not(.monaco-menu) > .monaco-action-bar .action-item.checked .active-item-indicator:before {
|
|
79
|
+
border-left-color: ${i};
|
|
80
|
+
}
|
|
81
|
+
`);let o=e.getColor(m.ACTIVITY_BAR_ACTIVE_FOCUS_BORDER);o&&t.addRule(`
|
|
82
|
+
.monaco-workbench .activitybar > .content :not(.monaco-menu) > .monaco-action-bar .action-item.checked:focus::before {
|
|
83
|
+
visibility: hidden;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.monaco-workbench .activitybar > .content :not(.monaco-menu) > .monaco-action-bar .action-item.checked:focus .active-item-indicator:before {
|
|
87
|
+
visibility: visible;
|
|
88
|
+
border-left-color: ${o};
|
|
89
|
+
}
|
|
90
|
+
`);let r=e.getColor(m.ACTIVITY_BAR_ACTIVE_BACKGROUND);r&&t.addRule(`
|
|
91
|
+
.monaco-workbench .activitybar > .content :not(.monaco-menu) > .monaco-action-bar .action-item.checked .active-item-indicator {
|
|
92
|
+
z-index: 0;
|
|
93
|
+
background-color: ${r};
|
|
94
|
+
}
|
|
95
|
+
`);let n=e.getColor(v.activeContrastBorder);if(n)t.addRule(`
|
|
96
|
+
.monaco-workbench .activitybar > .content :not(.monaco-menu) > .monaco-action-bar .action-item .action-label::before{
|
|
97
|
+
padding: 6px;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.monaco-workbench .activitybar > .content :not(.monaco-menu) > .monaco-action-bar .action-item.active .action-label::before,
|
|
101
|
+
.monaco-workbench .activitybar > .content :not(.monaco-menu) > .monaco-action-bar .action-item.active:hover .action-label::before,
|
|
102
|
+
.monaco-workbench .activitybar > .content :not(.monaco-menu) > .monaco-action-bar .action-item.checked .action-label::before,
|
|
103
|
+
.monaco-workbench .activitybar > .content :not(.monaco-menu) > .monaco-action-bar .action-item.checked:hover .action-label::before {
|
|
104
|
+
outline: 1px solid ${n};
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.monaco-workbench .activitybar > .content :not(.monaco-menu) > .monaco-action-bar .action-item:hover .action-label::before {
|
|
108
|
+
outline: 1px dashed ${n};
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.monaco-workbench .activitybar > .content :not(.monaco-menu) > .monaco-action-bar .action-item:focus .active-item-indicator:before {
|
|
112
|
+
border-left-color: ${n};
|
|
113
|
+
}
|
|
114
|
+
`);else{let i=e.getColor(v.focusBorder);i&&t.addRule(`
|
|
115
|
+
.monaco-workbench .activitybar > .content :not(.monaco-menu) > .monaco-action-bar .action-item:focus .active-item-indicator::before {
|
|
116
|
+
border-left-color: ${i};
|
|
117
|
+
}
|
|
118
|
+
`)}}),e.s(["ActivityBarCompositeBar",0,eE,"ActivitybarPart",0,eI],786896)},836088,e=>{"use strict";var t=e.i(487106),i=e.i(536561);e.i(488259);var o=e.i(947278),r=e.i(781808),n=e.i(850887),s=e.i(526097);e.i(292663);var a=e.i(34422),d=e.i(305063),c=e.i(447186),l=e.i(354244),u=e.i(454514);e.i(786896);var h=e.i(891110),p=e.i(85282),g=e.i(731931),m=e.i(611130),v=e.i(669414),y=e.i(922292),f=e.i(74304),_=e.i(79522),C=e.i(670913),S=e.i(130722),b=e.i(63876),I=e.i(425761);class E extends m.Disposable{constructor(e=(0,b.getWorkbenchContainer)()){super(),this.mainContainer=e,this.onDidChangeAuxiliaryBarMaximized=r.Event.None,this.toggleMaximizedAuxiliaryBar=I.unsupported,this.setAuxiliaryBarMaximized=I.unsupported,this.isAuxiliaryBarMaximized=()=>!1,this.setSize=I.unsupported,this.onDidChangeMainEditorCenteredLayout=r.Event.None,this.whenActiveContainerStylesLoaded=Promise.resolve(),this._onDidLayoutContainer=this._register(new r.Emitter),this.onDidLayoutContainer=this._onDidLayoutContainer.event,this._onDidAddContainer=this._register(new r.Emitter),this.onDidAddContainer=this._onDidAddContainer.event,this._onDidRemoveContainer=this._register(new r.Emitter),this.onDidRemoveContainer=this._onDidRemoveContainer.event,this._onDidLayoutMainContainer=this._register(new r.Emitter),this.onDidLayoutMainContainer=this._onDidLayoutMainContainer.event,this._onDidLayoutActiveContainer=this._register(new r.Emitter),this.onDidLayoutActiveContainer=this._onDidLayoutActiveContainer.event,this._onDidChangeActiveContainer=this._register(new r.Emitter),this.onDidChangeActiveContainer=this._onDidChangeActiveContainer.event,this.mainContainerOffset={top:0,quickPickTop:0},this.activeContainerOffset={top:0,quickPickTop:0},this.onDidChangeFullscreen=r.Event.None,this.onDidChangeZenMode=r.Event.None,this.onDidChangeWindowMaximized=r.Event.None,this.onDidChangeCenteredLayout=r.Event.None,this._onDidChangePanelPosition=this._register(new r.Emitter),this.onDidChangePanelPosition=this._onDidChangePanelPosition.event,this._onDidChangeSideBarPosition=this._register(new r.Emitter),this.onDidChangeSideBarPosition=this._onDidChangeSideBarPosition.event,this.onDidChangePanelAlignment=r.Event.None,this.onDidChangeNotificationsVisibility=r.Event.None,this.openedDefaultEditors=!1,this.whenRestored=Promise.resolve(),this.parts=new Map,this.hiddenParts=new Set,this._onDidChangePartVisibility=new r.Emitter,this.onDidChangePartVisibility=this._onDidChangePartVisibility.event,this.offset={top:0,quickPickTop:0},this._onDidLayout=new r.Emitter,this.onDidLayout=this._onDidLayout.event,window.addEventListener("resize",()=>this.layout()),this.layout();const t=l.isWindows?"windows":l.isLinux?"linux":"mac",i=(0,u.coalesce)(["monaco-workbench",t,"web",l.isChrome?"chromium":l.isFirefox?"firefox":l.isSafari?"safari":void 0]);e.classList.add(...i)}getSize(e){return this.getPart(e)?.dimension??{height:0,width:0}}whenContainerStylesLoaded(){}hasMainWindowBorder(){return!1}getMainWindowBorderRadius(){}isMainEditorLayoutCentered(){return!1}centerMainEditorLayout(){}get activeContainer(){return this.getContainerFromDocument((0,n.getActiveDocument)())}get containers(){let e=[];for(let{window:t}of(0,n.getWindows)())e.push(this.getContainerFromDocument(t.document));return e}getContainerFromDocument(e){return e===this.mainContainer.ownerDocument?this.mainContainer:e.body.getElementsByClassName("monaco-workbench")[0]}init(e){this.editorGroupService=e.get(h.IEditorGroupsService),this.paneCompositeService=e.get(a.IPaneCompositePartService),this.statusBarService=e.get(p.IStatusbarService),this.viewDescriptorService=e.get(c.IViewDescriptorService),this.configurationService=e.get(g.IConfigurationService),this.auxiliaryWindowService=e.get(v.IAuxiliaryWindowService),this.hostService=e.get(f.IHostService),this._register(this.configurationService.onDidChangeConfiguration(e=>{e.affectsConfiguration(i.LayoutSettings.ACTIVITY_BAR_LOCATION)&&this.setPartHidden(this.isActivityBarHidden(),i.Parts.ACTIVITYBAR_PART),e.affectsConfiguration("workbench.statusBar.visible")&&this.setPartHidden(!this.configurationService.getValue("workbench.statusBar.visible"),i.Parts.STATUSBAR_PART),e.affectsConfiguration("workbench.sideBar.location")&&this.setSideBarPosition((0,i.positionFromString)(this.configurationService.getValue("workbench.sideBar.location")??"left")),e.affectsConfiguration("workbench.panel.defaultLocation")&&this.setPanelPosition((0,i.positionFromString)(this.configurationService.getValue("workbench.panel.defaultLocation")??"bottom"))})),this.setPartHidden(this.isActivityBarHidden(),i.Parts.ACTIVITYBAR_PART),this.setPartHidden(!this.configurationService.getValue("workbench.statusBar.visible"),i.Parts.STATUSBAR_PART),this.sideBarPosition=(0,i.positionFromString)(this.configurationService.getValue("workbench.sideBar.location")??"left"),this.panelPosition=(0,i.positionFromString)(this.configurationService.getValue("workbench.panel.defaultLocation")??"bottom"),this._register(this.hostService.onDidChangeActiveWindow(()=>this.onActiveWindowChanged())),this._register(this.auxiliaryWindowService.onDidOpenAuxiliaryWindow(({window:e,disposables:t})=>{this._onDidAddContainer.fire({container:e.container,disposables:new m.DisposableStore}),t.add(e.onDidLayout(t=>this.handleContainerDidLayout(e.container,t))),t.add((0,m.toDisposable)(()=>this._onDidRemoveContainer.fire(e.container)))}))}handleContainerDidLayout(e,t){e===this.mainContainer&&this._onDidLayoutMainContainer.fire(t),(0,n.isActiveDocument)(e)&&this._onDidLayoutActiveContainer.fire(t)}getActiveContainerId(){let e=this.activeContainer;return(0,n.getWindow)(e).vscodeWindowId}onActiveWindowChanged(){let e=this.getActiveContainerId();this.activeContainerId!==e&&(this.activeContainerId=e,this._onDidChangeActiveContainer.fire())}isActivityBarHidden(){let e=this.configurationService.getValue("workbench.activityBar.visible");return void 0!==e?!e:this.configurationService.getValue(i.LayoutSettings.ACTIVITY_BAR_LOCATION)!==i.ActivityBarPosition.DEFAULT}focusPart(e){switch(e){case i.Parts.EDITOR_PART:this.editorGroupService.activeGroup.focus();break;case i.Parts.PANEL_PART:{let e=this.paneCompositeService.getActivePaneComposite(d.ViewContainerLocation.Panel);e?.focus();break}case i.Parts.SIDEBAR_PART:{let e=this.paneCompositeService.getActivePaneComposite(d.ViewContainerLocation.Sidebar);e?.focus();break}case i.Parts.ACTIVITYBAR_PART:this.getPart(i.Parts.ACTIVITYBAR_PART).focus();break;case i.Parts.STATUSBAR_PART:this.statusBarService.focus();break;default:{let t=this.getContainer(e);t?.focus()}}}getDimension(e){return this.getPart(e)?.dimension}toggleMaximizedPanel(){}toggleMenuBar(){let e,t=(0,C.getMenuBarVisibility)(this.configurationService);"string"!=typeof t&&(t="classic"),e="visible"===t||"classic"===t?"native"===(0,C.getTitleBarStyle)(this.configurationService)?"toggle":"compact":"classic",this.configurationService.updateValue("window.menuBarVisibility",e)}setPanelPosition(e){this.panelPosition=e;let t=this.getPart(i.Parts.PANEL_PART);t?.updateStyles(),this._onDidChangePanelPosition.fire((0,i.positionToString)(e))}getPanelAlignment(){return"left"}setPanelAlignment(){}toggleZenMode(){}isEditorLayoutCentered(){return!1}centerEditorLayout(){}resizePart(){}isWindowMaximized(){return!1}updateWindowMaximizedState(){}getVisibleNeighborPart(){}getMaximumEditorDimensions(){return new n.Dimension(1/0,1/0)}isPanelMaximized(){return!1}getPanelPosition(){return this.panelPosition}hasFocus(e){let t=document.activeElement;if(null==t)return!1;let i=this.getContainer(e);return null!=i&&(0,n.isAncestorUsingFlowTo)(t,i)}getContainer(e){if("string"==typeof e){if(null!=this.parts.get(e))return this.getPart(e)?.getContainer()}else if(e.document===this.mainContainer.ownerDocument)return this.mainContainer;else return e.document.body.getElementsByClassName("monaco-workbench")[0]}getPart(e){return this.parts.get(e)}hasViews(e){let t=this.viewDescriptorService.getViewContainerById(e);if(null==t)return!1;let i=this.viewDescriptorService.getViewContainerModel(t);return null!=i&&i.activeViewDescriptors.length>=1}setPartHidden(e,t){e?this.hiddenParts.add(t):this.hiddenParts.delete(t),this._onDidChangePartVisibility.fire();let o={[i.Parts.SIDEBAR_PART]:d.ViewContainerLocation.Sidebar,[i.Parts.AUXILIARYBAR_PART]:d.ViewContainerLocation.AuxiliaryBar,[i.Parts.PANEL_PART]:d.ViewContainerLocation.Panel}[t];if(null!=o){let t=this.paneCompositeService.getActivePaneComposite(o);if(null!=t&&e)this.paneCompositeService.hideActivePaneComposite(o);else if(null==t&&!e){let e=this.paneCompositeService.getLastActivePaneCompositeId(o);null!=e&&this.hasViews(e)||(e=this.viewDescriptorService.getViewContainersByLocation(o).find(e=>this.hasViews(e.id))?.id),null!=e&&this.paneCompositeService.openPaneComposite(e,o,!0)}}this.getPart(t)?.setVisible(!e)}isVisible(e){return!this.hiddenParts.has(e)}getSideBarPosition(){return this.sideBarPosition}setSideBarPosition(e){this.sideBarPosition=e;let t=this.getPart(i.Parts.ACTIVITYBAR_PART),o=this.getPart(i.Parts.SIDEBAR_PART),r=this.getPart(i.Parts.AUXILIARYBAR_PART);t?.updateStyles(),o?.updateStyles(),r?.updateStyles(),this._onDidChangeSideBarPosition.fire((0,i.positionToString)(e))}registerPart(e){let t=e.getId();return this.parts.set(t,e),(0,m.toDisposable)(()=>this.parts.delete(t))}isRestored(){return!0}get mainContainerDimension(){return this._mainContainerDimension}get activeContainerDimension(){let e=this.activeContainer;return e===this.mainContainer?this.mainContainerDimension:(0,n.getClientArea)(e)}layout(){this._mainContainerDimension=(0,n.getClientArea)(window.document.body),this._onDidLayout.fire(this._mainContainerDimension)}get hasContainer(){return!0}focus(){let e=this.activeContainer;if(e===this.mainContainer){let e=t.StandaloneServices.get(_.ICodeEditorService).getFocusedCodeEditor();e instanceof y.StandaloneCodeEditor?e.focus():this.focusPart(i.Parts.EDITOR_PART)}else this.editorGroupService.getPart(e).activeGroup.focus()}}(0,S.onRenderWorkbench)(e=>{let t=e.get(o.ILayoutService);t instanceof E&&t.init(e)}),e.s(["default",0,function(e){return{[o.ILayoutService.toString()]:new s.SyncDescriptor(E,[e],!0)}}])},93114,e=>{"use strict";var t=e.i(650289),i=e.i(193391),o=e.i(621826),r=e.i(611130),n=e.i(590746),s=e.i(362361),a=e.i(474320),d=e.i(7542),c=e.i(702320),l=e.i(751753),u=e.i(781808);class h{static{this.instantiatedEditorPanes=new Set}static didInstantiateEditorPane(e){return h.instantiatedEditorPanes.has(e)}static{this._onWillInstantiateEditorPane=new u.Emitter}static{this.onWillInstantiateEditorPane=h._onWillInstantiateEditorPane.event}static create(e,t,i){return new h(e,t,i)}constructor(e,t,i){this.ctor=e,this.typeId=t,this.name=i}instantiate(e,t){h._onWillInstantiateEditorPane.fire({typeId:this.typeId});let i=e.createInstance(this.ctor,t);return h.instantiatedEditorPanes.add(this.typeId),i}describes(e){return e.getId()===this.typeId}}o.Registry.add(i.EditorExtensions.EditorPane,new class{constructor(){this.mapEditorPanesToEditors=new Map}registerEditorPane(e,t){return this.mapEditorPanesToEditors.set(e,t),(0,r.toDisposable)(()=>{this.mapEditorPanesToEditors.delete(e)})}getEditorPane(e){let t=this.findEditorPaneDescriptors(e);if(0!==t.length)return 1===t.length?t[0]:e.prefersEditorPane(t)}findEditorPaneDescriptors(e,t){let i=[];for(let o of this.mapEditorPanesToEditors.keys())for(let r of this.mapEditorPanesToEditors.get(o)||[]){let n=r.ctor;if(t||e.constructor!==n){if(t&&e instanceof n){i.push(o);break}}else{i.push(o);break}}return t||0!==i.length?i:this.findEditorPaneDescriptors(e,!0)}getEditorPaneByType(e){return l.Iterable.find(this.mapEditorPanesToEditors.keys(),t=>t.typeId===e)}getEditorPanes(){return Array.from(this.mapEditorPanesToEditors.keys())}getEditors(){let e=[];for(let t of this.mapEditorPanesToEditors.keys()){let i=this.mapEditorPanesToEditors.get(t);i&&e.push(...i.map(e=>e.ctor))}return e}}),e.s(["EditorPaneDescriptor",0,h,"computeEditorAriaLabel",0,function(e,i,o,r){let n=e.getAriaLabel();return o&&!o.isPinned(e)&&(n=(0,t.localize)(2980,"{0}, preview",n)),o?.isSticky(i??e)&&(n=(0,t.localize)(2981,"{0}, pinned",n)),o&&"number"==typeof r&&r>1&&(n=`${n}, ${o.ariaLabel}`),n},"whenEditorClosed",0,function(e,t){let o=e.get(s.IEditorService),r=e.get(a.IUriIdentityService),l=e.get(d.IWorkingCopyService);return new Promise(e=>{let s=[...t],a=o.onDidCloseEditor(async d=>{if(d.context===i.EditorCloseContext.MOVE)return;let u=i.EditorResourceAccessor.getOriginalUri(d.editor,{supportSideBySide:i.SideBySideEditor.PRIMARY}),h=i.EditorResourceAccessor.getOriginalUri(d.editor,{supportSideBySide:i.SideBySideEditor.SECONDARY});if(d.context===i.EditorCloseContext.REPLACE){let e=i.EditorResourceAccessor.getOriginalUri(o.activeEditor,{supportSideBySide:i.SideBySideEditor.PRIMARY}),t=i.EditorResourceAccessor.getOriginalUri(o.activeEditor,{supportSideBySide:i.SideBySideEditor.SECONDARY});r.extUri.isEqual(u,e)&&(u=void 0),r.extUri.isEqual(h,t)&&(h=void 0)}if(0===(s=s.filter(e=>!(r.extUri.isEqual(e,u)||r.extUri.isEqual(e,h)||d.context!==i.EditorCloseContext.REPLACE&&(u?.scheme===c.Schemas.untitled&&r.extUri.isEqual(e,u.with({scheme:e.scheme}))||h?.scheme===c.Schemas.untitled&&r.extUri.isEqual(e,h.with({scheme:e.scheme})))))).length){let i=t.filter(e=>l.isDirty(e));return i.length>0&&await n.Promises.settled(i.map(async e=>await new Promise(t=>{if(!l.isDirty(e))return t();let i=l.onDidChangeDirty(o=>{if(!o.isDirty()&&r.extUri.isEqual(e,o.resource))return i.dispose(),t()})}))),a.dispose(),e()}})})}])},993358,431153,236456,531243,e=>{"use strict";var t,i,o,r,n,s,a,d,c,l=e.i(281482),u=e.i(865562),h=e.i(731931),p=e.i(324726),g=e.i(553638),m=e.i(526097),v=e.i(488259),y=e.i(370973),f=e.i(947278),_=e.i(853457),C=e.i(991307),S=e.i(399362),b=e.i(176876),I=e.i(781808);e.i(157255);var E=e.i(362361),w=e.i(670913),D=e.i(193391),A=e.i(93114),x=e.i(88702),k=e.i(850887),T=e.i(611130),M=e.i(255338),P=e.i(72469),R=e.i(973265),L=e.i(683578),N=e.i(278725),O=e.i(775937),F=e.i(650289),K=e.i(770326),W=e.i(105673),z=e.i(535567),V=e.i(578953),B=e.i(702320),U=e.i(454514),H=e.i(354244),q=e.i(107043),G=e.i(399119);(t=n||(n={}))[t.Unknown=1]="Unknown",t[t.Keyboard=2]="Keyboard",t[t.Api=3]="Api";let $=class extends T.Disposable{constructor(e,t,i,o,r,s,a,d,c,l,u){super(),this.layoutService=e,this.configurationService=t,this.fileService=i,this.labelService=o,this.environmentService=r,this.instantiationService=s,this.lifecycleService=a,this.logService=d,this.dialogService=c,this.contextService=l,this.userDataProfilesService=u,this.shutdownReason=n.Unknown,r.options?.workspaceProvider?this.workspaceProvider=r.options.workspaceProvider:this.workspaceProvider=new class{constructor(){this.workspace=void 0,this.trusted=void 0}async open(){return!0}},this.registerListeners()}registerListeners(){this._register(this.lifecycleService.onBeforeShutdown(e=>this.onBeforeShutdown(e))),this._register(k.ModifierKeyEmitter.getInstance().event(()=>this.updateShutdownReasonFromEvent()))}onBeforeShutdown(e){switch(this.shutdownReason){case n.Unknown:case n.Keyboard:{let t=this.configurationService.getValue("window.confirmBeforeClose");("always"===t||"keyboardOnly"===t&&this.shutdownReason===n.Keyboard)&&e.veto(!0,"veto.confirmBeforeClose")}}this.shutdownReason=n.Unknown}updateShutdownReasonFromEvent(){this.shutdownReason!==n.Api&&(k.ModifierKeyEmitter.getInstance().isModifierPressed?this.shutdownReason=n.Keyboard:this.shutdownReason=n.Unknown)}get onDidChangeFocus(){let e=this._register(new I.Emitter);return this._register(I.Event.runAndSubscribe(k.onDidRegisterWindow,({window:t,disposables:i})=>{let o=i.add((0,k.trackFocus)(t)),r=i.add(new W.DomEmitter(t.document,"visibilitychange"));I.Event.any(I.Event.map(o.onDidFocus,()=>this.hasFocus,i),I.Event.map(o.onDidBlur,()=>this.hasFocus,i),I.Event.map(r.event,()=>this.hasFocus,i),I.Event.map(this.onDidChangeActiveWindow,()=>this.hasFocus,i))(t=>e.fire(t),void 0,i)},{window:u.mainWindow,disposables:this._store})),I.Event.latch(e.event,void 0,this._store)}get hasFocus(){return(0,k.getActiveDocument)().hasFocus()}async hadLastFocus(){return!0}async focus(e){e.focus()}get onDidChangeActiveWindow(){let e=this._register(new I.Emitter);return this._register(I.Event.runAndSubscribe(k.onDidRegisterWindow,({window:t,disposables:i})=>{let o=(0,k.getWindowId)(t),r=i.add((0,k.trackFocus)(t));i.add(r.onDidFocus(()=>e.fire(o))),(0,u.isAuxiliaryWindow)(t)&&i.add((0,k.disposableWindowInterval)(t,()=>{let i=t.document.hasFocus();return i&&e.fire(o),i},100,20))},{window:u.mainWindow,disposables:this._store})),I.Event.latch(e.event,void 0,this._store)}get onDidChangeFullScreen(){let e=this._register(new I.Emitter);return this._register(I.Event.runAndSubscribe(k.onDidRegisterWindow,({window:t,disposables:i})=>{let o=(0,k.getWindowId)(t),r=H.isIOS&&t.visualViewport?t.visualViewport:t,n=()=>{let e=(0,k.detectFullscreen)(t,this.layoutService.getContainer(t));return null!==e&&!e.guess};for(let r of[k.EventType.FULLSCREEN_CHANGE,k.EventType.WK_FULLSCREEN_CHANGE])i.add((0,k.addDisposableListener)(t.document,r,()=>e.fire({windowId:o,fullscreen:n()})));i.add((0,k.addDisposableThrottledListener)(r,k.EventType.RESIZE,()=>e.fire({windowId:o,fullscreen:n()}),void 0,H.isMacintosh?2e3:800))},{window:u.mainWindow,disposables:this._store})),e.event}openWindow(e,t){return Array.isArray(e)?this.doOpenWindow(e,t):this.doOpenEmptyWindow(e)}async doOpenWindow(e,t){let i=this.preservePayload(!1,t),o=[],r=[],n=[];for(let s of e)s.label=s.label||this.getRecentLabel(s),(0,w.isFolderToOpen)(s)?t?.addMode?r.push({uri:s.folderUri}):t?.removeMode?n.push(s.folderUri):this.doOpen({folderUri:s.folderUri},{reuse:this.shouldReuse(t,!1),payload:i}):(0,w.isWorkspaceToOpen)(s)?this.doOpen({workspaceUri:s.workspaceUri},{reuse:this.shouldReuse(t,!1),payload:i}):(0,w.isFileToOpen)(s)&&o.push(s);(r.length>0||n.length>0)&&this.withServices(async e=>{let t=e.get(R.IWorkspaceEditingService);r.length>0&&await t.addFolders(r),n.length>0&&await t.removeFolders(n)}),o.length>0&&this.withServices(async e=>{let i=e.get(E.IEditorService);if(t?.mergeMode&&4===o.length){let e=(0,U.coalesce)(await (0,D.pathsToEditors)(o,this.fileService,this.logService));if(4!==e.length||!(0,D.isResourceEditorInput)(e[0])||!(0,D.isResourceEditorInput)(e[1])||!(0,D.isResourceEditorInput)(e[2])||!(0,D.isResourceEditorInput)(e[3]))return;if(this.shouldReuse(t,!0))i.openEditor({input1:{resource:e[0].resource},input2:{resource:e[1].resource},base:{resource:e[2].resource},result:{resource:e[3].resource},options:{pinned:!0}});else{let t=new Map;t.set("mergeFile1",e[0].resource.toString()),t.set("mergeFile2",e[1].resource.toString()),t.set("mergeFileBase",e[2].resource.toString()),t.set("mergeFileResult",e[3].resource.toString()),this.doOpen(void 0,{payload:Array.from(t.entries())})}}else if(t?.diffMode&&2===o.length){let e=(0,U.coalesce)(await (0,D.pathsToEditors)(o,this.fileService,this.logService));if(2!==e.length||!(0,D.isResourceEditorInput)(e[0])||!(0,D.isResourceEditorInput)(e[1]))return;if(this.shouldReuse(t,!0))i.openEditor({original:{resource:e[0].resource},modified:{resource:e[1].resource},options:{pinned:!0}});else{let t=new Map;t.set("diffFileSecondary",e[0].resource.toString()),t.set("diffFilePrimary",e[1].resource.toString()),this.doOpen(void 0,{payload:Array.from(t.entries())})}}else for(let e of o)if(this.shouldReuse(t,!0)){let o=[];if(t?.gotoLineMode){let t=(0,P.parseLineAndColumnAware)(e.fileUri.path);o=[{fileUri:e.fileUri.with({path:t.path}),options:{selection:(0,z.isUndefined)(t.line)?void 0:{startLineNumber:t.line,startColumn:t.column||1}}}]}else o=[e];i.openEditors((0,U.coalesce)(await (0,D.pathsToEditors)(o,this.fileService,this.logService)),void 0,{validateTrust:!0})}else{let i=new Map;i.set("openFile",e.fileUri.toString()),t?.gotoLineMode&&i.set("gotoLineMode","true"),this.doOpen(void 0,{payload:Array.from(i.entries())})}let r=t?.waitMarkerFileURI;r&&(async()=>{let e=[];t.mergeMode?e.push(o[3].fileUri):e.push(...o.map(e=>e.fileUri)),await this.instantiationService.invokeFunction(t=>(0,A.whenEditorClosed)(t,e)),await this.fileService.del(r)})()})}withServices(e){this.instantiationService.invokeFunction(t=>e(t))}preservePayload(e,t){let i=[];!e&&this.environmentService.extensionDevelopmentLocationURI&&(i.push(["extensionDevelopmentPath",this.environmentService.extensionDevelopmentLocationURI.toString()]),this.environmentService.debugExtensionHost.debugId&&i.push(["debugId",this.environmentService.debugExtensionHost.debugId]),this.environmentService.debugExtensionHost.port&&i.push(["inspect-brk-extensions",String(this.environmentService.debugExtensionHost.port)]));let o=t?.forceProfile?this.userDataProfilesService.profiles.find(e=>e.name===t?.forceProfile):void 0;return o&&!o.isDefault&&i.push(["profile",o.name]),i.length?i:void 0}getRecentLabel(e){return(0,w.isFolderToOpen)(e)?this.labelService.getWorkspaceLabel(e.folderUri,{verbose:x.Verbosity.LONG}):(0,w.isWorkspaceToOpen)(e)?this.labelService.getWorkspaceLabel((0,O.getWorkspaceIdentifier)(e.workspaceUri),{verbose:x.Verbosity.LONG}):this.labelService.getUriLabel(e.fileUri,{appendWorkspaceSuffix:!0})}shouldReuse(e=Object.create(null),t){if(e.waitMarkerFileURI)return!0;let i=this.configurationService.getValue("window"),o=t?i?.openFilesInNewWindow||"off":i?.openFoldersInNewWindow||"default",r=(e.preferNewWindow||!!e.forceNewWindow)&&!e.forceReuseWindow;return e.forceNewWindow||e.forceReuseWindow||"on"!==o&&"off"!==o||(r="on"===o),!r}async doOpenEmptyWindow(e){return this.doOpen(void 0,{reuse:e?.forceReuseWindow,payload:this.preservePayload(!0,e)})}async doOpen(e,t){e&&(0,w.isFolderToOpen)(e)&&e.folderUri.scheme===B.Schemas.file&&(0,V.isTemporaryWorkspace)(this.contextService.getWorkspace())?this.withServices(async t=>{let i=t.get(R.IWorkspaceEditingService);await i.updateFolders(0,this.contextService.getWorkspace().folders.length,[{uri:e.folderUri}])}):(t?.reuse&&await this.handleExpectedShutdown(L.ShutdownReason.LOAD),await this.workspaceProvider.open(e,t)||await this.dialogService.prompt({type:K.default.Warning,message:e?(0,F.localize)(14112,"The browser blocked opening a new tab or window for '{0}'. Press 'Retry' to try again.",this.getRecentLabel(e)):(0,F.localize)(14113,"The browser blocked opening a new tab or window. Press 'Retry' to try again."),custom:{markdownDetails:[{markdown:new G.MarkdownString((0,F.localize)(14114,"Please allow pop-ups for this website in your [browser settings]({0}).","https://aka.ms/allow-vscode-popup"),!0)}]},buttons:[{label:(0,F.localize)(14115,"&&Retry"),run:()=>this.workspaceProvider.open(e,t)}],cancelButton:!0}))}async toggleFullScreen(e){let t=this.layoutService.getContainer(e);if(void 0!==e.document.fullscreen)if(e.document.fullscreen)try{return await e.document.exitFullscreen()}catch(e){this.logService.warn("toggleFullScreen(): exitFullscreen failed")}else try{return await t.requestFullscreen()}catch(e){this.logService.warn("toggleFullScreen(): requestFullscreen failed")}let i=e.document;if(void 0!==i.webkitIsFullScreen)try{i.webkitIsFullScreen?i.webkitExitFullscreen():t.webkitRequestFullscreen()}catch{this.logService.warn("toggleFullScreen(): requestFullscreen/exitFullscreen failed")}}async moveTop(e){}async getCursorScreenPoint(){}async getWindows(e){let t=(0,k.getActiveWindow)(),i=(0,k.getWindowId)(t),o=[{id:i,title:t.document.title,workspace:(0,V.toWorkspaceIdentifier)(this.contextService.getWorkspace()),dirty:!1}];if(e.includeAuxiliaryWindows)for(let{window:e}of(0,k.getWindows)()){let t=(0,k.getWindowId)(e);t!==i&&(0,u.isAuxiliaryWindow)(e)&&o.push({id:t,title:e.document.title,parentId:i})}return o}async restart(){this.reload()}async reload(){await this.handleExpectedShutdown(L.ShutdownReason.RELOAD),u.mainWindow.location.reload()}async close(){await this.handleExpectedShutdown(L.ShutdownReason.CLOSE),u.mainWindow.close()}async withExpectedShutdown(e){let t=this.shutdownReason;try{return this.shutdownReason=n.Api,await e()}finally{this.shutdownReason=t}}async handleExpectedShutdown(e){return this.shutdownReason=n.Api,this.lifecycleService.withExpectedShutdown(e)}async getScreenshot(){let e,t=new T.DisposableStore,i=(0,k.createElement)("video");t.add((0,T.toDisposable)(()=>i.remove()));try{i.srcObject=e=await u.mainWindow.navigator.mediaDevices.getDisplayMedia({audio:!1,video:!0}),i.play(),await Promise.all([new Promise(e=>t.add((0,k.addDisposableListener)(i,"loadedmetadata",()=>e()))),new Promise(e=>t.add((0,k.addDisposableListener)(i,"canplaythrough",()=>e())))]);let o=(0,k.createElement)("canvas");o.width=i.videoWidth,o.height=i.videoHeight;let r=o.getContext("2d");if(!r)return;r.drawImage(i,0,0,o.width,o.height);let n=await new Promise(e=>o.toBlob(t=>e(t),"image/jpeg",.95));if(!n)throw Error("Failed to create blob from canvas");let s=await n.bytes();return q.VSBuffer.wrap(s)}catch(e){console.error("Error taking screenshot:",e);return}finally{if(t.dispose(),e)for(let t of e.getTracks())t.stop()}}async getBrowserId(){}async getNativeWindowHandle(e){}};$.__decorator=(0,l.__decorate)([M.memoize],$.prototype,"onDidChangeFocus",null),$.__decorator=(0,l.__decorate)([M.memoize],$.prototype,"onDidChangeActiveWindow",null),$.__decorator=(0,l.__decorate)([M.memoize],$.prototype,"onDidChangeFullScreen",null),$=(0,l.__decorate)([(0,l.__param)(0,f.ILayoutService),(0,l.__param)(1,h.IConfigurationService),(0,l.__param)(2,g.IFileService),(0,l.__param)(3,y.ILabelService),(0,l.__param)(4,b.IBrowserWorkbenchEnvironmentService),(0,l.__param)(5,v.IInstantiationService),(0,l.__param)(6,N.ILifecycleService),(0,l.__param)(7,_.ILogService),(0,l.__param)(8,p.IDialogService),(0,l.__param)(9,S.IWorkspaceContextService),(0,l.__param)(10,C.IUserDataProfilesService)],$);var Q=e.i(74304),j=e.i(322193),Y=T;class X extends Y.Disposable{constructor(){super(),this._onDidSchemeChangeEvent=this._register(new I.Emitter),this.registerListeners()}registerListeners(){(0,j.addMatchMediaChangeListener)(u.mainWindow,"(prefers-color-scheme: dark)",()=>{this._onDidSchemeChangeEvent.fire()}),(0,j.addMatchMediaChangeListener)(u.mainWindow,"(forced-colors: active)",()=>{this._onDidSchemeChangeEvent.fire()})}get onDidChangeColorScheme(){return this._onDidSchemeChangeEvent.event}get dark(){if(u.mainWindow.matchMedia("(prefers-color-scheme: light)").matches);else if(u.mainWindow.matchMedia("(prefers-color-scheme: dark)").matches)return!0;return!1}get highContrast(){return!!u.mainWindow.matchMedia("(forced-colors: active)").matches}}var Z=e.i(317317);let J=class extends ${constructor(e,t,i,o,r,n,s,a,d,c,l,h,p){super(i,o,r,n,s,a,d,c,l,h,p),this._toggleFullScreen=e,this._onDidChangeFullScreen=(()=>{let e=(0,k.getWindowId)(u.mainWindow),i=new I.Emitter;return t?.(t=>{i.fire({windowId:e,fullscreen:t})}),super.onDidChangeFullScreen(o=>{(null==t||o.windowId!==e)&&i.fire(o)}),i.event})()}async toggleFullScreen(e){null!=this._toggleFullScreen&&e===u.mainWindow?await this._toggleFullScreen():await super.toggleFullScreen(e)}get onDidChangeFullScreen(){return this._onDidChangeFullScreen}};J=(0,l.__decorate)([(0,l.__param)(2,f.ILayoutService),(0,l.__param)(3,h.IConfigurationService),(0,l.__param)(4,g.IFileService),(0,l.__param)(5,y.ILabelService),(0,l.__param)(6,b.IBrowserWorkbenchEnvironmentService),(0,l.__param)(7,v.IInstantiationService),(0,l.__param)(8,N.ILifecycleService),(0,l.__param)(9,_.ILogService),(0,l.__param)(10,p.IDialogService),(0,l.__param)(11,S.IWorkspaceContextService),(0,l.__param)(12,C.IUserDataProfilesService)],J),e.s(["default",0,function({toggleFullScreen:e,onDidChangeFullScreen:t}={}){return{[Q.IHostService.toString()]:new m.SyncDescriptor(J,[e,t],!0),[Z.IHostColorSchemeService.toString()]:new m.SyncDescriptor(X,[],!0)}}],993358),e.i(487106);var ee=e.i(123597),et=e.i(359661),ei=e.i(254686),eo=e.i(744194),er=e.i(334326),en=e.i(565836),es=e.i(292608),ea=e.i(242671),ed=e.i(590746),ec=e.i(315380),el=e.i(166969),eu=e.i(340793),eh=e.i(170774),ep=e.i(905670);(i=s||(s={}))[i.ERROR_INVALID_FILE=0]="ERROR_INVALID_FILE";class eg extends Error{constructor(e,t){super(e),this.code=t}}e.s(["JSONEditingError",0,eg,"JSONEditingErrorCode",0,s],431153);var em=e.i(951129);let ev=class{constructor(e,t,i,o){this.fileService=e,this.textModelResolverService=t,this.textFileService=i,this.filesConfigurationService=o,this.queue=new ed.Queue}write(e,t){return Promise.resolve(this.queue.queue(()=>this.doWriteConfiguration(e,t)))}async doWriteConfiguration(e,t){let i=await this.resolveAndValidate(e,!0);try{await this.writeToBuffer(i.object.textEditorModel,t)}finally{i.dispose()}}async writeToBuffer(e,t){let i;try{i=this.filesConfigurationService.enableAutoSaveAfterShortDelay(e.uri);let o=!1;for(let i of t){let t=this.getEdits(e,i)[0];o=!!t&&this.applyEditsToBuffer(t,e)||o}if(o)return this.textFileService.save(e.uri)}finally{i?.dispose()}}applyEditsToBuffer(e,t){let i=t.getPositionAt(e.offset),o=t.getPositionAt(e.offset+e.length),r=new el.Range(i.lineNumber,i.column,o.lineNumber,o.column),n=t.getValueInRange(r);if(e.content!==n){let o=n?ec.EditOperation.replace(r,e.content):ec.EditOperation.insert(i,e.content);return t.pushEditOperations([new eu.Selection(i.lineNumber,i.column,i.lineNumber,i.column)],[o],()=>[]),!0}return!1}getEdits(e,t){let{tabSize:i,insertSpaces:o}=e.getOptions(),r=e.getEOL(),{path:n,value:s}=t;if(!n.length){let e=JSON.stringify(s,null,o?" ".repeat(i):" ");return[{content:e,length:e.length,offset:0}]}return(0,ea.setProperty)(e.getValue(),n,s,{tabSize:i,insertSpaces:o,eol:r})}async resolveModelReference(e){return await this.fileService.exists(e)||await this.textFileService.write(e,"{}",{encoding:"utf8"}),this.textModelResolverService.createModelReference(e)}hasParseErrors(e){let t=[];return(0,es.parse)(e.getValue(),t,{allowTrailingComma:!0,allowEmptyContent:!0}),t.length>0}async resolveAndValidate(e,t){let i=await this.resolveModelReference(e),o=i.object.textEditorModel;return this.hasParseErrors(o)?(i.dispose(),this.reject(s.ERROR_INVALID_FILE)):i}reject(e){return Promise.reject(new eg(this.toErrorMessage(e),e))}toErrorMessage(e){if(e===s.ERROR_INVALID_FILE)return(0,F.localize)(13800,"Unable to write into the file. Please open the file to correct errors/warnings in the file and try again.")}};ev=(0,l.__decorate)([(0,l.__param)(0,g.IFileService),(0,l.__param)(1,ep.ITextModelService),(0,l.__param)(2,eh.ITextFileService),(0,l.__param)(3,em.IFilesConfigurationService)],ev);var ey=e.i(226870),ef=e.i(195603),e_=e.i(325438),eC=e.i(365808),eS=e.i(970672),eb=e.i(536367),eI=e.i(693205),eE=e.i(619122),ew=e.i(704994),eD=e.i(182504),eA=e.i(474320),ex=e.i(575129);e.i(698014),e.i(140331),e.i(471999),e.i(900329),e.i(785266),e.i(181268),e.i(70177),e.i(575210),e.i(890787),e.i(67920);var ek=e.i(321012);class eT{static keyOf(e){if(Array.isArray(e))return e.map(eT.keyOf).join(",");{let{color:t,letter:i}=e;return eb.ThemeIcon.isThemeIcon(i)?`${t}+${i.id}`:`${t}/${i}`}}static{this._classNamesPrefix="monaco-decoration"}constructor(e,t,i){this.themeService=e,this._refCounter=0,this.data=t;const o=(0,eD.hash)(i).toString(36);this.itemColorClassName=`${eT._classNamesPrefix}-itemColor-${o}`,this.itemBadgeClassName=`${eT._classNamesPrefix}-itemBadge-${o}`,this.bubbleBadgeClassName=`${eT._classNamesPrefix}-bubbleBadge-${o}`,this.iconBadgeClassName=`${eT._classNamesPrefix}-iconBadge-${o}`}acquire(){this._refCounter+=1}release(){return 0==--this._refCounter}appendCSSRules(e){Array.isArray(this.data)?this._appendForMany(this.data,e):this._appendForOne(this.data,e)}_appendForOne(e,t){let{color:i,letter:o}=e;(0,e_.createCSSRule)(`.${this.itemColorClassName}`,`color: ${eL(i)};`,t),eb.ThemeIcon.isThemeIcon(o)?this._createIconCSSRule(o,i,t):o&&(0,e_.createCSSRule)(`.${this.itemBadgeClassName}::after`,`content: "${o}"; color: ${eL(i)};`,t)}_appendForMany(e,t){let i,{color:o}=e.find(e=>!!e.color)??e[0];(0,e_.createCSSRule)(`.${this.itemColorClassName}`,`color: ${eL(o)};`,t);let r=[];for(let t of e)if(eb.ThemeIcon.isThemeIcon(t.letter)){i=t.letter;break}else t.letter&&r.push(t.letter);i?this._createIconCSSRule(i,o,t):(r.length&&(0,e_.createCSSRule)(`.${this.itemBadgeClassName}::after`,`content: "${r.join(", ")}"; color: ${eL(o)};`,t),(0,e_.createCSSRule)(`.${this.bubbleBadgeClassName}::after`,`content: "\uea71"; color: ${eL(o)}; font-family: codicon; font-size: 14px; margin-right: 14px; opacity: 0.4;`,t))}_createIconCSSRule(e,t,i){let o=eb.ThemeIcon.getModifier(e);o&&(e=eb.ThemeIcon.modify(e,void 0));let r=(0,ek.getIconRegistry)().getIcon(e.id);if(!r)return;let n=this.themeService.getProductIconTheme().getIcon(r);n&&(0,e_.createCSSRule)(`.${this.iconBadgeClassName}::after`,`content: '${n.fontCharacter}';
|
|
119
|
+
color: ${e.color?eL(e.color.id):eL(t)};
|
|
120
|
+
font-family: ${(0,eC.stringValue)(n.font?.id??"codicon")};
|
|
121
|
+
font-size: 16px;
|
|
122
|
+
margin-right: 14px;
|
|
123
|
+
font-weight: normal;
|
|
124
|
+
${"spin"===o?"animation: codicon-spin 1.5s steps(30) infinite; font-style: normal !important;":""};
|
|
125
|
+
`,i)}removeCSSRules(e){(0,e_.removeCSSRulesContainingSelector)(this.itemColorClassName,e),(0,e_.removeCSSRulesContainingSelector)(this.itemBadgeClassName,e),(0,e_.removeCSSRulesContainingSelector)(this.bubbleBadgeClassName,e),(0,e_.removeCSSRulesContainingSelector)(this.iconBadgeClassName,e)}}class eM{constructor(e){this._themeService=e,this._dispoables=new T.DisposableStore,this._styleElement=(0,e_.createStyleSheet)(void 0,void 0,this._dispoables),this._decorationRules=new Map}dispose(){this._dispoables.dispose()}asDecoration(e,t){e.sort((e,t)=>(t.weight||0)-(e.weight||0));let i=eT.keyOf(e),o=this._decorationRules.get(i);o||(o=new eT(this._themeService,e,i),this._decorationRules.set(i,o),o.appendCSSRules(this._styleElement)),o.acquire();let r=o.itemColorClassName,n=o.itemBadgeClassName,s=o.iconBadgeClassName,a=(0,U.distinct)(e.filter(e=>!(0,eI.isFalsyOrWhitespace)(e.tooltip)).map(e=>e.tooltip)).join(" • "),d=e.some(e=>e.strikethrough);return t&&(n=o.bubbleBadgeClassName,a=(0,F.localize)(13839,"Contains emphasized items")),{labelClassName:r,badgeClassName:n,iconClassName:s,strikethrough:d,tooltip:a,dispose:()=>{o?.release()&&(this._decorationRules.delete(i),o.removeCSSRules(this._styleElement),o=void 0)}}}}class eP{constructor(e){this._data=ey.TernarySearchTree.forUris(e=>!0),this._data.fill(!0,(0,U.asArray)(e))}affectsResource(e){return this._data.hasElementOrSubtree(e)}}class eR{constructor(e,t){this.source=e,this.thenable=t}}function eL(e){return e?(0,ex.asCssVariable)(e):"inherit"}let eN=class{constructor(e,t){this._store=new T.DisposableStore,this._onDidChangeDecorationsDelayed=this._store.add(new I.DebounceEmitter({merge:e=>e.flat()})),this._onDidChangeDecorations=this._store.add(new I.Emitter),this.onDidChangeDecorations=this._onDidChangeDecorations.event,this._provider=new ef.LinkedList,this._decorationStyles=new eM(t),this._data=ey.TernarySearchTree.forUris(t=>e.extUri.ignorePathCasing(t)),this._store.add(this._onDidChangeDecorationsDelayed.event(e=>{this._onDidChangeDecorations.fire(new eP(e))}))}dispose(){this._store.dispose(),this._data.clear()}registerDecorationsProvider(e){let t=this._provider.unshift(e);this._onDidChangeDecorations.fire({affectsResource:()=>!0});let i=()=>{let t=[];for(let[i,o]of this._data)o.delete(e)&&t.push(i);t.length>0&&this._onDidChangeDecorationsDelayed.fire(t)},o=e.onDidChange(t=>{if(t)for(let i of t){let t=this._ensureEntry(i);this._fetchData(t,i,e)}else i()});return(0,T.toDisposable)(()=>{t(),o.dispose(),i()})}_ensureEntry(e){let t=this._data.get(e);return t||(t=new Map,this._data.set(e,t)),t}getDecoration(e,t){let i=[],o=!1,r=this._ensureEntry(e);for(let t of this._provider){let o=r.get(t);void 0===o&&(o=this._fetchData(r,e,t)),!o||o instanceof eR||i.push(o)}if(t){let t=this._data.findSuperstr(e);if(t)for(let e of t)for(let t of e[1].values())!t||t instanceof eR||!t.bubble||(i.push(t),o=!0)}return 0===i.length?void 0:this._decorationStyles.asDecoration(i,o)}_fetchData(e,t,i){let o=e.get(i);o instanceof eR&&(o.source.cancel(),e.delete(i));let r=new ew.CancellationTokenSource,n=i.provideDecorations(t,r.token);if(!(0,ed.isThenable)(n))return r.dispose(),this._keepItem(e,i,t,n);{let o=new eR(r,Promise.resolve(n).then(r=>{e.get(i)===o&&this._keepItem(e,i,t,r)}).catch(t=>{(0,eE.isCancellationError)(t)||e.get(i)!==o||e.delete(i)}).finally(()=>{r.dispose()}));return e.set(i,o),null}}_keepItem(e,t,i,o){let r=o||null,n=e.get(t);return e.set(t,r),(r||n)&&this._onDidChangeDecorationsDelayed.fire(i),r}};eN=(0,l.__decorate)([(0,l.__param)(0,eA.IUriIdentityService),(0,l.__param)(1,eS.IThemeService)],eN);class eO{constructor(e){this.channel=e}async request(e,t){let[i,o]=await this.channel.call("request",[e],t);return{res:i,stream:(0,q.bufferToStream)(o)}}async resolveProxy(e){return this.channel.call("resolveProxy",[e])}async lookupAuthorization(e){return this.channel.call("lookupAuthorization",[e])}async lookupKerberosAuthorization(e){return this.channel.call("lookupKerberosAuthorization",[e])}async loadCertificates(){return this.channel.call("loadCertificates")}}var eF=e.i(436771),eK=e.i(318581),eW=e.i(285526);class ez extends Error{constructor(){super("Offline"),this.name=this.message}}async function eV(e,t,i){if(t.isCancellationRequested)throw(0,eE.canceled)();let o=new AbortController,r=t.onCancellationRequested(()=>o.abort()),n=e.timeout?AbortSignal.any([o.signal,AbortSignal.timeout(e.timeout)]):o.signal;try{var s;let t,i={method:e.type||"GET",headers:function(e){if(e.headers||e.user||e.password||e.proxyAuthorization){let t=new Headers;for(let i in e.headers){switch(i.toLowerCase()){case"user-agent":case"accept-encoding":case"content-length":continue}let o=e.headers[i];if("string"==typeof o)t.set(i,o);else if(Array.isArray(o))for(let e of o)t.append(i,e)}return(e.user||e.password)&&t.set("Authorization","Basic "+btoa(`${e.user||""}:${e.password||""}`)),e.proxyAuthorization&&t.set("Proxy-Authorization",e.proxyAuthorization),t}}(e),body:e.data,signal:n};e.disableCache&&(i.cache="no-store");let o=await fetch(e.url||"",i);return{res:{statusCode:o.status,headers:(s=o,t=Object.create(null),s.headers.forEach((e,i)=>{t[i]?Array.isArray(t[i])?t[i].push(e):t[i]=[t[i],e]:t[i]=e}),t)},stream:(0,q.bufferToStream)(q.VSBuffer.wrap(new Uint8Array(await o.arrayBuffer())))}}catch(t){if(i&&!i())throw new ez;if(t?.name==="AbortError")throw(0,eE.canceled)();if(t?.name==="TimeoutError")throw Error(`Fetch timeout: ${e.timeout}ms`);throw t}finally{r.dispose()}}var eB=e.i(37305),eU=e.i(753062);let eH=class extends eW.AbstractRequestService{constructor(e,t,i){const o=i.createLogger("network",{name:(0,F.localize)(14260,"Network"),group:eU.windowLogGroup}),r=new eB.LogService(o);super(r),this.remoteAgentService=e,this.configurationService=t,this._register(o),this._register(r)}async request(e,t){try{e.proxyAuthorization||(e.proxyAuthorization=this.configurationService.inspect("http.proxyAuthorization").userLocalValue);let i=await this.logAndRequest(e,()=>eV(e,t,()=>u.mainWindow.navigator.onLine)),o=this.remoteAgentService.getConnection();if(o&&405===i.res.statusCode)return this._makeRemoteRequest(o,e,t);return i}catch(o){let i=this.remoteAgentService.getConnection();if(i)return this._makeRemoteRequest(i,e,t);throw o}}async resolveProxy(e){}async lookupAuthorization(e){}async lookupKerberosAuthorization(e){}async loadCertificates(){return[]}_makeRemoteRequest(e,t,i){return e.withChannel("request",e=>new eO(e).request(t,i))}};eH=(0,l.__decorate)([(0,l.__param)(0,eF.IRemoteAgentService),(0,l.__param)(1,h.IConfigurationService),(0,l.__param)(2,_.ILoggerService)],eH),eK.CommandsRegistry.registerCommand("_workbench.fetchJSON",async function(e,t,i){let o=await fetch(t,{method:i,headers:{Accept:"application/json"}});if(o.ok)return o.json();throw Error(o.statusText)});var eq=e.i(802136),eG=T;e.i(601293),e.i(168221);var e$=e.i(771275);class eQ extends eG.Disposable{constructor(){super(...arguments),this.handlers=new Set}open(e,t){let i=[...this.handlers.values()];return(0,ed.first)(i.map(i=>()=>i.handleURL(e,t)),void 0,!1).then(e=>e||!1)}registerHandler(e){return this.handlers.add(e),(0,eG.toDisposable)(()=>this.handlers.delete(e))}}var ej=e.i(65579),eY=e.i(347589);class eX{constructor(e,t){this.urlService=e,this.productService=t}async open(e,t){return!t?.openExternal&&!!(0,B.matchesScheme)(e,this.productService.urlProtocol)&&("string"==typeof e&&(e=eq.URI.parse(e)),this.urlService.open(e,{trusted:!0}))}}let eZ=class extends eQ{constructor(e,t,i){super(),this.provider=e.options?.urlCallbackProvider,this.provider&&this._register(this.provider.onCallback(e=>this.open(e,{trusted:!0}))),this._register(t.registerOpener(new eX(this,i)))}create(e){return this.provider?this.provider.create(e):eq.URI.parse("unsupported://")}};eZ=(0,l.__decorate)([(0,l.__param)(0,b.IBrowserWorkbenchEnvironmentService),(0,l.__param)(1,ej.IOpenerService),(0,l.__param)(2,eY.IProductService)],eZ);class eJ{constructor(){this._providers=new Map}registerCanonicalUriProvider(e){return this._providers.set(e.scheme,e),{dispose:()=>this._providers.delete(e.scheme)}}async provideCanonicalUri(e,t,i){let o=this._providers.get(e.scheme);if(o)return o.provideCanonicalUri(e,t,i)}}var e0=e.i(677516),e1=e.i(404214),e2=e.i(939496);let e3=class{constructor(e,t){this.requestService=e,this.fileService=t}async download(e,t,i=ew.CancellationToken.None){if(e.scheme===B.Schemas.file||e.scheme===B.Schemas.vscodeRemote)return void await this.fileService.copy(e,t);let o={type:"GET",url:e.toString(!0)},r=await this.requestService.request(o,i);if(200===r.res.statusCode)await this.fileService.writeFile(t,r.stream);else{let e=await (0,eW.asTextOrError)(r);throw Error(`Expected 200, got back ${r.res.statusCode} instead.
|
|
126
|
+
|
|
127
|
+
${e}`)}}};e3=(0,l.__decorate)([(0,l.__param)(0,ee.IRequestService),(0,l.__param)(1,g.IFileService)],e3);var e8=e.i(292035),e5=e.i(464172),e6=e.i(772383),e7=e.i(693162),e9=e.i(927718);let e4=a=class{constructor(e,t,i,o){this.localUserHome=e,this.remoteAgentService=t,this.environmentService=i,this.contextService=o,this.resolveOS=(async()=>{let e=await this.remoteAgentService.getEnvironment();return e?.os||H.OS})(),this.resolveUserHome=(async()=>{let t=await this.remoteAgentService.getEnvironment();return this.maybeUnresolvedUserHome=t?.userHome??e})()}hasValidBasename(e,t,i){return"string"==typeof t||void 0===t?this.resolveOS.then(i=>this.doHasValidBasename(e,i,t)):this.doHasValidBasename(e,t,i)}doHasValidBasename(e,t,i){return e.scheme!==B.Schemas.file&&e.scheme!==B.Schemas.vscodeRemote||(0,P.isValidBasename)(i??(0,e7.basename)(e),t===H.OperatingSystem.Windows)}get defaultUriScheme(){return a.findDefaultUriScheme(this.environmentService,this.contextService)}static findDefaultUriScheme(e,t){if(e.remoteAuthority)return B.Schemas.vscodeRemote;let i=(0,e9.getVirtualWorkspaceScheme)(t.getWorkspace());if(i)return i;let o=t.getWorkspace().folders[0];if(o)return o.uri.scheme;let r=t.getWorkspace().configuration;return r?r.scheme:B.Schemas.file}userHome(e){return e?.preferLocal?this.localUserHome:this.resolveUserHome}get resolvedUserHome(){return this.maybeUnresolvedUserHome}get path(){return this.resolveOS.then(e=>e===H.OperatingSystem.Windows?e$.win32:e$.posix)}async fileURI(e){let t="";if(await this.resolveOS===H.OperatingSystem.Windows&&(e=e.replace(/\\/g,"/")),"/"===e[0]&&"/"===e[1]){let i=e.indexOf("/",2);-1===i?(t=e.substring(2),e="/"):(t=e.substring(2,i),e=e.substring(i)||"/")}return eq.URI.from({scheme:B.Schemas.file,authority:t,path:e,query:"",fragment:""})}};e4=a=(0,l.__decorate)([(0,l.__param)(1,eF.IRemoteAgentService),(0,l.__param)(2,e6.IWorkbenchEnvironmentService),(0,l.__param)(3,S.IWorkspaceContextService)],e4);var te=T;let tt=new class{constructor(){this.todo=[],this.add=e=>{this.todo.push(e)}}take(e,t){this.add=i=>t.createInstance(i,e),this.todo.forEach(this.add),this.todo=[]}},ti=class extends te.Disposable{constructor(e){super(),this.markInactive=this._register(new ed.RunOnceScheduler(()=>{this.isActive=!1,this.changeEmitter.fire(!1)},1e4)),this.changeEmitter=this._register(new I.Emitter),this.active=0,this.isActive=!0,this.onDidChangeIsActive=this.changeEmitter.event,this._register((0,ed.runWhenGlobalIdle)(()=>tt.take(this,e)))}markActive(e){if(e?.extendOnly&&!this.isActive)return te.Disposable.None;if(e?.whenHeldFor){let t=new te.DisposableStore;return t.add((0,ed.disposableTimeout)(()=>t.add(this.markActive()),e.whenHeldFor)),t}return 1==++this.active&&(this.isActive=!0,this.changeEmitter.fire(!0),this.markInactive.cancel()),(0,te.toDisposable)(()=>{0==--this.active&&this.markInactive.schedule()})}};ti=(0,l.__decorate)([(0,l.__param)(0,v.IInstantiationService)],ti);var to=T,tr=e.i(652731),tn=e.i(7542),ts=T;let ta=class extends ts.Disposable{constructor(e,t){super(),this.logService=e,this.configurationService=t,this.participants=new ef.LinkedList}addFileOperationParticipant(e){let t=this.participants.push(e);return(0,ts.toDisposable)(()=>t())}async participate(e,t,i,o){let r=this.configurationService.getValue("files.participants.timeout");if("number"==typeof r&&!(r<=0))for(let n of this.participants)try{await n.participate(e,t,i,r,o)}catch(e){this.logService.warn(e)}}dispose(){this.participants.clear(),super.dispose()}};ta=(0,l.__decorate)([(0,l.__param)(0,_.ILogService),(0,l.__param)(1,h.IConfigurationService)],ta);var td=e.i(34487),tc=e.i(927842),tl=T,tu=e.i(216822);let th=class extends tl.Disposable{get length(){return this.saveParticipants.size}constructor(e,t){super(),this.logService=e,this.progressService=t,this.saveParticipants=new ef.LinkedList}addSaveParticipant(e){let t=this.saveParticipants.push(e);return(0,tl.toDisposable)(()=>t())}async participate(e,t,i,o){let r=new ew.CancellationTokenSource(o);e.model?.pushStackElement(),i.report({message:(0,F.localize)(14653,"Running Code Actions and Formatters...")});let n=!1;if(await this.progressService.withProgress({priority:tu.NotificationPriority.URGENT,location:td.ProgressLocation.Notification,cancellable:(0,F.localize)(14654,"Skip"),delay:e.isDirty()?5e3:3e3},async i=>{for(let o of Array.from(this.saveParticipants).sort((e,t)=>(e.ordinal??0)-(t.ordinal??0))){if(r.token.isCancellationRequested||e.isDisposed())break;try{let n=o.participate(e,t,i,r.token);await (0,ed.raceCancellation)(n,r.token)}catch(e){(0,eE.isCancellationError)(e)?r.token.isCancellationRequested||(r.cancel(),n=!0):this.logService.error(e)}}},()=>{r.cancel()}),e.model?.pushStackElement(),r.dispose(),n)throw new eE.CancellationError}dispose(){this.saveParticipants.clear(),super.dispose()}};th=(0,l.__decorate)([(0,l.__param)(0,_.ILogService),(0,l.__param)(1,tc.IProgressService)],th);let tp=class extends to.Disposable{constructor(e,t,i,o){super(),this.fileService=e,this.workingCopyService=t,this.uriIdentityService=o,this._onWillRunWorkingCopyFileOperation=this._register(new I.AsyncEmitter),this.onWillRunWorkingCopyFileOperation=this._onWillRunWorkingCopyFileOperation.event,this._onDidFailWorkingCopyFileOperation=this._register(new I.AsyncEmitter),this.onDidFailWorkingCopyFileOperation=this._onDidFailWorkingCopyFileOperation.event,this._onDidRunWorkingCopyFileOperation=this._register(new I.AsyncEmitter),this.onDidRunWorkingCopyFileOperation=this._onDidRunWorkingCopyFileOperation.event,this.correlationIds=0,this.workingCopyProviders=[],this.fileOperationParticipants=this._register(i.createInstance(ta)),this.saveParticipants=this._register(i.createInstance(th)),this._register(this.registerWorkingCopyProvider(e=>this.workingCopyService.workingCopies.filter(t=>this.fileService.hasProvider(e)?this.uriIdentityService.extUri.isEqualOrParent(t.resource,e):this.uriIdentityService.extUri.isEqual(t.resource,e))))}create(e,t,i){return this.doCreateFileOrFolder(e,!0,t,i)}createFolder(e,t,i){return this.doCreateFileOrFolder(e,!1,t,i)}async doCreateFileOrFolder(e,t,i,o){let r;if(0===e.length)return[];if(t){let t=(await ed.Promises.settled(e.map(e=>this.fileService.canCreateFile(e.resource,{overwrite:e.overwrite})))).find(e=>e instanceof Error);if(t instanceof Error)throw t}let n=e.map(e=>({target:e.resource}));await this.runFileOperationParticipants(n,tr.FileOperation.CREATE,o,i);let s={correlationId:this.correlationIds++,operation:tr.FileOperation.CREATE,files:n};await this._onWillRunWorkingCopyFileOperation.fireAsync(s,ew.CancellationToken.None);try{r=t?await ed.Promises.settled(e.map(e=>this.fileService.createFile(e.resource,e.contents,{overwrite:e.overwrite}))):await ed.Promises.settled(e.map(e=>this.fileService.createFolder(e.resource)))}catch(e){throw await this._onDidFailWorkingCopyFileOperation.fireAsync(s,ew.CancellationToken.None),e}return await this._onDidRunWorkingCopyFileOperation.fireAsync(s,ew.CancellationToken.None),r}async move(e,t,i){return this.doMoveOrCopy(e,!0,t,i)}async copy(e,t,i){return this.doMoveOrCopy(e,!1,t,i)}async doMoveOrCopy(e,t,i,o){let r=[];for(let{file:{source:i,target:o},overwrite:r}of e){let e=await (t?this.fileService.canMove(i,o,r):this.fileService.canCopy(i,o,r));if(e instanceof Error)throw e}let n=e.map(e=>e.file);await this.runFileOperationParticipants(n,t?tr.FileOperation.MOVE:tr.FileOperation.COPY,o,i);let s={correlationId:this.correlationIds++,operation:t?tr.FileOperation.MOVE:tr.FileOperation.COPY,files:n};await this._onWillRunWorkingCopyFileOperation.fireAsync(s,ew.CancellationToken.None);try{for(let{file:{source:i,target:o},overwrite:n}of e){if(!this.uriIdentityService.extUri.isEqual(i,o)){let e=t?[...this.getDirty(i),...this.getDirty(o)]:this.getDirty(o);await ed.Promises.settled(e.map(e=>e.revert({soft:!0})))}t?r.push(await this.fileService.move(i,o,n)):r.push(await this.fileService.copy(i,o,n))}}catch(e){throw await this._onDidFailWorkingCopyFileOperation.fireAsync(s,ew.CancellationToken.None),e}return await this._onDidRunWorkingCopyFileOperation.fireAsync(s,ew.CancellationToken.None),r}async delete(e,t,i){for(let t of e){let e=await this.fileService.canDelete(t.resource,{recursive:t.recursive,useTrash:t.useTrash});if(e instanceof Error)throw e}let o=e.map(e=>({target:e.resource}));await this.runFileOperationParticipants(o,tr.FileOperation.DELETE,i,t);let r={correlationId:this.correlationIds++,operation:tr.FileOperation.DELETE,files:o};for(let t of(await this._onWillRunWorkingCopyFileOperation.fireAsync(r,ew.CancellationToken.None),e)){let e=this.getDirty(t.resource);await ed.Promises.settled(e.map(e=>e.revert({soft:!0})))}try{for(let t of e)await this.fileService.del(t.resource,{recursive:t.recursive,useTrash:t.useTrash})}catch(e){throw await this._onDidFailWorkingCopyFileOperation.fireAsync(r,ew.CancellationToken.None),e}await this._onDidRunWorkingCopyFileOperation.fireAsync(r,ew.CancellationToken.None)}addFileOperationParticipant(e){return this.fileOperationParticipants.addFileOperationParticipant(e)}runFileOperationParticipants(e,t,i,o){return this.fileOperationParticipants.participate(e,t,i,o)}get hasSaveParticipants(){return this.saveParticipants.length>0}addSaveParticipant(e){return this.saveParticipants.addSaveParticipant(e)}runSaveParticipants(e,t,i,o){return this.saveParticipants.participate(e,t,i,o)}registerWorkingCopyProvider(e){let t=(0,U.insert)(this.workingCopyProviders,e);return(0,to.toDisposable)(t)}getDirty(e){let t=new Set;for(let i of this.workingCopyProviders)for(let o of i(e))o.isDirty()&&t.add(o);return Array.from(t)}};tp=(0,l.__decorate)([(0,l.__param)(0,g.IFileService),(0,l.__param)(1,tn.IWorkingCopyService),(0,l.__param)(2,v.IInstantiationService),(0,l.__param)(3,eA.IUriIdentityService)],tp);var tg=e.i(380928),tm=e.i(782139),tv=T,ty=e.i(697786),tf=e.i(621826),t_=e.i(82648),tC=e.i(425024),tS=e.i(786091),tb=e.i(774260),tI=e.i(701575),tE=e.i(140889),tw=e.i(364078);let tD=tC.ExtensionsRegistry.registerExtensionPoint({extensionPoint:"resourceLabelFormatters",jsonSchema:{description:(0,F.localize)(14142,"Contributes resource label formatting rules."),type:"array",items:{type:"object",required:["scheme","formatting"],properties:{scheme:{type:"string",description:(0,F.localize)(14143,'URI scheme on which to match the formatter on. For example "file". Simple glob patterns are supported.')},authority:{type:"string",description:(0,F.localize)(14144,"URI authority on which to match the formatter on. Simple glob patterns are supported.")},formatting:{description:(0,F.localize)(14145,"Rules for formatting uri resource labels."),type:"object",properties:{label:{type:"string",description:(0,F.localize)(14146,"Label rules to display. For example: myLabel:/${path}. ${path}, ${scheme}, ${authority} and ${authoritySuffix} are supported as variables.")},separator:{type:"string",description:(0,F.localize)(14147,"Separator to be used in the uri label display. '/' or '' as an example.")},stripPathStartingSeparator:{type:"boolean",description:(0,F.localize)(14148,"Controls whether `${path}` substitutions should have starting separator characters stripped.")},tildify:{type:"boolean",description:(0,F.localize)(14149,"Controls if the start of the uri label should be tildified when possible.")},workspaceSuffix:{type:"string",description:(0,F.localize)(14150,"Suffix appended to the workspace label.")}}}}}}}),tA=/\//g,tx=/[\\\/]/g,tk=/\$\{(scheme|authoritySuffix|authority|path|(query)\.(.+?))\}/g,tT=class{constructor(e){this.formattersDisposables=new Map,tD.setHandler((t,i)=>{for(let t of i.added)for(let i of t.value){let o={...i};"string"!=typeof o.formatting.label&&(o.formatting.label="${authority}${path}"),"string"!=typeof o.formatting.separator&&(o.formatting.separator=e$.sep),!(0,tb.isProposedApiEnabled)(t.description,"contribLabelFormatterWorkspaceTooltip")&&o.formatting.workspaceTooltip&&(o.formatting.workspaceTooltip=void 0),this.formattersDisposables.set(o,e.registerFormatter(o))}for(let e of i.removed)for(let t of e.value)(0,tv.dispose)(this.formattersDisposables.get(t))})}};tT=(0,l.__decorate)([(0,l.__param)(0,y.ILabelService)],tT),tf.Registry.as(ty.Extensions.Workbench).registerWorkbenchContribution(tT,L.LifecyclePhase.Restored);let tM=class extends tv.Disposable{constructor(e,t,i,o,r,n){super(),this.environmentService=e,this.contextService=t,this.pathService=i,this.remoteAgentService=o,this._onDidChangeFormatters=this._register(new I.Emitter({leakWarningThreshold:400})),this.onDidChangeFormatters=this._onDidChangeFormatters.event,this.os=H.OS,this.userHome=i.defaultUriScheme===B.Schemas.file?this.pathService.userHome({preferLocal:!0}):void 0;const s=this.storedFormattersMemento=new tw.Memento("cachedResourceLabelFormatters2",r);this.storedFormatters=s.getMemento(tI.StorageScope.PROFILE,tI.StorageTarget.MACHINE),this.formatters=this.storedFormatters?.formatters?.slice()||[],this.resolveRemoteEnvironment()}async resolveRemoteEnvironment(){let e=await this.remoteAgentService.getEnvironment();this.os=e?.os??H.OS,this.userHome=await this.pathService.userHome()}findFormatting(e){let t;for(let i of this.formatters)if(i.scheme===e.scheme){if(!i.authority&&(!t||i.priority)){t=i;continue}if(!i.authority)continue;(0,tS.match)(i.authority,e.authority,{ignoreCase:!0})&&(!t?.authority||i.authority.length>t.authority.length||i.authority.length===t.authority.length&&i.priority)&&(t=i)}return t?t.formatting:void 0}getUriLabel(e,t={}){let i=this.findFormatting(e);i&&t.separator&&(i={...i,separator:t.separator});let o=this.doGetUriLabel(e,i,t);return!i&&t.separator&&(o=this.adjustPathSeparators(o,t.separator)),t.appendWorkspaceSuffix&&i?.workspaceSuffix&&(o=this.appendWorkspaceSuffix(o,e)),o}doGetUriLabel(e,t,i={}){if(!t)return(0,t_.getPathLabel)(e,{os:this.os,tildify:this.userHome?{userHome:this.userHome}:void 0,relative:i.relative?{noPrefix:i.noPrefix,getWorkspace:()=>this.contextService.getWorkspace(),getWorkspaceFolder:e=>this.contextService.getWorkspaceFolder(e)}:void 0});if(i.relative&&this.contextService){let o=this.contextService.getWorkspaceFolder(e);if(!o){let t=this.contextService.getWorkspace().folders.at(0);t&&e.scheme!==t.uri.scheme&&e.path.startsWith(e$.posix.sep)&&(o=this.contextService.getWorkspaceFolder(t.uri.with({path:e.path})))}if(o){let r=this.formatUri(o.uri,t,i.noPrefix),n=this.formatUri(e,t,i.noPrefix),s=0;for(;n[s]&&n[s]===r[s];)s++;if(n[s]&&n[s]!==t.separator?s===r.length&&o.uri.path===e$.posix.sep&&(n=n.substring(s)):n=n.substring(1+s),this.contextService.getWorkspace().folders.length>1&&!i.noPrefix){let e=o?.name??(0,e7.basenameOrAuthority)(o.uri);n=n?`${e} • ${n}`:e}return n}}return this.formatUri(e,t,i.noPrefix)}getUriBasenameLabel(e){let t=this.findFormatting(e),i=this.doGetUriLabel(e,t);return(t?.separator===e$.win32.sep?e$.win32:t?.separator===e$.posix.sep?e$.posix:this.os===H.OperatingSystem.Windows?e$.win32:e$.posix).basename(i)}getWorkspaceLabel(e,t){if((0,V.isWorkspace)(e)){let i=(0,V.toWorkspaceIdentifier)(e);return(0,V.isSingleFolderWorkspaceIdentifier)(i)||(0,V.isWorkspaceIdentifier)(i)?this.getWorkspaceLabel(i,t):""}return eq.URI.isUri(e)?this.doGetSingleFolderWorkspaceLabel(e,t):(0,V.isSingleFolderWorkspaceIdentifier)(e)?this.doGetSingleFolderWorkspaceLabel(e.uri,t):(0,V.isWorkspaceIdentifier)(e)?this.doGetWorkspaceLabel(e.configPath,t):""}doGetWorkspaceLabel(e,t){let i;if((0,V.isUntitledWorkspace)(e,this.environmentService))return(0,F.localize)(14151,"Untitled (Workspace)");if((0,V.isTemporaryWorkspace)(e))return(0,F.localize)(14152,"Workspace");let o=(0,e7.basename)(e);switch(o.endsWith(V.WORKSPACE_EXTENSION)&&(o=o.substr(0,o.length-V.WORKSPACE_EXTENSION.length-1)),t?.verbose){case x.Verbosity.SHORT:i=o;break;case x.Verbosity.LONG:i=(0,F.localize)(14153,"{0} (Workspace)",this.getUriLabel((0,e7.joinPath)((0,e7.dirname)(e),o)));break;case x.Verbosity.MEDIUM:default:i=(0,F.localize)(14154,"{0} (Workspace)",o)}return t?.verbose===x.Verbosity.SHORT?i:this.appendWorkspaceSuffix(i,e)}doGetSingleFolderWorkspaceLabel(e,t){let i;switch(t?.verbose){case x.Verbosity.LONG:i=this.getUriLabel(e);break;case x.Verbosity.SHORT:case x.Verbosity.MEDIUM:default:i=(0,e7.basename)(e)||e$.posix.sep}return t?.verbose===x.Verbosity.SHORT?i:this.appendWorkspaceSuffix(i,e)}getSeparator(e,t){let i=this.findFormatting(eq.URI.from({scheme:e,authority:t}));return i?.separator||e$.posix.sep}getHostLabel(e,t){let i=this.findFormatting(eq.URI.from({scheme:e,authority:t}));return i?.workspaceSuffix||t||""}getHostTooltip(e,t){let i=this.findFormatting(eq.URI.from({scheme:e,authority:t}));return i?.workspaceTooltip}registerCachedFormatter(e){let t=this.storedFormatters.formatters??=[],i=t.findIndex(t=>t.scheme===e.scheme&&t.authority===e.authority);if(-1===i&&t.length>=50&&(i=49),-1===i)t.unshift(e);else{for(let e=i;e>0;e--)t[e]=t[e-1];t[0]=e}return this.storedFormattersMemento.saveMemento(),this.registerFormatter(e)}registerFormatter(e){return this.formatters.push(e),this._onDidChangeFormatters.fire({scheme:e.scheme}),{dispose:()=>{this.formatters=this.formatters.filter(t=>t!==e),this._onDidChangeFormatters.fire({scheme:e.scheme})}}}formatUri(e,t,i){var o;let r=t.label.replace(tk,(i,o,r,n)=>{switch(o){case"scheme":return e.scheme;case"authority":return e.authority;case"authoritySuffix":{let t=e.authority.indexOf("+");return -1===t?e.authority:e.authority.slice(t+1)}case"path":return t.stripPathStartingSeparator?e.path.slice(+(e.path[0]===t.separator)):e.path;default:if("query"===r){let{query:t}=e;if(t&&"{"===t[0]&&"}"===t[t.length-1])try{return JSON.parse(t)[n]||""}catch{}}return""}});return t.normalizeDriveLetter&&(o=r)&&":"===o[2]&&(r=r.charAt(1).toUpperCase()+r.substr(2)),t.tildify&&!i&&this.userHome&&(r=(0,t_.tildify)(r,this.userHome.fsPath,this.os)),t.authorityPrefix&&e.authority&&(r=t.authorityPrefix+r),this.adjustPathSeparators(r,t.separator)}adjustPathSeparators(e,t){return e.replace(this.os===H.OperatingSystem.Windows?tx:tA,t)}appendWorkspaceSuffix(e,t){let i=this.findFormatting(t),o=i&&"string"==typeof i.workspaceSuffix?i.workspaceSuffix:void 0;return o?`${e} [${o}]`:e}};tM=(0,l.__decorate)([(0,l.__param)(0,e6.IWorkbenchEnvironmentService),(0,l.__param)(1,S.IWorkspaceContextService),(0,l.__param)(2,e8.IPathService),(0,l.__param)(3,eF.IRemoteAgentService),(0,l.__param)(4,tE.IStorageService),(0,l.__param)(5,N.ILifecycleService)],tM);var tP=e.i(107707),tR=e.i(63876),tL=e.i(897241),tN=T,tO=e.i(568101),tF=e.i(9753),tK=e.i(455162),tW=e.i(608326),tz=e.i(967602),tV=e.i(17565),tB=e.i(325501),tU=e.i(981399);let tH="cmp-ext-",tq=new tO.RawContextKey("isRunningUnificationExperiment",!1),tG="chat.extensionUnification.enabled",t$=class extends tN.Disposable{get state(){return this._state}constructor(e,t,i,o,r,n,s){super(),this._assignmentService=e,this._contextKeyService=t,this._configurationService=i,this._extensionEnablementService=o,this._extensionManagementService=r,this._extensionService=n,this._state=new tQ(!1,!1,!1,[]),this._onDidStateChange=this._register(new I.Emitter),this.onDidStateChange=this._onDidStateChange.event,this._onDidChangeExtensionUnificationState=this._register(new I.Emitter),this._onDidChangeExtensionUnificationSetting=this._register(new I.Emitter),this._completionsExtensionId=s.defaultChatAgent?.extensionId.toLowerCase(),this._chatExtensionId=s.defaultChatAgent?.chatExtensionId.toLowerCase();const a=[this._completionsExtensionId,this._chatExtensionId].filter(e=>!!e);this.isRunningUnificationExperiment=tq.bindTo(this._contextKeyService),this._assignmentService.addTelemetryAssignmentFilter({exclude:e=>e.startsWith(tH)&&this._state.extensionUnification!==this._configurationService.getValue(tG),onDidChange:I.Event.any(this._onDidChangeExtensionUnificationState.event,this._onDidChangeExtensionUnificationSetting.event)}),this._register(this._extensionEnablementService.onEnablementChanged(e=>{e.some(e=>a.includes(e.identifier.id.toLowerCase()))&&this._update()})),this._register(this._configurationService.onDidChangeConfiguration(e=>{e.affectsConfiguration(tG)&&(this._update(),this._onDidChangeExtensionUnificationSetting.fire())})),this._register(this._extensionService.onDidChangeExtensions(({added:e})=>{e.some(e=>a.includes(e.identifier.value.toLowerCase()))&&this._update()})),this._register(this._assignmentService.onDidRefetchAssignments(()=>this._update())),this._update()}async _update(){let[e,t,i]=await Promise.all([this._assignmentService.getTreatment("inlineCompletionsUnificationCode"),this._assignmentService.getTreatment("inlineCompletionsUnificationModel"),this._isExtensionUnificationActive()]),o=this._configurationService.getValue(tG)===i,r=await this._assignmentService.getCurrentExperiments(),n=new tQ(!0===e,!0===t,i,r?.filter(e=>e.startsWith("cmp-cht-")||o&&e.startsWith(tH))??[]);if(this._state.equals(n))return;let s=this._state;this._state=n,this.isRunningUnificationExperiment.set(this._state.codeUnification||this._state.modelUnification||this._state.extensionUnification),this._onDidStateChange.fire(),s.extensionUnification!==this._state.extensionUnification&&this._onDidChangeExtensionUnificationState.fire()}async _isExtensionUnificationActive(){if(!this._configurationService.getValue(tG)||!this._completionsExtensionId||!this._chatExtensionId)return!1;let[e,t,i]=await Promise.all([this._extensionService.getExtension(this._completionsExtensionId),this._extensionService.getExtension(this._chatExtensionId),this._extensionManagementService.getInstalled(tW.ExtensionType.User)]);if(!t||e)return!1;let o=i.filter(e=>e.identifier.id.toLowerCase()===this._completionsExtensionId);if(0===o.length)return!1;let r=o.some(e=>this._extensionEnablementService.getEnablementState(e)===tV.EnablementState.DisabledByUnification);return!!t&&r}};t$=(0,l.__decorate)([(0,l.__param)(0,tz.IWorkbenchAssignmentService),(0,l.__param)(1,tF.IContextKeyService),(0,l.__param)(2,h.IConfigurationService),(0,l.__param)(3,tB.IWorkbenchExtensionEnablementService),(0,l.__param)(4,tK.IExtensionManagementService),(0,l.__param)(5,tU.IExtensionService),(0,l.__param)(6,eY.IProductService)],t$);class tQ{constructor(e,t,i,o){this.codeUnification=e,this.modelUnification=t,this.extensionUnification=i,this.expAssignments=o}equals(e){return this.codeUnification===e.codeUnification&&this.modelUnification===e.modelUnification&&this.extensionUnification===e.extensionUnification&&(0,U.equals)(this.expAssignments,e.expAssignments)}}var tj=e.i(202822),tY=e.i(541410),tX=e.i(19025),tZ=T;e.i(71224);var tJ=T;e.i(295443);var t0=e.i(532816),t1=e.i(896344);class t2 extends tJ.Disposable{constructor(e){super(),this.value=e,this._totalTime=0,this._startTime=void 0,this._register((0,t1.autorun)(e=>{if(this.value.read(e))this._startTime=Date.now();else if(void 0!==this._startTime){let e=Date.now()-this._startTime;this._totalTime+=e,this._startTime=void 0}}))}totalTimeMs(){return void 0!==this._startTime?this._totalTime+(Date.now()-this._startTime):this._totalTime}fireWhenTimeIncreasedBy(e,t){let i,o=new tJ.DisposableStore,r=0;return o.add((0,t1.autorun)(n=>{if(this.value.read(n)){i=Date.now();let s=e-r;if(s<=0){t(),o.dispose();return}let a=setTimeout(()=>{r+=Date.now()-i,i=void 0,t(),o.dispose()},s);n.store.add((0,tJ.toDisposable)(()=>{clearTimeout(a),void 0!==i&&(r+=Date.now()-i,i=void 0)}))}})),o}}var t3=e.i(290231),t8=e.i(229081),t5=e.i(314122);let t6=class extends tZ.Disposable{constructor(e,t){super(),this._logService=t;const i=this._register(e.createInstance(t7));this.isVsCodeFocused=i.isVsCodeFocused,this.isUserActive=i.isUserActive,this._isTracingEnabled=(0,t8.observableFromEvent)(this,this._logService.onDidChangeLogLevel,()=>this._logService.getLevel()===t3.LogLevel.Trace);const o=function(e,t){let i,o=(0,t0.observableValue)("wasTrueRecently",!1);return t.add((0,t1.autorun)(t=>{e.read(t)?(o.set(!0,void 0),void 0!==i&&(clearTimeout(i),i=void 0)):i=setTimeout(()=>{o.set(!1,void 0),i=void 0},6e4)})),t.add((0,tJ.toDisposable)(()=>{void 0!==i&&clearTimeout(i)})),o}(this.isUserActive,this._store);this.hasUserAttention=(0,t5.derived)(this,e=>o.read(e)),this._timeKeeper=this._register(new t2(this.hasUserAttention)),this._register((0,t1.autorun)(e=>{this._isTracingEnabled.read(e)&&(e.store.add((0,t1.autorun)(e=>{let t=this.isVsCodeFocused.read(e);this._logService.trace(`[UserAttentionService] VS Code focus changed: ${t}`)})),e.store.add((0,t1.autorun)(e=>{let t=this.hasUserAttention.read(e);this._logService.trace(`[UserAttentionService] User attention changed: ${t}`)})))}))}fireAfterGivenFocusTimePassed(e,t){return this._timeKeeper.fireWhenTimeIncreasedBy(e,t)}get totalFocusTimeMs(){return this._timeKeeper.totalTimeMs()}};t6=(0,l.__decorate)([(0,l.__param)(0,v.IInstantiationService),(0,l.__param)(1,_.ILogService)],t6);let t7=class extends tZ.Disposable{constructor(e,t){super(),this._hostService=e,this._logService=t,this._isUserActive=(0,t0.observableValue)(this,!1),this.isVsCodeFocused=(0,t8.observableFromEvent)(this,this._hostService.onDidChangeFocus,()=>this._hostService.hasFocus),this.isUserActive=this._isUserActive;const i=()=>{this._markUserActivity()};this._register(I.Event.runAndSubscribe(k.onDidRegisterWindow,({window:e,disposables:t})=>{t.add((0,k.addDisposableListener)(e.document,"keydown",i,t9)),t.add((0,k.addDisposableListener)(e.document,"mousemove",i,t9)),t.add((0,k.addDisposableListener)(e.document,"mousedown",i,t9)),t.add((0,k.addDisposableListener)(e.document,"touchstart",i,t9))},{window:u.mainWindow,disposables:this._store})),this._hostService.hasFocus&&this._markUserActivity()}_markUserActivity(){void 0!==this._activityDebounceTimeout?clearTimeout(this._activityDebounceTimeout):(this._logService.trace("[UserAttentionService] User activity detected"),this._isUserActive.set(!0,void 0)),this._activityDebounceTimeout=setTimeout(()=>{this._isUserActive.set(!1,void 0),this._activityDebounceTimeout=void 0},500)}};t7=(0,l.__decorate)([(0,l.__param)(0,Q.IHostService),(0,l.__param)(1,_.ILogService)],t7);let t9={passive:!0,capture:!0};var t4=e.i(347470);let ie=class extends e4{constructor(e,t,i){super((0,tR.getEnvironmentOverride)().userHome??function(e,t){let i=t.getWorkspace(),o=i.folders.at(0);return o?o.uri:i.configuration?(0,e7.dirname)(i.configuration):eq.URI.from({scheme:e4.findDefaultUriScheme(e,t),authority:e.remoteAuthority,path:"/"})}(t,i),e,t,i)}};ie=(0,l.__decorate)([(0,l.__param)(0,eF.IRemoteAgentService),(0,l.__param)(1,e6.IWorkbenchEnvironmentService),(0,l.__param)(2,S.IWorkspaceContextService)],ie),e.s(["default",0,function(){return{[ee.IRequestService.toString()]:new m.SyncDescriptor(eH,[],!0),[e2.IDownloadService.toString()]:new m.SyncDescriptor(e3,[],!0),[et.IDecorationsService.toString()]:new m.SyncDescriptor(eN,[],!0),[ei.IJSONEditingService.toString()]:new m.SyncDescriptor(ev,[],!0),[eo.ITreeViewsDnDService.toString()]:new m.SyncDescriptor(er.TreeViewsDnDService,[],!0),[en.IURLService.toString()]:new m.SyncDescriptor(eZ,[],!0),[e0.ICanonicalUriService.toString()]:new m.SyncDescriptor(eJ,[],!1),[e1.IUserActivityService.toString()]:new m.SyncDescriptor(ti,[],!0),[e5.IWorkingCopyFileService.toString()]:new m.SyncDescriptor(tp,[],!1),[e8.IPathService.toString()]:new m.SyncDescriptor(ie,[],!0),[tg.ITrustedDomainService.toString()]:new m.SyncDescriptor(tm.TrustedDomainService,[],!0),[y.ILabelService.toString()]:new m.SyncDescriptor(tM,[],!0),[tP.IEditorWorkerService.toString()]:new m.SyncDescriptor(t4.EditorWorkerService,[],!0),[tL.IInlineCompletionsUnificationService.toString()]:new m.SyncDescriptor(t$,[],!0),[tj.IMarkdownRendererService.toString()]:new m.SyncDescriptor(tY.MarkdownRendererService,[],!0),[tX.IUserAttentionService.toString()]:new m.SyncDescriptor(t6,[],!0)}}],236456),(o=d||(d={}))[o.CommandPalette=0]="CommandPalette",o[o.StatusBarWindowIndicatorMenu=1]="StatusBarWindowIndicatorMenu",(r=c||(c={})).DARK="dark",r.LIGHT="light",r.HIGH_CONTRAST_LIGHT="hcLight",r.HIGH_CONTRAST_DARK="hcDark",e.s(["Menu",0,d],531243)},451062,e=>{"use strict";var t,i,o,r;(o=t||(t={}))[o.NONE=0]="NONE",o[o.EDITS=1]="EDITS",o[o.NAVIGATION=2]="NAVIGATION",(r=i||(i={}))[r.DEFAULT=0]="DEFAULT",r[r.EDITOR_GROUP=1]="EDITOR_GROUP",r[r.EDITOR=2]="EDITOR",e.s(["GoFilter",0,t,"GoScope",0,i])},861593,386567,e=>{"use strict";e.i(281482),e.i(54630),e.i(968839),e.i(693676),e.i(325238),e.i(368086),e.i(290997),e.i(309237),e.i(876081),e.i(565717),e.i(594944),e.i(825288),e.i(114790),e.i(899694),e.i(531707),e.i(329471),e.i(919442),e.i(8791),e.i(792133),e.i(235171),e.i(997163),e.i(507513),e.i(64748),e.i(345706),e.i(277782),e.i(432877),e.i(824210),e.i(191036),e.i(963631),e.i(418630),e.i(974409),e.i(239657),e.i(28475),e.i(238970),e.i(453364),e.i(884670),e.i(671524),e.i(889226),e.i(873471),e.i(573259),e.i(957806),e.i(486782),e.i(104801),e.i(68779),e.i(224556),e.i(261968),e.i(864123),e.i(359886),e.i(509799),e.i(598379),e.i(470351),e.i(374863),e.i(27073),e.i(390859),e.i(621595),e.i(109157),e.i(184053),e.i(27950),e.i(860947),e.i(62998),e.i(811772),e.i(660273),e.i(142219),e.i(651759),e.i(282108),e.i(972077),e.i(684710),e.i(716039),e.i(813540),e.i(665576),e.i(802384),e.i(769412),e.i(571292),e.i(924056),e.i(725288),e.i(815301),e.i(140487),e.i(456865),e.i(171130),e.i(331044),e.i(511204),e.i(427026),e.i(330835),e.i(459674),e.i(488587),e.i(437988),e.i(865779),e.i(121419),e.i(157255),e.i(107707),e.i(347470),e.i(33888),e.i(963706),e.i(454738),e.i(770326),e.i(701575);var t=e.i(487106),i=e.i(488259),o=e.i(611130);e.i(697786);var r=e.i(347589),n=e.i(63876),s=e.i(130722),a=e.i(930941),d=e.i(68629),c=e.i(524874),l=e.i(884425),u=e.i(836088),h=e.i(993358),p=e.i(236456),g=e.i(654295),m=e.i(367835),v=e.i(107700),y=e.i(318581),f=e.i(454514),_=e.i(686380),C=e.i(531243);e.i(846960),e.i(975445),e.i(31366),e.i(79522),e.i(58762),e.i(841836),e.i(407791),e.i(326659),e.i(905670),e.i(95526),e.i(324726),e.i(553638),e.i(206548),e.i(65579),e.i(428048),e.i(536766),e.i(474320),e.i(613036),e.i(891110),e.i(1391),e.i(193391),e.i(456076),e.i(362361),e.i(865384),e.i(1125),e.i(772383),e.i(74304),e.i(508898),e.i(34422),e.i(292035),e.i(170774),e.i(464172);var S=e.i(731931);if(e.i(9753),e.i(970672),e.i(905192),e.i(849922),e.i(399362),e.i(140889),e.i(668567),e.i(352853),e.i(853457),e.i(290231),e.i(447186),e.i(99419),e.i(947278),e.i(509046),e.i(568799),e.i(109953),e.i(812491),e.i(441201),e.i(451062),e.i(436771),e.i(667499),e.i(508156),e.i(951129),e.i(370973),e.i(957994),e.i(762834),e.i(107797),e.i(216822),e.i(258861),e.i(487495),e.i(867227),e.i(85282),e.i(335563),e.i(360912),e.i(168363),e.i(84513),e.i(371620),e.i(13306),e.i(488313),e.i(806987),e.i(744194),e.i(823743),e.i(108527),e.i(745971),e.i(8717),e.i(939496),e.i(707724),e.i(253642),e.i(455162),e.i(158231),e.i(577256),e.i(25029),e.i(264688),e.i(304484),e.i(840930),e.i(317679),e.i(169315),e.i(990091),e.i(102474),e.i(123597),e.i(457468),e.i(620943),e.i(596950),e.i(790330),e.i(302346),e.i(391677),e.i(523652),e.i(565836),e.i(420067),e.i(991307),e.i(957593),e.i(40570),e.i(274248),e.i(952250),e.i(645790),e.i(677516),e.i(975497),e.i(391205),e.i(506986),e.i(948279),e.i(597556),e.i(276925),e.i(643882),e.i(120140),e.i(83e3),e.i(528337),e.i(476799),e.i(949316),e.i(749751),e.i(792823),e.i(905449),e.i(633137),e.i(548806),e.i(461121),e.i(767053),e.i(838943),e.i(979233),e.i(542034),e.i(399108),e.i(591071),e.i(782978),e.i(377285),e.i(523559),e.i(377196),e.i(669827),e.i(107219),e.i(595517),e.i(775518),e.i(723476),e.i(541137),e.i(174234),e.i(64658),e.i(274107),e.i(112021),e.i(714741),e.i(455428),e.i(158460),e.i(777416),e.i(951599),e.i(13303),e.i(921752),e.i(752563),e.i(668601),e.i(660653),e.i(207464),e.i(518888),e.i(846171),e.i(470991),e.i(822667),e.i(950212),e.i(809355),e.i(195911),e.i(848391),e.i(966041),e.i(618669),e.i(284162),e.i(315631),e.i(576101),e.i(962396),e.i(81240),e.i(426),e.i(386185),e.i(30495),e.i(576159),e.i(656661),e.i(428888),e.i(760364),e.i(685352),e.i(380928),e.i(913726),e.i(971629),e.i(571728),e.i(932060),e.i(7708),e.i(251559),e.i(734570),e.i(967602),e.i(853703),e.i(252798),e.i(527605),e.i(669414),e.i(254686),e.i(703175),e.i(359661),e.i(824489),e.i(50788),e.i(276199),e.i(189078),e.i(325501),e.i(874923),e.i(818421),e.i(68292),e.i(456557),e.i(774260),e.i(981399),e.i(883685),e.i(769268),e.i(248598),e.i(58467),e.i(278725),e.i(227835),e.i(241006),e.i(727704),e.i(315645),e.i(112231),e.i(317317),e.i(967011),e.i(219170),e.i(404214),e.i(322544),e.i(557025),e.i(17607),e.i(441665),e.i(932476),e.i(635579),e.i(732157),e.i(826001),e.i(266735),e.i(7542),e.i(973265),e.i(624497),e.i(495516),e.i(912220),e.i(518203),e.i(515401),e.i(77617),e.i(174562),e.i(757507),e.i(197946),e.i(924396),e.i(952509),e.i(974398),e.i(938319),e.i(717813),e.i(746654),e.i(879498),e.i(378322),e.i(935144),e.i(710009),e.i(386454),e.i(904044),e.i(461079),e.i(236686),e.i(289711),e.i(364363),e.i(261056),e.i(361345),e.i(387902),e.i(278735),e.i(745257),e.i(10129),e.i(4808),e.i(436380),e.i(722540),e.i(38383),e.i(155621),e.i(561214),e.i(636007),e.i(727782),e.i(785480),e.i(36835),e.i(932007),e.i(424863),e.i(897241),e.i(949609),e.i(718876),e.i(927842),e.i(202822),e.i(350271),e.i(587561),e.i(402357),e.i(975451),e.i(775387),e.i(19025),e.i(335200),null!=window.monacoVscodeApiBuildId&&"1.108.2-21930f76-a5a8-4dff-86b6-358ec12025e6"!==window.monacoVscodeApiBuildId)throw Error(`Another version of monaco-vscode-api has already been loaded. Trying to load 1.108.2-21930f76-a5a8-4dff-86b6-358ec12025e6, ${window.monacoVscodeApiBuildId} is already loaded`);async function b(e,i=document.body,o={},S){(0,s.checkServicesNotInitialized)(),(0,g.injectCss)(i);if(Array.isArray(o.commands)){for(let e of o.commands)if(y.CommandsRegistry.registerCommand(e.id,(t,...i)=>e.handler(...i)),e.label)for(let t of(0,f.asArray)(e.menu??C.Menu.CommandPalette))_.MenuRegistry.appendMenuItem(function(e){switch(e){case C.Menu.CommandPalette:return _.MenuId.CommandPalette;case C.Menu.StatusBarWindowIndicatorMenu:return _.MenuId.StatusBarWindowIndicatorMenu}}(t),{command:{id:e.id,title:e.label}})}(0,n.initialize)(i,o,S);let I=(0,v.mixin)({_serviceBrand:void 0,...m.default},o.productConfiguration),E=t.StandaloneServices.initialize({[r.IProductService.toString()]:I,...(0,u.default)(),...(0,l.default)(),...(0,c.default)(),...(0,d.default)(),...(0,a.default)(),...(0,h.default)(),...(0,p.default)(),...e});await (0,s.startup)(E)}async function I(e){return await (0,s.waitServicesReady)(),t.StandaloneServices.get(e)}window.monacoVscodeApiBuildId="1.108.2-21930f76-a5a8-4dff-86b6-358ec12025e6",e.s(["getService",0,I,"initialize",0,b,"withReadyServices",0,function(e){if(s.serviceInitializedBarrier.isOpen())return t.StandaloneServices.get(i.IInstantiationService).invokeFunction(e);let r=new o.DisposableStore,n=r.add(s.serviceInitializedEmitter.event(()=>{n.dispose(),r.add(t.StandaloneServices.get(i.IInstantiationService).invokeFunction(e))}));return r}],861593);let E=(0,i.refineServiceDecorator)(S.IConfigurationService);e.s(["IWorkbenchConfigurationService",0,E],386567)}]);
|