File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
src/vs/workbench/api/common Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ import { MarshalledId } from 'vs/base/common/marshallingIds';
21
21
import { ThemeIcon } from 'vs/base/common/themables' ;
22
22
import { IMarkdownString } from 'vs/base/common/htmlContent' ;
23
23
import { MarkdownString } from 'vs/workbench/api/common/extHostTypeConverters' ;
24
- import { checkProposedApiEnabled } from 'vs/workbench/services/extensions/common/extensions' ;
24
+ import { checkProposedApiEnabled , isProposedApiEnabled } from 'vs/workbench/services/extensions/common/extensions' ;
25
25
26
26
type ProviderHandle = number ;
27
27
type GroupHandle = number ;
@@ -488,10 +488,11 @@ class ExtHostSourceControl implements vscode.SourceControl {
488
488
489
489
set quickDiffProvider ( quickDiffProvider : vscode . QuickDiffProvider | undefined ) {
490
490
this . _quickDiffProvider = quickDiffProvider ;
491
- if ( quickDiffProvider ?. label ) {
492
- checkProposedApiEnabled ( this . _extension , 'quickDiffProvider' ) ;
491
+ let quickDiffLabel = undefined ;
492
+ if ( isProposedApiEnabled ( this . _extension , 'quickDiffProvider' ) ) {
493
+ quickDiffLabel = quickDiffProvider ?. label ;
493
494
}
494
- this . #proxy. $updateSourceControl ( this . handle , { hasQuickDiffProvider : ! ! quickDiffProvider , quickDiffLabel : quickDiffProvider ?. label } ) ;
495
+ this . #proxy. $updateSourceControl ( this . handle , { hasQuickDiffProvider : ! ! quickDiffProvider , quickDiffLabel } ) ;
495
496
}
496
497
497
498
private _commitTemplate : string | undefined = undefined ;
You can’t perform that action at this time.
0 commit comments