Vscode-markdown: Cannot use backspace or enter after first opening markdown file

Created on 30 Nov 2018  ·  8Comments  ·  Source: yzhang-gh/vscode-markdown

We have written the n
Issue Type: Bug

When first opening a markdown file or changing the languague mode to markdown, the editor does not respond to the backspace and enter keys. This is correlated to seeing the "Activating Extensions" message in the status bar. Sometimes this activation takes several seconds (10+) to complete.

Repro steps:

  1. Open VS Code.
  2. Open an existing markdown file.
  3. Immediately try to use the enter key or backspace key.

Actual results:
The enter key and backspace keys have no effect. Two small warnings are displayed in the lower right hand corner that state:
command 'markdown.extension.onEnterKey' not found
command 'markdown.extension.onBackspaceKey' not found

Expected results:
Basic keyboard commands like enter and backspace should always work.

Extension version: 1.7.0
VS Code version: Code 1.29.1 (bc24f98b5f70467bc689abf41cc5550ca637088e, 2018-11-15T19:13:36.375Z)
OS version: Windows_NT x64 10.0.17134


System Info

|Item|Value|
|---|---|
|CPUs|Intel(R) Core(TM) i7-6600U CPU @ 2.60GHz (4 x 2808)|
|GPU Status|2d_canvas: enabled
checker_imaging: disabled_off
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
rasterization: enabled
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled|
|Memory (System)|15.93GB (2.22GB free)|
|Process Argv|C:\Repos\trip-event-service\CHANGELOG.md|
|Screen Reader|no|
|VM|0%|


eeded data into your clipboard because it was too large to send. Please paste.

Most helpful comment

For me it takes almost a minute per opened Markdown file. When I disable the Markdown-all-in-One extension then enter and backspace become instant.

But I do not see the warnings, so this may be something separate. I'm not sure.

All 8 comments

This is the VS Code "lazy loading" mechanism. The extension will only be activated on certain events, e.g. the first time you open a Markdown file.

For this issue, we can do nothing since the activation process does need a few seconds. I would suggest not being that hurry and life will be better...

For me it takes almost a minute per opened Markdown file. When I disable the Markdown-all-in-One extension then enter and backspace become instant.

But I do not see the warnings, so this may be something separate. I'm not sure.

Actually, things are the same with the Python extension. When I write Python code, I have to wait half a minute for Intelligence to work properly. But Intelligence is very fast when writing js code.

So I think this is an issue of VS code itself. We need a gentle way to handle other files besides js flies

Actually, things are the same with the Python extension. When I write Python code, I have to wait half a minute for Intelligence to work properly. But Intelligence is very fast when writing js code.

So I think this is an issue of VS code itself. We need a gentle way to handle other files besides js flies

Or at a minimum find a way that avoids blocking basic editing functions while the rest of the file support is loading. I edit a large amount of small markdown files and usually want to add a line or two to a file or make some small edits then move on to the next file.

Blocking enter and backspace for half a minute makes that completely untenable so I had to disable the extension so I can keep working.

This should be much better in v2.0.0. Please feel free to open a new one if you still have this issue.

Same issue on 2.3.1

Same issue in 2.4.0

If you are experiencing a huge lag, please consider filing a new issue with more information (e.g. an example document). There might be some other performance issues.

If it is just about 1 second, I am afraid there isn't much space to improve.

Was this page helpful?
0 / 5 - 0 ratings