Skip to content

Commit e0208d8

Browse files
Add IDX (#2253)
PTAL @rodydavis ## Pre-launch Checklist - [x] I read the [Effective Dart: Style] _recently_, and have followed its advice. - [x] I signed the [CLA]. - [x] I updated/added relevant documentation (doc comments with `///`). - [x] All existing and new tests are passing. If you need help, consider asking for advice on the #hackers-devrel channel on [Discord]. <!-- Links --> [Effective Dart: Style]: https://dart.dev/guides/language/effective-dart/style [CLA]: https://cla.developers.google.com/ [Discord]: https://github.com/flutter/flutter/blob/master/docs/contributing/Chat.md --------- Co-authored-by: Rody Davis <[email protected]>
1 parent 85575f6 commit e0208d8

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.idx/dev.nix

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# To learn more about how to use Nix to configure your environment
2+
# see: https://developers.google.com/idx/guides/customize-idx-env
3+
{ pkgs, ... }: {
4+
# Which nixpkgs channel to use.
5+
channel = "stable-24.05"; # or "unstable"
6+
7+
# Use https://search.nixos.org/packages to find packages
8+
packages = [
9+
pkgs.jdk17
10+
pkgs.unzip
11+
];
12+
13+
# Sets environment variables in the workspace
14+
env = {};
15+
idx = {
16+
# Search for the extensions you want on https://open-vsx.org/ and use "publisher.id"
17+
extensions = [
18+
"Dart-Code.dart-code"
19+
"Dart-Code.flutter"
20+
];
21+
workspace = {
22+
# Runs when a workspace is first created
23+
onCreate = {
24+
updateStable = "flutter channel stable && flutter upgrade && for dir in `find . -name pubspec.yaml -exec dirname {} \; | sort`; do pushd $dir ; flutter pub get; popd; done";
25+
};
26+
};
27+
};
28+
}

0 commit comments

Comments
 (0)