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 ):
|
||||
self._server_capabilities = capabilities
|
||||
|
||||
if self._server_capabilities.get( 'supportsSetVariable' ):
|
||||
# TODO add a winbar item ? add a mapping ?
|
||||
pass
|
||||
|
||||
def ConnectionClosed( self ):
|
||||
self.Clear()
|
||||
self._connection = None
|
||||
|
|
@ -519,6 +515,9 @@ class VariablesView( object ):
|
|||
variable: Variable
|
||||
view: View
|
||||
|
||||
if not self._server_capabilities.get( 'supportsSetVariable' ):
|
||||
return
|
||||
|
||||
variable, view = self._GetVariable( buf, line_num )
|
||||
if variable is None:
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue