add detail field to proposed api, #34968

This commit is contained in:
Johannes Rieken
2018-05-04 17:37:58 +02:00
parent 072dd6384c
commit 66b2786b2e
3 changed files with 6 additions and 4 deletions

View File

@@ -669,9 +669,9 @@ export function createApiFactory(
StatusBarAlignment: extHostTypes.StatusBarAlignment,
SymbolInformation: extHostTypes.SymbolInformation,
HierarchicalSymbolInformation: class extends extHostTypes.HierarchicalSymbolInformation {
constructor(name, kind, keyof, range) {
constructor(name, kind, detail, keyof, range) {
checkProposedApiEnabled(extension);
super(name, kind, keyof, range);
super(name, kind, detail, keyof, range);
}
},
SymbolKind: extHostTypes.SymbolKind,

View File

@@ -879,11 +879,12 @@ export class SymbolInformation {
export class HierarchicalSymbolInformation {
name: string;
location: Location;
detail: string;
kind: SymbolKind;
range: Range;
children: HierarchicalSymbolInformation[];
constructor(name: string, kind: SymbolKind, location: Location, range: Range) {
constructor(name: string, kind: SymbolKind, detail: string, location: Location, range: Range) {
this.name = name;
this.kind = kind;
this.location = location;