flesh out detection of remixd session to enable slither

pull/3779/head
Joseph Izang 1 year ago
parent 5830837508
commit 7cba306bf7
  1. 11
      libs/remix-ui/static-analyser/src/lib/remix-ui-static-analyser.tsx

@ -131,8 +131,15 @@ export const RemixUiStaticAnalyser = (props: RemixUiStaticAnalyserProps) => {
}, [])
useEffect(() => {
}, [])
const checkRemixdActive = async () => {
const remixdActive = await props.analysisModule.call('manager', 'isActive', 'remixd')
if (remixdActive) {
setSlitherEnabled(true)
setShowSlither(true)
}
}
checkRemixdActive()
}, [props])
useEffect(() => {
props.analysisModule.on('filePanel', 'setWorkspace', (currentWorkspace) => {

Loading…
Cancel
Save