We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e5e7fa commit 81b6b6bCopy full SHA for 81b6b6b
src/razor/src/completion/completionHandler.ts
@@ -156,7 +156,10 @@ export class CompletionHandler {
156
// TODO: Snippet support
157
158
try {
159
- if (delegatedCompletionItemResolveParams.originatingKind != LanguageKind.CSharp) {
+ if (
160
+ delegatedCompletionItemResolveParams.originatingKind != LanguageKind.CSharp ||
161
+ delegatedCompletionItemResolveParams.completionItem.data.TextDocument == null
162
+ ) {
163
return delegatedCompletionItemResolveParams.completionItem;
164
} else {
165
const newItem = await vscode.commands.executeCommand<CompletionItem>(
0 commit comments