From 060a294e123288dfb17c6a09ffc0ce55883e41b8 Mon Sep 17 00:00:00 2001 From: S-Z <36014195+sherry-zxy@users.noreply.github.com> Date: Wed, 25 Aug 2021 08:26:49 -0400 Subject: [PATCH] Feature/scm (#23) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * initial translation * fix: review problem * chore: 添加一个 Co-authored-by: 洛竹 --- vscode.d.ts | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/vscode.d.ts b/vscode.d.ts index 8888f058..fdbdc8fb 100644 --- a/vscode.d.ts +++ b/vscode.d.ts @@ -12585,20 +12585,19 @@ export interface SourceControl { export namespace scm { /** - * The {@link SourceControlInputBox input box} for the last source control - * created by the extension. + * 由扩展创建的用于上一个源代码管理程序的 {@link SourceControlInputBox input box}。 * - * @deprecated Use SourceControl.inputBox instead + * @deprecated 改用 SourceControl.inputBox */ export const inputBox: SourceControlInputBox; /** - * Creates a new {@link SourceControl source control} instance. + * 创建一个新的 {@link SourceControl source control} 实例 * - * @param id An `id` for the source control. Something short, e.g.: `git`. - * @param label A human-readable string for the source control. E.g.: `Git`. - * @param rootUri An optional Uri of the root of the source control. E.g.: `Uri.parse(workspaceRoot)`. - * @return An instance of {@link SourceControl source control}. + * @param id 源代码管理程序的 `id`。它通常很简短,比如:`git` + * @param label 源代码管理程序的标签(可读的字符串),比如:`Git` + * @param rootUri 源代码管理程序根路径的 Uri(可选),比如:`Uri.parse(workspaceRoot)`。 + * @return 一个 {@link SourceControl source control} 的实例 */ export function createSourceControl(id: string, label: string, rootUri?: Uri): SourceControl; }