Add syntactic indexing experimental feature (disabled) (#61465)

This commit is contained in:
Anton Sviridov 2024-03-29 06:22:43 +00:00 committed by GitHub
parent 29f85c448d
commit ecc062fad2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 10 additions and 2 deletions

View File

@ -2576,8 +2576,10 @@ type SettingsExperimentalFeatures struct {
// ShowMultilineSearchConsole description: Enables the multiline search console at search/console
ShowMultilineSearchConsole *bool `json:"showMultilineSearchConsole,omitempty"`
// SymbolKindTags description: Show the initial letter of the symbol kind instead of icons.
SymbolKindTags bool `json:"symbolKindTags,omitempty"`
Additional map[string]any `json:"-"` // additionalProperties not explicitly defined in the schema
SymbolKindTags bool `json:"symbolKindTags,omitempty"`
// SyntacticIndexing description: Whether syntactic indexing is enabled
SyntacticIndexing bool `json:"syntacticIndexing,omitempty"`
Additional map[string]any `json:"-"` // additionalProperties not explicitly defined in the schema
}
func (v SettingsExperimentalFeatures) MarshalJSON() ([]byte, error) {
@ -2638,6 +2640,7 @@ func (v *SettingsExperimentalFeatures) UnmarshalJSON(data []byte) error {
delete(m, "showCodeMonitoringLogs")
delete(m, "showMultilineSearchConsole")
delete(m, "symbolKindTags")
delete(m, "syntacticIndexing")
if len(m) > 0 {
v.Additional = make(map[string]any, len(m))
}

View File

@ -227,6 +227,11 @@
"description": "Whether to enable the 'keyword search' language improvement",
"type": "boolean",
"default": true
},
"syntacticIndexing": {
"description": "Whether syntactic indexing is enabled",
"type": "boolean",
"default": false
}
},
"group": "Experimental"