8000 fix: Param helper hover getting cut off at bottom by chenjigeng · Pull Request #112019 · microsoft/vscode · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
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

fix: Param helper hover getting cut off at bottom #112019

Merged
merged 2 commits into from
Dec 8, 2020

Conversation

chenjigeng
Copy link
Contributor

This PR fixes #105422

asyncRenderCallback: () => {
this.domNodes?.scrollbar.scanDomNode();
}
}));
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line and the lines surrounding lines are a duplicate of line 228-232. Other than the dom element target (documentation or dom variable). Should we refactor to bring these into the same place e.g.

		if (typeof signature.documentation === 'string') {
			dom.append(this.domNodes.docs, $('p', {}, signature.documentation));
		} else {
			const renderedContents = this.renderDisposeables.add(this.markdownRenderer.render(signature.documentation));
			const renderedContents = this.renderDisposeables.add(this.markdownRenderer.render(signature.documentation, {
				asyncRenderCallback: () => {
					this.domNodes?.scrollbar.scanDomNode();
				}
			}));
			renderedContents.element.classList.add('markdown-docs');
			const target = activeParameter?.documentation ?? dom;
			target.append(this.domNodes.docs, renderedContents.element);

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just like this?

private renderMarkdownDocs(markdown: IMarkdownString | undefined): IMarkdownRenderResult {
		const renderedContents = this.renderDisposeables.add(this.markdownRenderer.render(markdown, {
			asyncRenderCallback: () => {
				this.domNodes?.scrollbar.scanDomNode();
			}
		}));
		renderedContents.element.classList.add('markdown-docs');
		return renderedContents;
	}

Copy link
@rheh rheh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@joaomoreno joaomoreno added the editor-parameter-hints Function, method and class parameter hint widget label Dec 8, 2020
@chenjigeng
Copy link
Contributor Author

@joaomoreno Can you help take a look at this PR

@mjbvz mjbvz self-assigned this Dec 8, 2020
@mjbvz mjbvz added this to the December/January 2021 milestone Dec 8, 2020
@mjbvz mjbvz merged commit d66e65f into microsoft:master Dec 8, 2020
@mjbvz
Copy link
Collaborator
mjbvz commented Dec 8, 2020

Thanks! Should be available in the first VS Code 1.53 insiders builds

@joaomoreno joaomoreno removed their assignment Dec 9, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Jan 23, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
editor-parameter-hints Function, method and class parameter hint widget
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Param helper hover getting cut off at bottom
4 participants
0