Repository navigation
Expand file tree
/
Copy pathon_type_formatting.gen.go
More file actions
47 lines (37 loc) · 1.94 KB
/
Copy pathon_type_formatting.gen.go
File metadata and controls
47 lines (37 loc) · 1.94 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// Copyright 2026 The Go Language Server Authors
// SPDX-License-Identifier: BSD-3-Clause
// Code generated by internal/genlsp from metaModel.json; DO NOT EDIT.
package protocol
// DocumentOnTypeFormattingParams The parameters of a [DocumentOnTypeFormattingRequest].
type DocumentOnTypeFormattingParams struct {
// TextDocument The document to format.
TextDocument TextDocumentIdentifier `json:"textDocument"`
// Position The position around which the on type formatting should happen.
// This is not necessarily the exact position where the character denoted
// by the property `ch` got typed.
Position Position `json:"position"`
// Ch The character that has been typed that triggered the formatting
// on type request. That is not necessarily the last character that
// got inserted into the document since the client could auto insert
// characters as well (e.g. like automatic brace completion).
Ch string `json:"ch"`
// Options The formatting options.
Options FormattingOptions `json:"options"`
}
// DocumentOnTypeFormattingRegistrationOptions Registration options for a [DocumentOnTypeFormattingRequest].
type DocumentOnTypeFormattingRegistrationOptions struct {
TextDocumentRegistrationOptions
DocumentOnTypeFormattingOptions
}
// DocumentOnTypeFormattingOptions Provider options for a [DocumentOnTypeFormattingRequest].
type DocumentOnTypeFormattingOptions struct {
// FirstTriggerCharacter A character on which formatting should be triggered, like `{`.
FirstTriggerCharacter string `json:"firstTriggerCharacter"`
// MoreTriggerCharacter More trigger characters.
MoreTriggerCharacter []string `json:"moreTriggerCharacter,omitzero"`
}
// DocumentOnTypeFormattingClientCapabilities Client capabilities of a [DocumentOnTypeFormattingRequest].
type DocumentOnTypeFormattingClientCapabilities struct {
// DynamicRegistration Whether on type formatting supports dynamic registration.
DynamicRegistration *bool `json:"dynamicRegistration,omitzero"`
}