Skip to content

Commit 5c508cb

Browse files
authored
docs: improve wording and formatting
1 parent 123aa31 commit 5c508cb

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

docs/termux.md

+8-6
Original file line numberDiff line numberDiff line change
@@ -89,17 +89,19 @@ Potential Workaround :
8989

9090
### Many extensions including language packs fail to install
9191

92-
Issue: Android is not seen as a Linux environment but as a separate, unsupported platform, so code-server only allows [Web Extensions](https://code.visualstudio.com/api/extension-guides/web-extensions), refusing to install extensions that run on the server.
92+
Issue: Android is not seen as a Linux environment but as a separate, unsupported platform, so code-server only allows [Web Extensions](https://code.visualstudio.com/api/extension-guides/web-extensions), refusing to download extensions that run on the server.\
9393
Fix: None\
94-
Potential workaround :
94+
Potential workarounds :
9595

96-
You can manually download extensions as `.vsix` file and install them via `Extensions: Install from VSIX...` in the Command Palette.
96+
Either
9797

98-
Alternatively, you can override `process.platform` to `linux`:
98+
- Manually download extensions as `.vsix` file and install them via `Extensions: Install from VSIX...` in the Command Palette.
99+
100+
- Use an override to pretend the platform is Linux:
99101

100102
Create a JS script that patches `process.platform`:
101103

102-
```
104+
```js
103105
// android-as-linux.js
104106
Object.defineProperty(process, 'platform', { get() { return 'linux' }});
105107
```
@@ -110,7 +112,7 @@ Then use Node's `--require` option to make sure it is loaded before `code-server
110112
NODE_OPTIONS="--require /path/to/android-as-linux.js" code-server
111113
```
112114

113-
⚠️ Note that Android and Linux are not 100% compatible, so use these workarounds at your own risk. Extensions that have native dependencies other than Node or interact with the OS directly might cause issues.
115+
⚠️ Note that Android and Linux are not 100% compatible, so use these workarounds at your own risk. Extensions that have native dependencies other than Node or that directly interact with the OS might cause issues.
114116

115117
## Extra
116118

0 commit comments

Comments
 (0)