Skip to content

Commit e261b2c

Browse files
mpanarinccordoba12
authored andcommitted
Explicitly define our TestDocumentSync capabilities (#613)
1 parent ded6489 commit e261b2c

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

pyls/python_ls.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,13 @@ def capabilities(self):
145145
'signatureHelpProvider': {
146146
'triggerCharacters': ['(', ',', '=']
147147
},
148-
'textDocumentSync': lsp.TextDocumentSyncKind.INCREMENTAL,
148+
'textDocumentSync': {
149+
'change': lsp.TextDocumentSyncKind.INCREMENTAL,
150+
'save': {
151+
'includeText': True,
152+
},
153+
'openClose': True,
154+
},
149155
'experimental': merge(self._hook('pyls_experimental_capabilities'))
150156
}
151157
log.info('Server capabilities: %s', server_capabilities)

0 commit comments

Comments
 (0)