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 8f38105 commit 108b9c3Copy full SHA for 108b9c3
lib/IDE/CompletionInstance.cpp
@@ -234,6 +234,9 @@ bool CompletionInstance::performCachedOperaitonIfPossible(
234
235
auto newBufferID =
236
SM.addMemBufferCopy(sourceText, completionBuffer->getBufferIdentifier());
237
+ SM.openVirtualFile(SM.getLocForBufferStart(newBufferID),
238
+ tmpSM.getDisplayNameForLoc(startLoc),
239
+ tmpSM.getLineAndColumn(startLoc).first - 1);
240
SM.setCodeCompletionPoint(newBufferID, newOffset);
241
242
// Construct dummy scopes. We don't need to restore the original scope
0 commit comments