Skip to content

Commit

Permalink
TextDocumentSyncKind.Full
Browse files Browse the repository at this point in the history
  • Loading branch information
tangzx committed Oct 9, 2019
1 parent 89413ad commit 370ef39
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ class LuaLanguageServer : LanguageServer, LanguageClientAware {
capabilities.workspace.workspaceFolders.supported = true
capabilities.workspace.workspaceFolders.changeNotifications = Either.forLeft(WORKSPACE_FOLDERS_CAPABILITY_ID)

capabilities.textDocumentSync = Either.forLeft(TextDocumentSyncKind.Incremental)
capabilities.textDocumentSync = Either.forLeft(TextDocumentSyncKind.Full)

res.capabilities = capabilities
return CompletableFuture.completedFuture(res)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class LuaFile(override val uri: FileURI) : VirtualFileBase(uri), ILuaFile, Virtu
var offset = 0
params.contentChanges.forEach {
when {
// for sublime lsp
// for TextDocumentSyncKind.Full
it.range == null -> sb = it.text
// incremental updating
it.range.start.line >= _lines.size -> {
Expand Down

0 comments on commit 370ef39

Please sign in to comment.