Skip to content

Syntax highlighting incorrect for methods with type hinting for complex return. #162

@bedge

Description

@bedge

VS Code version: Version 1.28.0-insider (1.28.0-insider)
vsc python Extension version: 2018.8.0
vsc magicpython Extension version: 1.0.12
OS and version: MacOS High Sierra 10.13.6 (17G65)
Python version (& distribution if applicable, e.g. Anaconda): Virtualenv 3.6
Type of virtual environment used (N/A | venv | virtualenv | conda | ...): virtualenv

Expected behavior
get_args method comment, and string should be formatted as they are in get_args_no_hints

screen shot 2018-10-02 at 4 27 12 pm

Similar after installing Chromodynamics theme:
screen shot 2018-10-02 at 4 50 22 pm

Steps to reproduce:
Add type hints to method. The return value of anything other than a simple scalar causes this.

microsoft/vscode-python#2768

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions