mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
workaround: don't show pid of attach item in case if pid=-1
IDEA-CR-39132
This commit is contained in:
+2
-1
@@ -547,7 +547,8 @@ public class AttachToProcessAction extends AnAction {
|
||||
@NotNull
|
||||
public String getText(@NotNull Project project) {
|
||||
String shortenedText = StringUtil.shortenTextWithEllipsis(myGroup.getItemDisplayText(project, myInfo, myDataHolder), 200, 0);
|
||||
return myInfo.getPid() + " " + shortenedText;
|
||||
int pid = myInfo.getPid();
|
||||
return (pid == -1 ? "" : pid + " ") + shortenedText;
|
||||
}
|
||||
|
||||
@NotNull
|
||||
|
||||
Reference in New Issue
Block a user