Commit graph

26 commits

Author SHA1 Message Date
Nathan van Doorn e631d78ddf
vscode: fix erroneous application of lib.optional (#3655) 2023-02-08 12:18:28 +01:00
Nathan van Doorn d7a5a28fc3
vscode: add extensions.json file in extensions dir (#3588)
* vscode: add extensions.json file in extensions dir

This change generates an 'extensions.json` file the same way that
nixpkgs' vscode-with-extensions does, and makes sure it is placed in the
directory with the extensions.

* vscode: remove leftover trace

Co-authored-by: Naïm Favier <n@monade.li>

* vscode: fix adding extensions.json with mutable extension dir

Co-authored-by: Naïm Favier <n@monade.li>

* vscode: let vscode regenerate the mutable extensions.json

* Remove nixpkgs duplication; only apply on vscodes new enough to need it

* Use lib.versionAtLeast

Co-authored-by: Naïm Favier <n@monade.li>

* Format vscode.nix

---------

Co-authored-by: Naïm Favier <n@monade.li>
2023-02-08 11:00:27 +01:00
natsukium 39c1e6704a
vscode: fix invalid examples 2022-11-03 09:24:25 +01:00
Markus S. Wamser d3f21617ac
vscode: add options to disable update checks
Update notification popups are annoying when vscode/vscodium is
managed by Home Manager. However, as these settings also require the
configuration to be managed via `userSettings`, they are disabled by
default.
2022-10-27 18:16:03 +02:00
Naïm Favier 119febc464
vscode: avoid unnecessary IFD (again)
Fixed in https://github.com/nix-community/home-manager/pull/2506 then
unfixed in https://github.com/nix-community/home-manager/pull/2613
2022-07-27 13:51:19 +02:00
mihnea-s 7cf15b19a9
vscode: add user tasks (#2804) 2022-03-18 18:54:24 -04:00
Markus Wamser 650cfe60f3
vscode: fix name of extension in example (#2759) 2022-02-24 18:45:41 -05:00
Naïm Favier 1ca6293c8f
vscode: fix keybindings existence check (#2707)
... and flip immutableExtensionsDir to mutableExtensionsDir
2022-02-07 12:40:59 -05:00
Michael Hoang 184b0154f2
vscode: Add immutable extensions dir option (#2613) 2022-02-02 15:57:11 -05:00
Naïm Favier e28185a2c0
vscode: avoid unnecessary IFD (#2506) 2021-11-24 20:55:38 -05:00
Nicolas Berbiche 158bc59398
vscode: allow argument for keybind to any json value (#2418) 2021-10-27 22:13:54 -06:00
Naïm Favier bd11e2c5e6
Replace usage of literalExample
Instead use the new function `literalExpression`. See

  https://github.com/NixOS/nixpkgs/pull/136909
2021-10-13 00:16:10 +02:00
Jakub Kozłowski d420287583
vscode: add args option to keybindings
Also make `when` optional.
2021-02-05 22:38:37 +01:00
Nicolas Berbiche 44f9d68d8c
treewide: replace attrs by formats or types.anything 2020-11-29 21:54:55 -05:00
Robert Helgesson e7d5531cfa
vscode: apply nixfmt 2020-10-12 22:51:12 +02:00
Christoph Herzog 1ed8e7ef98
vscode: add options for keybindings
Adds a new `keybindings` option to the `vscode` configuration.

It contains a list of key bindings, which will be written to
`%vscode-dir%/User/keybindings.json`.

PR #1351
2020-09-04 14:14:52 +02:00
Zsolt Szende 507e446475
vscode: fix extensions directory path
Fixes #1302
PR #1327
2020-06-14 00:43:44 +02:00
Bill Sun fe145b12cd
vscode: fix extension path symlink error
Fix extension path symlink error caused by [1], which removes
`/share/{wrappedPkgName}/extensions` from the extension install path.

[1] https://github.com/NixOS/nixpkgs/pull/71251

PR #1100
2020-03-21 17:47:32 +01:00
Konrad Borowski 711109d468
vscode: correct VSCodium extension directory path 2019-12-07 15:04:11 +01:00
worldofpeace ef11164c0c vscode: don't create an empty settings.json
If I enable this module without using the userSettings option it will
create an empty settings.json. We use mkIf to prevent this on the default
value.
2019-11-28 16:01:58 -05:00
Pasquale 595150be86
vscode: correct base path from which to pull extensions 2019-11-15 23:18:12 +01:00
HerrMAzik 08094f3cc2
vscode: fix configDir for VSCodium 2019-11-15 23:15:00 +01:00
Pasquale 024d1aa227
vscode: add package option and link extensions 2019-10-20 21:49:17 +02:00
Robert Helgesson 056443ccbd
vscode: fix configuration path for Darwin
Fixes #737
2019-07-22 12:44:52 +02:00
Robert Helgesson e1535d2bd8
vscode: add example for extensions option 2019-05-31 21:37:28 +02:00
hyperfekt 6ab6488e5a
vscode: add module 2018-11-26 00:01:01 +01:00