Skip to content

Commit

Permalink
Merge pull request #7405 from dibarbet/cherry_pick_completion
Browse files Browse the repository at this point in the history
cherry pick 7401 to prerelease
  • Loading branch information
dibarbet authored Jul 30, 2024
2 parents 5e5e7fa + 81b6b6b commit 6e186d4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/razor/src/completion/completionHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,10 @@ export class CompletionHandler {
// TODO: Snippet support

try {
if (delegatedCompletionItemResolveParams.originatingKind != LanguageKind.CSharp) {
if (
delegatedCompletionItemResolveParams.originatingKind != LanguageKind.CSharp ||
delegatedCompletionItemResolveParams.completionItem.data.TextDocument == null
) {
return delegatedCompletionItemResolveParams.completionItem;
} else {
const newItem = await vscode.commands.executeCommand<CompletionItem>(
Expand Down

0 comments on commit 6e186d4

Please sign in to comment.