Comments (8)
Presumably you need to pass arguments/filenames to some of these - how does Atom handle that? Does it give you a file selector or something?
Do you think it'd make sense to automatically run pub get
on a change/save to pubspec.yaml
?
from dart-code.
Do you mean pub get
? I think it would be nice. IIRC the Atom plugin shows an alert when pubspec.yaml
changes asking if you want to run pub get.
I'm not really sure how the atom plugin handles these commands, I would assume most of them just to need to be told which directory to run on, the current directory. But I believe you can only run them when you are in the editor view.
from dart-code.
Whoops, I did mean pub get
(commented edited for clarity).
I'm not all that familiar with Dart but I figured if you have two files in ./bin
and wanted to run, you'd need to say which one?
I should review the APIs for tasks and commands in Code and see what the options are.
from dart-code.
Yeah, I think with pub run
, pub global run
, and pub global activate
I think you do need to pass in the file you want.
from dart-code.
pub get
and pub upgrade
are now exposed -
from dart-code.
I think pub run
might sit well with (or after) #56.
The other two seem to me more like things you're want to just run in a shell (Code has an integrated shell, though I've not use it much yet) rather than relate to the project you're editing - is that correct? If not, could you add some more info on the use cases?
from dart-code.
I don't think adding the remaining commands here would be all that useful - Code has a builtin terminal where you can run whatever you want and I think that would be a better user experience than us having to prompt the user with some file picker (and figure out how to filter it).
I also think in most cases for running your app you'd be better doing it via the launch.json
stuff and hitting F5
to run?
Let me know if anyone thinks there's still value in what's left here and how they think it should work; otherwise I may close this.
from dart-code.
See above comment - closing this due to no input. I don't think there's value in the remaining commands (get/upgrade are already done).
from dart-code.
Related Issues (20)
- chose HOT 1
- chose HOT 1
- Migrate existing usages of `embed=true` query parameter for DevTools screens to `embedMode=one` HOT 4
- Remove use of page= query param for DevTools embeddings HOT 1
- "The Flutter Daemon has terminated" when connecting a physical android device in USB tethering mode HOT 8
- Use the new "Fix All in Workspace" commands in the "dart fix" prompt
- Dart analysis server at 100% cpu indefinitely when opening the Dart SDK repo (or flutter engine, which includes a nested copy) HOT 8
- `ctrl + alt` shows inferred types (inlay hints) with no option to disable HOT 2
- Building Flutter iOS app using VS Code breaks the build HOT 2
- Allow seeing the "Return value" of an operation in the debug panel HOT 3
- Remove the need for experimentalMacroSupport and gate on SDK version
- Make `Iterator<E>.current` return the nullable item `E?` HOT 1
- No code folding for`for` statements in VSCode HOT 1
- Add "See in pub.dev" in Codelens above each package in pubspec.yaml HOT 1
- Support autocompletion / intellisense in the Debug Console input (Debug Console REPL) like in TypeScript HOT 1
- Augmented code from macros not showing up in VSCode HOT 3
- Could not register service on Linux HOT 4
- Could not go to Augmentation. HOT 6
- Server diagnostics can reappear for deleted/moved files if analyzer plugins generate new diagnostics (even if empty) HOT 7
- Macro not detected when importing from a package HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dart-code.