File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -300,10 +300,10 @@ export default class ExecutionCommandProvider {
300300
301301 /**
302302 * Implements the open file action
303- * @param uris The file paths to the files that should be opened
303+ * @param uri The file path to the file that should be opened
304304 * @returns
305305 */
306- async handleOpenFile ( uris : vscode . Uri [ ] ) : Promise < void > {
306+ async handleOpenFile ( uri : vscode . Uri ) : Promise < void > {
307307 this . _telemetryLogger . logEvent ( {
308308 eventKey : 'ML_VS_CODE_ACTIONS' ,
309309 data : {
@@ -320,8 +320,6 @@ export default class ExecutionCommandProvider {
320320 return ;
321321 }
322322
323- for ( const uri of uris ) {
324- void this . _mvm . feval ( 'open' , 0 , [ uri . fsPath ] ) ;
325- }
323+ void this . _mvm . feval ( 'open' , 0 , [ uri . fsPath ] ) ;
326324 }
327325}
Original file line number Diff line number Diff line change @@ -129,7 +129,7 @@ export async function activate (context: vscode.ExtensionContext): Promise<void>
129129 context . subscriptions . push ( vscode . commands . registerCommand ( 'matlab.addFolderToPath' , async ( uri : vscode . Uri ) => await executionCommandProvider . handleAddFolderToPath ( uri ) ) )
130130 context . subscriptions . push ( vscode . commands . registerCommand ( 'matlab.addFolderAndSubfoldersToPath' , async ( uri : vscode . Uri ) => await executionCommandProvider . handleAddFolderAndSubfoldersToPath ( uri ) ) )
131131 context . subscriptions . push ( vscode . commands . registerCommand ( 'matlab.changeDirectory' , async ( uri : vscode . Uri ) => await executionCommandProvider . handleChangeDirectory ( uri ) ) )
132- context . subscriptions . push ( vscode . commands . registerCommand ( 'matlab.openFile' , async ( uris : vscode . Uri [ ] ) => await executionCommandProvider . handleOpenFile ( uris ) ) )
132+ context . subscriptions . push ( vscode . commands . registerCommand ( 'matlab.openFile' , async ( uri : vscode . Uri ) => await executionCommandProvider . handleOpenFile ( uri ) ) )
133133
134134 // Register a custom command which allows the user enable / disable Sign In options.
135135 // Using this custom command would be an alternative approach to going to enabling the setting.
You can’t perform that action at this time.
0 commit comments