@@ -61,7 +61,7 @@ suite('Markdown Setting Renderer Test', () => {
6161 preferencesService = < IPreferencesService > { } ;
6262 contextMenuService = < IContextMenuService > { } ;
6363 Registry . as < IConfigurationRegistry > ( Extensions . Configuration ) . registerConfiguration ( configuration ) ;
64- settingRenderer = new SimpleSettingRenderer ( configurationService , contextMenuService , preferencesService , { publicLog2 : ( ) => { } } as any ) ;
64+ settingRenderer = new SimpleSettingRenderer ( configurationService , contextMenuService , preferencesService , { publicLog2 : ( ) => { } } as any , { writeText : async ( ) => { } } as any ) ;
6565 } ) ;
6666
6767 suiteTeardown ( ( ) => {
@@ -82,7 +82,7 @@ suite('Markdown Setting Renderer Test', () => {
8282 test ( 'actions with no value' , ( ) => {
8383 const uri = URI . parse ( settingRenderer . settingToUriString ( 'example.booleanSetting' ) ) ;
8484 const actions = settingRenderer . getActions ( uri ) ;
85- assert . strictEqual ( actions ?. length , 1 ) ;
85+ assert . strictEqual ( actions ?. length , 2 ) ;
8686 assert . strictEqual ( actions [ 0 ] . label , 'View "Example: Boolean Setting" in Settings' ) ;
8787 } ) ;
8888
@@ -91,7 +91,7 @@ suite('Markdown Setting Renderer Test', () => {
9191 const uri = URI . parse ( settingRenderer . settingToUriString ( 'example.stringSetting' , 'three' ) ) ;
9292
9393 const verifyOriginalState = ( actions : IAction [ ] | undefined ) : actions is IAction [ ] => {
94- assert . strictEqual ( actions ?. length , 2 ) ;
94+ assert . strictEqual ( actions ?. length , 3 ) ;
9595 assert . strictEqual ( actions [ 0 ] . label , 'Set "Example: String Setting" to "three"' ) ;
9696 assert . strictEqual ( actions [ 1 ] . label , 'View in Settings' ) ;
9797 assert . strictEqual ( configurationService . getValue ( 'example.stringSetting' ) , 'two' ) ;
@@ -104,9 +104,10 @@ suite('Markdown Setting Renderer Test', () => {
104104 await actions [ 0 ] . run ( ) ;
105105 assert . strictEqual ( configurationService . getValue ( 'example.stringSetting' ) , 'three' ) ;
106106 const actionsUpdated = settingRenderer . getActions ( uri ) ;
107- assert . strictEqual ( actionsUpdated ?. length , 2 ) ;
107+ assert . strictEqual ( actionsUpdated ?. length , 3 ) ;
108108 assert . strictEqual ( actionsUpdated [ 0 ] . label , 'Restore value of "Example: String Setting"' ) ;
109109 assert . strictEqual ( actions [ 1 ] . label , 'View in Settings' ) ;
110+ assert . strictEqual ( actions [ 2 ] . label , 'Copy Setting ID' ) ;
110111 assert . strictEqual ( configurationService . getValue ( 'example.stringSetting' ) , 'three' ) ;
111112
112113 // Restore the value
0 commit comments