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 = {
115
115
*/
116
116
'suggestions.keywordsInsertText' : 'none' | 'space'
117
117
/**
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)
120
119
* @recommended
121
- * @default disable
120
+ * @default short-format
122
121
*/
123
122
'suggestions.displayImportedInfo' : 'disable' | 'short-format' | 'long-format'
124
123
/**
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ export default (entries: ts.CompletionEntry[]) => {
9
9
for ( const entry of entries ) {
10
10
const { symbol } = entry
11
11
if ( ! symbol ) continue
12
- const [ node ] = symbol . getDeclarations ( ) ?? [ ]
12
+ const [ node ] = symbol . declarations ?? [ ]
13
13
if ( ! node ) continue
14
14
let importDeclaration : ts . ImportDeclaration | undefined
15
15
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