Unverified Commit 5b1a5a49 authored by yann300's avatar yann300 Committed by GitHub

Keep gist in a separate workspace at load (#1023)

parent 83b09995
......@@ -135,9 +135,15 @@ module.exports = class Filepanel extends ViewPlugin {
const gistHandler = new GistHandler()
const params = queryParams.get()
// get the file from gist
const loadedFromGist = gistHandler.loadFromGist(params, this._deps.fileManager)
let loadedFromGist = false
if (params.gist) {
await this.processCreateWorkspace('gist-sample')
this._deps.fileProviders.workspace.setWorkspace('gist-sample')
this.initialWorkspace = 'gist-sample'
loadedFromGist = gistHandler.loadFromGist(params, this._deps.fileManager)
}
if (loadedFromGist) return
if (params.code) {
try {
await this.processCreateWorkspace('code-sample')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment