diff options
author | bt <bt@web> | 2023-12-12 14:05:58 -0500 |
---|---|---|
committer | IkiWiki <ikiwiki.info> | 2023-12-12 14:05:58 -0500 |
commit | 2c3ea400c5a77fd122aff4d8dc25cd6129c1cb6a (patch) | |
tree | 1121221d20bef58577c525d8ba406bbd56b09745 /posts | |
parent | f955f41325902208cb20940329d2ba8503de5c0a (diff) |
Diffstat (limited to 'posts')
-rw-r--r-- | posts/vscode.md | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/posts/vscode.md b/posts/vscode.md index 28505c7..47d8999 100644 --- a/posts/vscode.md +++ b/posts/vscode.md @@ -13,20 +13,20 @@ Getting things to work seamlessly proved a little more challenging. I found the First we need to disable [unveil](https://man.openbsd.org/unveil.2) for Chromium. This will allow us to access our system files through [vscode.dev](https://vscode.dev) using the "Open folder..." or "Open file..." commands without issue: -``` -chrome --disable-unveil -``` + + 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 -``` + + 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" -``` + + 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! |