@@ -139,26 +139,34 @@ export class LiveWatchTreeDataProvider implements vscode.TreeDataProvider<LiveWa
139139 const deleteCommand = vscode . commands . registerCommand ( 'vscode-cmsis-debugger.liveWatch.delete' , async ( node ) => await this . registerDeleteCommand ( node ) ) ;
140140 const refreshCommand = vscode . commands . registerCommand ( 'vscode-cmsis-debugger.liveWatch.refresh' , async ( ) => await this . refresh ( ) ) ;
141141 const modifyCommand = vscode . commands . registerCommand ( 'vscode-cmsis-debugger.liveWatch.modify' , async ( node ) => await this . registerRenameCommand ( node ) ) ;
142- const copyCommand = vscode . commands . registerCommand ( 'vscode-cmsis-debugger.liveWatch.copy' , async ( node ) => { await this . registerCopyCommand ( node ) ; } ) ;
142+ const copyCommand = vscode . commands . registerCommand ( 'vscode-cmsis-debugger.liveWatch.copy' , async ( node ) => await this . registerCopyCommand ( node ) ) ;
143143 const addToLiveWatchCommand = vscode . commands . registerCommand ( 'vscode-cmsis-debugger.liveWatch.addToLiveWatchFromTextEditor' ,
144144 async ( ) => { await this . registerAddFromSelectionCommand ( ) ; } ) ;
145- /* I am using the same callback function for both watch window and variables view, as they have the same payload structure for now.
145+ /* I (omarArm) am using the same callback function for both watch window and variables view, as they have the same payload structure for now.
146146 However, I believe the payload structure will change for the watch window in the future as the developer who created the PR for contributing to watch window context menu
147147 mentioned he used variables' window payload structure for simplicity.
148148 Find the PR here:
149149 https://github.com/microsoft/vscode/pull/237751
150150 */
151151 const addToLiveWatchFromWatchWindowCommand = vscode . commands . registerCommand ( 'vscode-cmsis-debugger.liveWatch.addToLiveWatchFromWatchWindow' ,
152- async ( payload : { container : DebugProtocol . Scope ; variable : DebugProtocol . Variable ; } ) => { await this . registerAddToLiveWatchFromVariablesView ( payload ) ; } ) ;
152+ async ( payload : { container : DebugProtocol . Scope ; variable : DebugProtocol . Variable ; } ) => await this . registerAddToLiveWatchFromVariablesView ( payload ) ) ;
153153 const addToLiveWatchFromVariablesViewCommand = vscode . commands . registerCommand ( 'vscode-cmsis-debugger.liveWatch.addToLiveWatchFromVariablesView' ,
154- async ( payload : { container : DebugProtocol . Scope ; variable : DebugProtocol . Variable ; } ) => { await this . registerAddToLiveWatchFromVariablesView ( payload ) ; } ) ;
154+ async ( payload : { container : DebugProtocol . Scope ; variable : DebugProtocol . Variable ; } ) => await this . registerAddToLiveWatchFromVariablesView ( payload ) ) ;
155155 const showInMemoryInspectorCommand = vscode . commands . registerCommand ( 'vscode-cmsis-debugger.liveWatch.showInMemoryInspector' ,
156- async ( node : LiveWatchNode ) => { await this . showInMemoryInspector ( node ) ; } ) ;
157- this . _context . subscriptions . push ( registerLiveWatchView ,
156+ async ( node : LiveWatchNode ) => await this . showInMemoryInspector ( node ) ) ;
157+ this . _context . subscriptions . push (
158+ registerLiveWatchView ,
158159 addCommand ,
159- deleteAllCommand , deleteCommand , refreshCommand , modifyCommand ,
160- copyCommand , addToLiveWatchCommand , addToLiveWatchFromWatchWindowCommand , addToLiveWatchFromVariablesViewCommand ,
161- showInMemoryInspectorCommand ) ;
160+ deleteAllCommand ,
161+ deleteCommand ,
162+ refreshCommand ,
163+ modifyCommand ,
164+ copyCommand ,
165+ addToLiveWatchCommand ,
166+ addToLiveWatchFromWatchWindowCommand ,
167+ addToLiveWatchFromVariablesViewCommand ,
168+ showInMemoryInspectorCommand
169+ ) ;
162170 }
163171
164172 private async registerAddCommand ( ) {
0 commit comments