pi-agent-ide 0.2.0 → 0.2.2
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/CHANGELOG.md +57 -0
- package/dist/{chunk-XNXQYPVT.js → chunk-4LUW26BX.js} +1 -1
- package/dist/{chunk-2ZMYT6ZC.js → chunk-4U6KGABH.js} +1 -1
- package/dist/chunk-4ZTEPMJO.js +14 -0
- package/dist/{chunk-KNMWCDDK.js → chunk-6ACQQBUY.js} +1 -1
- package/dist/chunk-76WHES5H.js +7 -0
- package/dist/chunk-BHSO2MDK.js +6 -0
- package/dist/chunk-BMOJTJJJ.js +3 -0
- package/dist/chunk-GFWDXTOB.js +4 -0
- package/dist/{chunk-VSP2QQPQ.js → chunk-GIRAEVUJ.js} +1 -1
- package/dist/chunk-JJVXUL5U.js +2 -0
- package/dist/chunk-KCEOTU5Z.js +3 -0
- package/dist/chunk-KVGQG43U.js +1 -0
- package/dist/{chunk-MTTKFJV6.js → chunk-LQYZG62K.js} +1 -1
- package/dist/chunk-N34ATN52.js +1 -0
- package/dist/{chunk-PETQCA7G.js → chunk-P6T3Q7LB.js} +1 -1
- package/dist/chunk-QIJMV2P2.js +2 -0
- package/dist/chunk-QJFRAMK7.js +2 -0
- package/dist/{chunk-2SKAED2I.js → chunk-RAZOACDD.js} +2 -2
- package/dist/chunk-RIGRP3FD.js +1 -0
- package/dist/chunk-S3ZPXWX7.js +2 -0
- package/dist/{chunk-266RH77Z.js → chunk-THSCUT2L.js} +1 -1
- package/dist/{chunk-EEH4WYI7.js → chunk-WNMGUALD.js} +1 -1
- package/dist/chunk-WZI4YC2O.js +1 -0
- package/dist/{chunk-5A25RATC.js → chunk-X6MPU7UO.js} +3 -3
- package/dist/{chunk-QNZVPFSP.js → chunk-XF5PVZOS.js} +1 -1
- package/dist/{chunk-SJYDLHEF.js → chunk-ZXN3TWWW.js} +1 -1
- package/dist/entry-0.js +1 -1
- package/dist/entry-10.js +1 -1
- package/dist/entry-11.js +1 -1
- package/dist/entry-13.js +1 -1
- package/dist/entry-14.js +1 -1
- package/dist/entry-18.js +1 -1
- package/dist/entry-19.js +1 -1
- package/dist/entry-20.js +1 -1
- package/dist/entry-21.js +2 -1
- package/dist/entry-22.js +1 -1
- package/dist/entry-23.js +1 -1
- package/dist/entry-24.js +1 -1
- package/dist/entry-25.js +1 -1
- package/dist/entry-26.js +7 -1
- package/dist/entry-27.js +1 -1
- package/dist/entry-28.js +1 -1
- package/dist/entry-29.js +1 -1
- package/dist/entry-30.js +1 -1
- package/dist/entry-31.js +4 -1
- package/dist/entry-32.js +8 -1
- package/dist/entry-33.js +1 -1
- package/dist/entry-34.js +1 -1
- package/dist/entry-35.js +1 -1
- package/dist/entry-36.js +1 -1
- package/dist/entry-37.js +1 -1
- package/dist/entry-38.js +1 -1
- package/dist/entry-39.js +1 -1
- package/dist/entry-4.js +1 -1
- package/dist/entry-40.js +14 -1
- package/dist/entry-41.js +1 -1
- package/dist/entry-42.js +1 -1
- package/dist/entry-43.js +1 -1
- package/dist/entry-44.js +1 -1
- package/dist/entry-45.js +7 -1
- package/dist/entry-46.js +11 -1
- package/dist/entry-47.js +1 -1
- package/dist/entry-48.js +1 -1
- package/dist/entry-49.js +1 -1
- package/dist/entry-50.js +1 -1
- package/dist/entry-51.js +1 -1
- package/dist/entry-52.js +1 -1
- package/dist/entry-53.js +1 -0
- package/dist/entry-54.js +0 -1
- package/dist/entry-55.js +1 -0
- package/dist/entry-56.js +0 -1
- package/dist/entry-57.js +1 -1
- package/dist/entry-58.js +1 -1
- package/dist/entry-59.js +1 -1
- package/dist/entry-60.js +1 -1
- package/dist/entry-61.js +1 -1
- package/dist/entry-62.js +1 -0
- package/dist/entry-63.js +0 -1
- package/dist/entry-64.js +1 -0
- package/dist/entry-65.js +0 -1
- package/dist/entry-66.js +1 -1
- package/dist/entry-67.js +1 -1
- package/dist/entry-68.js +1 -1
- package/dist/entry-69.js +59 -1
- package/dist/entry-70.js +4 -1
- package/dist/entry-71.js +1 -1
- package/dist/entry-72.js +29 -1
- package/dist/entry-73.js +2 -1
- package/dist/entry-74.js +1 -1
- package/dist/entry-75.js +1 -1
- package/dist/entry-76.js +1 -1
- package/dist/entry-77.js +3 -1
- package/dist/entry-78.js +1 -1
- package/dist/entry-79.js +1 -1
- package/dist/entry-80.js +1 -0
- package/dist/pi-agent-ide.js +2 -13
- package/docs/configuration.md +57 -1
- package/docs/extensions.md +4 -2
- package/docs/generated/tool-catalog/cmake.md +5 -5
- package/docs/generated/tool-catalog/csharp.md +5 -5
- package/docs/generated/tool-catalog/css.md +7 -7
- package/docs/generated/tool-catalog/dart.md +9 -0
- package/docs/generated/tool-catalog/dockerfile.md +5 -5
- package/docs/generated/tool-catalog/elixir.md +9 -0
- package/docs/generated/tool-catalog/html.md +7 -6
- package/docs/generated/tool-catalog/index.md +9 -0
- package/docs/generated/tool-catalog/javascript.md +8 -8
- package/docs/generated/tool-catalog/json.md +7 -7
- package/docs/generated/tool-catalog/julia.md +8 -0
- package/docs/generated/tool-catalog/kotlin.md +6 -5
- package/docs/generated/tool-catalog/markdown.md +6 -6
- package/docs/generated/tool-catalog/powershell.md +9 -0
- package/docs/generated/tool-catalog/python.md +6 -6
- package/docs/generated/tool-catalog/r.md +9 -0
- package/docs/generated/tool-catalog/scala.md +9 -0
- package/docs/generated/tool-catalog/svelte.md +9 -0
- package/docs/generated/tool-catalog/typescript.md +9 -8
- package/docs/generated/tool-catalog/vue.md +9 -0
- package/docs/generated/tool-catalog/yaml.md +6 -6
- package/docs/generated/tool-catalog/zig.md +9 -0
- package/docs/tools.md +1 -1
- package/node_modules/pi-agent-doctor/package.json +10 -3
- package/node_modules/pi-agent-doctor/runtime/entry-20.js +1 -0
- package/node_modules/pi-agent-doctor/src/catalog.ts +27 -1
- package/node_modules/pi-agent-doctor/src/evidence.ts +118 -0
- package/node_modules/pi-agent-doctor/src/executable.ts +63 -17
- package/node_modules/pi-agent-filesystem/index.ts +2 -2
- package/node_modules/pi-agent-filesystem/package.json +7 -7
- package/node_modules/pi-agent-filesystem-image/package.json +4 -4
- package/node_modules/pi-agent-filesystem-pdf/package.json +4 -4
- package/node_modules/pi-agent-filesystem-text/package.json +4 -4
- package/node_modules/pi-agent-filesystem-text/runtime/entry-24.js +2 -0
- package/node_modules/pi-agent-ide-ast/package.json +11 -11
- package/node_modules/pi-agent-ide-ast/runtime/entry-25.js +0 -1
- package/node_modules/pi-agent-ide-ast/runtime/entry-26.js +2 -0
- package/node_modules/pi-agent-ide-ast/src/ast/manager.ts +3 -0
- package/node_modules/pi-agent-ide-ast/src/ast/outline.ts +92 -19
- package/node_modules/pi-agent-ide-ast/src/extension.ts +9 -14
- package/node_modules/pi-agent-ide-ast/src/overflow-handler.ts +60 -0
- package/node_modules/pi-agent-ide-ast/src/scope-resolver.ts +1 -1
- package/node_modules/pi-agent-ide-changes/index.ts +1 -5
- package/node_modules/pi-agent-ide-changes/package.json +8 -8
- package/node_modules/pi-agent-ide-changes/runtime/entry-27.js +0 -1
- package/node_modules/pi-agent-ide-changes/src/tool-index-change.ts +1 -7
- package/node_modules/pi-agent-ide-changes/src/tool-text-undo.ts +1 -5
- package/node_modules/pi-agent-ide-formatter/package.json +4 -4
- package/node_modules/pi-agent-ide-formatter/src/catalog.ts +131 -13
- package/node_modules/pi-agent-ide-formatter/src/formatter.ts +12 -7
- package/node_modules/pi-agent-ide-formatter/src/registry.ts +20 -8
- package/node_modules/pi-agent-ide-languages/package.json +3 -3
- package/node_modules/pi-agent-ide-languages/src/languages.ts +15 -0
- package/node_modules/pi-agent-ide-lint/index.ts +4 -1
- package/node_modules/pi-agent-ide-lint/package.json +8 -8
- package/node_modules/pi-agent-ide-lint/src/catalog.ts +196 -39
- package/node_modules/pi-agent-ide-lint/src/command-linter.ts +23 -3
- package/node_modules/pi-agent-ide-lint/src/diagnostics.ts +73 -33
- package/node_modules/pi-agent-ide-lint/src/registry.ts +20 -8
- package/node_modules/pi-agent-ide-lsp/index.ts +1 -12
- package/node_modules/pi-agent-ide-lsp/package.json +9 -9
- package/node_modules/pi-agent-ide-lsp/runtime/entry-32.js +2 -0
- package/node_modules/pi-agent-ide-lsp/src/catalog.ts +161 -7
- package/node_modules/pi-agent-ide-lsp/src/diagnostic-source.ts +10 -10
- package/node_modules/pi-agent-ide-lsp/src/doctor-plugin.ts +2 -4
- package/node_modules/pi-agent-ide-lsp/src/lsp/client.ts +162 -12
- package/node_modules/pi-agent-ide-lsp/src/lsp/file-watchers.ts +88 -0
- package/node_modules/pi-agent-ide-lsp/src/lsp/initialization-options.ts +14 -0
- package/node_modules/pi-agent-ide-lsp/src/lsp/manager.ts +8 -4
- package/node_modules/pi-agent-ide-lsp/src/lsp/registry.ts +69 -34
- package/node_modules/pi-agent-ide-lsp/src/lsp/transport-writer.ts +24 -0
- package/node_modules/pi-agent-ide-lsp/src/lsp/types.ts +5 -0
- package/node_modules/pi-agent-image/package.json +3 -3
- package/node_modules/pi-agent-image/src/image-converter.ts +1 -1
- package/node_modules/pi-agent-invariant/package.json +2 -2
- package/node_modules/pi-agent-pdf/package.json +3 -3
- package/node_modules/pi-agent-pdf/src/pdf-converter.ts +1 -1
- package/node_modules/pi-agent-read/package.json +11 -11
- package/node_modules/pi-agent-read/runtime/entry-39.js +0 -1
- package/node_modules/pi-agent-read/runtime/entry-40.js +2 -0
- package/node_modules/pi-agent-read/src/api/rendering.ts +3 -0
- package/node_modules/pi-agent-read/src/core/read-core.ts +6 -26
- package/node_modules/pi-agent-read/src/core/tools/read/native-resource-renderer.ts +74 -0
- package/node_modules/pi-agent-read/src/core/tools/read/read-renderer.ts +28 -7
- package/node_modules/pi-agent-read/src/core/tools/tool-read.ts +35 -30
- package/node_modules/pi-agent-resource/package.json +2 -2
- package/node_modules/pi-agent-resource/src/content-conversion/content-description.ts +1 -8
- package/node_modules/pi-agent-search/package.json +7 -7
- package/node_modules/pi-agent-search/runtime/entry-44.js +0 -1
- package/node_modules/pi-agent-search/src/core/extension.ts +7 -5
- package/node_modules/pi-agent-search/src/core/search-core.ts +10 -0
- package/node_modules/pi-agent-search-text/index.ts +42 -33
- package/node_modules/pi-agent-search-text/package.json +9 -9
- package/node_modules/pi-agent-search-text/runtime/entry-46.js +1 -0
- package/node_modules/pi-agent-search-text/src/file-search.ts +9 -1
- package/node_modules/pi-agent-search-text/src/resolvers.ts +1 -1
- package/node_modules/pi-agent-search-text/src/search-recipe.ts +2 -0
- package/node_modules/pi-agent-search-text/src/search-session.ts +48 -0
- package/node_modules/pi-agent-text/package.json +3 -3
- package/node_modules/pi-agent-text/runtime/entry-48.js +1 -0
- package/node_modules/pi-agent-text/src/text-converter.ts +1 -1
- package/node_modules/pi-agent-text-anchor-constant/package.json +4 -4
- package/node_modules/pi-agent-text-anchor-constant/runtime/entry-49.js +2 -0
- package/node_modules/pi-agent-text-anchor-exact/package.json +5 -5
- package/node_modules/pi-agent-text-anchor-exact/runtime/entry-50.js +0 -1
- package/node_modules/pi-agent-text-anchor-exact/runtime/entry-51.js +2 -0
- package/node_modules/pi-agent-text-anchor-line-hash/index.ts +2 -6
- package/node_modules/pi-agent-text-anchor-line-hash/package.json +7 -7
- package/node_modules/pi-agent-text-anchor-line-hash/runtime/entry-52.js +0 -1
- package/node_modules/pi-agent-text-anchor-line-hash/runtime/entry-53.js +2 -0
- package/node_modules/pi-agent-text-editor/package.json +22 -22
- package/node_modules/pi-agent-text-editor/runtime/entry-68.js +0 -1
- package/node_modules/pi-agent-text-editor/src/api/mutation-result.ts +3 -0
- package/node_modules/pi-agent-text-editor/src/api/post-edit.ts +71 -1
- package/node_modules/pi-agent-text-editor/src/core/builtin-edit-filter.ts +4 -12
- package/node_modules/pi-agent-text-editor/src/core/extension.ts +7 -9
- package/node_modules/pi-agent-text-editor/src/core/mutation-result/file-mutation-agent-result.ts +27 -2
- package/node_modules/pi-agent-text-editor/src/core/mutation-result/file-mutation-result.ts +38 -0
- package/node_modules/pi-agent-text-editor/src/core/mutation-result/final-state-fragment.ts +2 -0
- package/node_modules/pi-agent-text-editor/src/core/mutation-result/grouped-replacements.ts +81 -0
- package/node_modules/pi-agent-text-editor/src/core/text-anchor-registry.ts +5 -2
- package/node_modules/pi-agent-text-editor/src/core/text-edit-batch-registrar.ts +23 -0
- package/node_modules/pi-agent-text-editor/src/core/text-editor-core.ts +5 -9
- package/node_modules/pi-agent-text-editor/src/core/text-mutation.ts +54 -14
- package/node_modules/pi-agent-text-editor/src/tools/text-selection.ts +45 -43
- package/node_modules/pi-agent-text-editor/src/tools/tool-text-copy.ts +18 -8
- package/node_modules/pi-agent-text-editor/src/tools/tool-text-delete.ts +7 -4
- package/node_modules/pi-agent-text-editor/src/tools/tool-text-insert.ts +13 -5
- package/node_modules/pi-agent-text-editor/src/tools/tool-text-move.ts +18 -8
- package/node_modules/pi-agent-text-editor/src/tools/tool-text-replace.ts +9 -5
- package/node_modules/pi-agent-text-editor/src/tools/tool-text-write.ts +2 -1
- package/node_modules/pi-agent-text-editor-argument-order/package.json +3 -3
- package/node_modules/pi-agent-text-editor-overwrite/package.json +4 -4
- package/node_modules/pi-agent-text-editor-renderer/index.ts +5 -1
- package/node_modules/pi-agent-text-editor-renderer/package.json +6 -6
- package/node_modules/pi-agent-text-editor-renderer/src/diff-model.ts +7 -0
- package/node_modules/pi-agent-text-editor-renderer/src/diff-renderer.ts +1 -1
- package/node_modules/pi-agent-text-editor-renderer/src/diff-viewport.ts +11 -2
- package/node_modules/pi-agent-text-editor-renderer/src/frozen-viewport.ts +140 -52
- package/node_modules/pi-agent-text-editor-renderer/src/mutation-panel.ts +52 -4
- package/node_modules/pi-agent-text-editor-renderer/src/mutation-result.ts +53 -1
- package/node_modules/pi-agent-text-editor-renderer/src/persisted-result.ts +8 -2
- package/node_modules/pi-agent-text-editor-renderer/src/render-resource.ts +10 -0
- package/node_modules/pi-agent-text-editor-renderer/src/renderer.ts +5 -3
- package/node_modules/pi-agent-text-editor-stale-anchor/package.json +5 -5
- package/node_modules/pi-agent-text-editor-stale-anchor/runtime/entry-73.js +2 -0
- package/node_modules/pi-agent-tool-call-interception/package.json +3 -3
- package/node_modules/pi-agent-tool-call-interception/src/index.ts +3 -0
- package/node_modules/pi-agent-tool-ui/package.json +2 -2
- package/node_modules/pi-agent-tool-ui/runtime/entry-75.js +1 -0
- package/node_modules/pi-agent-web/index.ts +1 -6
- package/node_modules/pi-agent-web/package.json +7 -7
- package/node_modules/pi-agent-web-html/package.json +3 -3
- package/node_modules/pi-agent-web-html/src/html-converter.ts +1 -1
- package/node_modules/pi-agent-web-image/package.json +4 -4
- package/node_modules/pi-agent-web-pdf/package.json +4 -4
- package/node_modules/pi-agent-web-text/package.json +4 -4
- package/node_modules/pi-agent-web-text/runtime/entry-80.js +2 -0
- package/package.json +35 -35
- package/src/api/plugin-protocol.ts +2 -0
- package/src/api/text-editor.ts +7 -0
- package/src/api/tool-config/formatters.json +70 -12
- package/src/api/tool-config/linters.json +148 -66
- package/src/api/tool-config/lsp-servers.json +142 -7
- package/src/api/tool-config.ts +60 -24
- package/src/code-view/diagnostic-view.ts +14 -10
- package/src/composite/builtin-extensions.ts +148 -66
- package/src/composite/extensions-config.ts +18 -0
- package/src/core/diagnostic-entry.ts +94 -0
- package/src/core/diagnostic-store.ts +43 -21
- package/src/core/extension.ts +39 -17
- package/src/doctor/config-writer.ts +14 -1
- package/src/doctor/discovery.ts +13 -68
- package/src/doctor/run.ts +33 -1
- package/src/extensions/pi-agent-read/extensions/pi-agent-filesystem/index.ts +2 -2
- package/src/extensions/pi-agent-read/extensions/pi-agent-filesystem/package.json +7 -7
- package/src/extensions/pi-agent-read/extensions/pi-agent-filesystem/plugins/pi-agent-filesystem-image/package.json +4 -4
- package/src/extensions/pi-agent-read/extensions/pi-agent-filesystem/plugins/pi-agent-filesystem-pdf/package.json +4 -4
- package/src/extensions/pi-agent-read/extensions/pi-agent-filesystem/plugins/pi-agent-filesystem-text/package.json +4 -4
- package/src/extensions/pi-agent-read/extensions/pi-agent-filesystem/plugins/pi-agent-filesystem-text/runtime/entry-24.js +2 -0
- package/src/extensions/pi-agent-read/extensions/pi-agent-filesystem/runtime/entry-21.js +2 -0
- package/src/extensions/pi-agent-read/extensions/pi-agent-web/index.ts +1 -6
- package/src/extensions/pi-agent-read/extensions/pi-agent-web/package.json +7 -7
- package/src/extensions/pi-agent-read/extensions/pi-agent-web/plugins/pi-agent-web-html/package.json +3 -3
- package/src/extensions/pi-agent-read/extensions/pi-agent-web/plugins/pi-agent-web-html/src/html-converter.ts +1 -1
- package/src/extensions/pi-agent-read/extensions/pi-agent-web/plugins/pi-agent-web-image/package.json +4 -4
- package/src/extensions/pi-agent-read/extensions/pi-agent-web/plugins/pi-agent-web-pdf/package.json +4 -4
- package/src/extensions/pi-agent-read/extensions/pi-agent-web/plugins/pi-agent-web-text/package.json +4 -4
- package/src/extensions/pi-agent-read/extensions/pi-agent-web/plugins/pi-agent-web-text/runtime/entry-80.js +2 -0
- package/src/extensions/pi-agent-read/extensions/pi-agent-web/runtime/entry-76.js +2 -0
- package/src/extensions/pi-agent-read/package.json +11 -11
- package/src/extensions/pi-agent-read/runtime/entry-39.js +0 -1
- package/src/extensions/pi-agent-read/runtime/entry-40.js +2 -0
- package/src/extensions/pi-agent-read/src/api/rendering.ts +3 -0
- package/src/extensions/pi-agent-read/src/core/read-core.ts +6 -26
- package/src/extensions/pi-agent-read/src/core/tools/read/native-resource-renderer.ts +74 -0
- package/src/extensions/pi-agent-read/src/core/tools/read/read-renderer.ts +28 -7
- package/src/extensions/pi-agent-read/src/core/tools/tool-read.ts +35 -30
- package/src/extensions/pi-agent-search/package.json +7 -7
- package/src/extensions/pi-agent-search/plugins/pi-agent-search-text/index.ts +42 -33
- package/src/extensions/pi-agent-search/plugins/pi-agent-search-text/package.json +9 -9
- package/src/extensions/pi-agent-search/plugins/pi-agent-search-text/runtime/entry-46.js +1 -0
- package/src/extensions/pi-agent-search/plugins/pi-agent-search-text/runtime/entry-47.js +1 -0
- package/src/extensions/pi-agent-search/plugins/pi-agent-search-text/src/file-search.ts +9 -1
- package/src/extensions/pi-agent-search/plugins/pi-agent-search-text/src/resolvers.ts +1 -1
- package/src/extensions/pi-agent-search/plugins/pi-agent-search-text/src/search-recipe.ts +2 -0
- package/src/extensions/pi-agent-search/plugins/pi-agent-search-text/src/search-session.ts +48 -0
- package/src/extensions/pi-agent-search/runtime/entry-44.js +0 -1
- package/src/extensions/pi-agent-search/runtime/entry-45.js +2 -0
- package/src/extensions/pi-agent-search/src/core/extension.ts +7 -5
- package/src/extensions/pi-agent-search/src/core/search-core.ts +10 -0
- package/src/extensions/pi-agent-text-editor/package.json +22 -22
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-anchor-constant/package.json +4 -4
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-anchor-constant/runtime/entry-49.js +2 -0
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-anchor-exact/package.json +5 -5
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-anchor-exact/runtime/entry-50.js +0 -1
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-anchor-exact/runtime/entry-51.js +2 -0
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-anchor-line-hash/index.ts +2 -6
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-anchor-line-hash/package.json +7 -7
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-anchor-line-hash/runtime/entry-52.js +0 -1
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-anchor-line-hash/runtime/entry-53.js +2 -0
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-editor-argument-order/package.json +3 -3
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-editor-overwrite/package.json +4 -4
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-editor-renderer/index.ts +5 -1
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-editor-renderer/package.json +6 -6
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-editor-renderer/src/diff-model.ts +7 -0
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-editor-renderer/src/diff-renderer.ts +1 -1
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-editor-renderer/src/diff-viewport.ts +11 -2
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-editor-renderer/src/frozen-viewport.ts +140 -52
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-editor-renderer/src/mutation-panel.ts +52 -4
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-editor-renderer/src/mutation-result.ts +53 -1
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-editor-renderer/src/persisted-result.ts +8 -2
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-editor-renderer/src/render-resource.ts +10 -0
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-editor-renderer/src/renderer.ts +5 -3
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-editor-stale-anchor/package.json +5 -5
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-editor-stale-anchor/runtime/entry-73.js +2 -0
- package/src/extensions/pi-agent-text-editor/runtime/entry-68.js +0 -1
- package/src/extensions/pi-agent-text-editor/runtime/entry-69.js +2 -0
- package/src/extensions/pi-agent-text-editor/src/api/mutation-result.ts +3 -0
- package/src/extensions/pi-agent-text-editor/src/api/post-edit.ts +71 -1
- package/src/extensions/pi-agent-text-editor/src/core/builtin-edit-filter.ts +4 -12
- package/src/extensions/pi-agent-text-editor/src/core/extension.ts +7 -9
- package/src/extensions/pi-agent-text-editor/src/core/mutation-result/file-mutation-agent-result.ts +27 -2
- package/src/extensions/pi-agent-text-editor/src/core/mutation-result/file-mutation-result.ts +38 -0
- package/src/extensions/pi-agent-text-editor/src/core/mutation-result/final-state-fragment.ts +2 -0
- package/src/extensions/pi-agent-text-editor/src/core/mutation-result/grouped-replacements.ts +81 -0
- package/src/extensions/pi-agent-text-editor/src/core/text-anchor-registry.ts +5 -2
- package/src/extensions/pi-agent-text-editor/src/core/text-edit-batch-registrar.ts +23 -0
- package/src/extensions/pi-agent-text-editor/src/core/text-editor-core.ts +5 -9
- package/src/extensions/pi-agent-text-editor/src/core/text-mutation.ts +54 -14
- package/src/extensions/pi-agent-text-editor/src/tools/text-selection.ts +45 -43
- package/src/extensions/pi-agent-text-editor/src/tools/tool-text-copy.ts +18 -8
- package/src/extensions/pi-agent-text-editor/src/tools/tool-text-delete.ts +7 -4
- package/src/extensions/pi-agent-text-editor/src/tools/tool-text-insert.ts +13 -5
- package/src/extensions/pi-agent-text-editor/src/tools/tool-text-move.ts +18 -8
- package/src/extensions/pi-agent-text-editor/src/tools/tool-text-replace.ts +9 -5
- package/src/extensions/pi-agent-text-editor/src/tools/tool-text-write.ts +2 -1
- package/src/pi-agent-ide.ts +11 -0
- package/src/plugins/pi-agent-ide-ast/package.json +11 -11
- package/src/plugins/pi-agent-ide-ast/runtime/entry-25.js +0 -1
- package/src/plugins/pi-agent-ide-ast/runtime/entry-26.js +2 -0
- package/src/plugins/pi-agent-ide-ast/src/ast/manager.ts +3 -0
- package/src/plugins/pi-agent-ide-ast/src/ast/outline.ts +92 -19
- package/src/plugins/pi-agent-ide-ast/src/extension.ts +9 -14
- package/src/plugins/pi-agent-ide-ast/src/overflow-handler.ts +60 -0
- package/src/plugins/pi-agent-ide-ast/src/scope-resolver.ts +1 -1
- package/src/plugins/pi-agent-ide-changes/index.ts +1 -5
- package/src/plugins/pi-agent-ide-changes/package.json +8 -8
- package/src/plugins/pi-agent-ide-changes/runtime/entry-27.js +0 -1
- package/src/plugins/pi-agent-ide-changes/src/tool-index-change.ts +1 -7
- package/src/plugins/pi-agent-ide-changes/src/tool-text-undo.ts +1 -5
- package/src/plugins/pi-agent-ide-diagnostics/src/extension.ts +1 -8
- package/src/plugins/pi-agent-ide-formatter/package.json +4 -4
- package/src/plugins/pi-agent-ide-formatter/src/catalog.ts +131 -13
- package/src/plugins/pi-agent-ide-formatter/src/formatter.ts +12 -7
- package/src/plugins/pi-agent-ide-formatter/src/registry.ts +20 -8
- package/src/plugins/pi-agent-ide-languages/package.json +3 -3
- package/src/plugins/pi-agent-ide-languages/src/languages.ts +15 -0
- package/src/plugins/pi-agent-ide-lint/index.ts +4 -1
- package/src/plugins/pi-agent-ide-lint/package.json +8 -8
- package/src/plugins/pi-agent-ide-lint/src/catalog.ts +196 -39
- package/src/plugins/pi-agent-ide-lint/src/command-linter.ts +23 -3
- package/src/plugins/pi-agent-ide-lint/src/diagnostics.ts +73 -33
- package/src/plugins/pi-agent-ide-lint/src/registry.ts +20 -8
- package/src/plugins/pi-agent-ide-lsp/index.ts +1 -12
- package/src/plugins/pi-agent-ide-lsp/package.json +9 -9
- package/src/plugins/pi-agent-ide-lsp/runtime/entry-32.js +2 -0
- package/src/plugins/pi-agent-ide-lsp/src/catalog.ts +161 -7
- package/src/plugins/pi-agent-ide-lsp/src/diagnostic-source.ts +10 -10
- package/src/plugins/pi-agent-ide-lsp/src/doctor-plugin.ts +2 -4
- package/src/plugins/pi-agent-ide-lsp/src/lsp/client.ts +162 -12
- package/src/plugins/pi-agent-ide-lsp/src/lsp/file-watchers.ts +88 -0
- package/src/plugins/pi-agent-ide-lsp/src/lsp/initialization-options.ts +14 -0
- package/src/plugins/pi-agent-ide-lsp/src/lsp/manager.ts +8 -4
- package/src/plugins/pi-agent-ide-lsp/src/lsp/registry.ts +69 -34
- package/src/plugins/pi-agent-ide-lsp/src/lsp/transport-writer.ts +24 -0
- package/src/plugins/pi-agent-ide-lsp/src/lsp/types.ts +5 -0
- package/src/post-edit/gate.ts +44 -15
- package/src/toolchain/types.ts +4 -0
- package/dist/chunk-34ZQTTU2.js +0 -2
- package/dist/chunk-476MR2QB.js +0 -1
- package/dist/chunk-4KQOODGE.js +0 -13
- package/dist/chunk-4SQQKEVD.js +0 -16
- package/dist/chunk-52BM6J6I.js +0 -6
- package/dist/chunk-5BWUVAR4.js +0 -1
- package/dist/chunk-6DN7NO7L.js +0 -1
- package/dist/chunk-6SMFVLTY.js +0 -1
- package/dist/chunk-7NDBZ4WX.js +0 -1
- package/dist/chunk-AP7Z3VWC.js +0 -1
- package/dist/chunk-BYWAG6X3.js +0 -6
- package/dist/chunk-E4SECPF4.js +0 -1
- package/dist/chunk-EW2KVKCN.js +0 -2
- package/dist/chunk-F6SESI3P.js +0 -4
- package/dist/chunk-GTK5AREE.js +0 -2
- package/dist/chunk-HOBTFFQR.js +0 -1
- package/dist/chunk-IMVCVPMP.js +0 -3
- package/dist/chunk-IOCABSRL.js +0 -1
- package/dist/chunk-KP37XTDI.js +0 -1
- package/dist/chunk-KYVOMBO5.js +0 -1
- package/dist/chunk-LFV6G5Z3.js +0 -1
- package/dist/chunk-MB6VVVAF.js +0 -2
- package/dist/chunk-NI2NK4JU.js +0 -1
- package/dist/chunk-OIL6BB2S.js +0 -33
- package/dist/chunk-PODWLGNO.js +0 -6
- package/dist/chunk-QW5O42QJ.js +0 -2
- package/dist/chunk-SSZB66C3.js +0 -3
- package/dist/chunk-TG6H6EOI.js +0 -1
- package/dist/chunk-TNWYEXFG.js +0 -1
- package/dist/chunk-U4D6FT66.js +0 -1
- package/dist/chunk-VUNCBASK.js +0 -10
- package/dist/chunk-VWVLBOMU.js +0 -8
- package/dist/chunk-W3XYKJ5H.js +0 -1
- package/dist/chunk-XGUAL3CA.js +0 -1
- package/dist/chunk-YQTLJ5ZV.js +0 -58
- package/node_modules/pi-agent-filesystem/runtime/entry-20.js +0 -2
- package/node_modules/pi-agent-ide-ast/runtime/entry-24.js +0 -1
- package/node_modules/pi-agent-ide-changes/runtime/entry-26.js +0 -1
- package/node_modules/pi-agent-image/runtime/entry-32.js +0 -1
- package/node_modules/pi-agent-read/src/core/tools/read/views.ts +0 -29
- package/node_modules/pi-agent-resource/runtime/entry-40.js +0 -1
- package/node_modules/pi-agent-text-anchor-constant/runtime/entry-48.js +0 -2
- package/node_modules/pi-agent-text-anchor-exact/runtime/entry-49.js +0 -1
- package/node_modules/pi-agent-text-anchor-line-hash/runtime/entry-51.js +0 -1
- package/node_modules/pi-agent-text-editor/runtime/entry-53.js +0 -1
- package/node_modules/pi-agent-tool-call-interception/runtime/entry-73.js +0 -1
- package/node_modules/pi-agent-web/runtime/entry-75.js +0 -2
- package/src/extensions/pi-agent-read/extensions/pi-agent-filesystem/plugins/pi-agent-filesystem-image/runtime/entry-21.js +0 -2
- package/src/extensions/pi-agent-read/extensions/pi-agent-filesystem/runtime/entry-20.js +0 -2
- package/src/extensions/pi-agent-read/extensions/pi-agent-web/plugins/pi-agent-web-html/runtime/entry-76.js +0 -2
- package/src/extensions/pi-agent-read/extensions/pi-agent-web/runtime/entry-75.js +0 -2
- package/src/extensions/pi-agent-read/runtime/entry-35.js +0 -1
- package/src/extensions/pi-agent-read/src/core/tools/read/views.ts +0 -29
- package/src/extensions/pi-agent-search/plugins/pi-agent-search-text/runtime/entry-45.js +0 -2
- package/src/extensions/pi-agent-search/runtime/entry-41.js +0 -1
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-anchor-constant/runtime/entry-48.js +0 -2
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-anchor-exact/runtime/entry-49.js +0 -1
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-anchor-line-hash/runtime/entry-51.js +0 -1
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-editor-argument-order/runtime/entry-69.js +0 -2
- package/src/extensions/pi-agent-text-editor/runtime/entry-53.js +0 -1
- package/src/plugins/pi-agent-ide-ast/runtime/entry-24.js +0 -1
- package/src/plugins/pi-agent-ide-changes/runtime/entry-26.js +0 -1
- /package/node_modules/{pi-agent-filesystem-image → pi-agent-filesystem}/runtime/entry-21.js +0 -0
- /package/node_modules/{pi-agent-filesystem-pdf → pi-agent-filesystem-image}/runtime/entry-22.js +0 -0
- /package/node_modules/{pi-agent-filesystem-text → pi-agent-filesystem-pdf}/runtime/entry-23.js +0 -0
- /package/node_modules/{pi-agent-ide-formatter → pi-agent-ide-changes}/runtime/entry-28.js +0 -0
- /package/node_modules/{pi-agent-ide-languages → pi-agent-ide-formatter}/runtime/entry-29.js +0 -0
- /package/node_modules/{pi-agent-ide-lint → pi-agent-ide-languages}/runtime/entry-30.js +0 -0
- /package/node_modules/{pi-agent-ide-lsp → pi-agent-ide-lint}/runtime/entry-31.js +0 -0
- /package/node_modules/{pi-agent-invariant → pi-agent-image}/runtime/entry-33.js +0 -0
- /package/node_modules/{pi-agent-pdf → pi-agent-invariant}/runtime/entry-34.js +0 -0
- /package/node_modules/{pi-agent-read → pi-agent-pdf}/runtime/entry-35.js +0 -0
- /package/node_modules/{pi-agent-search → pi-agent-resource}/runtime/entry-41.js +0 -0
- /package/node_modules/{pi-agent-search-text → pi-agent-search}/runtime/entry-45.js +0 -0
- /package/node_modules/{pi-agent-text → pi-agent-search-text}/runtime/entry-47.js +0 -0
- /package/node_modules/{pi-agent-text-editor-argument-order → pi-agent-text-editor}/runtime/entry-69.js +0 -0
- /package/node_modules/{pi-agent-text-editor-overwrite → pi-agent-text-editor-argument-order}/runtime/entry-70.js +0 -0
- /package/node_modules/{pi-agent-text-editor-renderer → pi-agent-text-editor-overwrite}/runtime/entry-71.js +0 -0
- /package/node_modules/{pi-agent-text-editor-stale-anchor → pi-agent-text-editor-renderer}/runtime/entry-72.js +0 -0
- /package/node_modules/{pi-agent-tool-ui → pi-agent-tool-call-interception}/runtime/entry-74.js +0 -0
- /package/node_modules/{pi-agent-web-html → pi-agent-web}/runtime/entry-76.js +0 -0
- /package/node_modules/{pi-agent-web-image → pi-agent-web-html}/runtime/entry-77.js +0 -0
- /package/node_modules/{pi-agent-web-pdf → pi-agent-web-image}/runtime/entry-78.js +0 -0
- /package/node_modules/{pi-agent-web-text → pi-agent-web-pdf}/runtime/entry-79.js +0 -0
- /package/src/extensions/pi-agent-read/extensions/pi-agent-filesystem/plugins/{pi-agent-filesystem-pdf → pi-agent-filesystem-image}/runtime/entry-22.js +0 -0
- /package/src/extensions/pi-agent-read/extensions/pi-agent-filesystem/plugins/{pi-agent-filesystem-text → pi-agent-filesystem-pdf}/runtime/entry-23.js +0 -0
- /package/src/extensions/pi-agent-read/extensions/pi-agent-web/plugins/{pi-agent-web-image → pi-agent-web-html}/runtime/entry-77.js +0 -0
- /package/src/extensions/pi-agent-read/extensions/pi-agent-web/plugins/{pi-agent-web-pdf → pi-agent-web-image}/runtime/entry-78.js +0 -0
- /package/src/extensions/pi-agent-read/extensions/pi-agent-web/plugins/{pi-agent-web-text → pi-agent-web-pdf}/runtime/entry-79.js +0 -0
- /package/src/extensions/pi-agent-text-editor/plugins/{pi-agent-text-editor-overwrite → pi-agent-text-editor-argument-order}/runtime/entry-70.js +0 -0
- /package/src/extensions/pi-agent-text-editor/plugins/{pi-agent-text-editor-renderer → pi-agent-text-editor-overwrite}/runtime/entry-71.js +0 -0
- /package/src/extensions/pi-agent-text-editor/plugins/{pi-agent-text-editor-stale-anchor → pi-agent-text-editor-renderer}/runtime/entry-72.js +0 -0
- /package/src/plugins/{pi-agent-ide-formatter → pi-agent-ide-changes}/runtime/entry-28.js +0 -0
- /package/src/plugins/{pi-agent-ide-languages → pi-agent-ide-formatter}/runtime/entry-29.js +0 -0
- /package/src/plugins/{pi-agent-ide-lint → pi-agent-ide-languages}/runtime/entry-30.js +0 -0
- /package/src/plugins/{pi-agent-ide-lsp → pi-agent-ide-lint}/runtime/entry-31.js +0 -0
|
@@ -28,7 +28,7 @@ export function parseDiagnostics(output: string, config: DiagnosticParserConfig)
|
|
|
28
28
|
return parseCompilerLines(output);
|
|
29
29
|
}
|
|
30
30
|
case "regex": {
|
|
31
|
-
return parseRegexLines(output, requiredValue(config.pattern));
|
|
31
|
+
return parseRegexLines(output, requiredValue(config.pattern), config.columnBase ?? 1);
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
}
|
|
@@ -39,9 +39,16 @@ function parsePiJson(output: string): Diagnostic[] {
|
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
function parseEslintJson(output: string): Diagnostic[] {
|
|
42
|
-
const files = JSON.parse(output) as { messages?: unknown }[];
|
|
42
|
+
const files = JSON.parse(output) as { filePath?: string; messages?: unknown }[];
|
|
43
43
|
return files.flatMap((file) =>
|
|
44
|
-
Array.isArray(file.messages)
|
|
44
|
+
Array.isArray(file.messages)
|
|
45
|
+
? file.messages.flatMap((message) =>
|
|
46
|
+
normalizeDiagnostic(message).map((diagnostic) => ({
|
|
47
|
+
...diagnostic,
|
|
48
|
+
...(file.filePath && { file: file.filePath }),
|
|
49
|
+
})),
|
|
50
|
+
)
|
|
51
|
+
: [],
|
|
45
52
|
);
|
|
46
53
|
}
|
|
47
54
|
|
|
@@ -49,16 +56,22 @@ function parseSarif(output: string): Diagnostic[] {
|
|
|
49
56
|
const sarif = JSON.parse(output) as { runs?: { results?: Record<string, unknown>[] }[] };
|
|
50
57
|
return (sarif.runs ?? []).flatMap((run) =>
|
|
51
58
|
(run.results ?? []).flatMap((result) => {
|
|
52
|
-
const location =
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
59
|
+
const location = (
|
|
60
|
+
result.locations as
|
|
61
|
+
| {
|
|
62
|
+
physicalLocation?: {
|
|
63
|
+
region?: Record<string, unknown>;
|
|
64
|
+
artifactLocation?: { uri?: string };
|
|
65
|
+
};
|
|
66
|
+
}[]
|
|
67
|
+
| undefined
|
|
68
|
+
)?.[0]?.physicalLocation;
|
|
69
|
+
const region = location?.region ?? {};
|
|
58
70
|
const message = result.message as { text?: unknown } | undefined;
|
|
59
71
|
return normalizeDiagnostic({
|
|
60
|
-
|
|
61
|
-
|
|
72
|
+
file: location?.artifactLocation?.uri,
|
|
73
|
+
line: region.startLine,
|
|
74
|
+
column: region.startColumn,
|
|
62
75
|
message: message?.text,
|
|
63
76
|
code: result.ruleId,
|
|
64
77
|
severity: sarifSeverity(result.level),
|
|
@@ -69,37 +82,52 @@ function parseSarif(output: string): Diagnostic[] {
|
|
|
69
82
|
|
|
70
83
|
function parseCheckstyle(output: string): Diagnostic[] {
|
|
71
84
|
const diagnostics: Diagnostic[] = [];
|
|
72
|
-
const
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
severity: attributes.severity,
|
|
88
|
-
}),
|
|
89
|
-
);
|
|
85
|
+
for (const file of output.matchAll(/<file\s+([^>]+)>([\s\S]*?)<\/file>/gu)) {
|
|
86
|
+
const name = xmlAttributes(requiredValue(file[1])).name;
|
|
87
|
+
for (const error of requiredValue(file[2]).matchAll(/<error\s+([^>]+?)\/?>(?:<\/error>)?/gu)) {
|
|
88
|
+
const attributes = xmlAttributes(requiredValue(error[1]));
|
|
89
|
+
diagnostics.push(
|
|
90
|
+
...normalizeDiagnostic({
|
|
91
|
+
file: name,
|
|
92
|
+
line: Number(attributes.line),
|
|
93
|
+
column: Number(attributes.column ?? 1),
|
|
94
|
+
message: attributes.message,
|
|
95
|
+
code: attributes.source,
|
|
96
|
+
severity: attributes.severity,
|
|
97
|
+
}),
|
|
98
|
+
);
|
|
99
|
+
}
|
|
90
100
|
}
|
|
91
|
-
|
|
92
101
|
return diagnostics;
|
|
93
102
|
}
|
|
94
103
|
|
|
104
|
+
function xmlAttributes(value: string): Record<string, string> {
|
|
105
|
+
return Object.fromEntries(
|
|
106
|
+
[...value.matchAll(/([\w-]+)="([^"]*)"/gu)].map((item) => [
|
|
107
|
+
requiredValue(item[1]),
|
|
108
|
+
decodeXml(requiredValue(item[2])),
|
|
109
|
+
]),
|
|
110
|
+
);
|
|
111
|
+
}
|
|
112
|
+
|
|
95
113
|
function parseCompilerLines(output: string): Diagnostic[] {
|
|
96
114
|
const pattern =
|
|
97
115
|
/^(?<file>.+?):(?<line>\d+):(?<column>\d+):\s*(?<severity>fatal error|error|warning|note|info|hint):\s*(?<message>.*?)(?:\s+\[(?<code>[^\]]+)\])?$/u;
|
|
98
116
|
return parseMatchingLines(output, pattern);
|
|
99
117
|
}
|
|
100
118
|
|
|
101
|
-
function parseRegexLines(output: string, source: string): Diagnostic[] {
|
|
102
|
-
return
|
|
119
|
+
function parseRegexLines(output: string, source: string, columnBase: 0 | 1): Diagnostic[] {
|
|
120
|
+
return [...output.replaceAll("\r\n", "\n").matchAll(new RegExp(source, "gmu"))].flatMap(
|
|
121
|
+
(match) => {
|
|
122
|
+
if (match.groups === undefined) return [];
|
|
123
|
+
return normalizeDiagnostic({
|
|
124
|
+
...match.groups,
|
|
125
|
+
...(match.groups.column !== undefined && {
|
|
126
|
+
column: Number(match.groups.column) + (1 - columnBase),
|
|
127
|
+
}),
|
|
128
|
+
});
|
|
129
|
+
},
|
|
130
|
+
);
|
|
103
131
|
}
|
|
104
132
|
|
|
105
133
|
function parseMatchingLines(output: string, pattern: RegExp): Diagnostic[] {
|
|
@@ -130,6 +158,7 @@ function normalizeDiagnostic(value: unknown): Diagnostic[] {
|
|
|
130
158
|
|
|
131
159
|
return [
|
|
132
160
|
{
|
|
161
|
+
...(typeof item.file === "string" && { file: item.file }),
|
|
133
162
|
code: stringValue(item.code ?? item.ruleId, "lint"),
|
|
134
163
|
message,
|
|
135
164
|
line,
|
|
@@ -153,7 +182,12 @@ function severityValue(value: unknown): Diagnostic["severity"] {
|
|
|
153
182
|
if (value === 1) return "warning";
|
|
154
183
|
const normalized = stringValue(value, "warning").toLowerCase();
|
|
155
184
|
|
|
156
|
-
if (
|
|
185
|
+
if (
|
|
186
|
+
normalized.includes("error") ||
|
|
187
|
+
normalized === "e" ||
|
|
188
|
+
normalized === "f" ||
|
|
189
|
+
normalized === "fatal"
|
|
190
|
+
) {
|
|
157
191
|
return "error";
|
|
158
192
|
}
|
|
159
193
|
|
|
@@ -174,6 +208,12 @@ function sarifSeverity(value: unknown): string {
|
|
|
174
208
|
|
|
175
209
|
function decodeXml(value: string): string {
|
|
176
210
|
return value
|
|
211
|
+
.replace(/&#(x[0-9a-f]+|\d+);/giu, (entity, digits: string) => {
|
|
212
|
+
const code = digits.toLowerCase().startsWith("x")
|
|
213
|
+
? Number.parseInt(digits.slice(1), 16)
|
|
214
|
+
: Number(digits);
|
|
215
|
+
return code <= 0x10ffff ? String.fromCodePoint(code) : entity;
|
|
216
|
+
})
|
|
177
217
|
.replaceAll(""", '"')
|
|
178
218
|
.replaceAll("'", "'")
|
|
179
219
|
.replaceAll("<", "<")
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { inspectRecipeEvidence } from "pi-agent-doctor/api/evidence";
|
|
2
|
+
import { LINTER_RECIPES } from "./catalog.js";
|
|
2
3
|
|
|
3
4
|
import {
|
|
4
5
|
hasConfiguredExecutable,
|
|
5
6
|
loadLayeredToolConfig,
|
|
6
|
-
|
|
7
|
+
selectConfiguredEntry,
|
|
7
8
|
parseLintersConfig,
|
|
8
9
|
} from "pi-agent-ide/api/tool-config";
|
|
9
10
|
|
|
@@ -21,6 +22,8 @@ export class LintCommandRegistry {
|
|
|
21
22
|
private constructor(
|
|
22
23
|
private readonly linters: readonly EffectiveToolConfigEntry<LinterCommandConfig>[],
|
|
23
24
|
private readonly availableBuiltIns: ReadonlySet<string>,
|
|
25
|
+
|
|
26
|
+
private readonly evidence: ReadonlyMap<string, { readonly score: number }> = new Map(),
|
|
24
27
|
) {}
|
|
25
28
|
|
|
26
29
|
/**
|
|
@@ -45,9 +48,17 @@ export class LintCommandRegistry {
|
|
|
45
48
|
available: await hasConfiguredExecutable(entry.config.check, directory, environment),
|
|
46
49
|
})),
|
|
47
50
|
);
|
|
51
|
+
const evidence = await inspectRecipeEvidence(directory, LINTER_RECIPES);
|
|
52
|
+
const entries = [...effective.entries].sort((left, right) =>
|
|
53
|
+
left.layer === "built-in" && right.layer === "built-in"
|
|
54
|
+
? (evidence.get(right.id)?.score ?? 0) - (evidence.get(left.id)?.score ?? 0)
|
|
55
|
+
: 0,
|
|
56
|
+
);
|
|
48
57
|
return new LintCommandRegistry(
|
|
49
|
-
|
|
58
|
+
entries,
|
|
50
59
|
new Set(available.filter((entry) => entry.available).map((entry) => entry.id)),
|
|
60
|
+
|
|
61
|
+
evidence,
|
|
51
62
|
);
|
|
52
63
|
}
|
|
53
64
|
|
|
@@ -80,11 +91,12 @@ export class LintCommandRegistry {
|
|
|
80
91
|
filePath: string,
|
|
81
92
|
projectRoot: string,
|
|
82
93
|
): EffectiveToolConfigEntry<LinterCommandConfig> | undefined {
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
94
|
+
return selectConfiguredEntry(
|
|
95
|
+
this.linters,
|
|
96
|
+
this.availableBuiltIns,
|
|
97
|
+
this.evidence,
|
|
98
|
+
filePath,
|
|
99
|
+
projectRoot,
|
|
88
100
|
);
|
|
89
101
|
}
|
|
90
102
|
|
|
@@ -90,14 +90,7 @@ export default async function registerLsp(pi: ExtensionAPI): Promise<void> {
|
|
|
90
90
|
handler: createSourceMappedTextReadHandler(),
|
|
91
91
|
});
|
|
92
92
|
api.describe(
|
|
93
|
-
"
|
|
94
|
-
);
|
|
95
|
-
|
|
96
|
-
api.addPromptGuideline(
|
|
97
|
-
"You can use read with `symbol:<path>#<selector>` to inspect a known symbol's implementation without searching for it or reading the whole file.",
|
|
98
|
-
);
|
|
99
|
-
api.addPromptGuideline(
|
|
100
|
-
"You can use read with `graph:<path>` to inspect each top-level declaration's definition, referencing files, and incoming and outgoing calls. Members are listed with selectors; their relationships are not expanded. You can append `#<selector>` to inspect one symbol's references and calls, including a nested method.",
|
|
93
|
+
"symbol:<file>#<selector> — declaration source, e.g. symbol:src/catalog.ts#Catalog/find. graph:<file> — top-level declarations, references and calls; members include selectors. graph:<file>#<selector> — references and incoming/outgoing calls for that declaration or member.",
|
|
101
94
|
);
|
|
102
95
|
},
|
|
103
96
|
} satisfies ReadPlugin;
|
|
@@ -115,10 +108,6 @@ export default async function registerLsp(pi: ExtensionAPI): Promise<void> {
|
|
|
115
108
|
api.describe(
|
|
116
109
|
"Use `symbols:<query>` to search workspace symbols and their references through configured language servers.",
|
|
117
110
|
);
|
|
118
|
-
|
|
119
|
-
api.addPromptGuideline(
|
|
120
|
-
"You can use search with `symbols:<query>` to find workspace symbols and their references through configured language servers.",
|
|
121
|
-
);
|
|
122
111
|
},
|
|
123
112
|
}),
|
|
124
113
|
]);
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-agent-ide-lsp",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"cross-spawn": "^7.0.6",
|
|
7
|
-
"pi-agent-doctor": "0.2.
|
|
8
|
-
"pi-agent-invariant": "0.2.
|
|
9
|
-
"pi-agent-read": "0.2.
|
|
10
|
-
"pi-agent-resource": "0.2.
|
|
11
|
-
"pi-agent-search": "0.2.
|
|
12
|
-
"pi-agent-text": "0.2.
|
|
7
|
+
"pi-agent-doctor": "0.2.2",
|
|
8
|
+
"pi-agent-invariant": "0.2.2",
|
|
9
|
+
"pi-agent-read": "0.2.2",
|
|
10
|
+
"pi-agent-resource": "0.2.2",
|
|
11
|
+
"pi-agent-search": "0.2.2",
|
|
12
|
+
"pi-agent-text": "0.2.2",
|
|
13
13
|
"vscode-jsonrpc": "^9.0.0",
|
|
14
14
|
"vscode-uri": "^3.1.0"
|
|
15
15
|
},
|
|
16
16
|
"pi": {
|
|
17
17
|
"extensions": [
|
|
18
|
-
"./runtime/entry-
|
|
18
|
+
"./runtime/entry-32.js"
|
|
19
19
|
]
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {
|
|
22
22
|
"@earendil-works/pi-coding-agent": "*",
|
|
23
|
-
"pi-agent-ide": "0.2.
|
|
23
|
+
"pi-agent-ide": "0.2.2"
|
|
24
24
|
}
|
|
25
25
|
}
|
|
@@ -4,6 +4,104 @@ import type { ToolRecipe } from "pi-agent-doctor/api/catalog";
|
|
|
4
4
|
LSP recipes owned by the LSP plugin.
|
|
5
5
|
*/
|
|
6
6
|
export const LSP_RECIPES: readonly ToolRecipe[] = [
|
|
7
|
+
{
|
|
8
|
+
id: "vue-typescript-language-server",
|
|
9
|
+
name: "vue-typescript-language-server",
|
|
10
|
+
kind: "lsp",
|
|
11
|
+
languages: ["vue"],
|
|
12
|
+
executables: ["typescript-language-server"],
|
|
13
|
+
dependencies: ["typescript-language-server", "@vue/typescript-plugin"],
|
|
14
|
+
configFiles: ["tsconfig.json"],
|
|
15
|
+
documentation: "https://github.com/vuejs/language-tools/tree/master/packages/typescript-plugin",
|
|
16
|
+
lsp: {
|
|
17
|
+
command: ["typescript-language-server", "--stdio"],
|
|
18
|
+
rootMarkers: ["tsconfig.json", "package.json"],
|
|
19
|
+
languageIds: { vue: [".vue"] },
|
|
20
|
+
initializationOptions: {
|
|
21
|
+
plugins: [
|
|
22
|
+
{
|
|
23
|
+
name: "@vue/typescript-plugin",
|
|
24
|
+
location: "{project}/node_modules/@vue/typescript-plugin",
|
|
25
|
+
languages: ["vue"],
|
|
26
|
+
},
|
|
27
|
+
],
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
recipe(
|
|
32
|
+
"elixir-ls",
|
|
33
|
+
["elixir"],
|
|
34
|
+
["elixir-ls"],
|
|
35
|
+
["mix.exs"],
|
|
36
|
+
{ elixir: [".ex", ".exs"] },
|
|
37
|
+
["elixir-ls"],
|
|
38
|
+
"https://github.com/elixir-lsp/elixir-ls",
|
|
39
|
+
undefined,
|
|
40
|
+
undefined,
|
|
41
|
+
{ elixirLS: { mcpEnabled: false } },
|
|
42
|
+
),
|
|
43
|
+
recipe(
|
|
44
|
+
"metals",
|
|
45
|
+
["scala"],
|
|
46
|
+
["metals"],
|
|
47
|
+
["build.sbt", "project.scala", ".bsp"],
|
|
48
|
+
{ scala: [".scala", ".sc"] },
|
|
49
|
+
["metals"],
|
|
50
|
+
"https://scalameta.org/metals/",
|
|
51
|
+
),
|
|
52
|
+
{
|
|
53
|
+
id: "angular-language-server",
|
|
54
|
+
name: "angular-language-server",
|
|
55
|
+
kind: "lsp",
|
|
56
|
+
languages: ["typescript", "html"],
|
|
57
|
+
executables: ["ngserver"],
|
|
58
|
+
dependencies: ["@angular/language-server"],
|
|
59
|
+
configFiles: ["angular.json"],
|
|
60
|
+
documentation: "https://github.com/angular/vscode-ng-language-service",
|
|
61
|
+
lsp: {
|
|
62
|
+
command: ["ngserver", "--stdio", "--tsProbeLocations", ".", "--ngProbeLocations", "."],
|
|
63
|
+
rootMarkers: ["angular.json"],
|
|
64
|
+
requireRootMarker: true,
|
|
65
|
+
languageIds: { typescript: [".ts"], html: [".html"] },
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
recipe(
|
|
69
|
+
"svelte-language-server",
|
|
70
|
+
["svelte"],
|
|
71
|
+
["svelteserver"],
|
|
72
|
+
["svelte.config.js", "package.json"],
|
|
73
|
+
{ svelte: [".svelte"] },
|
|
74
|
+
["svelteserver", "--stdio"],
|
|
75
|
+
"https://github.com/sveltejs/language-tools/tree/master/packages/language-server",
|
|
76
|
+
["svelte-language-server"],
|
|
77
|
+
),
|
|
78
|
+
recipe(
|
|
79
|
+
"dart-language-server",
|
|
80
|
+
["dart"],
|
|
81
|
+
["dart"],
|
|
82
|
+
["pubspec.yaml", "analysis_options.yaml"],
|
|
83
|
+
{ dart: [".dart"] },
|
|
84
|
+
["dart", "language-server", "--protocol=lsp"],
|
|
85
|
+
"https://dart.dev/tools/dart-language-server",
|
|
86
|
+
),
|
|
87
|
+
recipe(
|
|
88
|
+
"r-language-server",
|
|
89
|
+
["r"],
|
|
90
|
+
["Rscript"],
|
|
91
|
+
["DESCRIPTION", ".lintr", ".Rprofile"],
|
|
92
|
+
{ r: [".r"] },
|
|
93
|
+
["Rscript", "-e", "languageserver::run()"],
|
|
94
|
+
"https://github.com/REditorSupport/languageserver",
|
|
95
|
+
),
|
|
96
|
+
recipe(
|
|
97
|
+
"zls",
|
|
98
|
+
["zig"],
|
|
99
|
+
["zls"],
|
|
100
|
+
["build.zig", "build.zig.zon", "zls.json"],
|
|
101
|
+
{ zig: [".zig", ".zon"] },
|
|
102
|
+
["zls"],
|
|
103
|
+
"https://zigtools.org/zls/",
|
|
104
|
+
),
|
|
7
105
|
recipe(
|
|
8
106
|
"clangd",
|
|
9
107
|
["c", "cpp"],
|
|
@@ -18,7 +116,12 @@ export const LSP_RECIPES: readonly ToolRecipe[] = [
|
|
|
18
116
|
["javascript", "typescript"],
|
|
19
117
|
["typescript-language-server"],
|
|
20
118
|
["tsconfig.json", "jsconfig.json", "package.json"],
|
|
21
|
-
{
|
|
119
|
+
{
|
|
120
|
+
javascript: [".js", ".mjs", ".cjs"],
|
|
121
|
+
javascriptreact: [".jsx"],
|
|
122
|
+
typescript: [".ts", ".mts", ".cts"],
|
|
123
|
+
typescriptreact: [".tsx"],
|
|
124
|
+
},
|
|
22
125
|
["typescript-language-server", "--stdio"],
|
|
23
126
|
"https://github.com/typescript-language-server/typescript-language-server",
|
|
24
127
|
["typescript-language-server"],
|
|
@@ -131,6 +234,9 @@ export const LSP_RECIPES: readonly ToolRecipe[] = [
|
|
|
131
234
|
{ css: [".css", ".scss", ".less"] },
|
|
132
235
|
["vscode-css-language-server", "--stdio"],
|
|
133
236
|
"https://github.com/microsoft/vscode-css-languageservice",
|
|
237
|
+
undefined,
|
|
238
|
+
undefined,
|
|
239
|
+
{ css: {}, scss: {}, less: {} },
|
|
134
240
|
),
|
|
135
241
|
recipe(
|
|
136
242
|
"vscode-html-language-server",
|
|
@@ -178,13 +284,49 @@ export const LSP_RECIPES: readonly ToolRecipe[] = [
|
|
|
178
284
|
"https://github.com/hashicorp/terraform-ls",
|
|
179
285
|
),
|
|
180
286
|
recipe(
|
|
181
|
-
"
|
|
287
|
+
"kotlin-lsp",
|
|
288
|
+
["kotlin"],
|
|
289
|
+
["intellij-server"],
|
|
290
|
+
["build.gradle.kts", "build.gradle", "pom.xml", "settings.gradle.kts"],
|
|
291
|
+
{ kotlin: [".kt", ".kts"] },
|
|
292
|
+
["intellij-server", "--stdio"],
|
|
293
|
+
"https://github.com/Kotlin/kotlin-lsp",
|
|
294
|
+
),
|
|
295
|
+
recipe(
|
|
296
|
+
"julia-language-server",
|
|
297
|
+
["julia"],
|
|
298
|
+
["julia"],
|
|
299
|
+
["Project.toml", "JuliaProject.toml"],
|
|
300
|
+
{ julia: [".jl"] },
|
|
301
|
+
["julia", "--startup-file=no", "--history-file=no", "-e", "using LanguageServer; runserver()"],
|
|
302
|
+
"https://github.com/julia-vscode/LanguageServer.jl",
|
|
303
|
+
),
|
|
304
|
+
recipe(
|
|
305
|
+
"powershell-editor-services",
|
|
306
|
+
["powershell"],
|
|
307
|
+
["pwsh"],
|
|
308
|
+
["PSScriptAnalyzerSettings.psd1"],
|
|
309
|
+
{ powershell: [".ps1", ".psm1", ".psd1"] },
|
|
310
|
+
[
|
|
311
|
+
"pwsh",
|
|
312
|
+
"-NoProfile",
|
|
313
|
+
"-NonInteractive",
|
|
314
|
+
"-Command",
|
|
315
|
+
'$ErrorActionPreference="Stop";Import-Module PowerShellEditorServices;$d=Join-Path (Get-Location) ".agents/tmp/powershell-lsp-$PID";[IO.Directory]::CreateDirectory($d)|Out-Null;Start-EditorServices -HostName Pi -HostProfileId Pi -HostVersion 1.0.0 -Stdio -LanguageServiceOnly -LogPath (Join-Path $d "server.log") -SessionDetailsPath (Join-Path $d "session.json")',
|
|
316
|
+
],
|
|
317
|
+
"https://github.com/PowerShell/PowerShellEditorServices",
|
|
318
|
+
),
|
|
319
|
+
recipe(
|
|
320
|
+
"neocmakelsp",
|
|
182
321
|
["cmake"],
|
|
183
|
-
["
|
|
184
|
-
["CMakeLists.txt"],
|
|
322
|
+
["neocmakelsp"],
|
|
323
|
+
["CMakeLists.txt", ".neocmake.toml", ".neocmakelint.toml"],
|
|
185
324
|
{ cmake: [".cmake"] },
|
|
186
|
-
["
|
|
187
|
-
"https://github.com/
|
|
325
|
+
["neocmakelsp", "stdio"],
|
|
326
|
+
"https://github.com/neocmakelsp/neocmakelsp",
|
|
327
|
+
|
|
328
|
+
undefined,
|
|
329
|
+
{ cmake: ["CMakeLists.txt"] },
|
|
188
330
|
),
|
|
189
331
|
recipe(
|
|
190
332
|
"vscode-json-language-server",
|
|
@@ -221,6 +363,9 @@ export const LSP_RECIPES: readonly ToolRecipe[] = [
|
|
|
221
363
|
{ dockerfile: [".dockerfile"] },
|
|
222
364
|
["docker-langserver", "--stdio"],
|
|
223
365
|
"https://github.com/rcjsuen/dockerfile-language-server-nodejs",
|
|
366
|
+
|
|
367
|
+
undefined,
|
|
368
|
+
{ dockerfile: ["Dockerfile", "Containerfile"] },
|
|
224
369
|
),
|
|
225
370
|
];
|
|
226
371
|
|
|
@@ -233,6 +378,9 @@ function recipe(
|
|
|
233
378
|
command: readonly string[],
|
|
234
379
|
documentation: string,
|
|
235
380
|
dependencies?: readonly string[],
|
|
381
|
+
fileNames?: Readonly<Record<string, readonly string[]>>,
|
|
382
|
+
|
|
383
|
+
settings?: Readonly<Record<string, unknown>>,
|
|
236
384
|
): ToolRecipe {
|
|
237
385
|
return {
|
|
238
386
|
id,
|
|
@@ -243,6 +391,12 @@ function recipe(
|
|
|
243
391
|
configFiles: rootMarkers,
|
|
244
392
|
documentation,
|
|
245
393
|
...(dependencies && { dependencies }),
|
|
246
|
-
lsp: {
|
|
394
|
+
lsp: {
|
|
395
|
+
command,
|
|
396
|
+
rootMarkers,
|
|
397
|
+
languageIds,
|
|
398
|
+
...(fileNames && { fileNames }),
|
|
399
|
+
...(settings && { settings }),
|
|
400
|
+
},
|
|
247
401
|
};
|
|
248
402
|
}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import path from "node:path";
|
|
2
|
-
|
|
3
1
|
import { requestDiagnostics, type LspDiagnosticResult } from "./lsp/diagnostics.js";
|
|
4
2
|
import { completedDiagnosticAdapter } from "./lsp/diagnostic-adapters.js";
|
|
5
3
|
import type { LspManager } from "./lsp/manager.js";
|
|
@@ -16,8 +14,7 @@ export function createLspDiagnosticSource(
|
|
|
16
14
|
async diagnose(filePath, context) {
|
|
17
15
|
const manager = await managerFor(context.cwd);
|
|
18
16
|
context.signal.throwIfAborted();
|
|
19
|
-
const
|
|
20
|
-
const client = await manager.getOrStart(extension, context.cwd, "diagnostics");
|
|
17
|
+
const client = await manager.getOrStart(filePath, context.cwd, "diagnostics");
|
|
21
18
|
context.signal.throwIfAborted();
|
|
22
19
|
if (!client)
|
|
23
20
|
return {
|
|
@@ -26,8 +23,8 @@ export function createLspDiagnosticSource(
|
|
|
26
23
|
reason: "No language server configured for this file",
|
|
27
24
|
};
|
|
28
25
|
const uri = client.toUri(filePath);
|
|
29
|
-
const languageId = manager.languageId(
|
|
30
|
-
client.syncDocument(uri, context.content, languageId);
|
|
26
|
+
const languageId = manager.languageId(filePath);
|
|
27
|
+
client.syncDocument(uri, context.content, languageId, true);
|
|
31
28
|
let version = client.documentVersion(uri);
|
|
32
29
|
const refreshState = { active: true, queued: false };
|
|
33
30
|
const current = () => !context.signal.aborted && client.documentVersion(uri) === version;
|
|
@@ -44,7 +41,7 @@ export function createLspDiagnosticSource(
|
|
|
44
41
|
while (refreshState.queued && current()) {
|
|
45
42
|
refreshState.queued = false;
|
|
46
43
|
const result = await request();
|
|
47
|
-
if (current()) context.publish(toReport(result));
|
|
44
|
+
if (current()) context.publish(toReport(result, client.commandName));
|
|
48
45
|
}
|
|
49
46
|
} catch (error) {
|
|
50
47
|
if (current())
|
|
@@ -52,6 +49,7 @@ export function createLspDiagnosticSource(
|
|
|
52
49
|
status: "unavailable",
|
|
53
50
|
diagnostics: [],
|
|
54
51
|
reason: error instanceof Error ? error.message : String(error),
|
|
52
|
+
source: client.commandName,
|
|
55
53
|
});
|
|
56
54
|
} finally {
|
|
57
55
|
refreshState.active = false;
|
|
@@ -73,6 +71,7 @@ export function createLspDiagnosticSource(
|
|
|
73
71
|
context.publish({
|
|
74
72
|
status: "snapshot",
|
|
75
73
|
diagnostics: event.diagnostics,
|
|
74
|
+
source: client.commandName,
|
|
76
75
|
reason: snapshotReason(event.version === undefined),
|
|
77
76
|
});
|
|
78
77
|
}
|
|
@@ -81,7 +80,7 @@ export function createLspDiagnosticSource(
|
|
|
81
80
|
try {
|
|
82
81
|
const result = await request();
|
|
83
82
|
version = client.documentVersion(uri);
|
|
84
|
-
return toReport(result);
|
|
83
|
+
return toReport(result, client.commandName);
|
|
85
84
|
} catch (error) {
|
|
86
85
|
refreshState.queued = false;
|
|
87
86
|
unsubscribe();
|
|
@@ -102,12 +101,13 @@ function snapshotReason(unversioned: boolean): string {
|
|
|
102
101
|
return `Latest push snapshot; completion is unknown${unversioned ? "; language server omitted the document version" : ""}`;
|
|
103
102
|
}
|
|
104
103
|
|
|
105
|
-
function toReport(result: LspDiagnosticResult): IdeDiagnosticReport {
|
|
104
|
+
function toReport(result: LspDiagnosticResult, source: string): IdeDiagnosticReport {
|
|
106
105
|
return result.complete
|
|
107
|
-
? { status: "ready", diagnostics: result.diagnostics }
|
|
106
|
+
? { status: "ready", diagnostics: result.diagnostics, source }
|
|
108
107
|
: {
|
|
109
108
|
status: "snapshot",
|
|
110
109
|
diagnostics: result.diagnostics,
|
|
111
110
|
reason: snapshotReason(result.unversioned),
|
|
111
|
+
source,
|
|
112
112
|
};
|
|
113
113
|
}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import path from "node:path";
|
|
2
|
-
|
|
3
1
|
import { DOCTOR_API_VERSION, DOCTOR_PROTOCOL } from "pi-agent-doctor/api/plugin-protocol";
|
|
4
2
|
import { URI } from "vscode-uri";
|
|
5
3
|
|
|
@@ -106,7 +104,7 @@ async function inspectLspSetup(context: DoctorContext): Promise<DoctorSetupInspe
|
|
|
106
104
|
|
|
107
105
|
for (const [languageId, files] of context.detectedLanguages) {
|
|
108
106
|
const selected = files
|
|
109
|
-
.flatMap((file) => registry.resolve(
|
|
107
|
+
.flatMap((file) => registry.resolve(file))
|
|
110
108
|
.find((server) => server.languageId === languageId);
|
|
111
109
|
if (selected === undefined) {
|
|
112
110
|
continue;
|
|
@@ -141,7 +139,7 @@ function applicableServers(
|
|
|
141
139
|
const applicable = new Map<string, ResolvedServer>();
|
|
142
140
|
|
|
143
141
|
for (const file of files) {
|
|
144
|
-
const server = registry.resolve(
|
|
142
|
+
const server = registry.resolve(file)[0];
|
|
145
143
|
|
|
146
144
|
if (server !== undefined && !applicable.has(server.serverId)) {
|
|
147
145
|
applicable.set(server.serverId, server);
|