25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

374 lines
16 KiB

2 년 전
  1. export const quickPickTitleMaxChars = 80;
  2. export const ImageMimetypes: Record<string, string> = {
  3. '.png': 'image/png',
  4. '.gif': 'image/gif',
  5. '.jpg': 'image/jpeg',
  6. '.jpeg': 'image/jpeg',
  7. '.jpe': 'image/jpeg',
  8. '.webp': 'image/webp',
  9. '.tif': 'image/tiff',
  10. '.tiff': 'image/tiff',
  11. '.bmp': 'image/bmp',
  12. };
  13. export const enum CharCode {
  14. /**
  15. * The `/` character.
  16. */
  17. Slash = 47,
  18. /**
  19. * The `\` character.
  20. */
  21. Backslash = 92,
  22. A = 65,
  23. Z = 90,
  24. a = 97,
  25. z = 122,
  26. }
  27. export const enum Colors {
  28. GutterBackgroundColor = 'gitlens.gutterBackgroundColor',
  29. GutterForegroundColor = 'gitlens.gutterForegroundColor',
  30. GutterUncommittedForegroundColor = 'gitlens.gutterUncommittedForegroundColor',
  31. TrailingLineBackgroundColor = 'gitlens.trailingLineBackgroundColor',
  32. TrailingLineForegroundColor = 'gitlens.trailingLineForegroundColor',
  33. LineHighlightBackgroundColor = 'gitlens.lineHighlightBackgroundColor',
  34. LineHighlightOverviewRulerColor = 'gitlens.lineHighlightOverviewRulerColor',
  35. ClosedAutolinkedIssueIconColor = 'gitlens.closedAutolinkedIssueIconColor',
  36. ClosedPullRequestIconColor = 'gitlens.closedPullRequestIconColor',
  37. OpenAutolinkedIssueIconColor = 'gitlens.openAutolinkedIssueIconColor',
  38. OpenPullRequestIconColor = 'gitlens.openPullRequestIconColor',
  39. MergedPullRequestIconColor = 'gitlens.mergedPullRequestIconColor',
  40. UnpublishedChangesIconColor = 'gitlens.unpublishedChangesIconColor',
  41. UnpublishedCommitIconColor = 'gitlens.unpublishedCommitIconColor',
  42. UnpulledChangesIconColor = 'gitlens.unpulledChangesIconColor',
  43. }
  44. export const enum Commands {
  45. ActionPrefix = 'gitlens.action.',
  46. AddAuthors = 'gitlens.addAuthors',
  47. BrowseRepoAtRevision = 'gitlens.browseRepoAtRevision',
  48. BrowseRepoAtRevisionInNewWindow = 'gitlens.browseRepoAtRevisionInNewWindow',
  49. BrowseRepoBeforeRevision = 'gitlens.browseRepoBeforeRevision',
  50. BrowseRepoBeforeRevisionInNewWindow = 'gitlens.browseRepoBeforeRevisionInNewWindow',
  51. ClearFileAnnotations = 'gitlens.clearFileAnnotations',
  52. CloseUnchangedFiles = 'gitlens.closeUnchangedFiles',
  53. CloseWelcomeView = 'gitlens.closeWelcomeView',
  54. CompareWith = 'gitlens.compareWith',
  55. CompareHeadWith = 'gitlens.compareHeadWith',
  56. CompareWorkingWith = 'gitlens.compareWorkingWith',
  57. ComputingFileAnnotations = 'gitlens.computingFileAnnotations',
  58. ConnectRemoteProvider = 'gitlens.connectRemoteProvider',
  59. CopyAutolinkUrl = 'gitlens.copyAutolinkUrl',
  60. CopyCurrentBranch = 'gitlens.copyCurrentBranch',
  61. CopyMessageToClipboard = 'gitlens.copyMessageToClipboard',
  62. CopyRemoteBranchesUrl = 'gitlens.copyRemoteBranchesUrl',
  63. CopyRemoteBranchUrl = 'gitlens.copyRemoteBranchUrl',
  64. CopyRemoteCommitUrl = 'gitlens.copyRemoteCommitUrl',
  65. CopyRemoteComparisonUrl = 'gitlens.copyRemoteComparisonUrl',
  66. CopyRemoteFileUrl = 'gitlens.copyRemoteFileUrlToClipboard',
  67. CopyRemoteFileUrlWithoutRange = 'gitlens.copyRemoteFileUrlWithoutRange',
  68. CopyRemoteFileUrlFrom = 'gitlens.copyRemoteFileUrlFrom',
  69. CopyRemoteIssueUrl = 'gitlens.copyRemoteIssueUrl',
  70. CopyRemotePullRequestUrl = 'gitlens.copyRemotePullRequestUrl',
  71. CopyRemoteRepositoryUrl = 'gitlens.copyRemoteRepositoryUrl',
  72. CopyShaToClipboard = 'gitlens.copyShaToClipboard',
  73. CreatePullRequestOnRemote = 'gitlens.createPullRequestOnRemote',
  74. DiffDirectory = 'gitlens.diffDirectory',
  75. DiffDirectoryWithHead = 'gitlens.diffDirectoryWithHead',
  76. DiffWith = 'gitlens.diffWith',
  77. DiffWithNext = 'gitlens.diffWithNext',
  78. DiffWithNextInDiffLeft = 'gitlens.diffWithNextInDiffLeft',
  79. DiffWithNextInDiffRight = 'gitlens.diffWithNextInDiffRight',
  80. DiffWithPrevious = 'gitlens.diffWithPrevious',
  81. DiffWithPreviousInDiffLeft = 'gitlens.diffWithPreviousInDiffLeft',
  82. DiffWithPreviousInDiffRight = 'gitlens.diffWithPreviousInDiffRight',
  83. DiffLineWithPrevious = 'gitlens.diffLineWithPrevious',
  84. DiffWithRevision = 'gitlens.diffWithRevision',
  85. DiffWithRevisionFrom = 'gitlens.diffWithRevisionFrom',
  86. DiffWithWorking = 'gitlens.diffWithWorking',
  87. DiffWithWorkingInDiffLeft = 'gitlens.diffWithWorkingInDiffLeft',
  88. DiffWithWorkingInDiffRight = 'gitlens.diffWithWorkingInDiffRight',
  89. DiffLineWithWorking = 'gitlens.diffLineWithWorking',
  90. DisconnectRemoteProvider = 'gitlens.disconnectRemoteProvider',
  91. DisableDebugLogging = 'gitlens.disableDebugLogging',
  92. EnableDebugLogging = 'gitlens.enableDebugLogging',
  93. DisableRebaseEditor = 'gitlens.disableRebaseEditor',
  94. EnableRebaseEditor = 'gitlens.enableRebaseEditor',
  95. ExternalDiff = 'gitlens.externalDiff',
  96. ExternalDiffAll = 'gitlens.externalDiffAll',
  97. FetchRepositories = 'gitlens.fetchRepositories',
  98. GetStarted = 'gitlens.getStarted',
  99. InviteToLiveShare = 'gitlens.inviteToLiveShare',
  100. OpenAutolinkUrl = 'gitlens.openAutolinkUrl',
  101. OpenBlamePriorToChange = 'gitlens.openBlamePriorToChange',
  102. OpenBranchesOnRemote = 'gitlens.openBranchesOnRemote',
  103. OpenBranchOnRemote = 'gitlens.openBranchOnRemote',
  104. OpenCurrentBranchOnRemote = 'gitlens.openCurrentBranchOnRemote',
  105. OpenChangedFiles = 'gitlens.openChangedFiles',
  106. OpenCommitOnRemote = 'gitlens.openCommitOnRemote',
  107. OpenComparisonOnRemote = 'gitlens.openComparisonOnRemote',
  108. OpenFileHistory = 'gitlens.openFileHistory',
  109. OpenFileFromRemote = 'gitlens.openFileFromRemote',
  110. OpenFileOnRemote = 'gitlens.openFileOnRemote',
  111. OpenFileOnRemoteFrom = 'gitlens.openFileOnRemoteFrom',
  112. OpenFileAtRevision = 'gitlens.openFileRevision',
  113. OpenFileAtRevisionFrom = 'gitlens.openFileRevisionFrom',
  114. OpenFolderHistory = 'gitlens.openFolderHistory',
  115. OpenOnRemote = 'gitlens.openOnRemote',
  116. OpenIssueOnRemote = 'gitlens.openIssueOnRemote',
  117. OpenPullRequestOnRemote = 'gitlens.openPullRequestOnRemote',
  118. OpenAssociatedPullRequestOnRemote = 'gitlens.openAssociatedPullRequestOnRemote',
  119. OpenRepoOnRemote = 'gitlens.openRepoOnRemote',
  120. OpenRevisionFile = 'gitlens.openRevisionFile',
  121. OpenRevisionFileInDiffLeft = 'gitlens.openRevisionFileInDiffLeft',
  122. OpenRevisionFileInDiffRight = 'gitlens.openRevisionFileInDiffRight',
  123. OpenWalkthrough = 'gitlens.openWalkthrough',
  124. OpenWorkingFile = 'gitlens.openWorkingFile',
  125. OpenWorkingFileInDiffLeft = 'gitlens.openWorkingFileInDiffLeft',
  126. OpenWorkingFileInDiffRight = 'gitlens.openWorkingFileInDiffRight',
  127. PullRepositories = 'gitlens.pullRepositories',
  128. PushRepositories = 'gitlens.pushRepositories',
  129. GitCommands = 'gitlens.gitCommands',
  130. GitCommandsBranch = 'gitlens.gitCommands.branch',
  131. GitCommandsCherryPick = 'gitlens.gitCommands.cherryPick',
  132. GitCommandsMerge = 'gitlens.gitCommands.merge',
  133. GitCommandsRebase = 'gitlens.gitCommands.rebase',
  134. GitCommandsReset = 'gitlens.gitCommands.reset',
  135. GitCommandsRevert = 'gitlens.gitCommands.revert',
  136. GitCommandsSwitch = 'gitlens.gitCommands.switch',
  137. GitCommandsTag = 'gitlens.gitCommands.tag',
  138. GitCommandsWorktree = 'gitlens.gitCommands.worktree',
  139. PlusHide = 'gitlens.plus.hide',
  140. PlusLearn = 'gitlens.plus.learn',
  141. PlusLoginOrSignUp = 'gitlens.plus.loginOrSignUp',
  142. PlusLogout = 'gitlens.plus.logout',
  143. PlusManage = 'gitlens.plus.manage',
  144. PlusPurchase = 'gitlens.plus.purchase',
  145. PlusResendVerification = 'gitlens.plus.resendVerification',
  146. PlusRestore = 'gitlens.plus.restore',
  147. PlusShowPlans = 'gitlens.plus.showPlans',
  148. PlusStartPreviewTrial = 'gitlens.plus.startPreviewTrial',
  149. PlusValidate = 'gitlens.plus.validate',
  150. QuickOpenFileHistory = 'gitlens.quickOpenFileHistory',
  151. RefreshHover = 'gitlens.refreshHover',
  152. ResetAvatarCache = 'gitlens.resetAvatarCache',
  153. ResetSuppressedWarnings = 'gitlens.resetSuppressedWarnings',
  154. RevealCommitInView = 'gitlens.revealCommitInView',
  155. SearchCommits = 'gitlens.showCommitSearch',
  156. SearchCommitsInView = 'gitlens.views.searchAndCompare.searchCommits',
  157. SetViewsLayout = 'gitlens.setViewsLayout',
  158. ShowBranchesView = 'gitlens.showBranchesView',
  159. ShowCommitInView = 'gitlens.showCommitInView',
  160. ShowCommitsInView = 'gitlens.showCommitsInView',
  161. ShowCommitsView = 'gitlens.showCommitsView',
  162. ShowContributorsView = 'gitlens.showContributorsView',
  163. ShowHomeView = 'gitlens.showHomeView',
  164. ShowFileHistoryView = 'gitlens.showFileHistoryView',
  165. ShowLastQuickPick = 'gitlens.showLastQuickPick',
  166. ShowLineHistoryView = 'gitlens.showLineHistoryView',
  167. ShowQuickBranchHistory = 'gitlens.showQuickBranchHistory',
  168. ShowQuickCommit = 'gitlens.showQuickCommitDetails',
  169. ShowQuickCommitFile = 'gitlens.showQuickCommitFileDetails',
  170. ShowQuickCurrentBranchHistory = 'gitlens.showQuickRepoHistory',
  171. ShowQuickFileHistory = 'gitlens.showQuickFileHistory',
  172. ShowQuickRepoStatus = 'gitlens.showQuickRepoStatus',
  173. ShowQuickCommitRevision = 'gitlens.showQuickRevisionDetails',
  174. ShowQuickCommitRevisionInDiffLeft = 'gitlens.showQuickRevisionDetailsInDiffLeft',
  175. ShowQuickCommitRevisionInDiffRight = 'gitlens.showQuickRevisionDetailsInDiffRight',
  176. ShowQuickStashList = 'gitlens.showQuickStashList',
  177. ShowRemotesView = 'gitlens.showRemotesView',
  178. ShowRepositoriesView = 'gitlens.showRepositoriesView',
  179. ShowSearchAndCompareView = 'gitlens.showSearchAndCompareView',
  180. ShowSettingsPage = 'gitlens.showSettingsPage',
  181. ShowSettingsPageAndJumpToBranchesView = 'gitlens.showSettingsPage#branches-view',
  182. ShowSettingsPageAndJumpToCommitsView = 'gitlens.showSettingsPage#commits-view',
  183. ShowSettingsPageAndJumpToContributorsView = 'gitlens.showSettingsPage#contributors-view',
  184. ShowSettingsPageAndJumpToFileHistoryView = 'gitlens.showSettingsPage#file-history-view',
  185. ShowSettingsPageAndJumpToLineHistoryView = 'gitlens.showSettingsPage#line-history-view',
  186. ShowSettingsPageAndJumpToRemotesView = 'gitlens.showSettingsPage#remotes-view',
  187. ShowSettingsPageAndJumpToRepositoriesView = 'gitlens.showSettingsPage#repositories-view',
  188. ShowSettingsPageAndJumpToSearchAndCompareView = 'gitlens.showSettingsPage#search-compare-view',
  189. ShowSettingsPageAndJumpToStashesView = 'gitlens.showSettingsPage#stashes-view',
  190. ShowSettingsPageAndJumpToTagsView = 'gitlens.showSettingsPage#tags-view',
  191. ShowSettingsPageAndJumpToWorkTreesView = 'gitlens.showSettingsPage#worktrees-view',
  192. ShowSettingsPageAndJumpToViews = 'gitlens.showSettingsPage#views',
  193. ShowSettingsPageAndJumpToAutolinks = 'gitlens.showSettingsPage#autolinks',
  194. ShowStashesView = 'gitlens.showStashesView',
  195. ShowTagsView = 'gitlens.showTagsView',
  196. ShowWorktreesView = 'gitlens.showWorktreesView',
  197. RefreshTimelinePage = 'gitlens.refreshTimelinePage',
  198. ShowCommitDetailsView = 'gitlens.showCommitDetailsView',
  199. ShowTimelinePage = 'gitlens.showTimelinePage',
  200. ShowTimelineView = 'gitlens.showTimelineView',
  201. ShowWelcomePage = 'gitlens.showWelcomePage',
  202. StashApply = 'gitlens.stashApply',
  203. StashSave = 'gitlens.stashSave',
  204. StashSaveFiles = 'gitlens.stashSaveFiles',
  205. SwitchMode = 'gitlens.switchMode',
  206. ToggleCodeLens = 'gitlens.toggleCodeLens',
  207. ToggleFileBlame = 'gitlens.toggleFileBlame',
  208. ToggleFileBlameInDiffLeft = 'gitlens.toggleFileBlameInDiffLeft',
  209. ToggleFileBlameInDiffRight = 'gitlens.toggleFileBlameInDiffRight',
  210. ToggleFileChanges = 'gitlens.toggleFileChanges',
  211. ToggleFileChangesOnly = 'gitlens.toggleFileChangesOnly',
  212. ToggleFileHeatmap = 'gitlens.toggleFileHeatmap',
  213. ToggleFileHeatmapInDiffLeft = 'gitlens.toggleFileHeatmapInDiffLeft',
  214. ToggleFileHeatmapInDiffRight = 'gitlens.toggleFileHeatmapInDiffRight',
  215. ToggleLineBlame = 'gitlens.toggleLineBlame',
  216. ToggleReviewMode = 'gitlens.toggleReviewMode',
  217. ToggleZenMode = 'gitlens.toggleZenMode',
  218. ViewsCopy = 'gitlens.views.copy',
  219. ViewsOpenDirectoryDiff = 'gitlens.views.openDirectoryDiff',
  220. ViewsOpenDirectoryDiffWithWorking = 'gitlens.views.openDirectoryDiffWithWorking',
  221. Deprecated_DiffHeadWith = 'gitlens.diffHeadWith',
  222. Deprecated_DiffWorkingWith = 'gitlens.diffWorkingWith',
  223. Deprecated_OpenBranchesInRemote = 'gitlens.openBranchesInRemote',
  224. Deprecated_OpenBranchInRemote = 'gitlens.openBranchInRemote',
  225. Deprecated_OpenCommitInRemote = 'gitlens.openCommitInRemote',
  226. Deprecated_OpenFileInRemote = 'gitlens.openFileInRemote',
  227. Deprecated_OpenInRemote = 'gitlens.openInRemote',
  228. Deprecated_OpenRepoInRemote = 'gitlens.openRepoInRemote',
  229. Deprecated_ShowFileHistoryInView = 'gitlens.showFileHistoryInView',
  230. }
  231. export const enum ContextKeys {
  232. ActionPrefix = 'gitlens:action:',
  233. KeyPrefix = 'gitlens:key:',
  234. ActiveFileStatus = 'gitlens:activeFileStatus',
  235. AnnotationStatus = 'gitlens:annotationStatus',
  236. Debugging = 'gitlens:debugging',
  237. DisabledToggleCodeLens = 'gitlens:disabledToggleCodeLens',
  238. Disabled = 'gitlens:disabled',
  239. Enabled = 'gitlens:enabled',
  240. HasConnectedRemotes = 'gitlens:hasConnectedRemotes',
  241. HasRemotes = 'gitlens:hasRemotes',
  242. HasRichRemotes = 'gitlens:hasRichRemotes',
  243. HasVirtualFolders = 'gitlens:hasVirtualFolders',
  244. Readonly = 'gitlens:readonly',
  245. TimelinePageFocused = 'gitlens:timelinePage:focused',
  246. Untrusted = 'gitlens:untrusted',
  247. ViewsCanCompare = 'gitlens:views:canCompare',
  248. ViewsCanCompareFile = 'gitlens:views:canCompare:file',
  249. ViewsCommitsMyCommitsOnly = 'gitlens:views:commits:myCommitsOnly',
  250. ViewsFileHistoryCanPin = 'gitlens:views:fileHistory:canPin',
  251. ViewsFileHistoryCursorFollowing = 'gitlens:views:fileHistory:cursorFollowing',
  252. ViewsFileHistoryEditorFollowing = 'gitlens:views:fileHistory:editorFollowing',
  253. ViewsLineHistoryEditorFollowing = 'gitlens:views:lineHistory:editorFollowing',
  254. ViewsRepositoriesAutoRefresh = 'gitlens:views:repositories:autoRefresh',
  255. ViewsSearchAndCompareKeepResults = 'gitlens:views:searchAndCompare:keepResults',
  256. Vsls = 'gitlens:vsls',
  257. Plus = 'gitlens:plus',
  258. PlusAllowed = 'gitlens:plus:allowed',
  259. PlusRequired = 'gitlens:plus:required',
  260. PlusState = 'gitlens:plus:state',
  261. }
  262. export const enum CoreCommands {
  263. CloseActiveEditor = 'workbench.action.closeActiveEditor',
  264. CloseAllEditors = 'workbench.action.closeAllEditors',
  265. CursorMove = 'cursorMove',
  266. Diff = 'vscode.diff',
  267. EditorScroll = 'editorScroll',
  268. EditorShowHover = 'editor.action.showHover',
  269. ExecuteDocumentSymbolProvider = 'vscode.executeDocumentSymbolProvider',
  270. ExecuteCodeLensProvider = 'vscode.executeCodeLensProvider',
  271. FocusFilesExplorer = 'workbench.files.action.focusFilesExplorer',
  272. InstallExtension = 'workbench.extensions.installExtension',
  273. MoveViews = 'vscode.moveViews',
  274. Open = 'vscode.open',
  275. OpenFolder = 'vscode.openFolder',
  276. OpenInTerminal = 'openInTerminal',
  277. OpenWalkthrough = 'workbench.action.openWalkthrough',
  278. OpenWith = 'vscode.openWith',
  279. NextEditor = 'workbench.action.nextEditor',
  280. PreviewHtml = 'vscode.previewHtml',
  281. RevealLine = 'revealLine',
  282. RevealInExplorer = 'revealInExplorer',
  283. RevealInFileExplorer = 'revealFileInOS',
  284. SetContext = 'setContext',
  285. ShowExplorer = 'workbench.view.explorer',
  286. ShowReferences = 'editor.action.showReferences',
  287. ShowSCM = 'workbench.view.scm',
  288. UninstallExtension = 'workbench.extensions.uninstallExtension',
  289. }
  290. export const enum CoreGitCommands {
  291. Publish = 'git.publish',
  292. Pull = 'git.pull',
  293. PullRebase = 'git.pullRebase',
  294. Push = 'git.push',
  295. PushForce = 'git.pushForce',
  296. UndoCommit = 'git.undoCommit',
  297. }
  298. export const enum CoreGitConfiguration {
  299. AutoRepositoryDetection = 'git.autoRepositoryDetection',
  300. RepositoryScanMaxDepth = 'git.repositoryScanMaxDepth',
  301. FetchOnPull = 'git.fetchOnPull',
  302. UseForcePushWithLease = 'git.useForcePushWithLease',
  303. }
  304. export const enum GlyphChars {
  305. AngleBracketLeftHeavy = '\u2770',
  306. AngleBracketRightHeavy = '\u2771',
  307. ArrowBack = '\u21a9',
  308. ArrowDown = '\u2193',
  309. ArrowDownUp = '\u21F5',
  310. ArrowDropRight = '\u2937',
  311. ArrowHeadRight = '\u27A4',
  312. ArrowLeft = '\u2190',
  313. ArrowLeftDouble = '\u21d0',
  314. ArrowLeftRight = '\u2194',
  315. ArrowLeftRightDouble = '\u21d4',
  316. ArrowLeftRightDoubleStrike = '\u21ce',
  317. ArrowLeftRightLong = '\u27f7',
  318. ArrowRight = '\u2192',
  319. ArrowRightDouble = '\u21d2',
  320. ArrowRightHollow = '\u21e8',
  321. ArrowUp = '\u2191',
  322. ArrowUpDown = '\u21C5',
  323. ArrowUpRight = '\u2197',
  324. ArrowsHalfLeftRight = '\u21cb',
  325. ArrowsHalfRightLeft = '\u21cc',
  326. ArrowsLeftRight = '\u21c6',
  327. ArrowsRightLeft = '\u21c4',
  328. Asterisk = '\u2217',
  329. Check = '✔',
  330. Dash = '\u2014',
  331. Dot = '\u2022',
  332. Ellipsis = '\u2026',
  333. EnDash = '\u2013',
  334. Envelope = '\u2709',
  335. EqualsTriple = '\u2261',
  336. Flag = '\u2691',
  337. FlagHollow = '\u2690',
  338. MiddleEllipsis = '\u22EF',
  339. MuchLessThan = '\u226A',
  340. MuchGreaterThan = '\u226B',
  341. Pencil = '\u270E',
  342. Space = '\u00a0',
  343. SpaceThin = '\u2009',
  344. SpaceThinnest = '\u200A',
  345. SquareWithBottomShadow = '\u274F',
  346. SquareWithTopShadow = '\u2750',
  347. Warning = '\u26a0',
  348. ZeroWidthSpace = '\u200b',
  349. }
  350. export const enum Schemes {
  351. DebugConsole = 'debug',
  352. File = 'file',
  353. Git = 'git',
  354. GitHub = 'github',
  355. GitLens = 'gitlens',
  356. Output = 'output',
  357. PRs = 'pr',
  358. Vsls = 'vsls',
  359. VslsScc = 'vsls-scc',
  360. Virtual = 'vscode-vfs',
  361. }