lsp-ui icon indicating copy to clipboard operation
lsp-ui copied to clipboard

Way too big icons

Open liar666 opened this issue 3 years ago • 4 comments

Describe the bug

Note: I'm not sure the problem is really in lsp-java or one of the other package it uses, but I don't know how to track down the problem.

But the thing is the "bulb" icon that appears next to recommendations on code refactoring actions is WAY too big (see picture below)

To Reproduce

  • Install the most up-to-date packages from melpa, notably lsp-java (and mode-icons and all-the-icons - for which I run the "install font" command)

  • Open a Java file

  • Position the cursor on the name of the class

  • My example Java file:

package fr.tse.java;

/**
 * Describe class test here.
 *
 *
 * Created: Wed Dec 16 22:08:51 2020
 *
 * @author <a href="mailto:gmuller@BAL157X-og">gmuller</a>
 * @version 1.0
 */
public class test extends plop implements {

    /**
     * Creates a new <code>test</code> instance.
     *
     */
    public test(a,e,d,c) {

    }

    public static final void main(final String[] args) {
        System.out.println(13+"coucou");
    }

    /**
     * Get a string representation of this object.
     * 
     * @return a string representation of this object.
     * 
     * @see java.lang.Object#toString
     */
    public final String toString() {
        return new StringBuilder(plop.toString());
    }
}

Expected behavior

  • A line appears to propose to refactor the code, reading: "Move test..."
  • The bulb icon that accompanies the text shoulb be of reasonable size (the size of the surrounding text)

Screenshots

A picture is worth thusands words: screenshot_2021-02-12-21 35

liar666 avatar Feb 12 '21 21:02 liar666

Hi, Thanks for reporting this issue to us!

I think if you use Emacs version 27 or above should solve this issue. Of course this isn't a good solution but a quick fix!

jcs090218 avatar Feb 13 '21 04:02 jcs090218

Can we remove that icon until the issue is fixed?

yyoncho avatar Feb 14 '21 12:02 yyoncho

@liar666 You can set lsp-ui-sideline-actions-icon to nil to disable this! :)

jcs090218 avatar Feb 14 '21 12:02 jcs090218

Mark related issue #570.

jcs090218 avatar Feb 22 '21 07:02 jcs090218