diff --git a/apps/remix-ide/webpack.config.js b/apps/remix-ide/webpack.config.js index f172b414aa..7eb1e5e501 100644 --- a/apps/remix-ide/webpack.config.js +++ b/apps/remix-ide/webpack.config.js @@ -1,7 +1,6 @@ const nxWebpack = require('@nrwl/react/plugins/webpack') const TerserPlugin = require('terser-webpack-plugin') -const CopyWebpackPlugin = require("copy-webpack-plugin"); - +const CopyWebpackPlugin = require('copy-webpack-plugin') module.exports = config => { const nxWebpackConfig = nxWebpack(config) @@ -19,7 +18,7 @@ module.exports = config => { ...nxWebpackConfig.plugins, new CopyWebpackPlugin({ patterns: [ - { from: "../../../node_modules/monaco-editor/dev/vs/", to: "assets/js/monaco-editor/dev/vs" }, + { from: '../../../node_modules/monaco-editor/dev/vs/', to: 'assets/js/monaco-editor/dev/vs' } ].filter(Boolean) }) ] diff --git a/libs/remix-ui/workspace/src/lib/reducers/workspace.ts b/libs/remix-ui/workspace/src/lib/reducers/workspace.ts index 152b283fa9..e046892df9 100644 --- a/libs/remix-ui/workspace/src/lib/reducers/workspace.ts +++ b/libs/remix-ui/workspace/src/lib/reducers/workspace.ts @@ -334,12 +334,12 @@ export const browserReducer = (state = browserInitialState, action: Action) => { case 'ROOT_FOLDER_CHANGED': { const payload = action.payload as string - return { ...state, localhost: { ...state.localhost, - sharedFolder: payload + sharedFolder: payload, + files: {} } } } diff --git a/libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx b/libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx index 136ab3339b..ceb6899c9b 100644 --- a/libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx +++ b/libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx @@ -23,7 +23,7 @@ export function Workspace () { else setCurrentWorkspace(NO_WORKSPACE) global.dispatchFetchWorkspaceDirectory(global.fs.browser.currentWorkspace) } else if (global.fs.mode === 'localhost') { - // global.dispatchFetchWorkspaceDirectory('/') + global.dispatchFetchWorkspaceDirectory('/') setCurrentWorkspace(LOCALHOST) } }, [global.fs.browser.currentWorkspace, global.fs.localhost.sharedFolder, global.fs.mode]) @@ -127,6 +127,7 @@ export function Workspace () {