import { workspace } from 'vscode' ; export function isDarkTheme ( ) { const theme = workspace . getConfiguration ( ) . get ( 'workbench.colorTheme' , '' ) ; if ( theme . match ( /dark|black/i ) != null ) return true ; if ( theme . match ( /light/i ) != null ) return false ; return true ; }