import { shared as lspCommon } from '@salesforce/lightning-lsp-common' ; import { ExtensionContext } from 'vscode' ; import { registerLwcTestCodeLensProvider } from './codeLens/lwcTestCodeLensProvider' ; import { registerCommands } from './commands' ; import { registerLwcTestExplorerTreeView } from './testExplorer/testOutlineProvider' ; import { lwcTestIndexer } from './testIndexer' ; import { taskService } from './testRunner/taskService' ; import { testResultsWatcher } from './testRunner/testResultsWatcher' ; import { startWatchingEditorFocusChange } from './utils/context' ; import { workspaceService } from './workspace' ; param workspaceType export function shouldActivateLwcTestSupport ( workspaceType ) { return ( workspaceService . isSFDXWorkspace ( workspaceType ) || workspaceService . isCoreWorkspace ( workspaceType ) ) ; } export function activateLwcTestSupport ( context , workspaceType ) { workspaceService . register ( context , workspaceType ) ; registerCommands ( context ) ; registerLwcTestCodeLensProvider ( context ) ; registerLwcTestExplorerTreeView ( context ) ; startWatchingEditorFocusChange ( context ) ; taskService . registerTaskService ( context ) ; testResultsWatcher . register ( context ) ; lwcTestIndexer . register ( context ) ; }