-
Notifications
You must be signed in to change notification settings - Fork 40.3k
Suggestion Widget Hangs on Markdown #152010
Copy link
Copy link
Closed
Labels
bugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bugfreeze-slow-crash-leakVS Code crashing, performance, freeze and memory leak issuesVS Code crashing, performance, freeze and memory leak issuesinsiders-releasedPatch has been released in VS Code InsidersPatch has been released in VS Code Insidersmarkdown-extThe Markdown extension: language features and previewThe Markdown extension: language features and previewverifiedVerification succeededVerification succeeded
Milestone
Metadata
Metadata
Assignees
Labels
bugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bugfreeze-slow-crash-leakVS Code crashing, performance, freeze and memory leak issuesVS Code crashing, performance, freeze and memory leak issuesinsiders-releasedPatch has been released in VS Code InsidersPatch has been released in VS Code Insidersmarkdown-extThe Markdown extension: language features and previewThe Markdown extension: language features and previewverifiedVerification succeededVerification succeeded
Type
Fields
Give feedbackNo fields configured for issues without a type.
Using an extension that provides PHP intellisense, it creates a suggestion widget with documentation for each file in the namespace. The documentation includes a php code snippet in markdown for each file. When the completion shows and it goes to show the details, it hangs VS Code while rendering. While the extension can be updated to reduce the documentation size, the issue can be triggered in VS Code directly too. The contrived typescript file below simulates the same effect.
Does this issue occur when all extensions are disabled?: Yes
Version: 1.68.0 (Universal)
Commit: 4af164e
Date: 2022-06-08T11:44:00.250Z
Electron: 17.4.7
Chromium: 98.0.4758.141
Node.js: 16.13.0
V8: 9.8.177.13-electron.0
OS: Darwin x64 20.6.0
Steps to Reproduce:
.ts.It will hang while typing. If it doesn't you can copy/paste the JSDoc to make it longer.
I will open a PR in a few minutes to fix this. It looks like the following tries to re-render after each markdown snippet instead of at the end.
vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetDetails.ts
Lines 176 to 179 in 4501f83