Updates for latest Python debug adapter

They moved the location of the main application.

But also:

- ignore multiple responses for the same request
- ignore protocol violations for variablesReference (assume 0)
- ignore protocol violations for missing 'name' (assume basename of
path)
This commit is contained in:
Ben Jackson 2018-12-20 13:42:58 +00:00
commit 673de95283
8 changed files with 43 additions and 15 deletions

View file

@ -14,6 +14,7 @@
# limitations under the License.
import vim
import os
from vimspector import utils
@ -196,6 +197,9 @@ class StackTraceView( object ):
else:
source = { 'name': '<unknown>' }
if 'name' not in source:
source[ 'name' ] = os.path.basename( source[ 'path' ] )
line = utils.AppendToBuffer(
self._buf,
' {0}: {1}@{2}:{3}'.format( frame[ 'id' ],