Don't try and set a value if not supported
This commit is contained in:
parent
c2082cffae
commit
131cfcdd33
1 changed files with 3 additions and 4 deletions
|
|
@ -246,10 +246,6 @@ class VariablesView( object ):
|
||||||
def SetServerCapabilities( self, capabilities ):
|
def SetServerCapabilities( self, capabilities ):
|
||||||
self._server_capabilities = capabilities
|
self._server_capabilities = capabilities
|
||||||
|
|
||||||
if self._server_capabilities.get( 'supportsSetVariable' ):
|
|
||||||
# TODO add a winbar item ? add a mapping ?
|
|
||||||
pass
|
|
||||||
|
|
||||||
def ConnectionClosed( self ):
|
def ConnectionClosed( self ):
|
||||||
self.Clear()
|
self.Clear()
|
||||||
self._connection = None
|
self._connection = None
|
||||||
|
|
@ -519,6 +515,9 @@ class VariablesView( object ):
|
||||||
variable: Variable
|
variable: Variable
|
||||||
view: View
|
view: View
|
||||||
|
|
||||||
|
if not self._server_capabilities.get( 'supportsSetVariable' ):
|
||||||
|
return
|
||||||
|
|
||||||
variable, view = self._GetVariable( buf, line_num )
|
variable, view = self._GetVariable( buf, line_num )
|
||||||
if variable is None:
|
if variable is None:
|
||||||
return
|
return
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue