From 62da5e780ec5f55a8385a84fdd464fd3d75e77cc Mon Sep 17 00:00:00 2001 From: Jaculabilis Date: Sat, 12 Feb 2022 14:45:26 -0800 Subject: [PATCH] Add nix develop terminal profile --- .vscode/settings.json | 8 ++++++++ README.md | 11 ++++++++++- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 .vscode/settings.json diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..1846805 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,8 @@ +{ + "terminal.integrated.profiles.linux": { + "nix develop": { + "path": "nix", + "args": ["develop"] + } + } +} \ No newline at end of file diff --git a/README.md b/README.md index 4efd9b5..5e59945 100644 --- a/README.md +++ b/README.md @@ -106,4 +106,13 @@ And when we run it through `dotnet`: stab ``` -Neat. +Neat. VS Code doesn't seamlessly work with nix, so to get the extensions working we'll need to restart it from an existing `nix develop` shell so `dotnet` is on the path. For the integrated terminal, we can creating a profile for `nix develop` and set it as the default profile. + +``` +"terminal.integrated.profiles.linux": { + "nix develop": { + "path": "nix", + "args": ["develop"] + } +} +```