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
Show full definition of model/interface when it's 'extends' or 'is' other model/interfaces. (#7530)
Show full definition of model and interface when it's 'extends' or 'is'
other model/interfaces for the pain point when people working with
project with complex model/interface relationship like in our specs
repo.
fixes#6991
---------
Co-authored-by: Timothee Guerin <timothee.guerin@outlook.com>
* Whether to include the final expended definition of the symbol
14
+
* For Model and Interface, it's body with expended members will be included. Otherwise, it will be the same as signature. (Support for other type may be added in the future as needed)
15
+
* This is useful for models and interfaces with complex 'extends' and 'is' relationship when user wants to know the final expended definition.
16
+
*/
17
+
includeExpandedDefinition?: boolean;
18
+
}
19
+
9
20
/**
10
21
* Get the detailed documentation for a symbol.
11
22
* @param program The program
@@ -14,9 +25,10 @@ import { getSymbolSignature } from "./type-signature.js";
14
25
exportfunctiongetSymbolDetails(
15
26
program: Program,
16
27
symbol: Sym,
17
-
options={
28
+
options: GetSymbolDetailsOptions={
18
29
includeSignature: true,
19
30
includeParameterTags: true,
31
+
includeExpandedDefinition: false,
20
32
},
21
33
): string{
22
34
constlines=[];
@@ -43,6 +55,15 @@ export function getSymbolDetails(
0 commit comments