fix dto/revive issue

This commit is contained in:
Johannes Rieken
2018-05-15 09:59:17 +02:00
parent 99698327ed
commit be6d1d7de9
2 changed files with 5 additions and 0 deletions

View File

@@ -82,6 +82,9 @@ export class MainThreadLanguageFeatures implements MainThreadLanguageFeaturesSha
return <modes.SymbolInformation[]>data;
} else {
data.location = MainThreadLanguageFeatures._reviveLocationDto(data.location);
if (data.children) {
data.children.forEach(MainThreadLanguageFeatures._reviveSymbolInformationDto);
}
return <modes.SymbolInformation>data;
}
}

View File

@@ -664,6 +664,8 @@ export interface SymbolInformationDto extends IdObject {
containerName?: string;
kind: modes.SymbolKind;
location: LocationDto;
definingRange: IRange;
children?: SymbolInformationDto[];
}
export interface WorkspaceSymbolsDto extends IdObject {