Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>one-kitNew to Visual Studio Code? Get it now.
one-kit

one-kit

rick.li

|
160 installs
| (1) | Free
intelligent code helper of te-one
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

one-kit

基于 ONE 框架的代码辅助提示工具(同程艺龙酒旅研发平台)

Intelligent code helper of ONE(NodeJS web FrameWork)

Features

自动生成typing文件,以及语法检查。

Background

Controller、Business、Agent 以下简称C、B、A

  • C—B-A 三层运行时加载,所以开发阶段无法进行关联方法提示比如在C层调用B方法。
  • 三层间的挂载唯一是文件路径,所以文件的命名必须符合变量名的命名规则。
  • xapi的开发体验差,每写一个B或者A类都要去命令行跑一次run typing,过程大概需要1分钟左右(如果ts-node没缓存,执行时间会更长),而且只能对项目进行全量生成,开发人员在开发业务的同时还需要兼顾typings的生成,开发效率低。

one-kit是vscode插件会解决以上所有场景,提供以下功能

  • 懒初始化,只对one框架与ts项目有效,其他项目不影响。
  • 对typings的生成的粒度是文件级别的,开发人员对typings的校验将是无感知的。
  • 对B-A的文件命名有校验规则和友好提示。
  • 对B-A文件中Super Class (基类)有严格校验,如Business下只能继承BaseBusiness、Agent同理只能继承BaseAgent.

Extension Settings

无需额外配置

同时满足TS和ONE则自动开启,不影响coding体验

Known Issues

暂无

Release Notes

Users appreciate release notes as you update your extension.

1.0.0

Initial release of ...


  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft