microsoft / microsoft/TypeScript-Sublime-Plugin
Proposal to add a global option for typescript_tsdk
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- JavaScript
- Estrellas
- 1.7k
- Forks
- 236
- Merge medio
- 21 d 13 h
- PR fusionados (30 d)
- 1
Descripción
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?
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Línea de trabajo
Empieza leyendo el método initialize en typescript/libs/editor_client.py y el issue relacionado, el 499. Comprueba cómo gestiona actualmente el plugin typescript_tsdk y verifica después cómo npm config get prefix identifica la instalación global de TypeScript. Se considera terminado cuando una configuración global resuelve la instalación y las rutas explícitas existentes siguen funcionando.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- node.js, python, typescript
- Área
- tooling
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 35/100