File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
model-editor/method-modeling Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -579,6 +579,7 @@ interface SetModeledMethodMessage {
579579
580580interface SetMultipleModeledMethodsMessage {
581581 t : "setMultipleModeledMethods" ;
582+ methodSignature : string ;
582583 modeledMethods : ModeledMethod [ ] ;
583584}
584585
Original file line number Diff line number Diff line change @@ -157,11 +157,12 @@ export class MethodModelingViewProvider extends AbstractWebviewViewProvider<
157157 private registerToModelingStoreEvents ( ) : void {
158158 this . push (
159159 this . modelingStore . onModeledMethodsChanged ( async ( e ) => {
160- if ( this . webviewView && e . isActiveDb ) {
161- const modeledMethods = e . modeledMethods [ this . method ? .signature ?? "" ] ;
160+ if ( this . webviewView && e . isActiveDb && this . method ) {
161+ const modeledMethods = e . modeledMethods [ this . method . signature ] ;
162162 if ( modeledMethods ) {
163163 await this . postMessage ( {
164164 t : "setMultipleModeledMethods" ,
165+ methodSignature : this . method . signature ,
165166 modeledMethods,
166167 } ) ;
167168 }
You can’t perform that action at this time.
0 commit comments