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

Document symbols fail for large markdown document #183

Closed
Jeangowhy opened this issue May 20, 2024 · 4 comments · Fixed by #184
Closed

Document symbols fail for large markdown document #183

Jeangowhy opened this issue May 20, 2024 · 4 comments · Fixed by #184
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug

Comments

@Jeangowhy
Copy link

Does this issue occur when all extensions are disabled?: Yes

VS Code 有个问题,渲染大文档时,比如 10MB 尺寸的 Markdown,它渲染流程会从头处理到用户浏览
的位置,所以当界面宽度调试时,比如侧栏面板切换显示时、窗口伸缩时,就会导致卡死,因为 VS Code
在做“无用”功。反观 Sublime Text 或者 Vim 就不会这样低能,只渲染视图缓存区间直接避免此类问题。

此问题出现在禁用所有插件状态下出现。只要文件标签不是当前编辑中处于活动状态(TextEditor Hidden),此问题就不会出现。

  • VS Code Version:

    Version: 1.89.1 (user setup)
    Commit: dc96b837cf6bb4af9cd736aa3af08cf8279f7685
    Date: 2024-05-07T05:13:33.891Z
    Electron: 28.2.8
    ElectronBuildId: 27744544
    Chromium: 120.0.6099.291
    Node.js: 18.18.2
    V8: 12.0.267.19-electron.0
    OS: Windows_NT x64 10.0.18362

  • OS Version: Windows_NT x64 10.0.18362

Steps to Reproduce:

  1. Open a markdown file big enough, such as 10MB.
  2. Resize VS Code window, or toggle sideba when the markdwon file is active.

The bigger of file the longger time to wait, if you resize the TextEditor render area.
image

@VSCodeTriageBot VSCodeTriageBot added the info-needed Issue requires more information from poster label May 20, 2024
@VSCodeTriageBot
Copy link
Collaborator

感谢您创建此问题!

然而,由于您没有使用英语,我们很难进行处理。如果可能,请您将此问题描述修改为英文。请您直接编辑此问题,不要提交回复或新问题。

请注意,机器翻译服务通常无法处理用于讨论软件问题所需的技术性语言,所以我们推荐您寻找一位熟悉相关技术的人来协助翻译。

如果您无法做到,没有关系。此问题已经被标记为需要翻译,等待社区成员志愿进行翻译。


Thanks for creating this issue!

Unfortunately, as the description is not in English, it's hard for us to work on. If possible, please edit the original issue to be in English.

In our experience, automatic translation services are not able to handle the technical language needed to effectively communicate about software issues, so we recommend finding a human translator who is familiar with our technology to help.

Otherwise, we have marked this as needing translation and a community member may be able to help out.

@mjbvz
Copy link
Contributor

mjbvz commented May 20, 2024

Please share an example file which causes this

@Jeangowhy
Copy link
Author

VSCode_docs_1.89.1.md
This file can be use to test.

Please share an example file which causes this

@RedCMD
Copy link

RedCMD commented May 22, 2024

I receive this error when opening the file

[Error - 1:23:45 PM] Request textDocument/documentSymbol failed.
  Message: Request textDocument/documentSymbol failed with message: Maximum call stack size exceeded
  Code: -32603

I am able to resize the window with no problems

 ERR Request textDocument/documentSymbol failed with message: Maximum call stack size exceeded: Error: Request textDocument/documentSymbol failed with message: Maximum call stack size exceeded
	at e:\VSCode-win32-x64\resources\app\extensions\markdown-language-features\dist\extension.js:1:299430
	at e:\VSCode-win32-x64\resources\app\extensions\markdown-language-features\dist\extension.js:1:299724
	at Immediate.<anonymous> (e:\VSCode-win32-x64\resources\app\extensions\markdown-language-features\dist\extension.js:1:300086)
	at process.processImmediate (node:internal/timers:476:21)

@mjbvz mjbvz transferred this issue from microsoft/vscode May 22, 2024
@mjbvz mjbvz changed the title 大尺寸Markdown文档存在无效渲染 Document symbols fail for large markdown document May 22, 2024
@mjbvz mjbvz added bug Issue identified by VS Code Team member as probable bug and removed info-needed Issue requires more information from poster labels May 22, 2024
mjbvz added a commit to mjbvz/vscode-markdown-languageservice that referenced this issue May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue identified by VS Code Team member as probable bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants