microsoft / microsoft/TypeScript-Sublime-Plugin

Proposal to add a global option for typescript_tsdk

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

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

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

説明

This is somewhat related to issue 499.

Like some other users, I share user settings between machines, and the path to the global TypeScript install is different on each machine. It would be nice if I could set typescript_tsdk: global, or something similar, and the plugin would automatically look for my global install.

I'd be willing to do a pull request. It seems like you could just add another case to the initialize method in editor_client.py. It could look like this:

if tsdk_location == "global":
    # Get location of npm packages by running `npm config get prefix`
    # See https://stackoverflow.com/questions/4760215/running-shell-command-from-python-and-capturing-the-output
    # From there, get path to global TypeScript install.
    # Set variables
elif tsdk_location:
    # Keep the rest the same

Thoughts?

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

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

はじめの一歩

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

調査の方向性

まず typescript/libs/editor_client.py の initialize メソッドと、関連する issue 499 を読んでください。プラグインが現在 typescript_tsdk をどのように処理しているかを確認し、その後 npm config get prefix がグローバルな TypeScript のインストールをどのように特定するかを検証してください。グローバル設定でインストール先を解決でき、既存の明示的なパスも引き続き機能すれば完了です。

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

評価

技術スタック
node.js, python, typescript
領域
tooling
issue の種類
機能追加
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

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

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