-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[IDE/CodeCompletion] Register the request evaluator. #26365
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@swift-ci test |
Build failed |
lib/IDE/REPLCodeCompletion.cpp
Outdated
@@ -194,6 +194,10 @@ doCodeCompletion(SourceFile &SF, StringRef EnteredCode, unsigned *BufferID, | |||
CodeCompletionCallbacksFactory *CompletionCallbacksFactory) { | |||
// Temporarily disable printing the diagnostics. | |||
ASTContext &Ctx = SF.getASTContext(); | |||
|
|||
// Register the request evaluator. | |||
registerIDERequestFunctions(Ctx.evaluator); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you only want to do this once when the ASTContext is being set up, not every time.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool, I'll change that, thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
Build failed |
Notice we usually call |
8751854
to
d23c123
Compare
d23c123
to
d441798
Compare
@swift-ci test |
Build failed |
Build failed |
Replace this paragraph with a description of your changes and rationale. Provide links to external references/discussions if appropriate.
Resolves SR-NNNN.