From 893ce411d2d17340db03e910ceb13b50964172df Mon Sep 17 00:00:00 2001 From: Felix Becker Date: Thu, 2 Feb 2017 01:51:55 +0100 Subject: [PATCH] Add InsertTextFormat --- src/Protocol/CompletionItem.php | 8 ++++++++ src/Protocol/InsertTextFormat.php | 28 ++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 src/Protocol/InsertTextFormat.php diff --git a/src/Protocol/CompletionItem.php b/src/Protocol/CompletionItem.php index e883582..09cef19 100644 --- a/src/Protocol/CompletionItem.php +++ b/src/Protocol/CompletionItem.php @@ -63,6 +63,14 @@ class CompletionItem */ public $insertText; + /** + * The format of the insert text. The format applies to both the `insertText` property + * and the `newText` property of a provided `textEdit`. + * + * @var InsertTextFormat|null + */ + public $insertTextFormat; + /** * A range of text that should be replaced by this completion item. * diff --git a/src/Protocol/InsertTextFormat.php b/src/Protocol/InsertTextFormat.php new file mode 100644 index 0000000..3a05155 --- /dev/null +++ b/src/Protocol/InsertTextFormat.php @@ -0,0 +1,28 @@ +