forked from OSchip/llvm-project
parent
d85264bf53
commit
445bdd171f
|
@ -93,7 +93,7 @@ public:
|
|||
/// extra lookups in the Context.
|
||||
bool isCancelled() const { return CT; }
|
||||
|
||||
/// Creates a task handle that can be used by an asyn task to check for
|
||||
/// Creates a task handle that can be used by an async task to check for
|
||||
/// information that can change during it's runtime, like Cancellation.
|
||||
static std::shared_ptr<Task> createHandle() {
|
||||
return std::shared_ptr<Task>(new Task());
|
||||
|
|
|
@ -1629,7 +1629,7 @@ CompletionItem CodeCompletion::render(const CodeCompleteOptions &Opts) const {
|
|||
LSP.sortText = sortText(Score.Total, Name);
|
||||
LSP.filterText = Name;
|
||||
LSP.textEdit = {CompletionTokenRange, RequiredQualifier + Name};
|
||||
// Merge continious additionalTextEdits into main edit. The main motivation
|
||||
// Merge continuous additionalTextEdits into main edit. The main motivation
|
||||
// behind this is to help LSP clients, it seems most of them are confused when
|
||||
// they are provided with additionalTextEdits that are consecutive to main
|
||||
// edit.
|
||||
|
|
|
@ -226,7 +226,7 @@ public:
|
|||
// We should be only be looking at "local" decls in the main file.
|
||||
if (!SourceMgr.isWrittenInMainFile(NameLoc)) {
|
||||
// Even thought we are visiting only local (non-preamble) decls,
|
||||
// we can get here when in the presense of "extern" decls.
|
||||
// we can get here when in the presence of "extern" decls.
|
||||
return true;
|
||||
}
|
||||
const NamedDecl *ND = llvm::dyn_cast<NamedDecl>(ASTNode.OrigD);
|
||||
|
|
|
@ -28,7 +28,7 @@ namespace {
|
|||
static Key<json::Value> RequestID;
|
||||
static Key<JSONOutput *> RequestOut;
|
||||
|
||||
// When tracing, we trace a request and attach the repsonse in reply().
|
||||
// When tracing, we trace a request and attach the response in reply().
|
||||
// Because the Span isn't available, we find the current request using Context.
|
||||
class RequestSpan {
|
||||
RequestSpan(llvm::json::Object *Args) : Args(Args) {}
|
||||
|
|
Loading…
Reference in New Issue