Skip to content

Commit b697222

Browse files
author
guqiankun
committed
chore: 修改命名
1 parent b491f8f commit b697222

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

packages/code-api/src/common/config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export interface ICodePlatformConfig {
1212
parse(hash: string): [number, number] | null;
1313
format(lineNumbers: [number, number]): string;
1414
};
15-
createBranch?: boolean;
15+
createBranchAble?: boolean;
1616
}
1717

1818
// 代码托管平台配置
@@ -43,7 +43,7 @@ export const CODE_PLATFORM_CONFIG: Record<ICodePlatform, ICodePlatformConfig> =
4343
return `#L${startLineNumber}-${endLineNumber}`;
4444
},
4545
},
46-
createBranch: true,
46+
createBranchAble: true,
4747
},
4848
[CodePlatform.github]: {
4949
platform: CodePlatform.github,
@@ -113,7 +113,7 @@ export const CODE_PLATFORM_CONFIG: Record<ICodePlatform, ICodePlatformConfig> =
113113
return `#L${startLineNumber}-${endLineNumber}`;
114114
},
115115
},
116-
createBranch: true,
116+
createBranchAble: true,
117117
},
118118
};
119119

packages/code-service/src/code-service.contribution.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ export class CodeContribution
277277
await repo.refsInitialized;
278278
const getShortCommit = (commit: string) => (commit || '').substr(0, 8);
279279
const createBranch: { name: string; commit: string; type: PickBranch }[] = [];
280-
if (CODE_PLATFORM_CONFIG[repo.platform].createBranch) {
280+
if (CODE_PLATFORM_CONFIG[repo.platform].createBranchAble) {
281281
createBranch.push(
282282
{
283283
name: localize('code-service.command.create-branch'),

0 commit comments

Comments
 (0)