Fix tracebacks when the debug adapter dies very quickly
This commit is contained in:
parent
866e6fe9b1
commit
37fefafe35
4 changed files with 28 additions and 14 deletions
|
|
@ -879,7 +879,11 @@ class DebugSession( object ):
|
|||
status )
|
||||
self.Clear()
|
||||
|
||||
self._connection.Reset()
|
||||
if self._connection is not None:
|
||||
# Can be None if the server dies _before_ StartDebugSession vim function
|
||||
# returns
|
||||
self._connection.Reset()
|
||||
|
||||
self._stackTraceView.ConnectionClosed()
|
||||
self._variablesView.ConnectionClosed()
|
||||
self._outputView.ConnectionClosed()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue