Skip to content

Commit 1f618a5

Browse files
authored
Find Linux code-oss and flatpak VSCode/VSCodium settings (#1438)
From [#vscode Talon Slack thread](https://talonvoice.slack.com/archives/CCEE45RT7/p1681736253449419) This adds VSCode settings paths on Linux for: - `code-oss` (i.e. [unbranded](https://github.com/microsoft/vscode/blob/ab7c32a5b5275c3fa9552675b6b6035888068fd7/product.json#L2-L5) builds of microsoft/vscode - notably distributed by Arch) - the VSCode, VSCodium, and code-oss Flatpaks ## Checklist - [ ] I have added [tests](https://www.cursorless.org/docs/contributing/test-case-recorder/) - [ ] I have updated the [docs](https://github.com/cursorless-dev/cursorless/tree/main/docs) and [cheatsheet](https://github.com/cursorless-dev/cursorless/tree/main/cursorless-talon/src/cheatsheet) - [ ] I have not broken the cheatsheet
1 parent 83db28a commit 1f618a5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/apps/vscode_settings.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,16 @@ def vscode_settings_path() -> Path:
8787
xdg_config_home = Path(
8888
os.environ.get("XDG_CONFIG_HOME", Path.home() / ".config")
8989
)
90+
flatpak_apps = Path.home() / ".var/app"
9091
return pick_path(
9192
[
9293
xdg_config_home / "Code/User/settings.json",
9394
xdg_config_home / "VSCodium/User/settings.json",
95+
xdg_config_home / "Code - OSS/User/settings.json",
96+
flatpak_apps / "com.visualstudio.code/config/Code/User/settings.json",
97+
flatpak_apps / "com.vscodium.codium/config/VSCodium/User/settings.json",
98+
flatpak_apps
99+
/ "com.visualstudio.code-oss/config/Code - OSS/User/settings.json",
94100
]
95101
)
96102

0 commit comments

Comments
 (0)