@@ -15,7 +15,7 @@ export function definitionInfoToSymbolDescriptor(info: ts.DefinitionInfo, rootPa
1515 name : info . name || '' ,
1616 containerKind : info . containerKind || '' ,
1717 containerName : info . containerName || '' ,
18- filePath : info . fileName
18+ filePath : info . fileName ,
1919 }
2020 // If the symbol is an external module representing a file, set name to the file path
2121 if ( info . kind === ts . ScriptElementKind . moduleElement && info . name && / [ \\ \/ ] / . test ( info . name ) ) {
@@ -59,9 +59,9 @@ export function navigateToItemToSymbolInformation(item: ts.NavigateToItem, progr
5959 uri : locationUri ( sourceFile . fileName ) ,
6060 range : {
6161 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+ } ,
6565 }
6666 if ( item . containerName ) {
6767 symbolInformation . containerName = item . containerName . replace ( rootPath , '' )
@@ -125,9 +125,9 @@ export function navigationTreeToSymbolInformation(tree: ts.NavigationTree, paren
125125 uri : locationUri ( sourceFile . fileName ) ,
126126 range : {
127127 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+ } ,
131131 }
132132 if ( parent && navigationTreeIsSymbol ( parent ) && parent . text ) {
133133 symbolInformation . containerName = parent . text . replace ( rootPath , '' )
@@ -144,7 +144,7 @@ export function navigationTreeToSymbolDescriptor(tree: ts.NavigationTree, parent
144144 name : tree . text ? tree . text . replace ( rootPath , '' ) : '' ,
145145 containerKind : '' ,
146146 containerName : '' ,
147- filePath
147+ filePath,
148148 }
149149 if ( parent && navigationTreeIsSymbol ( parent ) ) {
150150 symbolDescriptor . containerKind = parent . kind
0 commit comments