Files
vscode-getdeepin-quota/README.md
T
2026-04-22 16:51:03 +08:00

84 lines
1.4 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# GetDeepin AI Quota
VS Code 扩展,在状态栏显示 GetDeepin AI 平台的大模型资源用量情况。
## 功能
- 状态栏显示国内/国外模型用量百分比
- Hover 显示详细信息(已用量、总额度、支持模型)
- 点击打开详情面板
- 支持手动刷新数据
- 自动保存登录凭据(使用 VS Code Secret Storage)
- 登录过期自动重新登录
## 构建
### 前置要求
- Node.js 18+
- npm
### 安装依赖
```bash
npm install
```
### 编译
```bash
npm run compile
```
### 开发模式(监听文件变化)
```bash
npm run watch
```
## 打包 VSIX
### 安装 vsce 工具
```bash
npm install -g @vscode/vsce
```
### 打包
```bash
vsce package
```
打包完成后会在当前目录生成 `getdeepin-quota-0.0.1.vsix` 文件。
## 安装扩展
### 从 VSIX 安装
1. 打开 VS Code
2. 按 `Ctrl+Shift+P` 打开命令面板
3. 输入 `Extensions: Install from VSIX...`
4. 选择生成的 `.vsix` 文件
### 命令行安装
```bash
code --install-extension getdeepin-quota-0.0.1.vsix
```
## 使用
1. 扩展启动后,状态栏右侧显示"未登录"
2. 点击状态栏或运行命令 `GetDeepin AI: 登录`
3. 输入 GetDeepin AI 用户名和密码
4. 登录成功后显示用量信息
## 命令
| 命令 | 说明 |
|------|------|
| `GetDeepin AI: 登录` | 登录 GetDeepin AI |
| `GetDeepin AI: 登出` | 登出当前账号 |
| `GetDeepin AI: 刷新用量` | 手动刷新用量数据 |