Commit d8aee7b
fix(stepfunctions): Bug fixes - handling unsupported messages, fix undo sync bug, code cleanup (#6667)
## Problem
1. In case we introduce new feature dependant on the Toolkit change in
the future, users may face issues if they don't update their toolkit
right away (as their toolkit version won't have the new functionality in
place)
2. There was a regression from my [previous
PR](9c40f4c),
in `package.json` - most possibly due to incorrect merge conflict
resolution (since the original file has been moved to another folder).
The regression is that undo command override is not working, causing
uncorrect undo command behaviour when triggered from webview
3. There is some redundant code which is not useful and causes incorrect
behaviour, showing in the webview view screen
## Solution
1. To ensure compatibility, we are adding an unsupported message handler
in advance. In case of unsupported message it will send an appropriate
response back to the webview, so we will be able to use it to handle the
error gracefully on the webview side
2. Adding back the undo command override (only when WFS editor is
active). More context on why it's needed on [previous
PR](#6024), which was
approved and merged previously. Verified that the command only applies
to WFS editor and with this undo behaviour is fixed
3. Removing redundant code (verified the integration still works fine)
---
- Treat all work as PUBLIC. Private `feature/x` branches will not be
squash-merged at release time.
- Your code changes must meet the guidelines in
[CONTRIBUTING.md](https://github.com/aws/aws-toolkit-vscode/blob/master/CONTRIBUTING.md#guidelines).
- License: I confirm that my contribution is made under the terms of the
Apache 2.0 license.
Co-authored-by: Vlad Nikolaenko <[email protected]>1 parent c8292a3 commit d8aee7b
File tree
4 files changed
+38
-16
lines changed- packages
- core/src/stepFunctions/workflowStudio
- toolkit
4 files changed
+38
-16
lines changedLines changed: 24 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
56 | 57 | | |
57 | 58 | | |
58 | 59 | | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
59 | 63 | | |
60 | 64 | | |
61 | 65 | | |
62 | 66 | | |
63 | 67 | | |
64 | 68 | | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
65 | 72 | | |
| 73 | + | |
| 74 | + | |
66 | 75 | | |
67 | 76 | | |
68 | 77 | | |
| |||
206 | 215 | | |
207 | 216 | | |
208 | 217 | | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
44 | 45 | | |
45 | 46 | | |
46 | 47 | | |
| |||
61 | 62 | | |
62 | 63 | | |
63 | 64 | | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
64 | 69 | | |
65 | 70 | | |
66 | 71 | | |
| |||
Lines changed: 3 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
13 | | - | |
| 12 | + | |
14 | 13 | | |
15 | 14 | | |
16 | 15 | | |
| |||
80 | 79 | | |
81 | 80 | | |
82 | 81 | | |
83 | | - | |
| 82 | + | |
84 | 83 | | |
85 | 84 | | |
86 | 85 | | |
| |||
93 | 92 | | |
94 | 93 | | |
95 | 94 | | |
96 | | - | |
97 | 95 | | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
| 96 | + | |
110 | 97 | | |
111 | 98 | | |
112 | 99 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4151 | 4151 | | |
4152 | 4152 | | |
4153 | 4153 | | |
| 4154 | + | |
| 4155 | + | |
| 4156 | + | |
| 4157 | + | |
| 4158 | + | |
| 4159 | + | |
4154 | 4160 | | |
4155 | 4161 | | |
4156 | 4162 | | |
| |||
0 commit comments