Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions liteidex/src/plugins/golangedit/golangedit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,7 @@ void GolangEdit::updateLink(const QTextCursor &cursor, const QPoint &pos, bool n
}
args << "-b";
args << "-pos";
args << QString("\"%1:%2\"").arg(info.fileName()).arg(offset);
args << QString("%1:%2").arg(info.fileName()).arg(offset);
args << "-stdin";
args << "-info";
args << "-def";
Expand Down Expand Up @@ -718,7 +718,7 @@ void GolangEdit::editorJumpToDecl()
args << tags;
}
args << "-pos";
args << QString("\"%1:%2\"").arg(info.fileName()).arg(offset);
args << QString("%1:%2").arg(info.fileName()).arg(offset);
args << "-stdin";
args << "-def";
args << ".";
Expand Down Expand Up @@ -814,7 +814,7 @@ void GolangEdit::editorFindInfo()
args << tags;
}
args << "-pos";
args << QString("\"%1:%2\"").arg(info.fileName()).arg(offset);
args << QString("%1:%2").arg(info.fileName()).arg(offset);
args << "-stdin";
args << "-info";
args << "-def";
Expand Down
3 changes: 1 addition & 2 deletions liteidex/src/plugins/golangedit/golangfilesearch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ void GolangFileSearch::findUsages(LiteApi::ITextEditor *editor, QTextCursor curs
args << tags;
}
args << "-pos";
args << QString("\"%1:%2\"").arg(info.fileName()).arg(offset);
args << QString("%1:%2").arg(info.fileName()).arg(offset);
args << "-info";
args << "-use";
QString text = selectionUnderCursor(cursor,moveLeft);
Expand All @@ -152,7 +152,6 @@ void GolangFileSearch::findUsages(LiteApi::ITextEditor *editor, QTextCursor curs
args << "-skip_tests";
}
args << ".";

emit findStarted();
m_process->startEx(cmd,args);
}
Expand Down
Loading