Commit 2bea998
authored
Fix running as a web extension, add smoke tests to prevent another regression (#1193)
* On web, send a message to the worker containing the translations
Translations weren't working at all when running the language server in
a web worker. In fact, the server was crashing immediately,
since the server was trying to load them from the filesystem.
This PR provides the translations to the server using the webworker
message passing mechanism.
Requires redhat-developer/yaml-language-server#1165
Signed-off-by: David Thompson <[email protected]>
* Fix web support, add smoke tests
1. Fix schema content resolving when running on web
(referencing a schema with a relative path wasn't working)
2. Add smoke tests for desktop using `@vscode/test-cli`
3. Add smoke tests for web using `@vscode/test-web`
The smoke tests are very minimal; it loads a YAML file that references a
schema using a relative path and verifies the expected diagnostics
appear.
Signed-off-by: David Thompson <[email protected]>
---------
Signed-off-by: David Thompson <[email protected]>1 parent c126488 commit 2bea998
File tree
15 files changed
+1189
-709
lines changed- .github/workflows
- .vscode
- smoke-test
- src
- webworker
- test
15 files changed
+1189
-709
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
45 | 46 | | |
| 47 | + | |
46 | 48 | | |
47 | 49 | | |
48 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
15 | 17 | | |
0 commit comments