code-server
code-server copied to clipboard
Syntax highlighting does not work behind Nginx.
Is there an existing issue for this?
- [X] I have searched the existing issues
OS/Web Information
- Web Browser: Safari
- Local OS: macOS 14.5
- Remote OS: Ubuntu
- Remote Architecture: x86_64
-
code-server --version
: 4.89.1
Steps to Reproduce
- Put code-server behind nginx
- Access through nginx
Expected
Syntax highlighting should work the same as it does without Nginx.
Actual
Syntax highlighting is very basic when running behind Nginx, leaving most of the code white.
Logs
May 21 12:39:31 code-server[101786]: [12:39:31] [127.0.0.1][a403d907][ManagementConnection] New connection established.
May 21 12:39:32 code-server[101786]: [12:39:32] [127.0.0.1][bba0054d][ExtensionHostConnection] New connection established.
May 21 12:39:32 code-server[101786]: [12:39:32] [127.0.0.1][bba0054d][ExtensionHostConnection] <121530> Launched Extension Host Process.
May 21 12:40:22 code-server[101786]: [12:40:22] [192.168.1.79][3f7e8241][ManagementConnection] The client has disconnected gracefully, so the connection will be dispose>
May 21 12:40:22 code-server[101786]: [12:40:22] [192.168.1.79][a8ea5943][ExtensionHostConnection] <112217> Extension Host Process exited with code: 0, signal: null.
May 21 12:40:23 code-server[101786]: File not found: /usr/lib/code-server/lib/vscode/out/vsda_bg.wasm
May 21 12:40:23 code-server[101786]: File not found: /usr/lib/code-server/lib/vscode/out/vsda.js
May 21 12:40:23 code-server[101786]: [12:40:23] [192.168.1.79][ecb15821][ManagementConnection] New connection established.
May 21 12:40:24 code-server[101786]: [12:40:24] [192.168.1.79][1777e7cd][ExtensionHostConnection] New connection established.
May 21 12:40:24 code-server[101786]: [12:40:24] [192.168.1.79][1777e7cd][ExtensionHostConnection] <124589> Launched Extension Host Process.
May 21 12:43:54 code-server[101786]: [12:43:54] [127.0.0.1][a403d907][ManagementConnection] The client has disconnected gracefully, so the connection will be disposed.
May 21 12:43:54 code-server[101786]: [12:43:54] [127.0.0.1][bba0054d][ExtensionHostConnection] <121530> Extension Host Process exited with code: 0, signal: null.
May 21 12:43:55 code-server[101786]: File not found: /usr/lib/code-server/lib/vscode/out/vsda_bg.wasm
May 21 12:43:55 code-server[101786]: File not found: /usr/lib/code-server/lib/vscode/out/vsda.js
Screenshot/Video
Accessing through Nginx
Accessing without Nginx
Does this bug reproduce in native VS Code?
No, this works as expected in native VS Code
Does this bug reproduce in GitHub Codespaces?
I did not test GitHub Codespaces
Are you accessing code-server over a secure context?
- [X] I am using a secure context.
Notes
When accessing without Nginx, I am accessing over an insecure context. Nginx is being used to add SSL to the connection.