File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
apps/remix-ide/src/app/panels Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -135,9 +135,15 @@ module.exports = class Filepanel extends ViewPlugin {
135135 const gistHandler = new GistHandler ( )
136136 const params = queryParams . get ( )
137137 // get the file from gist
138- const loadedFromGist = gistHandler . loadFromGist ( params , this . _deps . fileManager )
139-
138+ let loadedFromGist = false
139+ if ( params . gist ) {
140+ await this . processCreateWorkspace ( 'gist-sample' )
141+ this . _deps . fileProviders . workspace . setWorkspace ( 'gist-sample' )
142+ this . initialWorkspace = 'gist-sample'
143+ loadedFromGist = gistHandler . loadFromGist ( params , this . _deps . fileManager )
144+ }
140145 if ( loadedFromGist ) return
146+
141147 if ( params . code ) {
142148 try {
143149 await this . processCreateWorkspace ( 'code-sample' )
You can’t perform that action at this time.
0 commit comments