microsoft / microsoft/TypeScript-Sublime-Plugin

formatCodeOptions not respected

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

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

Enhancement
主要言語
JavaScript
スター
1.7k
フォーク
236
平均マージ
21日 13時間
マージ済み PR(30日)
1

説明

I added the following to my tsconfig.json

"formatCodeOptions": {
    "placeOpenBraceOnNewLineForFunctions": true,
    "placeOpenBraceOnNewLineForControlBlocks": true
}

Looking in the tsserver.js that comes with the plugin, I see the compiler attempts to read these settings from somewhere (I assume its the tsconfig.json), however, it's simply not working. If also played with the casing, eventually literally copying it from the tsserver.js, but no game.

Is the server expecting a different file? Did I format it wrong? Or is it only partially implemented?

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

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

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

調査の方向性

まず tsserver.js と、そこから tsconfig.json の設定を読み取る方法を調べます。提供された formatCodeOptions で問題を再現し、その後、オプションが読み込まれて受け渡されているかを追跡します。設定の出所とこれらのフォーマット設定への対応が明らかになり、動作が修正されるか明確に文書化された時点で、issue は完了です。

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

評価

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

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

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