File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -29,14 +29,17 @@ export async function selectWorkspaceFolder(): Promise<string> {
2929    if  ( needAsk )  { 
3030        const  choice : string  |  undefined  =  await  vscode . window . showQuickPick ( 
3131            [ 
32+                 OpenOption . justOpenFile , 
3233                OpenOption . openInCurrentWindow , 
3334                OpenOption . openInNewWindow , 
3435                OpenOption . addToWorkspace , 
3536            ] , 
36-             {  placeHolder : "Select how you  would like to open your workspace folder "  } , 
37+             {  placeHolder : "The LeetCode workspace folder is not opened in VS Code,  would you  like to open it? "  } , 
3738        ) ; 
3839
3940        switch  ( choice )  { 
41+             case  OpenOption . justOpenFile :
42+                 return  workspaceFolderSetting ; 
4043            case  OpenOption . openInCurrentWindow :
4144                await  vscode . commands . executeCommand ( "vscode.openFolder" ,  vscode . Uri . file ( workspaceFolderSetting ) ,  false ) ; 
4245                return  "" ; 
@@ -117,6 +120,7 @@ async function determineLeetCodeFolder(): Promise<string> {
117120} 
118121
119122enum  OpenOption  { 
123+     justOpenFile  =  "Just open the problem file" , 
120124    openInCurrentWindow  =  "Open in current window" , 
121125    openInNewWindow  =  "Open in new window" , 
122126    addToWorkspace  =  "Add to workspace" , 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments