Code Monkey home page Code Monkey logo

Comments (8)

DanTup avatar DanTup commented on May 27, 2024

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.

jacehensley-wf avatar jacehensley-wf commented on May 27, 2024

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.

DanTup avatar DanTup commented on May 27, 2024

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.

jacehensley-wf avatar jacehensley-wf commented on May 27, 2024

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.

devoncarew avatar devoncarew commented on May 27, 2024

pub get and pub upgrade are now exposed -

from dart-code.

DanTup avatar DanTup commented on May 27, 2024

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.

DanTup avatar DanTup commented on May 27, 2024

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.

DanTup avatar DanTup commented on May 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.