Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Window ¶
type Window struct {
// contains filtered or unexported fields
}
Window provides convenience methods for sending window-related notifications and requests to the client. Errors are logged using the provided logger but they are *not* returned, as there is typically nothing meaningful the server can do with them other than to log them, and handling them clutter the call sites.
func (*Window) ShowDocument ¶
ShowDocument attempts to open the given URI in the user's editor.
func (*Window) ShowMessage ¶
ShowMessage sends a message to be displayed in the user's editor.
func (*Window) ShowMessageRequest ¶
func (w *Window) ShowMessageRequest(ctx context.Context, typ types.Message, msg string, actions ...string) string
ShowMessageRequest sends a message to be displayed in the user's editor, along with a set of actions for them to choose from. The returned string is the title of the action selected.