func (p *InitializeParams) Root() DocumentURI {
	if p.RootURI != "" {
		return p.RootURI
	}
	if strings.HasPrefix(p.RootPath, "file://") {
		return DocumentURI(p.RootPath)
	}
	return DocumentURI("file://" + p.RootPath)
}
Root returns the RootURI if set, or otherwise the RootPath with 'file://' prepended.
package lsp
import (
	"bytes"
	"encoding/json"
	"strings"
)
type None struct{}
type InitializeParams struct {
	ProcessID int `json:"processId,omitempty"`
	RootPath string `json:"rootPath,omitempty"`
	RootURI               DocumentURI        `json:"rootUri,omitempty"`
	InitializationOptions interface{}        `json:"initializationOptions,omitempty"`
	Capabilities          ClientCapabilities `json:"capabilities"`
}