File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
typescript/src/completions Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -115,10 +115,9 @@ export type Configuration = {
115115 */
116116 'suggestions.keywordsInsertText' : 'none' | 'space'
117117 /**
118- * Will be `format-short` by default in future as super useful!
119- * Requires TypeScript 5.0+
118+ * Wether to show module name from which completion comes (inserted at start of completion detail)
120119 * @recommended
121- * @default disable
120+ * @default short-format
122121 */
123122 'suggestions.displayImportedInfo' : 'disable' | 'short-format' | 'long-format'
124123 /**
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ export default (entries: ts.CompletionEntry[]) => {
99 for ( const entry of entries ) {
1010 const { symbol } = entry
1111 if ( ! symbol ) continue
12- const [ node ] = symbol . getDeclarations ( ) ?? [ ]
12+ const [ node ] = symbol . declarations ?? [ ]
1313 if ( ! node ) continue
1414 let importDeclaration : ts . ImportDeclaration | undefined
1515 if ( ts . isImportSpecifier ( node ) && ts . isNamedImports ( node . parent ) && ts . isImportDeclaration ( node . parent . parent . parent ) ) {
You can’t perform that action at this time.
0 commit comments