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.