Skip to content

Conversation

@datho7561
Copy link
Contributor

@datho7561 datho7561 commented Jan 15, 2026

What does this PR do?

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

What issues does this PR fix or reference?

#1191

Is it tested? How?

  • Manually
  • Through a smoke test for running as a web worker

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]>
@datho7561 datho7561 changed the title On web, send a message to the worker containing the translations Fix running as a web extension, add smoke tests to ensure no regressions Jan 16, 2026
@datho7561 datho7561 changed the title Fix running as a web extension, add smoke tests to ensure no regressions Fix running as a web extension, add smoke tests to prevent another regression Jan 16, 2026
@datho7561 datho7561 force-pushed the fix-l10n-on-web branch 2 times, most recently from a984e42 to 4b68b7e Compare January 16, 2026 16:02
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant