From 36e7fa9a765b6e23ee82de0864cb0be276518c2a Mon Sep 17 00:00:00 2001 From: Jacob Dufault Date: Fri, 29 Dec 2017 09:39:06 -0600 Subject: [PATCH] More work on e2e tests --- .gitignore | 2 +- src/messages/text_document_completion.cc | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index b1e15bf9..db0aca76 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ +**/*.pyc *.cquery -*.pyc *.sln *.swp *.vcxproj diff --git a/src/messages/text_document_completion.cc b/src/messages/text_document_completion.cc index aa79e00d..8ad2cec7 100644 --- a/src/messages/text_document_completion.cc +++ b/src/messages/text_document_completion.cc @@ -139,6 +139,7 @@ struct TextDocumentCompletionHandler : MessageHandler { std::string path = request->params.textDocument.uri.GetPath(); WorkingFile* file = working_files->GetFileByFilename(path); + assert(file); // It shouldn't be possible, but sometimes vscode will send queries out // of order, ie, we get completion request before buffer content update.