lsp-ui
lsp-ui copied to clipboard
Way too big icons
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
(andmode-icons
andall-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:
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!
Can we remove that icon until the issue is fixed?
@liar666 You can set lsp-ui-sideline-actions-icon
to nil
to disable this! :)
Mark related issue #570.