Skip to content

Commit

Permalink
some TODOs removed
Browse files Browse the repository at this point in the history
  • Loading branch information
hcorg committed Aug 8, 2018
1 parent c00c9dc commit a5696dd
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 12 deletions.
4 changes: 2 additions & 2 deletions src/acneditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ AcnEditorFactory::AcnEditorFactory()
setIndenterCreator([]() { return new Indenter; });
setAutoCompleterCreator([]() { return new Completion::AutoCompleter; });

addHoverHandler(new TextEditor::BaseHoverHandler); // TODO maybe better tips?
addHoverHandler(new TextEditor::BaseHoverHandler);

setCodeFoldingSupported(true);
setMarksVisible(true);
Expand All @@ -77,5 +77,5 @@ AcnEditorFactory::AcnEditorFactory()

void AcnEditorWidget::findUsages()
{
// TODO acn
// TODO #166
}
6 changes: 3 additions & 3 deletions src/asn1sccserviceprovider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ void Asn1SccServiceProvider::start()
m_stayAliveTimer.start();
m_asn1sccService->start();

if (!m_asn1sccService->waitForStarted()) // TODO handle error?
if (!m_asn1sccService->waitForStarted())
Messages::messageProcessError(m_asn1sccService);
}

Expand All @@ -107,7 +107,7 @@ void Asn1SccServiceProvider::stop()
m_stayAliveTimer.stop();
m_asn1sccService->terminate();

if (!m_asn1sccService->waitForFinished()) // TODO handle error?
if (!m_asn1sccService->waitForFinished())
Messages::messageProcessError(m_asn1sccService);
}

Expand Down Expand Up @@ -170,7 +170,7 @@ QJsonDocument Asn1SccServiceProvider::buildAstRequestData(
input["AcnFiles"] = acnFilesArray;

/* TODO: since AST parser is not ready to work with fields introduced through ACN files,
* it is harmful to include them in daemon call*/
* it is harmful to include them in daemon call (#169)*/
input["AcnFiles"] = QJsonArray();

input["Options"] = buildAstGenerationOptions();
Expand Down
2 changes: 1 addition & 1 deletion src/asneditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ AsnEditorFactory::AsnEditorFactory()
setAutoCompleterCreator([]() { return new Completion::AutoCompleter; });
setIndenterCreator([]() { return new Indenter; });

addHoverHandler(new TextEditor::BaseHoverHandler); // TODO maybe better hover tips?
addHoverHandler(new TextEditor::BaseHoverHandler);

setCodeFoldingSupported(true);
setMarksVisible(true);
Expand Down
2 changes: 0 additions & 2 deletions src/completion/autocompleter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ bool AutoCompleter::isInComment(const QTextCursor &cursor) const

bool AutoCompleter::isInString(const QTextCursor &cursor) const
{
// TODO: multiline strings in ASN?
// TODO: escaping string?
QTextCursor moved = cursor;
moved.movePosition(QTextCursor::StartOfLine);
const int positionInLine = cursor.position() - moved.position();
Expand Down
2 changes: 0 additions & 2 deletions src/editor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,6 @@ void EditorWidget::contextMenuEvent(QContextMenuEvent *e)

void EditorWidget::finalizeInitialization()
{
// TODO ? setLanguageSettingsId(Constants::SettingsId);

auto document = qobject_cast<Document *>(textDocument());
connect(document,
&Document::extraSelectionsUpdated,
Expand Down
3 changes: 1 addition & 2 deletions src/projectcontenthandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,12 @@ void ProjectContentHandler::handleFileContentChanged(const Utils::FileName &path
{
QStringList projects = m_storage->getProjectsForFile(path);

// TODO: Is this conditions still needed?
if (projects.empty()) {
allProcessingFinished();
return;
}

for (const QString projectName : projects) {
for (const QString &projectName : projects) {
const auto paths = m_storage->getFilesPathsFromProject(projectName);
processFiles(projectName, paths);
}
Expand Down

0 comments on commit a5696dd

Please sign in to comment.