addons/vscode/extension/types.tsblame
View source
b69ab311/**
b69ab312 * Copyright (c) Meta Platforms, Inc. and affiliates.
b69ab313 *
b69ab314 * This source code is licensed under the MIT license found in the
b69ab315 * LICENSE file in the root directory of this source tree.
b69ab316 */
b69ab317
b69ab318/** Not all features of the VS Code API may be enabled / rolled out, so they are controlled individually.
b69ab319 * In OSS, they are all enabled. Internally, they may be disabled while transitioning from an older system.
b69ab3110 * blame => inline and toggleable blame
b69ab3111 * sidebar => VS Code SCM API, VS Code Source Control sidebar entry.
b69ab3112 * diffview => diff commands, gutters. Requires 'sidebar'.
b69ab3113 * */
b69ab3114export type EnabledSCMApiFeature =
b69ab3115 | 'blame'
b69ab3116 | 'sidebar'
b69ab3117 | 'comments'
b69ab3118 | 'newInlineComments'
b69ab3119 | 'aiFirstPassCodeReview';
b69ab3120
b69ab3121export enum ActionTriggerType {
b69ab3122 ISL2InlineComment = 'ISL2InlineComment', // provided from the Sapling ISL Inline Comment
b69ab3123 ISL2SmartActions = 'ISL2SmartActions', // provided from the Sapling ISL Smart Actions Menu
b69ab3124 ISL2CommitInfoView = 'ISL2CommitInfoView', // provided from the Sapling ISL Commit Info View
b69ab3125 ISL2MergeConflictView = 'ISL2MergeConflictView', // provided from the Sapling ISL Merge Conflict View
b69ab3126 ISL2SplitCommit = 'ISL2SplitCommit', // provided from the Sapling ISL Split Commit UI
b69ab3127}