@codua/codeoutline-win32-x64 0.3.8 → 0.3.9
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/README.md +5 -0
- package/README.zh-CN.md +4 -0
- package/bin/xnet.exe +0 -0
- package/build-info.json +1 -1
- package/editors/codeoutline.vsix +0 -0
- package/editors/zed/extension.wasm +0 -0
- package/keys/update-ca.crt +18 -18
- package/package.json +1 -1
- package/scripts/codeoutline/analysis/graph.lua +7 -16
- package/scripts/codeoutline/command.lua +3 -3
- package/scripts/codeoutline/query/definition_candidates.lua +12 -8
- package/scripts/codeoutline/query/navigation.lua +24 -7
- package/scripts/codeoutline/shared/rules.lua +9 -1
- package/scripts/codeoutline/update_sequence.lua +1 -1
- package/scripts/codeoutline/version.lua +1 -1
package/README.md
CHANGED
|
@@ -23,6 +23,11 @@ codeoutline --version
|
|
|
23
23
|
codeoutline --help
|
|
24
24
|
```
|
|
25
25
|
|
|
26
|
+
To fully uninstall a global npm installation, run `codeoutline remove`. It stops
|
|
27
|
+
the shared service, removes integrations and default user data, and then
|
|
28
|
+
uninstalls the npm package. npm hides the install script's output by default.
|
|
29
|
+
Use `--foreground-scripts` to see the uninstall reminder during setup.
|
|
30
|
+
|
|
26
31
|
To choose each detected AI tool and Zed, VS Code or Cursor editor during global
|
|
27
32
|
installation, use npm's foreground mode. Each prompt defaults to installation.
|
|
28
33
|
The shared service then starts automatically, without another install command:
|
package/README.zh-CN.md
CHANGED
|
@@ -19,6 +19,10 @@ codeoutline --version
|
|
|
19
19
|
codeoutline --help
|
|
20
20
|
```
|
|
21
21
|
|
|
22
|
+
全局安装后,如需完整卸载,请运行 `codeoutline remove`。它会停止共享服务、
|
|
23
|
+
清理集成和默认用户数据,再卸载 npm 包。npm 默认隐藏安装脚本的输出,
|
|
24
|
+
加上 `--foreground-scripts` 即可在安装时看到卸载提示。
|
|
25
|
+
|
|
22
26
|
如需在全局安装时对检测到的每个 AI 工具和 Zed、VS Code、Cursor 逐项确认,
|
|
23
27
|
请使用 npm 的前台模式。每项默认安装,随后自动启动共享服务,无需再次执行安装命令:
|
|
24
28
|
|
package/bin/xnet.exe
CHANGED
|
Binary file
|
package/build-info.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"runtimeCommit":"be18042e9091379bf45624771a4e8819d2709f84","runtimeBuild":"4f732f99896571583bf36c62f9e00127fdffe245f43bacd27ee38e08d9cd1298","lua":"LuaJIT 2.1.1774896198","sourceCommit":"480dc6748fa8800982b96b35a1a3f4ce8d41173b","sourceDirty":false,"releaseReady":true,"note":"Release build from a clean checkout","sha256":{"bin/xnet.exe":"5184cdcd5f125c68b17f42297f9c288738433ff2013703da2872628a5be3636c","scripts/codeoutline/analysis/csharp/csharp_bindings.lua":"722c8fb2b133bbe09179293b068967fe70e7a2e8942380068a04a97b1283a43d","scripts/codeoutline/analysis/python/python_bindings.lua":"ec4217f77345282a5522696c1b53e3886fb0e9a45736c10613fcb0fd4f016160","scripts/codeoutline/query/explore.lua":"04c670153afe4a2052a06ff9f21bec197ac82faaba53a7bd3335c93d31469544","scripts/codeoutline/install/daemon.lua":"06863991135cc9a85f07bca8310296f0df9e415b3e2de97ae006393e777b009b","scripts/codeoutline/analysis/dispatch_aliases.lua":"05f3b06d7d890089b8e18a2e849df9a5ec433bce5312a22d80b7be417e614373","scripts/codeoutline/analysis/receivers.lua":"3b2d09cab61dac5549e96fb007d0538661391c1d4f25573d1872221d8c7b2d3c","editors/zed/extension.wasm":"22655024875868084fc43c92abdccfeb03773d40bf03d5ce18068384c3122fd9","scripts/codeoutline/install/editor_install.lua":"a69f5e123f7fbdb58fe2da691c744c0668a11ccd88f17a98167038c80a5d4cff","scripts/codeoutline/query/navigation.lua":"48175a1fd5cb6739693b9594370ccdf6ff01d54f2db521b6950e055cd855147f","scripts/codeoutline/analysis/foreign.lua":"4c8fdbe398f2b43be861ce0e4915916956c1fb2af6c10c5c04a9654e8aac2bf2","scripts/codeoutline/analysis/resolution.lua":"ec137a38abfdcb7f366861a123480a3b3125a76acf7399a784f8fb207e833d0b","scripts/codeoutline/install/install_prompt.lua":"588c90cd2955756b13a96e1f0d17145a51eda239c9cf179d5eac195532ee9f49","scripts/codeoutline/query/on_demand.lua":"7faf5e4d5f21ca73903903703178d9d983c98d1ddb30d9ca5656bbae676e1f1a","scripts/xupgate/common.lua":"e449f64c92e4ef46d0c9f4c815aacb38866392cbc3502544d3a1985f9dc4f978","scripts/codeoutline/analysis/function_values.lua":"d10bc4a2a82a90a611daf3c2bb26c41da43543f7831711bd4b0c311ad5569d80","scripts/codeoutline/lang/cpp.lua":"e13eaf1882cddb20a7a651d13136e06ca42c482cf7ac53de38bf82fdda786727","scripts/codeoutline/query/query_filters.lua":"dfaac210f8ebf53d0e4515866b0128a77ff77cb0c8d7d558b71a4eaf9f2b32ef","scripts/xupgate/http_client.lua":"e910132b82779969926f959fc876da4aa4807559f91d1d01d32b263f1784e01d","scripts/codeoutline/lang/csharp.lua":"93762ccefd326fb04fcc5c5dd73821241216e9374de2abbe9e4f53fe5af1c160","scripts/codeoutline/analysis/rust/cargo_toml.lua":"78f4f8bcf14f8db80bdac9fc2568988372d3cca222f82b34708f5330c00c8771","scripts/codeoutline/query/query_report.lua":"f53c24c48f3f94dd17c7f0be5501865aff0af73d926f27e03d9849c168996462","scripts/xupgate/http_codec.lua":"a5b0f127105ba6dbd4a518a214ca55e22c7510e6b2fc8c25c325898d8346ef8c","scripts/codeoutline/lang/go.lua":"027afb44a9c3a92aa74b9af230d8571963183697529fd41fe915ffa831f3e8da","scripts/codeoutline/analysis/go/go_frameworks.lua":"2f2a692a6dbda384abf32af0750bb40e99f1bc3e83f039215f0eaf750cf77f65","scripts/codeoutline/query/search_ranking.lua":"153987a2915c48516b8dca10121b8efa2b116af8cf82200243e45f1fd5feffb4","scripts/codeoutline/analysis/rust/rust_packages.lua":"c6886a77017bf039499d93027b28bd354599875a5d3705f622ea3366512432e8","scripts/codeoutline/lang/java.lua":"3c6b2d844202cbe988644e94090be76e7f8a2a906f4412aefcbd06e9fb56a01b","scripts/codeoutline/query/type_hierarchy.lua":"e5ccfa85ac63c636f50d33310274559624c08954e1f77a197ff941d799669b37","scripts/codeoutline/analysis/go/go_methods.lua":"71832a6b8941a6b6f9155c59cec2da7c33108a132608cdaa2cd85076c4e241cf","scripts/codeoutline/analysis/rust/rust_resolution.lua":"2b9ec789243cda63107a721e8d907faa3d3d5c18f21a69b634db4deac9e586ee","scripts/codeoutline/lang/js.lua":"ff326c9ef41deb5ec7f961a556350b69c4b601a176d696114a2096d5118c2379","codeoutline":"1909247ba17be9d0fe14d689ea7c1c955013b5b79f05336e2161b6f161c4c394","scripts/codeoutline/query/type_references.lua":"9119a2c55b2ae825190ac50d97d6a4cacacd33a707cd1e98b532c4a7d02e4a0c","codeoutline.cmd":"52ee46a6010ff1161369e50df76e96beed2d6152f8c8e5095f73bc0b60a7629b","scripts/codeoutline/analysis/go/go_modules.lua":"432dc66435fe93fbc2a7d1aa4212ae03ad5454effd18ffb3e06c2eca6a169aab","scripts/codeoutline/lang/kotlin.lua":"8b5dabbbede62bf0a1376414f7424e6dd3a248739cc015c2364d143901230d86","editors/zed/extension.toml":"2c5e28806d71e03b0c421d35b8a9aa9e1d428038417aebd7bdf3c871b22d93f4","scripts/codeoutline/analysis/graph.lua":"41f80f733f289f3ebea57e3442a97c55cdcb1384db11f1901853a13af75db0e5","THIRD_PARTY.md":"a0d596a8600c5244b27c1426a81b4ec7046d213d733ec6b4287a4b1e8db501b5","DISTRIBUTION.md":"7f1b6d02bd3fa71a7d02cbd57bebd82fbd930d96c1cb32a5f15764466c88ef12","scripts/codeoutline/lang/lua.lua":"813efafda42e27d0bc9b4bdbf1e9e481ec8b834a6127db54e1ed56e61f7d5626","scripts/codeoutline/analysis/static_dispatch.lua":"9940f4c4317e8f5345a9f39178fac639278bc186265a72369f1be808bdeebd29","README.zh-CN.md":"d65838da7d26d7f35df6d60c3c24b2142219131197b23e237128c83e2602250c","README.md":"291594269b54eb0690bad6c05b06585cd28989e9ddde9b3cc5422a6a2a944fb3","scripts/codeoutline/runtime/idle_gc.lua":"2025b037b593b5e19714b6e283c8a0490146e591de795988a543a161277714f1","scripts/codeoutline/lang/python.lua":"a0b2b64fe42e585ec922304d3b8ecd6c679a97fecfe1bc56014f1556558c9387","scripts/codeoutline/analysis/implementations.lua":"ffcd7288eae967c5628c85b8e55d93c826b30524956212dccca7d150ac7ac3be","scripts/codeoutline/analysis/type_bases.lua":"470fdcfffc3ded8bd3c9608db6128539757c91692bc714173dbb1bcdf8344e36","licenses/mbedtls.txt":"9b405ef4c89342f5eae1dd828882f931747f71001cfba7d114801039b52ad09b","licenses/lua-cmsgpack.txt":"8edfdc5282278a1268d8a6ee52f9245f1a5fe3d1c8065be00330196b1de49873","scripts/codeoutline/lang/rust.lua":"45d0a9c535d674b31990ba1052f97b2da2a98565a68294937429f443ac1c8da5","licenses/luajit.txt":"1b10a02c9474cb908da2d87bc908edd8798f9ad28d9a8c53fbd05c13227f7394","scripts/codeoutline/analysis/indirect.lua":"38e15056251400f840604af29fb3ddacac7915d2cf1c2bf7870d481497cc8831","scripts/codeoutline/analysis/type_uses.lua":"eb1ee73f0a3cb67ef3b92ed1a8b7222fbc26137f743e466338e180b416ea12cb","scripts/codeoutline/shared/text.lua":"56ee63c7b4cc63fe12d8ecd5b99410281463cdba8ca112f484e402ca6dfc5b90","scripts/codeoutline/main.lua":"9f884e383721888af68fd41f3dfdd816e65e4d569346664e390ee086a4b55fa3","licenses/libdeflate.txt":"41b60f2caab6bffdd5ba360687bd23ca653c0a1235c00380ecffc939b4cd8d75","licenses/xnet2lua.txt":"1aa8af3df70f60f1ebf2d23e14c27af1606057ad9c32a9a0d15fd76cff257532","scripts/codeoutline/version.lua":"6b55517492d5db9d9a114093ea1e1e0587736fc99d91aa775dc210f6b4a57c30","scripts/codeoutline/analysis/js/js_resolution.lua":"427a4656216878487e9c11a02faa4f6c4240fb00b126ec298479a45c12f3ecce","scripts/codeoutline/runtime/update_worker.lua":"9557e5207e440fccf15e8255b3fb1c8933ad33d1f352c19987fb825f7db45706","keys/update-ca.crt":"d9b5ec3d4628de9c5559871f39841a5f84d47c53ded4d58d6e3bba2b4c669a02","keys/update-public.pem":"7ff853339e19631b20ed3fa2cf221daa31c581e2e84d161b344b8f06de6562a8","scripts/xupgate/signature.lua":"f07de8a4093d08cc69d3c1d8296d23318c5d81344ece788d4453a9b3b700f000","scripts/xupgate/proxy.lua":"5bf532e7005f44555d6a5277336e5ad395af060585c13a1cdc2441de50e0dcff","scripts/codeoutline/analysis/js/js_workspace.lua":"230df95605e0ce47a940f425611d426eaa3d4de262736e3dfe3bd1f15db956b4","scripts/codeoutline/command.lua":"0b16dc8b960569bc7fc3d6c363f41d0672da8271de05ca0728ae5c1deb471fc6","scripts/codeoutline/parsing/common.lua":"6c883bb69827fd9e88e35f7ecc380f43e3a839fbea127e46ad6923c44beeb590","scripts/xupgate/client.lua":"88d8ccdd54282257d233af714fad22abc7af4b9ad65882f58330cc8814461985","lib/xhttp_codec.lua":"a5b0f127105ba6dbd4a518a214ca55e22c7510e6b2fc8c25c325898d8346ef8c","scripts/codeoutline/update_sequence.lua":"b6b484a109a9ea291a9f1c48136147c8b7c8f31ea86e74d336ea8c65a8a1e78f","scripts/codeoutline/analysis/js/ts_implementations.lua":"2e92afd3b76a3dab73b99d7900dd357d37b9749a11c5bc11946e0d62d39e7be8","scripts/codeoutline/analysis/automatic_events.lua":"2d81c3e943964680e13b6005b823f05637c31891f3759fec7074e14d20b7f150","scripts/codeoutline/parsing/language_detect.lua":"4c9fd0fcd270cfd123e9e9d0bcc2f3635cd19a8784098a03cee6bce5ac593e8c","scripts/codeoutline/query/callers.lua":"b1870f2d08c2274ce743d513560ce9329e16236399e065027685dbf8694c82ab","LICENSE":"1b63179362acd482b4a9a07ca526b3fce6d9103dcded361de2159ade174568b6","scripts/codeoutline/lang/c.lua":"f341d250a09a937d8548657991bdeac0aec8de26b7d056292709126ee999c6f1","scripts/codeoutline/shared/control.lua":"b67a2e382e021f0793ef313aa4e71faab76f6cb77ca127f499d01ae96f36a8db","scripts/codeoutline/parsing/parse.lua":"81dacf0f07440f1a7516732c39251d0d7f07cef77f7d8f9f25bdacd96c7919a0","scripts/codeoutline/indexing/cache_repairs.lua":"7e31a6118c3e991382ae2751a8b1d4913bcbf4e24d35f56253f46e156e8420a5","scripts/codeoutline/shared/path.lua":"407bd960c1ad04e5006b321ce33263393bb40eee5dee5c123be9b36d3ad10937","scripts/codeoutline/service.lua":"795797bf7d3b329e67fff5b3d8bd9ab2681dfb2472f7d9a8236756bea67c0c56","scripts/codeoutline/runtime/parse_worker.lua":"4cb620924fbe43d0f9a411c689060575220c0b2947d09fba266fe552ad003cfe","scripts/codeoutline/parsing/xscan.lua":"bd95a1b0b7022d029a41aab615897502478b5834612505e8d299343cb5ca8ef9","scripts/codeoutline/analysis/lua/foreign_lua.lua":"c217da78314febeff5d20c9d7e9f68e25089d1e76f4350405d83af494deac3dc","scripts/codeoutline/runtime/index_worker.lua":"0bfbf38fe9cb6e8a92b958028c6df9970575f881330dd4568a621463d20497b8","scripts/codeoutline/indexing/cpp_fragments.lua":"6be4c3f89c234b6982235981d9f128875790acd5d22f80fe11290bb99af903a3","scripts/codeoutline/query/external_headers.lua":"9b8d8a87a67839d4da1d5eced619d7c54431dbff32b07d505ea54350bdc2de3b","scripts/codeoutline/shared/rules.lua":"b01402863062435a6d31a4a5a90208319876fdb444a76c75fd0c45ea8ee6fee5","scripts/codeoutline/analysis/cpp/cpp_bindings.lua":"06adeb3b4a56d97555b6e4bd775de8dd1c9d2331474b670d53188d4fbe4b3b0c","scripts/codeoutline/analysis/shared_events.lua":"88fb64d66e6d41da3beeaeff86f6357b5a8ceae16003ba194aaa01171e4874f1","scripts/codeoutline/analysis/lua/lua_bindings.lua":"8fa65c14a7da95ec2d3ded2484807481123216af05c9ba8c70c929d4d4b0490d","scripts/codeoutline/analysis/js/js_evidence.lua":"523913dcadb37ec433b31103c12218c383001851b7cf965cf4505065917d8afe","scripts/codeoutline/indexing/index.lua":"459a02dd0c436df968703b74b9fb4624b6fdb4adfffc2383c7abbdb683ef6160","scripts/codeoutline/query/affected.lua":"7fe6ae466b314957f39ceb8fcc1f0a5339d523c86f99ce5735599a2477865b72","scripts/codeoutline/protocol/http.lua":"bd558939df95e4a908551f43ca5bf0eb68d7a16b8eb20b1b4076a5ece20956b7","scripts/codeoutline/analysis/cpp/cpp_implementations.lua":"87d637812626672f44226e245f94d675e209a83e4cd2d6b2a320ed9d60a6a3d0","scripts/codeoutline/analysis/lua/lua_callback_loops.lua":"2b28f338ebc23c8a6543fad61e932ceaee409512b69a71711d385fcc0bdafd4c","scripts/codeoutline/updater.lua":"267c4b6e9704fce710f44d1bfceac69c1857e34e064d8444d7890f0e10d921c7","scripts/codeoutline/indexing/parse_pool.lua":"5a35dad6a6a44a2dccd793a694e65e5a2bdb621911d56bdb32375ce8295889d8","scripts/codeoutline/query/completion.lua":"ff2c4102b9a73042f84e823e13ce685aa1d164ee84765db513da2b8ae515e763","scripts/codeoutline/protocol/lsp.lua":"f236c0407dc8b479c883cd526a19dca61efd999926e70d564d299c3972074224","scripts/codeoutline/analysis/cpp/cpp_includes.lua":"7a2de73f528a608eb89aea0f5fe8d18b3ef51d6e9966106af0ecd41f03304d07","scripts/codeoutline/analysis/lua/lua_literal.lua":"5fdd90a872988622337410c7e516d41b789ce4326c4aa6dddcd61998fe5aef90","scripts/codeoutline/protocol/mcp.lua":"1e65df410d6cede3cc0fb227ea406a5e7e178d425b5ed861f73d8b748fbdbae7","scripts/codeoutline/query/coverage.lua":"3a4a0e5f5ea8b7ea4a0be62c7c1a202153cf0c5c3423f78b100aecbb39513d5e","scripts/codeoutline/protocol/lsp_trace.lua":"41e6e67866eb6c862cf11337a637a94505f62a29533a9dbd6226d3b801444597","scripts/codeoutline/analysis/cpp/cpp_macros.lua":"fa79cd9ea652be2a921f930d0ec21dcfc1d61b15e0ea2cd22ad4141eeb4e9552","scripts/codeoutline/analysis/cpp/cpp_types.lua":"18e68635a30f86a8975cc556839ed2be961685353dec290749fd169d3049cf16","scripts/codeoutline/analysis/ordinary_bindings.lua":"ec9f3609650f2ec05dd429e178118a4dded9b6c40cfecdd5efcdeb5e0bb2ad94","scripts/codeoutline/query/definition_candidates.lua":"4ae55444daacc2ea2f52635781ef4127811849fb6f04a62c62411853c75eced0","scripts/codeoutline/cli.lua":"28b058bbb3c86d9e6a7603c52ef62eacc8978af6c2201e61bfb8100bc79be4b2","scripts/codeoutline/install/agent_config.lua":"041e1736f7be060b9eac9f3ced0b20f50854d94af2cddfa22c5d3868f3fc1681","editors/codeoutline.vsix":"2b295d0e76565c3cf5935282c3f59c65bf7323060eb3ba76622cd5cf0633364c","scripts/codeoutline/analysis/cpp/cpp_receivers.lua":"4f9bea5325d0ccd3ddfe5117bf8891408d41988bdc94d6a388363624b64df0f3","scripts/codeoutline/query/documents.lua":"1ed27cb6f805c1ff9acbc070f16e582b71c4a330c5539fb3d7b8ed4150c82bdf","scripts/codeoutline/install/agent_install.lua":"32409b49dd1e8436169f334587b4994c9d6868ed3ff5c4eaed09b4b3b8ca12c4"},"target":"win32-x64","version":"0.3.8","updateSequence":27}
|
|
1
|
+
{"target":"win32-x64","runtimeCommit":"be18042e9091379bf45624771a4e8819d2709f84","version":"0.3.9","lua":"LuaJIT 2.1.1774896198","sourceCommit":"d13c133a8a1edaed1a306b8e3d9efe136ad2782e","sourceDirty":false,"releaseReady":true,"note":"Release build from a clean checkout","sha256":{"scripts/codeoutline/query/affected.lua":"7fe6ae466b314957f39ceb8fcc1f0a5339d523c86f99ce5735599a2477865b72","scripts/codeoutline/analysis/type_uses.lua":"eb1ee73f0a3cb67ef3b92ed1a8b7222fbc26137f743e466338e180b416ea12cb","scripts/codeoutline/analysis/graph.lua":"70eed1852ca77615de7530947b1278a83ae38e04d1a26930251bc506de357541","scripts/codeoutline/lang/cpp.lua":"e13eaf1882cddb20a7a651d13136e06ca42c482cf7ac53de38bf82fdda786727","scripts/codeoutline/query/callers.lua":"b1870f2d08c2274ce743d513560ce9329e16236399e065027685dbf8694c82ab","scripts/codeoutline/analysis/python/python_bindings.lua":"ec4217f77345282a5522696c1b53e3886fb0e9a45736c10613fcb0fd4f016160","scripts/codeoutline/cli.lua":"28b058bbb3c86d9e6a7603c52ef62eacc8978af6c2201e61bfb8100bc79be4b2","scripts/codeoutline/analysis/implementations.lua":"ffcd7288eae967c5628c85b8e55d93c826b30524956212dccca7d150ac7ac3be","scripts/codeoutline/query/completion.lua":"ff2c4102b9a73042f84e823e13ce685aa1d164ee84765db513da2b8ae515e763","scripts/codeoutline/analysis/receivers.lua":"3b2d09cab61dac5549e96fb007d0538661391c1d4f25573d1872221d8c7b2d3c","scripts/codeoutline/command.lua":"3e85c469d3f4eabeb9bae662c6fa6daf46eccb47886f40feb7406a7f486bc553","bin/xnet.exe":"951c9f93e538f4679f23192aebab200bf6c0cb5768311fd0b14c7ee5ffb84f85","scripts/codeoutline/lang/java.lua":"3c6b2d844202cbe988644e94090be76e7f8a2a906f4412aefcbd06e9fb56a01b","scripts/codeoutline/analysis/resolution.lua":"ec137a38abfdcb7f366861a123480a3b3125a76acf7399a784f8fb207e833d0b","scripts/codeoutline/query/definition_candidates.lua":"eeb78de0c92e11729d84d4e338cba9424e73e8616bb251c533a4c2e5a201bf8a","scripts/codeoutline/lang/js.lua":"ff326c9ef41deb5ec7f961a556350b69c4b601a176d696114a2096d5118c2379","scripts/codeoutline/query/documents.lua":"1ed27cb6f805c1ff9acbc070f16e582b71c4a330c5539fb3d7b8ed4150c82bdf","codeoutline":"1909247ba17be9d0fe14d689ea7c1c955013b5b79f05336e2161b6f161c4c394","scripts/codeoutline/analysis/js/js_evidence.lua":"523913dcadb37ec433b31103c12218c383001851b7cf965cf4505065917d8afe","scripts/codeoutline/lang/kotlin.lua":"8b5dabbbede62bf0a1376414f7424e6dd3a248739cc015c2364d143901230d86","codeoutline.cmd":"52ee46a6010ff1161369e50df76e96beed2d6152f8c8e5095f73bc0b60a7629b","scripts/codeoutline/query/explore.lua":"04c670153afe4a2052a06ff9f21bec197ac82faaba53a7bd3335c93d31469544","scripts/codeoutline/analysis/rust/cargo_toml.lua":"78f4f8bcf14f8db80bdac9fc2568988372d3cca222f82b34708f5330c00c8771","scripts/codeoutline/version.lua":"3c66db508542c89884cb96cb7cdcf504f7e9dd94b75b0c4f8a83962e5e7065c3","scripts/codeoutline/lang/lua.lua":"813efafda42e27d0bc9b4bdbf1e9e481ec8b834a6127db54e1ed56e61f7d5626","scripts/codeoutline/analysis/js/js_resolution.lua":"427a4656216878487e9c11a02faa4f6c4240fb00b126ec298479a45c12f3ecce","scripts/codeoutline/query/external_headers.lua":"9b8d8a87a67839d4da1d5eced619d7c54431dbff32b07d505ea54350bdc2de3b","scripts/xupgate/common.lua":"e449f64c92e4ef46d0c9f4c815aacb38866392cbc3502544d3a1985f9dc4f978","keys/update-public.pem":"7ff853339e19631b20ed3fa2cf221daa31c581e2e84d161b344b8f06de6562a8","scripts/codeoutline/lang/python.lua":"a0b2b64fe42e585ec922304d3b8ecd6c679a97fecfe1bc56014f1556558c9387","editors/codeoutline.vsix":"c33d53057e8ee1b8fed04898843b74157bd079a8d1ddf0b09dbb27c550a8f95d","scripts/codeoutline/analysis/js/js_workspace.lua":"230df95605e0ce47a940f425611d426eaa3d4de262736e3dfe3bd1f15db956b4","scripts/codeoutline/indexing/index.lua":"459a02dd0c436df968703b74b9fb4624b6fdb4adfffc2383c7abbdb683ef6160","THIRD_PARTY.md":"a0d596a8600c5244b27c1426a81b4ec7046d213d733ec6b4287a4b1e8db501b5","scripts/codeoutline/lang/rust.lua":"45d0a9c535d674b31990ba1052f97b2da2a98565a68294937429f443ac1c8da5","DISTRIBUTION.md":"7f1b6d02bd3fa71a7d02cbd57bebd82fbd930d96c1cb32a5f15764466c88ef12","scripts/codeoutline/query/on_demand.lua":"7faf5e4d5f21ca73903903703178d9d983c98d1ddb30d9ca5656bbae676e1f1a","scripts/codeoutline/analysis/js/ts_implementations.lua":"2e92afd3b76a3dab73b99d7900dd357d37b9749a11c5bc11946e0d62d39e7be8","README.zh-CN.md":"d84d8534c4715bb3e92a3928989e0611c17a34b1bee8d812f1b2afb3760a3126","scripts/codeoutline/main.lua":"9f884e383721888af68fd41f3dfdd816e65e4d569346664e390ee086a4b55fa3","README.md":"eac24ff9da12607b720c41059355498351fdd22a8dad1db400333a28f5dc83a3","scripts/codeoutline/query/query_filters.lua":"dfaac210f8ebf53d0e4515866b0128a77ff77cb0c8d7d558b71a4eaf9f2b32ef","scripts/xupgate/proxy.lua":"5bf532e7005f44555d6a5277336e5ad395af060585c13a1cdc2441de50e0dcff","scripts/codeoutline/query/navigation.lua":"a2c444ea0408f528c366674997cd71b1e22691a32150e6f590a3fab1d5dbfeb4","scripts/codeoutline/indexing/cache_repairs.lua":"7e31a6118c3e991382ae2751a8b1d4913bcbf4e24d35f56253f46e156e8420a5","licenses/luajit.txt":"1b10a02c9474cb908da2d87bc908edd8798f9ad28d9a8c53fbd05c13227f7394","scripts/codeoutline/query/query_report.lua":"f53c24c48f3f94dd17c7f0be5501865aff0af73d926f27e03d9849c168996462","scripts/xupgate/signature.lua":"f07de8a4093d08cc69d3c1d8296d23318c5d81344ece788d4453a9b3b700f000","LICENSE":"1b63179362acd482b4a9a07ca526b3fce6d9103dcded361de2159ade174568b6","scripts/codeoutline/analysis/cpp/cpp_macros.lua":"fa79cd9ea652be2a921f930d0ec21dcfc1d61b15e0ea2cd22ad4141eeb4e9552","scripts/codeoutline/query/search_ranking.lua":"153987a2915c48516b8dca10121b8efa2b116af8cf82200243e45f1fd5feffb4","scripts/codeoutline/parsing/common.lua":"6c883bb69827fd9e88e35f7ecc380f43e3a839fbea127e46ad6923c44beeb590","scripts/codeoutline/analysis/automatic_events.lua":"2d81c3e943964680e13b6005b823f05637c31891f3759fec7074e14d20b7f150","licenses/xnet2lua.txt":"1aa8af3df70f60f1ebf2d23e14c27af1606057ad9c32a9a0d15fd76cff257532","lib/xhttp_codec.lua":"a5b0f127105ba6dbd4a518a214ca55e22c7510e6b2fc8c25c325898d8346ef8c","scripts/codeoutline/analysis/cpp/cpp_receivers.lua":"4f9bea5325d0ccd3ddfe5117bf8891408d41988bdc94d6a388363624b64df0f3","scripts/codeoutline/query/type_hierarchy.lua":"e5ccfa85ac63c636f50d33310274559624c08954e1f77a197ff941d799669b37","scripts/codeoutline/parsing/language_detect.lua":"4c9fd0fcd270cfd123e9e9d0bcc2f3635cd19a8784098a03cee6bce5ac593e8c","scripts/codeoutline/runtime/index_worker.lua":"0bfbf38fe9cb6e8a92b958028c6df9970575f881330dd4568a621463d20497b8","editors/zed/extension.toml":"2c5e28806d71e03b0c421d35b8a9aa9e1d428038417aebd7bdf3c871b22d93f4","scripts/xupgate/http_codec.lua":"a5b0f127105ba6dbd4a518a214ca55e22c7510e6b2fc8c25c325898d8346ef8c","scripts/codeoutline/analysis/cpp/cpp_types.lua":"18e68635a30f86a8975cc556839ed2be961685353dec290749fd169d3049cf16","scripts/codeoutline/parsing/parse.lua":"81dacf0f07440f1a7516732c39251d0d7f07cef77f7d8f9f25bdacd96c7919a0","scripts/xupgate/http_client.lua":"e910132b82779969926f959fc876da4aa4807559f91d1d01d32b263f1784e01d","scripts/codeoutline/indexing/parse_pool.lua":"5a35dad6a6a44a2dccd793a694e65e5a2bdb621911d56bdb32375ce8295889d8","scripts/xupgate/client.lua":"88d8ccdd54282257d233af714fad22abc7af4b9ad65882f58330cc8814461985","editors/zed/extension.wasm":"9d96fc4cff01cc0a354240325d7b6596cba1e6c5e4fedd4d2ecb3f31caa4dfec","scripts/codeoutline/parsing/xscan.lua":"bd95a1b0b7022d029a41aab615897502478b5834612505e8d299343cb5ca8ef9","scripts/codeoutline/update_sequence.lua":"3e6f9b2707439adb92c6db6aa550c225676ae7de6b9e7f20bf897bbbf07e0b57","scripts/codeoutline/analysis/cpp/cpp_bindings.lua":"06adeb3b4a56d97555b6e4bd775de8dd1c9d2331474b670d53188d4fbe4b3b0c","scripts/codeoutline/updater.lua":"267c4b6e9704fce710f44d1bfceac69c1857e34e064d8444d7890f0e10d921c7","scripts/codeoutline/analysis/csharp/csharp_bindings.lua":"722c8fb2b133bbe09179293b068967fe70e7a2e8942380068a04a97b1283a43d","scripts/codeoutline/shared/text.lua":"56ee63c7b4cc63fe12d8ecd5b99410281463cdba8ca112f484e402ca6dfc5b90","scripts/codeoutline/runtime/idle_gc.lua":"2025b037b593b5e19714b6e283c8a0490146e591de795988a543a161277714f1","scripts/codeoutline/lang/go.lua":"027afb44a9c3a92aa74b9af230d8571963183697529fd41fe915ffa831f3e8da","licenses/lua-cmsgpack.txt":"8edfdc5282278a1268d8a6ee52f9245f1a5fe3d1c8065be00330196b1de49873","scripts/codeoutline/analysis/cpp/cpp_implementations.lua":"87d637812626672f44226e245f94d675e209a83e4cd2d6b2a320ed9d60a6a3d0","scripts/codeoutline/install/agent_config.lua":"041e1736f7be060b9eac9f3ced0b20f50854d94af2cddfa22c5d3868f3fc1681","scripts/codeoutline/analysis/dispatch_aliases.lua":"05f3b06d7d890089b8e18a2e849df9a5ec433bce5312a22d80b7be417e614373","scripts/codeoutline/protocol/http.lua":"bd558939df95e4a908551f43ca5bf0eb68d7a16b8eb20b1b4076a5ece20956b7","scripts/codeoutline/analysis/indirect.lua":"38e15056251400f840604af29fb3ddacac7915d2cf1c2bf7870d481497cc8831","licenses/mbedtls.txt":"9b405ef4c89342f5eae1dd828882f931747f71001cfba7d114801039b52ad09b","scripts/codeoutline/analysis/cpp/cpp_includes.lua":"7a2de73f528a608eb89aea0f5fe8d18b3ef51d6e9966106af0ecd41f03304d07","scripts/codeoutline/install/agent_install.lua":"32409b49dd1e8436169f334587b4994c9d6868ed3ff5c4eaed09b4b3b8ca12c4","scripts/codeoutline/analysis/foreign.lua":"4c8fdbe398f2b43be861ce0e4915916956c1fb2af6c10c5c04a9654e8aac2bf2","scripts/codeoutline/protocol/lsp.lua":"f236c0407dc8b479c883cd526a19dca61efd999926e70d564d299c3972074224","keys/update-ca.crt":"45b509a584e187fdedb666f2d8df9039f36e6bde86170b2426e583721ff42b42","scripts/codeoutline/runtime/parse_worker.lua":"4cb620924fbe43d0f9a411c689060575220c0b2947d09fba266fe552ad003cfe","scripts/codeoutline/install/daemon.lua":"06863991135cc9a85f07bca8310296f0df9e415b3e2de97ae006393e777b009b","scripts/codeoutline/runtime/update_worker.lua":"9557e5207e440fccf15e8255b3fb1c8933ad33d1f352c19987fb825f7db45706","scripts/codeoutline/analysis/function_values.lua":"d10bc4a2a82a90a611daf3c2bb26c41da43543f7831711bd4b0c311ad5569d80","scripts/codeoutline/query/type_references.lua":"9119a2c55b2ae825190ac50d97d6a4cacacd33a707cd1e98b532c4a7d02e4a0c","licenses/libdeflate.txt":"41b60f2caab6bffdd5ba360687bd23ca653c0a1235c00380ecffc939b4cd8d75","scripts/codeoutline/install/editor_install.lua":"a69f5e123f7fbdb58fe2da691c744c0668a11ccd88f17a98167038c80a5d4cff","scripts/codeoutline/service.lua":"795797bf7d3b329e67fff5b3d8bd9ab2681dfb2472f7d9a8236756bea67c0c56","scripts/codeoutline/protocol/mcp.lua":"1e65df410d6cede3cc0fb227ea406a5e7e178d425b5ed861f73d8b748fbdbae7","scripts/codeoutline/analysis/rust/rust_resolution.lua":"2b9ec789243cda63107a721e8d907faa3d3d5c18f21a69b634db4deac9e586ee","scripts/codeoutline/analysis/lua/lua_bindings.lua":"8fa65c14a7da95ec2d3ded2484807481123216af05c9ba8c70c929d4d4b0490d","scripts/codeoutline/install/install_prompt.lua":"588c90cd2955756b13a96e1f0d17145a51eda239c9cf179d5eac195532ee9f49","scripts/codeoutline/query/coverage.lua":"3a4a0e5f5ea8b7ea4a0be62c7c1a202153cf0c5c3423f78b100aecbb39513d5e","scripts/codeoutline/protocol/lsp_trace.lua":"41e6e67866eb6c862cf11337a637a94505f62a29533a9dbd6226d3b801444597","scripts/codeoutline/analysis/lua/foreign_lua.lua":"c217da78314febeff5d20c9d7e9f68e25089d1e76f4350405d83af494deac3dc","scripts/codeoutline/analysis/go/go_frameworks.lua":"2f2a692a6dbda384abf32af0750bb40e99f1bc3e83f039215f0eaf750cf77f65","scripts/codeoutline/analysis/lua/lua_callback_loops.lua":"2b28f338ebc23c8a6543fad61e932ceaee409512b69a71711d385fcc0bdafd4c","scripts/codeoutline/analysis/ordinary_bindings.lua":"ec9f3609650f2ec05dd429e178118a4dded9b6c40cfecdd5efcdeb5e0bb2ad94","scripts/codeoutline/analysis/rust/rust_packages.lua":"c6886a77017bf039499d93027b28bd354599875a5d3705f622ea3366512432e8","scripts/codeoutline/shared/control.lua":"b67a2e382e021f0793ef313aa4e71faab76f6cb77ca127f499d01ae96f36a8db","scripts/codeoutline/analysis/lua/lua_literal.lua":"5fdd90a872988622337410c7e516d41b789ce4326c4aa6dddcd61998fe5aef90","scripts/codeoutline/analysis/static_dispatch.lua":"9940f4c4317e8f5345a9f39178fac639278bc186265a72369f1be808bdeebd29","scripts/codeoutline/analysis/go/go_methods.lua":"71832a6b8941a6b6f9155c59cec2da7c33108a132608cdaa2cd85076c4e241cf","scripts/codeoutline/analysis/shared_events.lua":"88fb64d66e6d41da3beeaeff86f6357b5a8ceae16003ba194aaa01171e4874f1","scripts/codeoutline/lang/csharp.lua":"93762ccefd326fb04fcc5c5dd73821241216e9374de2abbe9e4f53fe5af1c160","scripts/codeoutline/shared/path.lua":"407bd960c1ad04e5006b321ce33263393bb40eee5dee5c123be9b36d3ad10937","scripts/codeoutline/indexing/cpp_fragments.lua":"6be4c3f89c234b6982235981d9f128875790acd5d22f80fe11290bb99af903a3","scripts/codeoutline/analysis/type_bases.lua":"470fdcfffc3ded8bd3c9608db6128539757c91692bc714173dbb1bcdf8344e36","scripts/codeoutline/analysis/go/go_modules.lua":"432dc66435fe93fbc2a7d1aa4212ae03ad5454effd18ffb3e06c2eca6a169aab","scripts/codeoutline/lang/c.lua":"f341d250a09a937d8548657991bdeac0aec8de26b7d056292709126ee999c6f1","scripts/codeoutline/shared/rules.lua":"d2a6ead429ead37d491c7eacdbcc9fa6579fcd1a7749af1345050938f0c1b5a8"},"updateSequence":28,"runtimeBuild":"4f732f99896571583bf36c62f9e00127fdffe245f43bacd27ee38e08d9cd1298"}
|
package/editors/codeoutline.vsix
CHANGED
|
Binary file
|
|
Binary file
|
package/keys/update-ca.crt
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
-----BEGIN CERTIFICATE-----
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
2
|
+
MIIDTjCCAjagAwIBAgIUGk0p4hd1nhA01S7DyxwhvrKrcBYwDQYJKoZIhvcNAQEL
|
|
3
|
+
BQAwGTEXMBUGA1UEAwwONDMuMTMzLjI1NS4xOTMwIBcNMjYxMTEzMTI1NjE4WhgP
|
|
4
|
+
OTk5OTEyMzEyMzU5NTlaMBkxFzAVBgNVBAMMDjQzLjEzMy4yNTUuMTkzMIIBIjAN
|
|
5
|
+
BgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA+iDzjNyMlP5W/ZQptT2H8YjBnMEx
|
|
6
|
+
A/in6+C5sAufazsMBu9LS+UrHQgbdDA/hsPeeXLOt4ZGKydhyVXfXz9NYa0ZS/5c
|
|
7
|
+
fdTFNKXlRefdF4ibupLKU3asM6oqNHMujNSTVqfhShD8lary00nN3K8Y30z4KD5a
|
|
8
|
+
8UrUuSJM6OMqejtDqU+LGKBwiWRZ/vXixXQz3BgFgPvNghKKJg5Jq/cOnZiM9E6W
|
|
9
|
+
5mGNzmZCi8cACRlSuzdKby74rvgfdPAVv8gykyYsVxOCxe6k90qefdt7jbDjCsBC
|
|
10
|
+
7jHceLa2XjFEmEXrVewbHeBpdcAzb6t+MfsielpJj5dR/jkbf7tQlDVzDwIDAQAB
|
|
11
|
+
o4GLMIGIMB0GA1UdDgQWBBQ7OO+fdOewuqJg3L3vIKT4UUL05DAfBgNVHSMEGDAW
|
|
12
|
+
gBQ7OO+fdOewuqJg3L3vIKT4UUL05DAPBgNVHRMBAf8EBTADAQH/MCAGA1UdEQQZ
|
|
13
|
+
MBeHBCuF/8GHBH8AAAGCCWxvY2FsaG9zdDATBgNVHSUEDDAKBggrBgEFBQcDATAN
|
|
14
|
+
BgkqhkiG9w0BAQsFAAOCAQEA9rJh7+tmZPjBUY40bVr2aZlB+fVf2jhklwlAuv/Q
|
|
15
|
+
PW4LF79D/m7Ml4C30mJfMp2/mdTs5G4JuwIkIb42ji8J8mu1wMRvwMEsGz+NU4GN
|
|
16
|
+
bNrIaYXmbVRvMqF3CWyRSBt+xeyY6eAZeCelHic5UtuhHPun0+1fH9ePe+2mTLAu
|
|
17
|
+
VUAkJQC+QbSVuTqSPmHjczSeJznBGdG4vOw2+j7iadRBoba6i0l8UVgU0tXri7l/
|
|
18
|
+
KBhGAvx52pvS8CQilalsqXqqdyDvbX3F8v7kfQjqvKgBDLKSGyNi0DS3gvVqNGen
|
|
19
|
+
Cx/lLdo5hWX3vxlvIdr7keQv7AtDUlc3CEdVF09JgbMqjg==
|
|
20
20
|
-----END CERTIFICATE-----
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"
|
|
1
|
+
{"repository":{"url":"git+https://github.com/1dao/codeoutline.git","type":"git"},"version":"0.3.9","os":["win32"],"name":"@codua/codeoutline-win32-x64","publishConfig":{"access":"public"},"description":"CodeOutline native runtime and Lua implementation for win32-x64","cpu":["x64","arm64"],"license":"BSD-2-Clause","files":["bin/","lib/","keys/","scripts/","editors/","licenses/","LICENSE","codeoutline","codeoutline.cmd","build-info.json","*.md"]}
|
|
@@ -294,7 +294,7 @@ end
|
|
|
294
294
|
|
|
295
295
|
-- owner: the innermost class of src_id, passed in by resolve_ref when the
|
|
296
296
|
-- ref kind needs it (computed once per ref, not per candidate).
|
|
297
|
-
local function score(G, f,
|
|
297
|
+
local function score(G, f, ref_kind, cid, deps, paired, owner)
|
|
298
298
|
local c = G.nodes[cid]
|
|
299
299
|
local cf = G.node_file[cid]
|
|
300
300
|
if family(G.files[cf].language) ~= family(G.files[f].language) then return nil end
|
|
@@ -302,14 +302,9 @@ local function score(G, f, src_id, ref_kind, recv, cid, deps, paired, owner)
|
|
|
302
302
|
if not s then return nil end
|
|
303
303
|
local kind = c.kind
|
|
304
304
|
if kind == 'prototype' then s = s - 3 end
|
|
305
|
-
if ref_kind == '
|
|
306
|
-
-- obj.name() on an unknown receiver: binding it to any same-named
|
|
307
|
-
-- method project-wide (str.format -> some format()) is mostly wrong,
|
|
308
|
-
-- so only local candidates qualify.
|
|
309
|
-
return nil
|
|
310
|
-
elseif ref_kind == 'call' and (G.files[f].language == 'java' or G.files[f].language == 'kotlin') and src_id then
|
|
305
|
+
if ref_kind == 'call' and owner then
|
|
311
306
|
-- unqualified call inside a class: implicit this
|
|
312
|
-
if
|
|
307
|
+
if c.parent and G.id_of[cf][c.parent] == owner then s = s + 30 end
|
|
313
308
|
end
|
|
314
309
|
return s
|
|
315
310
|
end
|
|
@@ -385,8 +380,8 @@ local function resolve_ref(G, f, src_id, name, kind, recv, deps, paired, accept,
|
|
|
385
380
|
for _, id in ipairs(exact) do if accept[G.nodes[id].kind] then result[#result + 1] = id end end
|
|
386
381
|
return result, #result == 0 and (binding_reason or 'binding target unresolved') or strategy, macro_state
|
|
387
382
|
end
|
|
388
|
-
if
|
|
389
|
-
return {}, '
|
|
383
|
+
if kind == 'member_call' then
|
|
384
|
+
return {}, 'receiver binding unresolved', macro_state
|
|
390
385
|
end
|
|
391
386
|
local cands = G.by_name[name]
|
|
392
387
|
if G.files[f].language == 'kotlin' and not recv then
|
|
@@ -410,18 +405,14 @@ local function resolve_ref(G, f, src_id, name, kind, recv, deps, paired, accept,
|
|
|
410
405
|
-- `work`, after which the Python def was filtered out too.)
|
|
411
406
|
local owner = (kind == 'call' and src_id and (G.files[f].language == 'java' or G.files[f].language == 'kotlin'))
|
|
412
407
|
and owner_class(G, src_id) or nil
|
|
413
|
-
-- score() rejects an unknown-receiver member call to an unrelated file;
|
|
414
|
-
-- checking placement first skips most candidates of common method names.
|
|
415
|
-
local local_only = kind == 'member_call'
|
|
416
408
|
local n, has_def, has_name = 0, false, false
|
|
417
409
|
for i = 1, math.min(#cands, M.MAX_CANDIDATES) do
|
|
418
410
|
local cid = cands[i]
|
|
419
411
|
local node = G.nodes[cid]
|
|
420
412
|
if cid ~= src_id and accept[node.kind]
|
|
421
413
|
and (G.files[f].language ~= 'lua' or not node['local'] or G.node_file[cid] == f
|
|
422
|
-
or lua_bindings.exported(node, name, G.lua_global_export_tables))
|
|
423
|
-
|
|
424
|
-
local s = score(G, f, src_id, kind, recv, cid, deps, paired, owner)
|
|
414
|
+
or lua_bindings.exported(node, name, G.lua_global_export_tables)) then
|
|
415
|
+
local s = score(G, f, kind, cid, deps, paired, owner)
|
|
425
416
|
if s then
|
|
426
417
|
n = n + 1
|
|
427
418
|
scored_ids[n], scored_vals[n] = cid, s
|
|
@@ -97,9 +97,9 @@ install starts the background service and registers it at login. uninstall
|
|
|
97
97
|
stops it, removes its login entry, user-level MCP registrations and editor clients.
|
|
98
98
|
--project also removes MCP entries from that project; --service-only keeps integrations.
|
|
99
99
|
--purge additionally removes ~/.codeoutline data after cleanup succeeds.
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
100
|
+
To fully uninstall a global npm installation, run codeoutline remove.
|
|
101
|
+
It deletes default user data and removes the npm package after cleanup succeeds.
|
|
102
|
+
To keep user data, run codeoutline uninstall, then npm uninstall -g codeoutline.
|
|
103
103
|
daemon is the service itself.
|
|
104
104
|
editors detects VS Code, Cursor and Zed and offers optional LSP client installation.
|
|
105
105
|
Use --editors or CODEOUTLINE_EDITORS to select clients without a prompt.
|
|
@@ -29,18 +29,20 @@ function M.find(G, f, site, ctx, lua_self, lua_initializers)
|
|
|
29
29
|
local language = G.files[f].language
|
|
30
30
|
-- These languages have package/project visibility that a name-only search
|
|
31
31
|
-- cannot establish. Their existing resolvers retain authority.
|
|
32
|
-
|
|
32
|
+
local unresolved_receiver = site.reason == 'receiver binding unresolved'
|
|
33
|
+
if not unresolved_receiver and (language == 'go' or language == 'rust' or language == 'csharp') then return {}, info end
|
|
34
|
+
if unresolved_receiver then info.reason = 'matching member name; receiver binding unconfirmed' end
|
|
33
35
|
local configured = (language == 'c' or language == 'cpp')
|
|
34
36
|
and require('codeoutline.analysis.cpp.cpp_includes').policy(G, f, ctx).configured
|
|
35
37
|
local qualified
|
|
36
|
-
if site.evidence
|
|
38
|
+
if type(site.evidence) == 'string' then qualified = site.evidence:match('^cpp:name:(.-)%z%d+$') end
|
|
37
39
|
qualified = qualified and normalized(qualified)
|
|
38
40
|
if qualified and not qualified:find('.', 1, true) then qualified = nil end
|
|
39
41
|
if not lua_self then
|
|
40
42
|
if site.recv then
|
|
41
43
|
if site.recv == 'self' or site.recv == 'this' or site.recv == 'cls' then return {}, info end
|
|
42
44
|
qualified = qualified or normalized(site.recv .. '.' .. site.name)
|
|
43
|
-
elseif site.kind == 'member_call' or site.kind == 'member_symbol' then return {}, info end
|
|
45
|
+
elseif not unresolved_receiver and (site.kind == 'member_call' or site.kind == 'member_symbol') then return {}, info end
|
|
44
46
|
end
|
|
45
47
|
local list = G.by_name[site.name] or {}
|
|
46
48
|
-- A Lua member alias is only reachable through its dotted name; its bare
|
|
@@ -82,9 +84,9 @@ function M.find(G, f, site, ctx, lua_self, lua_initializers)
|
|
|
82
84
|
if not bare then name_matches = name_matches and (normalized(node.qualified) == site.name or published) end
|
|
83
85
|
local aliased = language == 'lua' and require('codeoutline.analysis.lua.lua_bindings').member_alias(node, qualifier)
|
|
84
86
|
if qualifier then name_matches = normalized(node.qualified) == qualifier or aliased end
|
|
85
|
-
|
|
86
|
-
--
|
|
87
|
-
--
|
|
87
|
+
if bare and unresolved_receiver then name_matches = name_matches and graph.owner(node.qualified) ~= nil end
|
|
88
|
+
-- Restrict receiver candidates to members and exclude nested
|
|
89
|
+
-- functions unless they are recognized Lua initializer members.
|
|
88
90
|
-- A lexical self can inherit through runtime metatables. The editor
|
|
89
91
|
-- can offer method definition tags even without a receiver binding.
|
|
90
92
|
local lua_method = lua_self and rec.language == 'lua' and node.name == site.name and not parent
|
|
@@ -94,7 +96,9 @@ function M.find(G, f, site, ctx, lua_self, lua_initializers)
|
|
|
94
96
|
and graph.owner(parent.qualified) == site.recv and normalized(node.qualified) == qualifier
|
|
95
97
|
if lua_method or not lua_self and kind and name_matches and graph.family(rec.language) == graph.family(language)
|
|
96
98
|
and (not node['local'] or published or aliased) and not (node.static and g ~= f)
|
|
97
|
-
and (not parent or parent.kind == 'namespace'
|
|
99
|
+
and (not parent or parent.kind == 'namespace'
|
|
100
|
+
or (qualifier or unresolved_receiver) and (types[parent.kind] or parent.kind == 'impl')
|
|
101
|
+
or initialized_member)
|
|
98
102
|
and (qualifier or bare or node.kind ~= 'method' and node.kind ~= 'constructor') then
|
|
99
103
|
local score = g == f and 100 or (rec.path:match('^(.*)/') or '') == source_dir and 20 or 0
|
|
100
104
|
if node.kind ~= 'prototype' and not node.decl then score = score + 1 end
|
|
@@ -107,7 +111,7 @@ function M.find(G, f, site, ctx, lua_self, lua_initializers)
|
|
|
107
111
|
local hits, macro_hits, scanned = scan(qualified, false)
|
|
108
112
|
-- An unbound receiver still names a member. Offer the bare name instead of
|
|
109
113
|
-- an empty answer, keeping the qualified match authoritative when it hits.
|
|
110
|
-
if #hits == 0 and #macro_hits == 0 and qualified and not lua_self then
|
|
114
|
+
if #hits == 0 and #macro_hits == 0 and (qualified or unresolved_receiver) and not lua_self then
|
|
111
115
|
hits, macro_hits, scanned = scan(nil, true)
|
|
112
116
|
end
|
|
113
117
|
info.scanned = scanned
|
|
@@ -224,7 +224,9 @@ local function resolve_site(V, f, from, name, kind, recv, evidence, offset, inde
|
|
|
224
224
|
end
|
|
225
225
|
-- The resolver never binds a ref to its enclosing node, which hides recursion.
|
|
226
226
|
local receiver_bound = recv and evidence and evidence ~= '' or reason and reason:match('^receiver:')
|
|
227
|
-
if #targets == 0 and not receiver_bound and reason ~= 'unknown or unsupported macro visibility'
|
|
227
|
+
if #targets == 0 and not receiver_bound and reason ~= 'unknown or unsupported macro visibility'
|
|
228
|
+
and reason ~= 'receiver binding unresolved' and src and V.nodes[src].name == name
|
|
229
|
+
and (kind == 'call' or recursive(V.nodes[src], recv)) then
|
|
228
230
|
targets = { src }
|
|
229
231
|
end
|
|
230
232
|
-- Definitions too far apart to choose between: a visible prototype still
|
|
@@ -1099,16 +1101,31 @@ local function legacy_definition(V, doc, offset, rules)
|
|
|
1099
1101
|
end
|
|
1100
1102
|
end
|
|
1101
1103
|
if #calls == 0 and #keys == 0 then return result, false end
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
+
local scoped = #calls == 0
|
|
1105
|
+
local seen_files = {}
|
|
1106
|
+
for _, match in ipairs(keys) do
|
|
1107
|
+
local path = match[1].targetPath
|
|
1108
|
+
if not path then scoped = false; break end
|
|
1109
|
+
local f = V.file_index[path]
|
|
1110
|
+
if f and not seen_files[f] then files[#files + 1] = f; seen_files[f] = true end
|
|
1111
|
+
end
|
|
1112
|
+
if not scoped then
|
|
1113
|
+
files = {}
|
|
1114
|
+
for _, f in ipairs(V.file_order) do files[#files + 1] = f end
|
|
1115
|
+
for _, f in ipairs(V.new_files) do files[#files + 1] = f end
|
|
1116
|
+
end
|
|
1104
1117
|
table.sort(files, function(a, b) return V.files[a].path < V.files[b].path end)
|
|
1105
1118
|
for _, f in ipairs(files) do
|
|
1106
1119
|
control.check()
|
|
1107
1120
|
if os.clock() > deadline then return result, true end
|
|
1108
1121
|
if V.files[f].language == 'lua' then
|
|
1122
|
+
local file_keys = {}
|
|
1123
|
+
for _, match in ipairs(keys) do
|
|
1124
|
+
if not match[1].targetPath or match[1].targetPath == V.files[f].path then file_keys[#file_keys + 1] = match end
|
|
1125
|
+
end
|
|
1109
1126
|
local target = source_doc(V, f)
|
|
1110
1127
|
if target then
|
|
1111
|
-
local candidate = #
|
|
1128
|
+
local candidate = #file_keys > 0
|
|
1112
1129
|
for _, match in ipairs(calls) do
|
|
1113
1130
|
local tail = match[1].target:match('([%w_]+)$')
|
|
1114
1131
|
if target.source:find(tail, 1, true) then candidate = true; break end
|
|
@@ -1120,7 +1137,7 @@ local function legacy_definition(V, doc, offset, rules)
|
|
|
1120
1137
|
control.check()
|
|
1121
1138
|
if os.clock() > deadline then return result, true end
|
|
1122
1139
|
end
|
|
1123
|
-
local name = call_name(T, i)
|
|
1140
|
+
local name = #calls > 0 and call_name(T, i)
|
|
1124
1141
|
for _, match in ipairs(calls) do
|
|
1125
1142
|
if call_matches(name, match[1].target) then
|
|
1126
1143
|
local value, first, last = literal_argument(T, i, match[1].targetArgument)
|
|
@@ -1131,10 +1148,10 @@ local function legacy_definition(V, doc, offset, rules)
|
|
|
1131
1148
|
end
|
|
1132
1149
|
end
|
|
1133
1150
|
end
|
|
1134
|
-
if #
|
|
1151
|
+
if #file_keys > 0 then
|
|
1135
1152
|
local value, owner = key_literal(T, i)
|
|
1136
1153
|
if value then
|
|
1137
|
-
for _, match in ipairs(
|
|
1154
|
+
for _, match in ipairs(file_keys) do
|
|
1138
1155
|
if value == match[2] and qualifier_matches(match[1], owner)
|
|
1139
1156
|
and add({ uri = target.uri, range = target:range(T.s[i] - 1, T.e[i]) }) then
|
|
1140
1157
|
return result, true
|
|
@@ -61,6 +61,14 @@ local function definition(r, label)
|
|
|
61
61
|
result.targetKind = r.targetKind or 'call'
|
|
62
62
|
assert(result.targetKind == 'call' or result.targetKind == 'declaration' or result.targetKind == 'key',
|
|
63
63
|
"invalid " .. label .. '.targetKind')
|
|
64
|
+
if r.targetPath ~= nil then
|
|
65
|
+
assert(result.targetKind == 'key' and type(r.targetPath) == 'string' and r.targetPath ~= ''
|
|
66
|
+
and not r.targetPath:find('[\\:%z\r\n]') and not r.targetPath:match('^/'),
|
|
67
|
+
label .. '.targetPath must be a project-relative key target path')
|
|
68
|
+
for part in r.targetPath:gmatch('[^/]+') do
|
|
69
|
+
assert(part ~= '.' and part ~= '..', label .. '.targetPath must stay inside the project')
|
|
70
|
+
end
|
|
71
|
+
end
|
|
64
72
|
if result.targetKind == 'call' then
|
|
65
73
|
call(r, 'target', label); position(r, 'targetArgument', label)
|
|
66
74
|
else
|
|
@@ -83,7 +91,7 @@ function M.normalize(config)
|
|
|
83
91
|
local seen = { definitions = {}, dispatch = {} }
|
|
84
92
|
local function add(consumer, r)
|
|
85
93
|
local fields = consumer == 'dispatch' and { 'kind', 'language', 'call', 'argument', 'register', 'keyArgument', 'handlerArgument', 'serviceArgument' }
|
|
86
|
-
or { 'language', 'call', 'argument', 'targetKind', 'target', 'targetArgument', 'serviceArgument' }
|
|
94
|
+
or { 'language', 'call', 'argument', 'targetKind', 'target', 'targetArgument', 'serviceArgument', 'targetPath' }
|
|
87
95
|
local key = {}
|
|
88
96
|
for _, f in ipairs(fields) do key[#key + 1] = tostring(r[f]) end
|
|
89
97
|
if r.qualifiers then
|
|
@@ -1 +1 @@
|
|
|
1
|
-
return
|
|
1
|
+
return 28
|
|
@@ -1 +1 @@
|
|
|
1
|
-
return '0.3.
|
|
1
|
+
return '0.3.9'
|