These are chat archives for ensime/ensime-atom

23rd
Jun 2016
Viktor Hedefalk
@hedefalk
Jun 23 2016 09:02

Atom user question:

Should these notifications be toasts instead -popups that dissappear or would those be annoying?

if(typehint == 'AnalyzerReadyEvent')
  statusbarView.setText('Analyzer ready!')

else if(typehint == 'FullTypeCheckCompleteEvent')
  statusbarView.setText('Full typecheck finished!')

else if(typehint == 'IndexerReadyEvent')
  statusbarView.setText('Indexer ready!')

else if(typehint == 'CompilerRestartedEvent')
  statusbarView.setText('Compiler restarted!')

Currently they're in the lower bar there and never removed, only overwritten, which is initself annoying…

Richard Dallaway
@d6y
Jun 23 2016 13:18
Perosnally, I don’t mind toasts for these.
…it’s nice to see these Analyzer ready! (Not sure I’ve ever noticed Compiler restarted. Maybe I’m not trying hard enough)
Viktor Hedefalk
@hedefalk
Jun 23 2016 13:19
Hm, maybe that one isn't even there anymore :)
I'm just a bit irritated that they stick. "Full typecheck finished!" typically just stays there forever. Rather than building timouts for it myself, I figured I could just move it to toasts (that's a general atom api). The one we have now is custom DOM manipulation and one of few such left in ensime-atom.
I mean, starting out I was planning on making this full ensime ui component with tabs for errors and warnings and logs and everything like some IDE component thingy, but as stuff moved along with more standardized ui components like linter, autocomplete-plus, intentions and the like, I think we just want to limit custom ui as much as possible (the vscode way) and use the ones that are standardized by the editor's community…
Dick Wall
@dickwall
Jun 23 2016 22:20
anyone still around?
thought I would round out the day with a bit of low hanging fruit - that reformat request
Ghost
@ghost~540393fe163965c9bc2018ce
Jun 23 2016 22:21
I am, but not for long
Dick Wall
@dickwall
Jun 23 2016 22:21
however I don't see it in the refactoring list
so it must be somewhere else (the ensime call)
Ghost
@ghost~540393fe163965c9bc2018ce
Jun 23 2016 22:21
are you using Atom now? :-)
Dick Wall
@dickwall
Jun 23 2016 22:21
a pointer?
nah - but they have it working
so I thought I would ask here
Ghost
@ghost~540393fe163965c9bc2018ce
Jun 23 2016 22:21
is the emacs code not obvious? :-P
Dick Wall
@dickwall
Jun 23 2016 22:21
no point in asking on sublime, since we don't know where it is ;-)
Ghost
@ghost~540393fe163965c9bc2018ce
Jun 23 2016 22:21
do you know the server call to use?
Dick Wall
@dickwall
Jun 23 2016 22:22
right - just need the server call for reformatting
I can take it from there
Dick Wall
@dickwall
Jun 23 2016 22:22
however a text search for reformat didn't show it up
tanks
difference between format and formatone?
other than what the comments say, which doesn't tell me much (yes, I did read them first)
Ghost
@ghost~540393fe163965c9bc2018ce
Jun 23 2016 22:23
list of files vs one file (which could be in-memory)
Dick Wall
@dickwall
Jun 23 2016 22:23
ah, OK
cool - I'll do the one for now then
just reformat the one file open in the editor window
Ghost
@ghost~540393fe163965c9bc2018ce
Jun 23 2016 22:24
it should be a list of sourceinfos really, the api is a big mess of legacy
I'd love to just rewrite the emacs code so we can rip out everything that isn't used anymore