-
Notifications
You must be signed in to change notification settings - Fork 226
Convert SetSelectedMethodMessage to include multiple modeled methods
#2947
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -577,6 +577,12 @@ interface SetModeledMethodMessage { | |
| method: ModeledMethod; | ||
| } | ||
|
|
||
| interface SetMultipleModeledMethodsMessage { | ||
| t: "setMultipleModeledMethods"; | ||
| methodSignature: string; | ||
| modeledMethods: ModeledMethod[]; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Did we discuss including That would also make it easier to remove all modeled methods for a method signature, instead of having to set it to the array containing one element with I'm happy for you to make this change in this PR or I can do it in a followup, because I'll be using this message in my next PR.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It does make sense to add it here. Right now, this message is only used for communication from the extension host to the view, but we'll definitely need the signature for the communication from the view to the extension host. I'll change the message now so that I can also use it in a follow-up PR (after #2924). |
||
| } | ||
|
|
||
| interface SetInModelingModeMessage { | ||
| t: "setInModelingMode"; | ||
| inModelingMode: boolean; | ||
|
|
@@ -643,14 +649,14 @@ interface SetMethodModifiedMessage { | |
| interface SetSelectedMethodMessage { | ||
| t: "setSelectedMethod"; | ||
| method: Method; | ||
| modeledMethod?: ModeledMethod; | ||
| modeledMethods: ModeledMethod[]; | ||
| isModified: boolean; | ||
| } | ||
|
|
||
| export type ToMethodModelingMessage = | ||
| | SetMethodModelingPanelViewStateMessage | ||
| | SetMethodMessage | ||
| | SetModeledMethodMessage | ||
| | SetMultipleModeledMethodsMessage | ||
| | SetMethodModifiedMessage | ||
| | SetSelectedMethodMessage | ||
| | SetInModelingModeMessage; | ||
Uh oh!
There was an error while loading. Please reload this page.