-
Notifications
You must be signed in to change notification settings - Fork 29.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rendering of documentation in Intellisense and hover inconsistent #2330
Comments
Totally agree. Only code should be in a monospaced font. The way it's done in the second image is how we should do it. |
I can't do it on styles alone. The data type that hover gets when rendering something is: export interface IComputeExtraInfoResult {
range: editorCommon.IRange;
value?: string;
htmlContent?: IHTMLContentElement[];
className?: string;
} Basically, a mode just needs to return export interface ISuggestion {
label: string;
codeSnippet: string;
type: SuggestionType;
typeLabel?: string;
documentationLabel?: string;
filterText?: string;
sortText?: string;
noAutoAccept?: boolean;
overwriteBefore?: number;
overwriteAfter?: number;
} To fix this we might have to go the other way and render suggestions' documentations in fixed-width fonts, similarly to hover... which I would be very sad about. |
@joaomoreno Careful cos the content can be full markdown, meaning again code and also other formatting instructions. Tho, you can use this - like the hover does. |
@joaomoreno I like the look of this; hovers were looking a bit weird (esp. with fixed width fonts) 👍 I raised a case related to code-rendering in hovers, I don't know whether they may be any overlap with what you're doing here and that (#11331). |
@joaomoreno It broke multi-line error messages that have a source-property
|
Just went through suggest widget. Both hover and suggest are styled the same. The contents themselves are a bit different. We need to come up with an API solution for completion item providers (and others) to return Markdown for some fields. Once we have that, we can have the same styles for the type signature and cool Markdown in the suggestion details. |
I see many horizontal lines |
This looks really good in insiders (esp. with the code language fix!). But, would there be any possibility of allowing it to go up to 80 characters before wrapping? 80 chars seems to be a fairly common wrapping point so docs might be formatted to try and fit within that (the Dart source code is certainly full of this!) |
Since this was on the plan, I am removing the verification-needed label. |
Testing #2230
The rendering of the documentation in the hover and in Intellisense is inconsistent, different font, font size, font family, and color.
Suggest to align on the way the documentation is rendered in Intellisense. It looks nicer.
FYI @bgashler1
The text was updated successfully, but these errors were encountered: