import { expect } from 'chai' ; import { CheckboxSetting , SettingsEditor , Workbench } from 'vscode-extension-tester' ; describe ( 'Settings Editor sample tests' , ( ) => { let settings ; before ( async ( ) => { settings = await new Workbench ( ) . openSettings ( ) ; } ) ; it ( 'Find and Manipulate a setting' , async ( ) => { const setting = await settings . findSetting ( 'Enable' , 'Files' , 'Simple Dialog' ) ; const simpleDialogSetting = setting as CheckboxSetting ; expect ( await simpleDialogSetting . getValue ( ) ) . is . true ; const desc = await simpleDialogSetting . getDescription ( ) ; expect ( desc ) . contains ( 'Enables the simple file dialog' ) ; await simpleDialogSetting . setValue ( true ) ; } ) ; } ) ;