File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
tools/SourceKit/tools/sourcekitd/lib/API Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -720,6 +720,9 @@ handleSemanticRequest(RequestDict Req,
720
720
721
721
llvm::SmallString<64 > ErrBuf;
722
722
723
+ if (isSemanticEditorDisabled ())
724
+ return Rec (createErrorRequestFailed (" semantic editor is disabled" ));
725
+
723
726
if (ReqUID == RequestCodeComplete) {
724
727
std::unique_ptr<llvm::MemoryBuffer>
725
728
InputBuf = getInputBufForRequest (SourceFile, SourceText, ErrBuf);
@@ -767,9 +770,6 @@ handleSemanticRequest(RequestDict Req,
767
770
return Rec (indexSource (*SourceFile, Args, Hash));
768
771
}
769
772
770
- if (isSemanticEditorDisabled ())
771
- return Rec (createErrorRequestFailed (" semantic editor is disabled" ));
772
-
773
773
if (ReqUID == RequestCursorInfo) {
774
774
LangSupport &Lang = getGlobalContext ().getSwiftLangSupport ();
775
775
You can’t perform that action at this time.
0 commit comments