Commit bf4be27
authored
feat(stepfunctions): Workflow Studio integration #6544
## Problem
1. Currently the indentation setting used in the integration defaults to
4 spaces. If it's different in user's VSCode setting, the spacing for
the string sent from the integration will not match
2. Currently context menu lacks the command to launch WFS. It [has been
added
before](https://github.com/aws/aws-toolkit-vscode/pull/5834/files), but
it looks it was accidentally added to auto-generated file and was thus
removed later
3. WFS editor is opened by default in all modes, including conflict
resolution and some other views
4. Bug: when opening split panel while having WFS integration open, it
opens a panel with custom editor, which stays empty since we already
have an instance of WFS editor launched for that file
5. Bug: If the webview is unavailable (e.g. CDN is down or the user is
offline), integration throws an error modal and the file can't be opened
easily, even in the default editor
6. Bug: when YAML in the local file is invalid, WFS integration is
opened to the file, but since it fails to transform YAML to valid JSON,
it opens with empty definition
## Solution
1. Passing a user setting for tab spacing to be used on the webview side
to format JSON/YAML with the right indentation
2. Adding an option to launch WFS from context menu, as it was added
before (but this time in the right package.json)
3. Add editorAssociation to not open WFS in specific environments that
do not require it
4. When opening split panel panel while having WFS integration open,
open that file in default editor
5. If the webview is unavailable, open file in default editor
6. When YAML in the local file is invalid, open default editor instead
of WFS and show warning message (similar to what we do for invalid JSON)1 parent dbfb0b2 commit bf4be27
File tree
4 files changed
+81
-25
lines changed- packages
- core
- src/stepFunctions
- workflowStudio
- toolkit
4 files changed
+81
-25
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
30 | 32 | | |
31 | 33 | | |
32 | 34 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
232 | 233 | | |
233 | 234 | | |
234 | 235 | | |
235 | | - | |
| 236 | + | |
236 | 237 | | |
237 | 238 | | |
238 | 239 | | |
| |||
241 | 242 | | |
242 | 243 | | |
243 | 244 | | |
244 | | - | |
245 | | - | |
246 | | - | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
247 | 264 | | |
248 | 265 | | |
249 | 266 | | |
| |||
Lines changed: 40 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | | - | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
72 | 73 | | |
73 | 74 | | |
74 | 75 | | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | 76 | | |
79 | 77 | | |
80 | 78 | | |
| |||
86 | 84 | | |
87 | 85 | | |
88 | 86 | | |
| 87 | + | |
89 | 88 | | |
90 | | - | |
| 89 | + | |
91 | 90 | | |
92 | 91 | | |
| 92 | + | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
| 95 | + | |
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
118 | | - | |
119 | | - | |
| 118 | + | |
120 | 119 | | |
121 | 120 | | |
122 | | - | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
123 | 125 | | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
124 | 132 | | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
130 | 136 | | |
131 | 137 | | |
132 | 138 | | |
133 | 139 | | |
134 | | - | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
135 | 156 | | |
136 | 157 | | |
137 | 158 | | |
138 | 159 | | |
139 | 160 | | |
140 | | - | |
141 | | - | |
142 | 161 | | |
| 162 | + | |
143 | 163 | | |
144 | | - | |
| 164 | + | |
| 165 | + | |
145 | 166 | | |
146 | | - | |
| 167 | + | |
147 | 168 | | |
148 | 169 | | |
149 | 170 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1412 | 1412 | | |
1413 | 1413 | | |
1414 | 1414 | | |
| 1415 | + | |
| 1416 | + | |
| 1417 | + | |
| 1418 | + | |
| 1419 | + | |
1415 | 1420 | | |
1416 | 1421 | | |
1417 | 1422 | | |
| |||
3917 | 3922 | | |
3918 | 3923 | | |
3919 | 3924 | | |
| 3925 | + | |
| 3926 | + | |
| 3927 | + | |
| 3928 | + | |
| 3929 | + | |
| 3930 | + | |
| 3931 | + | |
| 3932 | + | |
| 3933 | + | |
| 3934 | + | |
3920 | 3935 | | |
3921 | 3936 | | |
3922 | 3937 | | |
| |||
4654 | 4669 | | |
4655 | 4670 | | |
4656 | 4671 | | |
4657 | | - | |
| 4672 | + | |
| 4673 | + | |
4658 | 4674 | | |
4659 | 4675 | | |
4660 | 4676 | | |
| |||
0 commit comments