Skip to content

Commit

Permalink
fix: slice error
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon-He95 committed Feb 5, 2024
1 parent b9eb39c commit bf81295
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ui/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ export function componentsReducer(map: any[][], isSeperatorByHyphen = true, pref
documentation.appendMarkdown(`\n<a href="command:intellisense.copyDemo?${params}">${copyIcon}</a>\n`)
}

return createCompletionItem({ content: _content, snippet, documentation, type: vscode.CompletionItemKind.TypeParameter, sortText: 'a', params: [{ ...content, name: content.name.slice(prefix.length) }, lib, true, prefix], demo })
return createCompletionItem({ content: _content, snippet, documentation, type: vscode.CompletionItemKind.TypeParameter, sortText: 'a', params: [{ ...content, name: content.name?.slice(prefix.length) }, lib, true, prefix], demo })
}),
},
]
Expand Down

0 comments on commit bf81295

Please # to comment.