(schema string)
| 1226 | } |
| 1227 | |
| 1228 | func (c *Completer) ensureMetadata(schema string) bool { |
| 1229 | if schema == "" || c.getMetadata == nil { |
| 1230 | return false |
| 1231 | } |
| 1232 | if _, exists := c.metadataCache[schema]; exists { |
| 1233 | return true |
| 1234 | } |
| 1235 | _, metadata, err := c.getMetadata(c.ctx, c.instanceID, schema) |
| 1236 | if err != nil || metadata == nil { |
| 1237 | return false |
| 1238 | } |
| 1239 | c.metadataCache[schema] = metadata |
| 1240 | return true |
| 1241 | } |
| 1242 | |
| 1243 | func (c *Completer) filterCandidatesByPrefix(candidates []base.Candidate) []base.Candidate { |
| 1244 | if c.completionPrefix == "" { |
no outgoing calls
no test coverage detected