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 @@ +