Relative dependencies for files do not update properly when moving multiple files at once between folders.

オープン
#45,326 コメント 5 件 リアクション 2 件 担当者 0 名 GitHub で見る

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

評価

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

調査の方向性

まず、require() または import を通じて相互に参照する3つの JavaScript ファイルを含む Node プロジェクトで、VS Code 上で問題を再現し、その後2つのファイルを一緒に移動します。報告ではソースファイルもテストも指定されていないため、複数ファイルの移動処理と相対インポートの更新を追跡してください。移動後に影響を受けるすべてのインポートが正しくなっていれば完了です。移動したファイル間の参照も含まれます。

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

説明

Needs Investigation

Problem: Relative dependencies for files do not update properly when moving multiple files at once between folders.

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

VSCode Information:
Version: 1.58.2 (user setup)
Commit: c3f126316369cd610563c75b1b1725e0679adfb3
Date: 2021-07-14T22:10:15.214Z
Electron: 12.0.13
Chrome: 89.0.4389.128
Node.js: 14.16.0
V8: 8.9.255.25-electron.0
OS: Windows_NT x64 10.0.19042

Steps to Reproduce (JavaScript):

  1. Make new Node project with npm init and open the folder in VSCode.
  2. Create three JavaScript files which all reference each other using require() or import.
  3. Create a folder in the workspace.
  4. Move two of the files into the folder (have them both selected and move them together).

The imports of the moved files will now be left unchanged and hence incorrect (except one, which is why moving a single file is bug-free).

主要言語
Go
スター
111k
フォーク
14.4k
平均マージ
1日 19時間
マージ済み PR(30日)
117

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

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

はじめの一歩

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

microsoft/TypeScript のほかの issue

microsoft/TypeScript の issue をすべて見る

似ている issue

Go の issue をもっと見る

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

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