Skip to content

Commit 5eafaba

Browse files
committed
Merge remote-tracking branch 'upstream/main'
2 parents f43f5e1 + afb6244 commit 5eafaba

18 files changed

Lines changed: 321 additions & 418 deletions

.github/workflows/publish.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,10 @@ jobs:
5858
5959
### What's New
6060
61-
- Fixed some bugs
61+
- Fixed image URL handling and browser closing errors in chat functionality
62+
- Fixed issue where startupCommand was not executed after moving sidebar multiple times
63+
- Fixed workspace folder retrieval issue
64+
- Fixed terminal splitting and configuration change prompt display issues
6265
6366
### Installation
6467
```bash

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ _Agentic coding in your terminal_
2323
<img src="https://contrib.rocks/image?repo=MayDay-wpf/snow-cli" />
2424
</a>
2525

26-
2726
## Thanks Support
2827

2928
- [UUCode](https://www.uucode.org)
@@ -61,6 +60,12 @@ _Agentic coding in your terminal_
6160
- [LSP Configuration and Usage](docs/usage/en/19.LSP%20Configuration.md) - LSP config file, language server installation, ACE tool usage (definition/outline)
6261
- [SSE Service Mode](docs/usage/en/20.SSE%20Service%20Mode.md) - SSE server startup, API endpoints explanation, tool confirmation flow, permission configuration, YOLO mode, client integration examples
6362

63+
### Recommended ROLE.md
64+
65+
- [Recommended ROLE.md](docs/role/en/01.Snow%20CLI%20Plan%20Every%20Step.md) - Recommended behavior guidelines, work mode, and quality standards for the Snow CLI terminal programming assistant
66+
- Bilingual documentation: English (primary) / [Chinese](docs/role/zh/01.Snow%20CLI%20一步一规划.md)
67+
- Maintenance rule: Keep Chinese and English structures aligned; tool names remain unchanged
68+
6469
---
6570

6671
## Development Guide
@@ -147,7 +152,6 @@ npm run link # builds and globally links snow
147152

148153
![alt text](docs/images/qq_group_qr.jpg)
149154

150-
151155
---
152156

153157
## Star History

README_zh.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,12 @@ _在终端中进行 Agentic 编程_
6060
- [LSP 配置与用法](docs/usage/zh/19.LSP配置.md) - LSP 配置文件、语言服务器安装、ACE 工具用法(跳转/大纲)
6161
- [SSE 服务模式](docs/usage/zh/20.SSE服务模式.md) - SSE 服务器启动、API 端点说明、工具确认流程、权限配置、YOLO 模式、客户端集成示例
6262

63+
### 推荐使用的 ROLE.md
64+
65+
- [推荐使用的 ROLE.md](docs/role/zh/01.Snow%20CLI%20一步一规划.md) - Snow CLI 终端编程助手推荐使用的行为准则、工作模式与质量标准
66+
- 双语文档:中文(主版本)/[英文](docs/role/en/01.Snow%20CLI%20Plan%20Every%20Step.md)
67+
- 维护规则:保持中英文结构对齐,工具名称保持不变
68+
6369
---
6470

6571
## 开发指南
@@ -142,7 +148,7 @@ npm run link # 构建并全局链接 snow
142148

143149
---
144150

145-
## QQ交流群
151+
## QQ 交流群
146152

147153
![alt text](docs/images/qq_group_qr.jpg)
148154

VSIX/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "snow-cli",
33
"displayName": "Snow CLI",
44
"description": "Snow AI CLI with ACE Code Search - Intelligent code navigation and search powered by AI",
5-
"version": "0.4.2",
5+
"version": "0.4.4",
66
"publisher": "mufasa",
77
"repository": {
88
"type": "git",

VSIX/resources/terminal.html

Lines changed: 0 additions & 242 deletions
This file was deleted.

VSIX/src/extension.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,22 @@ function applySidebarContext(): void {
2929
);
3030
}
3131

32+
function getWorkspaceFolderForActiveEditor(): string | undefined {
33+
const editor = vscode.window.activeTextEditor;
34+
const folder = editor
35+
? vscode.workspace.getWorkspaceFolder(editor.document.uri)
36+
: undefined;
37+
return (
38+
folder?.uri.fsPath ??
39+
vscode.workspace.workspaceFolders?.[0]?.uri.fsPath
40+
);
41+
}
42+
3243
/** Create a new split terminal in the right editor column (allows multiple instances) */
3344
async function openSplitTerminal(): Promise<void> {
3445
const startupCommand = getConfig<string>('startupCommand', 'snow');
3546

36-
const workspaceFolder = vscode.workspace.workspaceFolders?.[0]?.uri.fsPath;
47+
const workspaceFolder = getWorkspaceFolderForActiveEditor();
3748

3849
// 1. Create a new terminal in the editor area (initially in current column)
3950
const terminal = vscode.window.createTerminal({

0 commit comments

Comments
 (0)