Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Coding BroNew to Visual Studio Code? Get it now.
Coding Bro

Coding Bro

MT-YIYAO-FE

|
116 installs
| (0) | Free
Like your brother, help you saving time while coding
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Coding bro

帮助你更好地使团队服务,包括但不限于以下

  1. ones流程
  2. 编码/提交规范
  3. ...

问题反馈

https://km.sankuai.com/page/1324164891

开发

webview中调用接口:

import { SingletonChannel  } from './utils/channel';  //引入channel

 const channel = SingletonChannel.getInstance().channel; //获取channel实例
  // 普通ajax请求
  channel.call('http-get', { url:'https://www.baidu.com', param:{a:1}}).then((v: any)=>{
    console.log('🚧 | v:',  v);
    
  }).catch((e: any)=>{
    console.log('🚧 | e:',  e);
 // ones接口调用
  });
   channel.call('ones', { url:'workflow', params:{id:65144708}}).then((v: any)=>{
    console.log('🚧 | v:',  v);
    
  }).catch((e: any)=>{
    console.log('🚧 | e:',  e);
    
  });

one接口在 /extension/service/ones中定义

调试

F5 开启本地调试 开发webview npm run start 启动webview

目录

- src
   - service/                                 基础服务/sso/请求/其他底层服务
   - interface/                               接口/类型/对外开放API
   - extension.ts                             入口/命令注册/配置

scope

待讨论,统一使用什么scope作为命令头,比如CodingBro.someCommand

RoadMap

看这里

Enjoy!

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