diff --git a/liteidex/src/plugins/golangedit/golangedit.cpp b/liteidex/src/plugins/golangedit/golangedit.cpp index 6839770cb..0b8f01106 100644 --- a/liteidex/src/plugins/golangedit/golangedit.cpp +++ b/liteidex/src/plugins/golangedit/golangedit.cpp @@ -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"; @@ -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 << "."; @@ -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"; diff --git a/liteidex/src/plugins/golangedit/golangfilesearch.cpp b/liteidex/src/plugins/golangedit/golangfilesearch.cpp index 9478a1717..1de4db51f 100644 --- a/liteidex/src/plugins/golangedit/golangfilesearch.cpp +++ b/liteidex/src/plugins/golangedit/golangfilesearch.cpp @@ -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); @@ -152,7 +152,6 @@ void GolangFileSearch::findUsages(LiteApi::ITextEditor *editor, QTextCursor curs args << "-skip_tests"; } args << "."; - emit findStarted(); m_process->startEx(cmd,args); }