MagicStack / MagicStack/MagicPython

Is it possible to highlight all decorators the same?

Ouverte
#178 0 commentaires 2 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
JavaScript
Étoiles
1.4k
Forks
98
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

* **Editor name and version**: VS Code 1.33.0
* **Platform**: Windows 10 1809
* **Color scheme**: Pycharm Dracula Style (WIP)
* **MagicPython version**: 1.1.0

First of all congrats on the great project!

I've begun working on a theme to make VS Code look similar to PyCharm. I would like to have all decorators highlighted with the same color regardless of type. At the moment the scope 'support.type.python' is prioritized over 'meta.function.decorator.python'. You can see this demonstrated in the example below for the property decorator. I get why the current order is more desirable, but is it possible to somehow override it within the theme?

![decorator_example](https://user-images.githubusercontent.com/29230371/55667700-1f7e8200-5860-11e9-8c54-874c907020ee.png)

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Piste de recherche

Commencez par examiner comment les décorateurs Python se voient attribuer les scopes `support.type.python` et `meta.function.decorator.python` dans le surligneur syntaxique, puis vérifiez comment la priorité des scopes des thèmes VS Code les traite. La tâche est terminée lorsqu’il a été déterminé si un thème peut colorer systématiquement tous les décorateurs et que le comportement pris en charge a été documenté ou implémenté.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
python, vscode
Domaine
tooling
Type d'issue
Fonctionnalité
Difficulté
3/5
Temps estimé
1-2 jours
Activité
À l'abandon
Clarté
À clarifier
Accessibilité débutants
35/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.