@@ -15,7 +15,7 @@ export function definitionInfoToSymbolDescriptor(info: ts.DefinitionInfo, rootPa
15
15
name : info . name || '' ,
16
16
containerKind : info . containerKind || '' ,
17
17
containerName : info . containerName || '' ,
18
- filePath : info . fileName
18
+ filePath : info . fileName ,
19
19
}
20
20
// If the symbol is an external module representing a file, set name to the file path
21
21
if ( info . kind === ts . ScriptElementKind . moduleElement && info . name && / [ \\ \/ ] / . test ( info . name ) ) {
@@ -59,9 +59,9 @@ export function navigateToItemToSymbolInformation(item: ts.NavigateToItem, progr
59
59
uri : locationUri ( sourceFile . fileName ) ,
60
60
range : {
61
61
start : ts . getLineAndCharacterOfPosition ( sourceFile , item . textSpan . start ) ,
62
- end : ts . getLineAndCharacterOfPosition ( sourceFile , item . textSpan . start + item . textSpan . length )
63
- }
64
- }
62
+ end : ts . getLineAndCharacterOfPosition ( sourceFile , item . textSpan . start + item . textSpan . length ) ,
63
+ } ,
64
+ } ,
65
65
}
66
66
if ( item . containerName ) {
67
67
symbolInformation . containerName = item . containerName . replace ( rootPath , '' )
@@ -125,9 +125,9 @@ export function navigationTreeToSymbolInformation(tree: ts.NavigationTree, paren
125
125
uri : locationUri ( sourceFile . fileName ) ,
126
126
range : {
127
127
start : ts . getLineAndCharacterOfPosition ( sourceFile , span . start ) ,
128
- end : ts . getLineAndCharacterOfPosition ( sourceFile , span . start + span . length )
129
- }
130
- }
128
+ end : ts . getLineAndCharacterOfPosition ( sourceFile , span . start + span . length ) ,
129
+ } ,
130
+ } ,
131
131
}
132
132
if ( parent && navigationTreeIsSymbol ( parent ) && parent . text ) {
133
133
symbolInformation . containerName = parent . text . replace ( rootPath , '' )
@@ -144,7 +144,7 @@ export function navigationTreeToSymbolDescriptor(tree: ts.NavigationTree, parent
144
144
name : tree . text ? tree . text . replace ( rootPath , '' ) : '' ,
145
145
containerKind : '' ,
146
146
containerName : '' ,
147
- filePath
147
+ filePath,
148
148
}
149
149
if ( parent && navigationTreeIsSymbol ( parent ) ) {
150
150
symbolDescriptor . containerKind = parent . kind
0 commit comments