@@ -41,7 +41,7 @@ import { URI } from 'vs/base/common/uri';
4141import { FileKind } from 'vs/platform/files/common/files' ;
4242import { compareFileNames } from 'vs/base/common/comparers' ;
4343import { FuzzyScore , createMatches } from 'vs/base/common/filters' ;
44- import { IViewDescriptor , IViewDescriptorService } from 'vs/workbench/common/views' ;
44+ import { IViewDescriptor , IViewDescriptorService , IViewsRegistry , Extensions } from 'vs/workbench/common/views' ;
4545import { localize } from 'vs/nls' ;
4646import { flatten , find } from 'vs/base/common/arrays' ;
4747import { memoize } from 'vs/base/common/decorators' ;
@@ -65,6 +65,7 @@ import { format } from 'vs/base/common/strings';
6565import { inputPlaceholderForeground , inputValidationInfoBorder , inputValidationWarningBorder , inputValidationErrorBorder , inputValidationInfoBackground , inputValidationInfoForeground , inputValidationWarningBackground , inputValidationWarningForeground , inputValidationErrorBackground , inputValidationErrorForeground , inputBackground , inputForeground , inputBorder , focusBorder } from 'vs/platform/theme/common/colorRegistry' ;
6666import { Schemas } from 'vs/base/common/network' ;
6767import { ServiceCollection } from 'vs/platform/instantiation/common/serviceCollection' ;
68+ import { Registry } from 'vs/platform/registry/common/platform' ;
6869import { IOpenerService } from 'vs/platform/opener/common/opener' ;
6970
7071type TreeElement = ISCMResourceGroup | IResourceNode < ISCMResource , ISCMResourceGroup > | ISCMResource ;
@@ -613,6 +614,8 @@ export class RepositoryPane extends ViewPane {
613614 protected contextKeyService : IContextKeyService ;
614615 private commitTemplate = '' ;
615616
617+ isEmpty ( ) { return true ; }
618+
616619 constructor (
617620 readonly repository : ISCMRepository ,
618621 options : IViewPaneOptions ,
@@ -640,6 +643,18 @@ export class RepositoryPane extends ViewPane {
640643
641644 this . contextKeyService = contextKeyService . createScoped ( this . element ) ;
642645 this . contextKeyService . createKey ( 'scmRepository' , this . repository ) ;
646+
647+ Registry . as < IViewsRegistry > ( Extensions . ViewsRegistry ) . registerEmptyViewContent ( this . id , {
648+ content : `hello there dasoi dasoijoi asjoijioasdjiojdasoij oijd oijasodij oi asjoidjasoij doasijoidasj oijaoi
649+ this is [another](https://google.com)
650+ line
651+ [git clone](command:git.clone "dude...")
652+ goodbye`
653+ } ) ;
654+
655+ Registry . as < IViewsRegistry > ( Extensions . ViewsRegistry ) . registerEmptyViewContent ( this . id , {
656+ content : `another view yeah`
657+ } ) ;
643658 }
644659
645660 render ( ) : void {
0 commit comments