microsoft / microsoft/TypeScript

"require" is not an autocomplete option for blank js file

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

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

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

説明

Steps to Reproduce:

  1. Open a blank JavaScript file
  2. type var x = r

require should be the first value that pops up in the autocomplete options.

At the moment you can type out the entire word require and it still wont appear in the autocomplete list.

This is really annoying for node developers that need to use the require function all the time and don't have access to an es6 environment.

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

Version details

Version: 1.28.0 (user setup)
Commit: 431ef9da3cf88a7e164f9d33bf62695e07c6c2a9
Date: 2018-10-05T14:58:53.203Z
Electron: 2.0.9
Chrome: 61.0.3163.100
Node.js: 8.9.3
V8: 6.1.534.41
Architecture: x64
Windows 10

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

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

はじめの一歩

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

調査の方向性

まず、拡張機能を無効にした空の JavaScript ファイルで、var x = r と報告されたバージョンの詳細をコンテキストとして使用し、問題を再現します。payload にはソースファイルもテストも指定されていません。完了条件は、オートコンプリートの一覧に require が表示され、できれば最初の候補になることです。

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

評価

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

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

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