Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>wms-extensionNew to Visual Studio Code? Get it now.
wms-extension

wms-extension

Zhuangbing.Cai

|
24 installs
| (0) | Free
A code diagnosis
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Structure

.
├── client // Language Client
│   ├── src
│   │   ├── test // End to End tests for Language Client / Server
│   │   └── extension.ts // Language Client entry point
├── package.json // The extension manifest.
└── server // Language Server
    └── src
        └── server.ts // Language Server entry point

Running the Sample

  • Run npm install in this folder. This installs all necessary npm modules in both the client and server folder
  • Open VS Code on this folder.
  • Press Ctrl+Shift+B to compile the client and server.
  • Switch to the Debug viewlet.
  • Select Launch Client from the drop down.
  • Run the launch config.
  • If you want to debug the server as well use the launch configuration Attach to Server

Code Review

JS Part

  • boolean 类型的变量使用 is、has、can 开头
  • 单个函数不宜超过 80 行
  • 函数参数不多于 2 个,如果有很多参数就利用 object 传递,并使用解构
  • 嵌套层级不超过 4 层 (if/else、循环、回调)
  • 取值和赋值的时候是否有 safeGet
  • 使用静态变量或枚举替换代码中常数,增加可读性

Vue Template

  • Vue template 标签的 props 顺序
  • 所有属性名称都使用小写字母加 - 方式
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft