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 {
300
300
301
301
/**
302
302
* 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
304
304
* @returns
305
305
*/
306
- async handleOpenFile ( uris : vscode . Uri [ ] ) : Promise < void > {
306
+ async handleOpenFile ( uri : vscode . Uri ) : Promise < void > {
307
307
this . _telemetryLogger . logEvent ( {
308
308
eventKey : 'ML_VS_CODE_ACTIONS' ,
309
309
data : {
@@ -320,8 +320,6 @@ export default class ExecutionCommandProvider {
320
320
return ;
321
321
}
322
322
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 ] ) ;
326
324
}
327
325
}
Original file line number Diff line number Diff line change @@ -129,7 +129,7 @@ export async function activate (context: vscode.ExtensionContext): Promise<void>
129
129
context . subscriptions . push ( vscode . commands . registerCommand ( 'matlab.addFolderToPath' , async ( uri : vscode . Uri ) => await executionCommandProvider . handleAddFolderToPath ( uri ) ) )
130
130
context . subscriptions . push ( vscode . commands . registerCommand ( 'matlab.addFolderAndSubfoldersToPath' , async ( uri : vscode . Uri ) => await executionCommandProvider . handleAddFolderAndSubfoldersToPath ( uri ) ) )
131
131
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 ) ) )
133
133
134
134
// Register a custom command which allows the user enable / disable Sign In options.
135
135
// 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