@@ -109,19 +109,23 @@ const setupApplicationMenu = async () => {
109109 applicationMenu ( status === 'OUTDATED' , ( folder ) => {
110110 sharedFolderClient . sharedFolder ( folder , false )
111111 sharedFolderClient . setupNotifications ( folder )
112- gitClient . sharedFolder ( folder , false )
112+ slitherClient . sharedFolder ( folder )
113+ hardhatClient . sharedFolder ( folder )
113114 } )
114115}
115116
116117
118+ // Similar object is also defined in websocket.ts
117119const ports = {
118120 git : 65521 ,
121+ hardhat : 65522 ,
122+ slither : 65523 ,
119123 folder : 65520
120124}
121125
122126function startService ( service , callback ) {
123127 try {
124- const socket = new remix . Websocket ( ports [ service ] , { remixIdeUrl } , ( ) => services [ service ] ( ) )
128+ const socket = new remixd . Websocket ( ports [ service ] , { remixIdeUrl } , ( ) => services [ service ] ( ) )
125129 socket . start ( callback )
126130 } catch ( e ) {
127131 console . error ( e )
@@ -143,15 +147,10 @@ let remixdStart = () => {
143147 client . sharedFolder ( currentFolder )
144148 } )
145149
146- // Run hardhat service if a hardhat project is shared as folder
147- const hardhatConfigFilePath = utils . absolutePath ( './' , currentFolder ) + '/hardhat.config.js'
148- const isHardhatProject = fs . existsSync ( hardhatConfigFilePath )
149- if ( isHardhatProject ) {
150- startService ( 'hardhat' , ( ws , client ) => {
151- client . setWebSocket ( ws )
152- client . sharedFolder ( currentFolder )
153- } )
154- }
150+ startService ( 'hardhat' , ( ws , client ) => {
151+ client . setWebSocket ( ws )
152+ client . sharedFolder ( currentFolder )
153+ } )
155154
156155 } catch ( error ) {
157156 throw new Error ( error )
0 commit comments