MCPcopy Create free account
hub / github.com/cogentcore/core / ConfigKnown

Method ConfigKnown

texteditor/buffer.go:269–280  ·  view source on GitHub ↗

ConfigKnown configures options based on the supported language info in parse. Returns true if supported.

()

Source from the content-addressed store, hash-verified

267// ConfigKnown configures options based on the supported language info in parse.
268// Returns true if supported.
269func (tb *Buffer) ConfigKnown() bool {
270 if tb.Info.Known != fileinfo.Unknown {
271 if tb.spell == nil {
272 tb.setSpell()
273 }
274 if tb.Complete == nil {
275 tb.setCompleter(&tb.ParseState, completeParse, completeEditParse, lookupParse)
276 }
277 return tb.Options.ConfigKnown(tb.Info.Known)
278 }
279 return false
280}
281
282func (tb *Buffer) SetFileExt(ext string) *Buffer {
283 tb.Lines.SetFileExt(ext)

Callers 1

StatMethod · 0.95

Calls 2

setSpellMethod · 0.95
setCompleterMethod · 0.95

Tested by

no test coverage detected