Skip to content

Commit

Permalink
Set didOpen initial version.
Browse files Browse the repository at this point in the history
Some language server might expect an initial version number. Close #213.
  • Loading branch information
Junfeng Li committed Dec 13, 2017
1 parent ebf5a18 commit e04725a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/languageclient.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1284,7 +1284,7 @@ impl ILanguageClient for Arc<Mutex<State>> {
let text_document = TextDocumentItem {
uri: filename.to_url()?,
language_id: Some(languageId.clone()),
version: None,
version: Some(0),
text: text.join("\n"),
};

Expand Down

0 comments on commit e04725a

Please sign in to comment.