Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>reportCodeNew to Visual Studio Code? Get it now.
reportCode

reportCode

dingxx

|
74 installs
| (0) | Free
打点上报开发工具
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

打点上报辅助开发工具 README

基于上报点管理平台 的数据,对代码中的上报点进行可视化关联,展示上报点的原信息

功能

1. 对代码中的上报点hover展示上报点详细信息

上报点详细信息的数据基于上报点管理平台

2. 上报点输入提示功能

编辑javascript、typescript、typescriptreact时,输入"或者',会出现上报点管理平台中记录的上报点

3. slardar上报的相关代码片段

prefix 功能
slarConfig slardar配置参数代码片段
slarSentry slardar中的sentry错误上报
trycacheSentry try-cache时,sentry错误上报
slarCounter slardar打点计数上报
slarCounterTags slardar打点计数带tags属性的上报
slarTimer slardar打点计时上报
slarTimerTags slardar打点计时带tags属性的上报
slarReport slardar立即上报

4. 设置工作区默认bid

上报点的数据获取依赖bid 获取bid的逻辑如下:

  1. 查找当前编辑的文件的上层的package.json是否存在jupiterSettings.runtime.features.slardar.bid,如存在即使用该值 (jupiter中的slardar配置)
  2. 查找当前编辑的文件的上层的jupiter.config.json是否存在runtime.features.slardar.bid,如存在即使用该值 (jupiter中的slardar配置)
  3. 获取工作区配置的reportCode.defaultBid值

设置工作区配置的reportCode.defaultBid值 输入命令搜索 [report-code]设置slardar-bid,输入设置defaultBid

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