Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Global errors differ depending on initial state of playground

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

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
38/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
typescript
領域
devtools

調査の方向性

es2020 ターゲットを使用するリンク先の 2 つの Playground 例から始め、次に foo でコメントを切り替える手順を再現します。切り替えるたびに AsyncDisposable と Disposable の診断、および await のクイックフィックスが一貫しているかを比較します。完了とは、どちらの初期状態でも同じエラーとクイックフィックスの結果が生成されることです。

索引モデルが issue の本文から書いたものです。

説明

Playground

I'm having a hard time consistently reproing this, so bare with me.

First, use es2020 as a target.

Playground for this example:

function foo() {
    await using asd = 123;
}

Playground for this example:

function foo() {
    //await using asd = 123;
}

In both cases, toggle a comment on the line in foo, and then toggle the comment state again.

Depending on the initial contents of the playground, the following errors will not reappear:

Cannot find global type 'AsyncDisposable'.(2318)
Cannot find global type 'Disposable'.(2318)

What's more, if you try applying a quick fix on the await keyword to add the async keyword to the function you may get different results than if you enter it manually.

主要言語
TypeScript
スター
2.6k
フォーク
1.5k
平均マージ
2日 21時間
マージ済み PR(30日)
7

環境構築

このプロジェクトの環境構築ファイルはまだ確認していません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

microsoft/TypeScript-Website のほかの issue

microsoft/TypeScript-Website の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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