Include modifiedMethodSignatures in SetModeledMethodsMessage
This commit is contained in:
Родитель
8832655c2f
Коммит
5ce09e6ccc
|
@ -531,6 +531,7 @@ interface SetMethodsMessage {
|
|||
interface SetModeledMethodsMessage {
|
||||
t: "setModeledMethods";
|
||||
methods: Record<string, ModeledMethod[]>;
|
||||
modifiedMethodSignatures: string[];
|
||||
}
|
||||
|
||||
interface SetModifiedMethodsMessage {
|
||||
|
|
|
@ -823,14 +823,8 @@ export class ModelEditorView extends AbstractWebview<
|
|||
await this.postMessage({
|
||||
t: "setModeledMethods",
|
||||
methods: event.modeledMethods,
|
||||
modifiedMethodSignatures: [...event.modifiedMethodSignatures],
|
||||
});
|
||||
|
||||
if (event.modifiedMethodSignatures !== undefined) {
|
||||
await this.postMessage({
|
||||
t: "setModifiedMethods",
|
||||
methodSignatures: [...event.modifiedMethodSignatures],
|
||||
});
|
||||
}
|
||||
}
|
||||
}),
|
||||
);
|
||||
|
|
|
@ -196,6 +196,7 @@ export function ModelEditor({
|
|||
break;
|
||||
case "setModeledMethods":
|
||||
setModeledMethods(msg.methods);
|
||||
setModifiedSignatures(new Set(msg.modifiedMethodSignatures));
|
||||
break;
|
||||
case "setModifiedMethods":
|
||||
setModifiedSignatures(new Set(msg.methodSignatures));
|
||||
|
|
Загрузка…
Ссылка в новой задаче