experiment with internal hierarchical model, #34968

This commit is contained in:
Johannes Rieken
2018-05-04 18:15:24 +02:00
parent 66b2786b2e
commit 6b4f88991b
6 changed files with 125 additions and 73 deletions

View File

@@ -278,7 +278,7 @@ export class ExtHostApiCommands {
const result: types.SymbolInformation[] = [];
if (Array.isArray(value)) {
for (let tuple of value) {
result.push(...tuple[1].map(typeConverters.toSymbolInformation));
result.push(...tuple[1].map(typeConverters.SymbolInformation.to));
}
}
return result;
@@ -418,7 +418,7 @@ export class ExtHostApiCommands {
};
return this._commands.executeCommand<modes.IOutline>('_executeDocumentSymbolProvider', args).then(value => {
if (value && Array.isArray(value.entries)) {
return value.entries.map(typeConverters.toSymbolInformation);
return value.entries.map(typeConverters.SymbolInformation.to);
}
return undefined;
});