import { QuickPickItem , workspace , WorkspaceConfiguration } from "vscode" ; export interface IQuickItemEx < T > extends QuickPickItem { value : T ; } export function getWorkspaceConfiguration ( ) { return workspace . getConfiguration ( "front-end-interview" ) ; } export function getWorkspaceFolder ( ) { return getWorkspaceConfiguration ( ) . get < string > ( "workspaceFolder" , "" ) ; } export enum DescriptionConfiguration { InWebView = "In Webview" , InFileComment = "In File Comment" , Both = "Both" , None = "None" } export function filterInvalidPath ( path ) { const reg = new RegExp ( '[\\\\/:*?"<>|]' , "g" ) ; return path . replace ( reg , "" ) . replace ( "\n" , "" ) ; }