@azure/cosmos-language-service

中文文档
0.0.5发布于 2020/11/16近 30 天下载 4503

Cosmos DB SQL Language Service for the Monaco editor

原始使用文档
文档目录3 节
  1. Supported Cosmos DB languages
  2. Supported Features
  3. Contributing

Cosmos DB Language Service

Azure Cosmos DB Language Service for the Monaco editor

npm install @azure/cosmos-language-service

Supported Cosmos DB languages

Supported Features

  • Autocomplete
  • Error marks

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

Set up

  1. Install antlr4 and set up environment based on the doc
  2. If you are using vscode, hightly recommend the antlr4 vscode plugin
  3. Install node(>=v8.9.0) and npm(>=v5.8.0)
  4. Clone the source code.(Source code repo link is https://github.com/Azure/cosmos-sql-language-service)
  5. Install the dependencies:
npm install

Build and Run

  1. Compile Antlr Grammar
cd $(grammar_folder)
doskey antlr4=java org.antlr.v4.Tool $*
doskey grun =java org.antlr.v4.gui.TestRig $*
antlr4 -no-listener -no-visitor -Dlanguage=JavaScript *.g4 -o ../generated

You can keep the lexer.js file and the parser.js file and delete others.

  1. Build the package
cd $(language_service_folder)
webpack
cd $(root_folder)
npm run dev

版本与发布记录

@azure/cosmos-language-service 共发布 5 个版本,首次发布于 2018/11/26;过去 12 个月发布了 0 个版本。

版本发布日期距今
0.0.5latest2020/11/165 年前
0.0.42019/01/087 年前
0.0.32018/12/147 年前
0.0.22018/12/137 年前
0.0.12018/11/267 年前

关于 @azure/cosmos-language-service 的常见问题

@azure/cosmos-language-service 是什么?

Cosmos DB SQL Language Service for the Monaco editor

如何安装 @azure/cosmos-language-service?

在项目目录运行 npm install @azure/cosmos-language-service,或使用 pnpm add / yarn add / bun add。

@azure/cosmos-language-service 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/azure__cosmos-language-service 是否存在。

@azure/cosmos-language-service 可以商用吗?

@azure/cosmos-language-service 使用 未声明 许可。package.json 没有声明许可证。没有许可证的代码默认保留全部权利,商用前请联系作者或查看仓库中的 LICENSE 文件。以上为概括,不构成法律意见,请以许可原文为准。

@azure/cosmos-language-service 的下载量有多少?

根据 npm 官方下载统计,@azure/cosmos-language-service 在 2026/10/08 – 2026/11/06 这 30 天内被下载 4,503 次,日均约 150 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@azure/cosmos-language-service 还在维护吗?

最新版本 0.0.5 发布于 2020/11/16(5 年前);至今共发布 5 个版本,其中过去 12 个月发布了 0 个;首次发布于 2018/11/26。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。