mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 19:18:59 +01:00
fix kind icons
This commit is contained in:
@@ -669,9 +669,9 @@ export function createApiFactory(
|
||||
StatusBarAlignment: extHostTypes.StatusBarAlignment,
|
||||
SymbolInformation: extHostTypes.SymbolInformation,
|
||||
HierarchicalSymbolInformation: class extends extHostTypes.HierarchicalSymbolInformation {
|
||||
constructor(name, kind, detail, keyof, range) {
|
||||
constructor(name, detail, kind, keyof, range) {
|
||||
checkProposedApiEnabled(extension);
|
||||
super(name, kind, detail, keyof, range);
|
||||
super(name, detail, kind, keyof, range);
|
||||
}
|
||||
},
|
||||
SymbolKind: extHostTypes.SymbolKind,
|
||||
|
||||
@@ -884,29 +884,13 @@ export class HierarchicalSymbolInformation {
|
||||
range: Range;
|
||||
children: HierarchicalSymbolInformation[];
|
||||
|
||||
constructor(name: string, kind: SymbolKind, detail: string, location: Location, range: Range) {
|
||||
constructor(name: string, detail: string, kind: SymbolKind, location: Location, range: Range) {
|
||||
this.name = name;
|
||||
this.kind = kind;
|
||||
this.location = location;
|
||||
this.range = range;
|
||||
this.children = [];
|
||||
}
|
||||
|
||||
static toFlatSymbolInformation(info: HierarchicalSymbolInformation): SymbolInformation[] {
|
||||
let result: SymbolInformation[] = [];
|
||||
HierarchicalSymbolInformation._toFlatSymbolInformation(info, undefined, result);
|
||||
return result;
|
||||
}
|
||||
|
||||
private static _toFlatSymbolInformation(info: HierarchicalSymbolInformation, containerName: string, bucket: SymbolInformation[]): void {
|
||||
bucket.push(new SymbolInformation(info.name, info.kind, containerName, new Location(info.location.uri, info.range)));
|
||||
if (Array.isArray(info.children)) {
|
||||
for (const child of info.children) {
|
||||
HierarchicalSymbolInformation._toFlatSymbolInformation(child, info.name, bucket);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
export class CodeAction {
|
||||
|
||||
Reference in New Issue
Block a user