yarn web - do not have root in memfs

This commit is contained in:
Benjamin Pasero
2019-11-06 15:30:50 +01:00
parent 4d44cfa7c8
commit 5a569ad3dd
2 changed files with 29 additions and 28 deletions

View File

@@ -132,7 +132,7 @@ async function handleRoot(req, res) {
const data = (await util.promisify(fs.readFile)(WEB_MAIN)).toString()
.replace('{{WORKBENCH_WEB_CONFIGURATION}}', escapeAttribute(JSON.stringify({
staticExtensions,
folderUri: { scheme: 'memfs', path: `/` }
folderUri: { scheme: 'memfs', path: `/sample-folder` }
})))
.replace('{{WEBVIEW_ENDPOINT}}', '')
.replace('{{REMOTE_USER_DATA_URI}}', '');