Repository navigation
Commit 703c03b
ADFA-5586 | Markdown Previewer: explain empty Project picks and render JS-driven HTML (#105)
fix(ADFA-5586): report empty Project picks and run page scripts in the previewer
Project returned silently when no project was open or no file matched,
and the only HTML in a fresh project (Gradle's problems report) lives
under build/, which the picker skips. Show a dialog for both cases.
Walk the project off the main thread and prune build/ and hidden
directories instead of walking them and filtering afterwards.
The problems report renders with JavaScript; with JS disabled its static
"Loading..." body never changed. Enable JS, with file and content access
disabled.
Co-authored-by: Daniel Alome <astrocoder007@gmail.com>1 parent 67192b7 commit 703c03b
2 files changed
Lines changed: 25 additions & 8 deletions
File tree
- plugins/Markdown-Previewer/src/main
- kotlin/org/appdevforall/markdownpreviewer/fragments
- res/values
Lines changed: 23 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
34 | 35 | | |
| 36 | + | |
35 | 37 | | |
36 | 38 | | |
37 | 39 | | |
| |||
145 | 147 | | |
146 | 148 | | |
147 | 149 | | |
148 | | - | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
149 | 153 | | |
150 | 154 | | |
151 | 155 | | |
| |||
238 | 242 | | |
239 | 243 | | |
240 | 244 | | |
241 | | - | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
242 | 251 | | |
243 | | - | |
244 | | - | |
245 | | - | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
246 | 255 | | |
247 | 256 | | |
248 | 257 | | |
249 | 258 | | |
250 | 259 | | |
| 260 | + | |
251 | 261 | | |
252 | | - | |
253 | 262 | | |
254 | 263 | | |
255 | 264 | | |
256 | 265 | | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
257 | 274 | | |
258 | 275 | | |
259 | 276 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | | - | |
| 21 | + | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
0 commit comments