Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit f9ea9d2429b5170062461803faca0240d5cb141d 1 parent fe8b931
Jeanluc Chasseriau authored
Showing with 7 additions and 5 deletions.
  1. +3 −5 python/Events.py
  2. +4 −0 python/Responses.py
View
8 python/Events.py
@@ -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
4 python/Responses.py
@@ -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):
Please sign in to comment.
Something went wrong with that request. Please try again.