import { Extension , ExtensionKind , Uri } from 'vscode' ; export class MockApexExtension implements Extension < any > { public extensionKind = ExtensionKind . Workspace ; constructor ( ) { this . id = 'salesforce.salesforcedx-vscode-apex' ; this . extensionPath = 'extension/local/path' ; this . isActive = true ; this . exports = new MockJorje ( ) ; } public extensionUri = Uri . parse ( 'file://test' ) ; public id : string ; public extensionPath : string ; public isActive : boolean ; public packageJSON : any ; public activate ( ) { return Promise . resolve ( 'activated' ) ; } public exports : any ; } class MockJorje { constructor ( ) { } public getLineBreakpointInfo ( ) { const response = [ { uri : '/force-app/main/default/classes/A.cls' , typeref : 'A' , lines : [ 2 , 5 , 6 , 7 ] } ] ; return Promise . resolve ( response ) ; } public languageClientUtils = { getStatus ( ) { return { isReady ( ) { return true ; } , failedToInitialize ( ) { return false ; } , getStatusMessage ( ) { return '' ; } } ; } } ; }