Permalink
Browse files

Open the quickfix list even with no resulst, and avoid closing it

This way, we can see that there is nothing without the need to open the
quickfix list by hand.

This is clearly a matter of choice, I guess that time will tell us what
is the most confortable way.
  • Loading branch information...
1 parent fe8b931 commit f9ea9d2429b5170062461803faca0240d5cb141d Jeanluc Chasseriau committed Apr 27, 2012
Showing with 7 additions and 5 deletions.
  1. +3 −5 python/Events.py
  2. +4 −0 python/Responses.py
View
@@ -47,10 +47,9 @@ def indexerReady():
def fullTypecheckFinished():
echo("Full typecheck finished")
- if len(State().scalaNotes) > 0:
- qflist = notesToQuickFixList(State().scalaNotes)
- QuickFixOutput().set(qflist)
- QuickFixOutput().open()
+ qflist = notesToQuickFixList(State().scalaNotes)
+ QuickFixOutput().set(qflist)
+ QuickFixOutput().open()
@SwankEventScalaNotes
def scalaNotes(notes):
@@ -77,7 +76,6 @@ def clearAllScalaNotes():
log.debug("clearAllScalaNotes: Clear all Scala notes")
QuickFixOutput().clear()
- QuickFixOutput().close()
State().scalaNotes = []
View
@@ -79,6 +79,8 @@ def response(self, r):
if r: echo("Typechecking in progress...")
else: echoe("Typecheck file error")
+ State().scalaNotes = []
+
@SimpleSingleton
class TypecheckAllHandler(SwankCallHandler):
@@ -89,6 +91,8 @@ def response(self, r):
if r: echo("Typechecking in progress...")
else: echoe("Typecheck all error")
+ State().scalaNotes = []
+
@SimpleSingleton
class SymbolAtPointHandler(SwankCallHandler):

0 comments on commit f9ea9d2

Please sign in to comment.