chore(viper): 选择列表首项去掉手动指定 exe 路径描述并修正过时注释

该入口已改为文件选择对话框,原描述与输入框取路径等注释不再贴切。
This commit is contained in:
TermiNexus committed 2026-09-20 18:56:16 +08:00
1 parent 95a0dbf0ad
commit 70a4405294
2 files changed
+4 -5

No files matched your search

+3 -4
View File
@@ -29,7 +29,7 @@ export interface EnvironmentChange {
}
/**
* 「手动指定编译器」的处理(由扩展入口注入:弹输入框取路径 + 走 VET 的 check 通道)。
* 「选择编译器」的处理(由扩展入口注入:弹文件选择框 + 走 VET 的 check 通道)。
* 返回被选中的环境表示已处理完;返回 undefined 表示用户取消或校验未通过。
*/
export type ManualCompilerPicker = () => Promise<ViperEnvironment | undefined>;
@@ -107,7 +107,7 @@ export class EnvironmentManager implements Disposable {
}
/**
* 选择编译器。列表结构:首项是「选择编译器…」(手动输入 exe 路径),随后一条分隔线,
* 选择编译器。列表结构:首项是「选择编译器…」(挑一个 exe),随后一条分隔线,
* 再之后才是 VET 搜到的环境。VET 关闭时这个列表照样可用(已发现的环境仍能选用)。
* @param environmentId 传入则直接选中该 id;不传则弹 QuickPick 让用户选。
*/
@@ -119,7 +119,6 @@ export class EnvironmentManager implements Disposable {
const items: CompilerPickItem[] = [
{
label: '$(file) 选择编译器…',
description: '手动指定 exe 路径',
Manual: true,
},
];
@@ -154,7 +153,7 @@ export class EnvironmentManager implements Disposable {
return undefined;
}
/** 注入「手动指定编译器」的处理(扩展入口提供:输入框取路径 + VET check)。 */
/** 注入「选择编译器」的处理(扩展入口提供:文件选择框 + VET check)。 */
SetManualCompilerPicker(picker: ManualCompilerPicker): void {
this.manualCompilerPicker = picker;
}
+1 -1
View File
@@ -300,7 +300,7 @@ async function PickManualCompiler(
return undefined;
}
/** 手动指定一个 exe 做检查(只检查、不切换),结果通过信息消息回报。 */
/** 挑一个 exe 做检查(只检查、不切换),结果通过信息消息回报。 */
async function CheckEnvironmentCommand(tool: EnvironmentTool): Promise<void> {
const result = await PickAndCheckExecutable(tool);
if (!result) {