Skip to content

Commit 5752ea8

Browse files
committed
v0.6.40
- Fix some UI display problems - Optimize the display logic of the instruction panel - Repair some international translations are indeed missing
1 parent f42559c commit 5752ea8

7 files changed

Lines changed: 447 additions & 74 deletions

File tree

.github/workflows/publish.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@ jobs:
5858
5959
### What's New
6060
61-
- Optimize some UI display effects
61+
- Fix some UI display problems
62+
- Optimize the display logic of the instruction panel
63+
- Repair some international translations are indeed missing
6264
6365
### Installation
6466
```bash

VSIX/package.json

Lines changed: 68 additions & 58 deletions
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.8",
5+
"version": "0.4.9",
66
"publisher": "mufasa",
77
"repository": {
88
"type": "git",
@@ -35,63 +35,63 @@
3535
],
3636
"description": "Choose the terminal display mode. 'sidebar' embeds a terminal in the sidebar panel; 'split' opens a terminal in a right-side editor split."
3737
},
38-
"snow-cli.startupCommand": {
39-
"type": "string",
40-
"default": "snow",
41-
"description": "The command to run when the terminal starts."
42-
},
43-
"snow-cli.terminal.shellType": {
44-
"type": "string",
45-
"default": "auto",
46-
"enum": [
47-
"auto",
48-
"powershell",
49-
"cmd"
50-
],
51-
"enumDescriptions": [
52-
"Auto-detect: prefer pwsh (PowerShell 7+), fallback to powershell.exe (Windows only)",
53-
"PowerShell (pwsh or powershell.exe, auto-detected version)",
54-
"Command Prompt (cmd.exe, Windows only)"
55-
],
56-
"description": "Shell type for the sidebar terminal (Windows only). On macOS/Linux the default login shell is always used."
57-
},
58-
"snow-cli.terminal.fontFamily": {
59-
"type": "string",
60-
"default": "",
61-
"description": "Font family for the sidebar terminal. Leave empty to use the default monospace font."
62-
},
63-
"snow-cli.terminal.fontSize": {
64-
"type": "number",
65-
"default": 14,
66-
"minimum": 8,
67-
"maximum": 32,
68-
"description": "Font size (px) for the sidebar terminal."
69-
},
70-
"snow-cli.terminal.fontWeight": {
71-
"type": "string",
72-
"default": "normal",
73-
"enum": [
74-
"normal",
75-
"bold",
76-
"100",
77-
"200",
78-
"300",
79-
"400",
80-
"500",
81-
"600",
82-
"700",
83-
"800",
84-
"900"
85-
],
86-
"description": "Font weight for the sidebar terminal."
87-
},
88-
"snow-cli.terminal.lineHeight": {
89-
"type": "number",
90-
"default": 1.0,
91-
"minimum": 0.8,
92-
"maximum": 2.0,
93-
"description": "Line height for the sidebar terminal."
94-
}
38+
"snow-cli.startupCommand": {
39+
"type": "string",
40+
"default": "snow",
41+
"description": "The command to run when the terminal starts."
42+
},
43+
"snow-cli.terminal.shellType": {
44+
"type": "string",
45+
"default": "auto",
46+
"enum": [
47+
"auto",
48+
"powershell",
49+
"cmd"
50+
],
51+
"enumDescriptions": [
52+
"Auto-detect: prefer pwsh (PowerShell 7+), fallback to powershell.exe (Windows only)",
53+
"PowerShell (pwsh or powershell.exe, auto-detected version)",
54+
"Command Prompt (cmd.exe, Windows only)"
55+
],
56+
"description": "Shell type for the sidebar terminal (Windows only). On macOS/Linux the default login shell is always used."
57+
},
58+
"snow-cli.terminal.fontFamily": {
59+
"type": "string",
60+
"default": "",
61+
"description": "Font family for the sidebar terminal. Leave empty to use the default monospace font."
62+
},
63+
"snow-cli.terminal.fontSize": {
64+
"type": "number",
65+
"default": 14,
66+
"minimum": 8,
67+
"maximum": 32,
68+
"description": "Font size (px) for the sidebar terminal."
69+
},
70+
"snow-cli.terminal.fontWeight": {
71+
"type": "string",
72+
"default": "normal",
73+
"enum": [
74+
"normal",
75+
"bold",
76+
"100",
77+
"200",
78+
"300",
79+
"400",
80+
"500",
81+
"600",
82+
"700",
83+
"800",
84+
"900"
85+
],
86+
"description": "Font weight for the sidebar terminal."
87+
},
88+
"snow-cli.terminal.lineHeight": {
89+
"type": "number",
90+
"default": 1,
91+
"minimum": 0.8,
92+
"maximum": 2,
93+
"description": "Line height for the sidebar terminal."
94+
}
9595
}
9696
},
9797
"viewsContainers": {
@@ -132,6 +132,11 @@
132132
"title": "Snow CLI Settings",
133133
"icon": "$(settings-gear)"
134134
},
135+
{
136+
"command": "snow-cli.openFilePicker",
137+
"title": "Insert File Path",
138+
"icon": "$(file-directory)"
139+
},
135140
{
136141
"command": "snow-cli.focusSidebar",
137142
"title": "Focus Snow CLI Sidebar"
@@ -161,6 +166,11 @@
161166
"command": "snow-cli.openSnowSettings",
162167
"when": "view == snowCliTerminal && snow-cli.sidebarMode",
163168
"group": "navigation@2"
169+
},
170+
{
171+
"command": "snow-cli.openFilePicker",
172+
"when": "view == snowCliTerminal && snow-cli.sidebarMode",
173+
"group": "navigation@3"
164174
}
165175
]
166176
}

VSIX/src/extension.ts

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ function getWorkspaceFolderForActiveEditor(): string | undefined {
3535
? vscode.workspace.getWorkspaceFolder(editor.document.uri)
3636
: undefined;
3737
return (
38-
folder?.uri.fsPath ??
39-
vscode.workspace.workspaceFolders?.[0]?.uri.fsPath
38+
folder?.uri.fsPath ?? vscode.workspace.workspaceFolders?.[0]?.uri.fsPath
4039
);
4140
}
4241

@@ -125,6 +124,18 @@ export function activate(context: vscode.ExtensionContext) {
125124
'@ext:mufasa.snow-cli',
126125
);
127126
}),
127+
vscode.commands.registerCommand('snow-cli.openFilePicker', async () => {
128+
const uris = await vscode.window.showOpenDialog({
129+
canSelectFiles: true,
130+
canSelectFolders: true,
131+
canSelectMany: true,
132+
openLabel: 'Insert Path',
133+
});
134+
if (uris && uris.length > 0) {
135+
const paths = uris.map(uri => uri.fsPath);
136+
sidebarProvider?.sendFilePaths(paths);
137+
}
138+
}),
128139
vscode.commands.registerCommand('snow-cli.focusSidebar', async () => {
129140
const mode = getConfig<string>('terminalMode', 'split');
130141
if (mode === 'sidebar') {

0 commit comments

Comments
 (0)