Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>hobber-api-for-vscodeNew to Visual Studio Code? Get it now.
hobber-api-for-vscode

hobber-api-for-vscode

ssddi456

|
265 installs
| (0) | Free
sort of intelligense of hobber and bucky
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

hobber-api-for-vscode

features

  • add hover & go to definition for hGlobal.API.xxx.yyy on xxx & yyy for hobber
  • add hover & go to definition for API.xxx.yyy on xxx & yyy for bucky
  • add hover & go to definition for "/" leading string "/api/xxx/yyy/" in project which both have client side js & server side js (hobber or bucky)
  • add go to reference for api("namestring", { uri: "url string", method: "get or something" }) (hobber or bucky)
  • add go to reference for @Post("subpathname") (hobber or bucky)

##为 hobber 和 bucky 增加 hover、 definition 和 reference 支持##

hover & definition:

  • hobber server代码中 hGlobal.API.xxx.yyy 的 xxx 和 yyy 部分
  • bucky cerver代码中 API.xxx.yyy 的 xxx 和 yyy 部分
  • 同时存在client和server代码的仓库中, client代码中,以"/"开始的字符串如 "/api/xxx/yyy/"

reference (右键 goto reference):

  • apis目录下 Call(stringLiteralLike, { uri: stringLiteralLike | TemplateString, method: stringLiteralLike }) 例如 api("apiname", { uri: "/some/uri", method: "get" })
  • actions 目录下
      handler () {
      ^^^^^^^
      }
    }
    
  • actions 目录下 (某种方言方案)
    class [parentPath]Controller {
      @Post("subpath")
      ^^^^^^^^^^^^^^^^
      handlerName(ctx) {
    
      }
    }
    

completion:

  • client 目录下 支持 字符串中以 / 为触发键来提示可用的actions

##注意##

项目探测的机制依赖目录结构及pacakge.json内容,识别以下结构项目

|- (任何代码被认为是client side code)
|- server
  |- package.json (包含 dependencies  ```@ke/hobber-core``` or ```@lianjia/bucky-core```)
  |- apis/* (将读取此目录下信息为api定义)
  |- actions/* (将读取此目录下信息为action定义)
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft