Skip to content

Type info is not working correctly #26

@rvion

Description

@rvion

I made a PR (#7) that picked the right type info to show, but the feature doesn't seem to work anymore

Now

image

Before

Exemple 1 :

capture d ecran 2015-07-29 a 13 16 35

capture d ecran 2015-07-29 a 13 16 41

capture d ecran 2015-07-29 a 13 16 47

capture d ecran 2015-07-29 a 13 17 00

Example 2:

capture d ecran 2015-07-28 a 13 40 01

capture d ecran 2015-07-28 a 13 39 45

capture d ecran 2015-07-28 a 13 39 40

capture d ecran 2015-07-28 a 13 39 32

related code was:

   def filter_enclosing(_,from_col, to_col, from_line, to_line, spans):
       return [span for span in spans if 
           (   ((span[1].get("spanFromLine")<from_line) or 
               (span[1].get("spanFromLine") == from_line and
                span[1].get("spanFromColumn") <= from_col))
           and ((span[1].get("spanToLine")>to_line) or 
               (span[1].get("spanToLine") == to_line and
                span[1].get("spanToColumn") >= to_col))
           )]
[type_string, type_span] = self.filter_enclosing(
                from_col_+1, to_col_+1,
                from_line_+1, to_line_+1,
                types)[0]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions