microsoft / microsoft/TypeScript-Sublime-Plugin
Proposal to add a global option for typescript_tsdk
Personne n'a encore pris cette issue.
- Langage dominant
- JavaScript
- Étoiles
- 1.7k
- Forks
- 236
- Merge moyen
- 21 j 13 h
- PR mergées (30 j)
- 1
Description
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?
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Piste de recherche
Commencez par lire la méthode initialize dans typescript/libs/editor_client.py et l’issue associée, la 499. Vérifiez comment le plugin gère actuellement typescript_tsdk, puis vérifiez comment npm config get prefix identifie l’installation globale de TypeScript. C’est terminé lorsqu’un paramètre global résout l’installation tout en continuant à prendre en charge les chemins explicites existants.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- node.js, python, typescript
- Domaine
- tooling
- Type d'issue
- Fonctionnalité
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 35/100