title = $title; $this->kind = $kind; $this->diagnostics = $diagnostics; $this->isPreferred = $isPreferred; $this->disabled = $disabled; $this->edit = $edit; $this->command = $command; $this->data = $data; } /** * This is needed because VSCode Does not like nulls * meaning if a null is sent then this will not compute * * @return mixed */ #[\ReturnTypeWillChange] public function jsonSerialize() { return array_filter(get_object_vars($this)); } }