You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Symbols class implements the CocList symbols command. It queries the server for all symbols that match a query string and gets an array back of SymbolInformations. loadItems then transforms the SymbolInformation to a displayable format. This code is used:
for (let s of symbols) {
let kind = getSymbolKind(s.kind)
let file = URI.parse(s.location.uri).fsPath
if (isParentFolder(workspace.cwd, file)) {
file = path.relative(workspace.cwd, file)
}
items.push({
label: `${s.name} [${kind}]\t${file}`,
filterText: `${s.name}`,
location: s.location,
data: { original: s, kind: s.kind, file, score: score(input, s.name) }
})
}
I think it would be a nice feature to offer
let kind = getSymbolKind(s.kind)
if (context.options.matchkind !== kind) {
continue;
}
so that the user could do CocList symbols --kind=class etc.
The text was updated successfully, but these errors were encountered:
I understand that :CocList -I symbols -kind [method, function] is not possible -- is there a way to somehow join outputs of :CocList -I symbols -kind method and :CocList -I symbols -kind function and search both at the same time?
The
Symbols
class implements theCocList symbols
command. It queries the server for all symbols that match a query string and gets an array back ofSymbolInformation
s.loadItems
then transforms theSymbolInformation
to a displayable format. This code is used:I think it would be a nice feature to offer
so that the user could do
CocList symbols --kind=class
etc.The text was updated successfully, but these errors were encountered: