瀏覽代碼

Prettiers

main
Eric Amodio 5 年之前
父節點
當前提交
8b71a1b9e3
共有 2 個檔案被更改,包括 6 行新增5 行删除
  1. +6
    -4
      src/commands/git/switch.ts
  2. +0
    -1
      src/views/viewCommands.ts

+ 6
- 4
src/commands/git/switch.ts 查看文件

@ -126,9 +126,9 @@ export class SwitchGitCommand extends QuickCommandBase {
? state.repos[0].formattedName
: `${state.repos.length} repositories`
}`,
placeholder: `Choose a branch${
showTags ? ' or tag' : ''
} to switch to${GlyphChars.Space.repeat(3)}(select or enter a reference)`,
placeholder: `Choose a branch${showTags ? ' or tag' : ''} to switch to${GlyphChars.Space.repeat(
3
)}(select or enter a reference)`,
matchOnDescription: true,
items: items,
selectedItems: state.branchOrTagOrRef
@ -237,7 +237,9 @@ export class SwitchGitCommand extends QuickCommandBase {
? `${state.createBranch} (from ${state.branchOrTagOrRef.name}) `
: state.branchOrTagOrRef.name,
detail: `Will ${
state.createBranch ? `create and switch to ${state.createBranch} (from ${state.branchOrTagOrRef.name})` : `switch to ${state.branchOrTagOrRef.name}`
state.createBranch
? `create and switch to ${state.createBranch} (from ${state.branchOrTagOrRef.name})`
: `switch to ${state.branchOrTagOrRef.name}`
} in ${
state.repos.length === 1
? state.repos[0].formattedName

+ 0
- 1
src/views/viewCommands.ts 查看文件

@ -263,7 +263,6 @@ export class ViewCommands {
if (!(node instanceof ViewRefFileNode)) return undefined;
return Container.git.checkout(node.repoPath, node.ref, { fileName: node.fileName });
}
private async switch(node: ViewRefNode) {

Loading…
取消
儲存