import * as vscode from 'vscode' ; export class Configuration { param workspaceFolder public static getScanExcludePattern ( workspaceFolder ? ) { let resource = workspaceFolder ? workspaceFolder . uri : null ; return vscode . workspace . getConfiguration ( 'jfrog' , resource ) . get ( 'xray.exclusions' ) ; } /**
     * Return true if should watch for changes in go.sum or package-lock.json files.
     */ public static isWatchEnabled ( ) { return vscode . workspace . getConfiguration ( 'jfrog' ) . get ( 'xray.watchers' ) ; } public static getBuildsPattern ( ) { return vscode . workspace . getConfiguration ( 'jfrog' ) . get ( 'xray.ciIntegration.buildNamePattern' ) || '' ; } returns public static getProjectKey ( ) { return vscode . workspace . getConfiguration ( 'jfrog' ) . get ( 'projectKey' , '' ) . trim ( ) ; } }