{"id":16539512,"url":"https://github.com/chemzqm/wxml-languageserver","last_synced_at":"2026-03-15T13:45:55.257Z","repository":{"id":148040142,"uuid":"131321253","full_name":"chemzqm/wxml-languageserver","owner":"chemzqm","description":"Language server implementation for wxml file in wechat miniprogram","archived":false,"fork":false,"pushed_at":"2021-12-21T08:40:08.000Z","size":216,"stargazers_count":20,"open_issues_count":0,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-31T07:17:54.420Z","etag":null,"topics":["miniprogram","website"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chemzqm.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2018-04-27T16:34:35.000Z","updated_at":"2024-06-22T09:12:23.000Z","dependencies_parsed_at":"2023-05-28T07:00:38.236Z","dependency_job_id":null,"html_url":"https://github.com/chemzqm/wxml-languageserver","commit_stats":{"total_commits":31,"total_committers":1,"mean_commits":31.0,"dds":0.0,"last_synced_commit":"3801b9feee998d6ad18151e1021e37ff2cb6c0cc"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chemzqm%2Fwxml-languageserver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chemzqm%2Fwxml-languageserver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chemzqm%2Fwxml-languageserver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chemzqm%2Fwxml-languageserver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chemzqm","download_url":"https://codeload.github.com/chemzqm/wxml-languageserver/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chemzqm%2Fwxml-languageserver/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259099337,"owners_count":22804890,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["miniprogram","website"],"created_at":"2024-10-11T18:49:22.173Z","updated_at":"2026-03-15T13:45:50.200Z","avatar_url":"https://github.com/chemzqm.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Wxml-languageserver\n\n微信小程序 wxml 的 language server。\n\n## 主要功能\n\n* 检查 wxml 完整性，各个节点标签名，属性，以及属性值是否满足要求\n* 支持 doHover，方便查看标签和属性 markdown 文档\n* 支持自动补全，包含标签名，属性，以及可枚举属性值\n* 验证 import 和 include 中 src 定义的文件路径\n\n## 使用方法\n\n使用 npm 安装到全局：\n\n    npm install -g wxml-langserver\n\n\n启动参数：\n\n```\n  --stdio     Use stdio to communicate with the server, default behaviour\n  --node-ipc  Use node-ipc to communicate with the server. Useful for calling\n  --socket    Use a socket (with a port number like --socket=5051) to\n              communicate with the server\n```\n\n[coc.nvim](https://github.com/neoclide/coc.nvim) 已集成本插件，推荐使用。\n\n## 配置\n\nClient 可发送 `workspace/didChangeConfiguration` 通知来进行配置，支持配置项：\n\n* `complete`\n\n  * `useSnippet` 是否启用 snippet，默认通过 Client 声明的 snippet 支持判定\n  * `completeEvent` 是否包含 event 补全，默认为 true\n\n\n## 本地使用\n\n* clone 整个项目\n\n    git clone https://github.com/chemzqm/wxml-langserver.git\n\n* 安装依赖\n\n    yarn install\n\n* 执行 `yarn build` 编译 ts 文件\n* 执行 `yarn test` 运行测试\n* 执行 `gulp` 生成本地 markdown 文档\n* 执行 `./bin/wxml-langserver` 运行服务\n\n## 感谢\n\n本项目使用了 [qiu8310/minapp](https://github.com/qiu8310/minapp) 提供的\ncomponent.json 以及 [@miniapp/generator](https://github.com/qiu8310/minapp/tree/master/packages/minapp-generator)\n\n本项目使用/参考了以下项目的部分代码：\n\n* [Microsoft/vscode-html-languageservice](https://github.com/Microsoft/vscode-html-languageservice)\n* [flowtype/flow-language-server](https://github.com/flowtype/flow-language-server)\n* [vuejs/vetur](https://github.com/vuejs/vetur)\n\n## 项目协议\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchemzqm%2Fwxml-languageserver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchemzqm%2Fwxml-languageserver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchemzqm%2Fwxml-languageserver/lists"}