microsoft / microsoft/TypeScript

Pasting plain text is very slow now

オープン
#61,112 コメント 4 件 リアクション 4 件 担当者 1 名 GitHub で見る

@navya9singh がすでに取り組んでいます。

2025年2月4日 から。

Needs Investigation
主要言語
Go
スター
111k
フォーク
14.3k
平均マージ
2日 4時間
マージ済み PR(30日)
132

説明

Repro:

  1. Open src\vs\editor\contrib\suggest\test\browser\completionModel.test.ts
  2. Select all
  3. Copy
  4. Create src\vs\workbench\services\suggest\test\browser\simpleCompletionModel.test.ts
  5. Paste
  6. Scroll up, 🐛 I frequently see a spinner when pasting, didn't this used to essentially be instantaneous?

Image

v1.97 insiders took around 424ms from ctrl+v to the content showing

Image

insiders-trace.json

v1.89.1 stable took around 20ms

Image

stable-trace.json

AFAICT plain text is the default for editor.pasteAs.preferences and we therefore should not seemingly be waiting on extensions or anything else to provide any information before adding the content to the buffer. This makes the editor feel so slow imo.

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。