From 07e4a2dafe248280b5610f8c7d09b0f30b530f54 Mon Sep 17 00:00:00 2001 From: Bradley Taunt Date: Mon, 10 Jun 2024 09:41:25 -0400 Subject: Initial modifications to rebuilt only changed files based on mod date, performance updates --- build/vscode/index.html | 58 ------------------------------------------------- 1 file changed, 58 deletions(-) delete mode 100644 build/vscode/index.html (limited to 'build/vscode') diff --git a/build/vscode/index.html b/build/vscode/index.html deleted file mode 100644 index 92c54fb..0000000 --- a/build/vscode/index.html +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - - - Running VSCode in Chromium on OpenBSD - - - - - - - -
-

Running VSCode in Chromium on OpenBSD

-

2023-06-05

-

VSCode and its many variations are not available on OpenBSD. This doesn’t cause issue with many OpenBSD users, but those making the jump from Linux might miss access to such a popular editor. Lucky for us, there is a hacky workaround to solve this problem.

-

VSCode in the Browser

-

I tried my best to build something like code-server locally and run that directly in my browser - but I failed miserably. Instead, I fell back on vscode.dev which is essentially a remote version of code-server.

-

Getting things to work seamlessly proved a little more challenging. I found the best performance was running everything through Chromium with special parameters enabled on launch.

-
-

Note: The following assumes you have already installed chromium

-
-

First we need to disable unveil for Chromium. This will allow us to access our system files through vscode.dev using the “Open folder…” or “Open file…” commands without issue:

-
chrome --disable-unveil
-
-

Everything should work pretty solid right out the box now - except it doesn’t. Syntax highlighting does not work without enabling WASM/WebAssembly. Your experience might be different, but I had to include the following when launching Chromium from the terminal:

-
ENABLE_WASM=1 chrome --enable-wasm
-
-

Success! We can avoid typing out these complex commands everytime we want to launch our editor by setting up an alias (in my case via .zshrc):

-
alias vscode="ENABLE_WASM=1 chrome --enable-wasm --disable-unveil"
-
-

That’s it! Now I can just pop open VSCode on OpenBSD by simply running vscode in my terminal. Hopefully this can help others slowly transition over to OpenBSD - which you should do because it is amazing!

- \ No newline at end of file -- cgit v1.2.3-54-g00ecf