Open ussuri opened 10 years ago
I'll take this one, I was working on it already when I was told not to implement #450
Great, thanks.
To be clear, this issue is (I believe) to add support for opening files directly into Spark from ChromeOS, and for opening the files on the command-line for other OSes.
Essentially, listening for additional data on an onLaunched event.
Oh, sorry, that was a misunderstanding on my part -- I'm an idiot :). Do you want me to get rid of what I've already done and implement this or extend it to implement this?
If all the file handlers have to be known in advance then at least I can get rid of the registry singleton, which only existed to handle the possibility of having the user load unknown files into the app and then configure them as if they were known to the application at compile time.
Also -- how would I go about testing such functionality? I obviously don't have access to a ChromeOS environment, and I don't know how to parse command line arguments when launching a chrome app in any environment I do have access to (linux).
I think the work to implement this would largely be orthogonal to your pull request :( so a new pull request makes sense to me. I think the work would look something like:
I'm not sure about testing. @ussuri @dinhviethoa ?
We are no longer positioning CDE as a single file editor, rather as a project-oriented IDE, so opening a single file fits poorly into this vision. If the status quo ever changes, we'll revisit this idea.
We should open at least for .dart, and possibly for .js, .json, .html, *.css, etc. This is especially important on and applicable to ChromeOS.