Recent

Author Topic: Feature request: include files in overview gutter  (Read 955 times)

440bx

  • Hero Member
  • *****
  • Posts: 4233
Feature request: include files in overview gutter
« on: May 19, 2024, 10:44:38 am »
Hello,

It would be really nice to have an indicator on the overview gutter indicating the lines where {$includes ... } are present in a file.

Useful comments welcome.


(FPC v3.0.4 and Lazarus 1.8.2) or (FPC v3.2.2 and Lazarus v3.2) on Windows 7 SP1 64bit.

Thaddy

  • Hero Member
  • *****
  • Posts: 14858
  • Censorship about opinions does not belong here.
Re: Feature request: include files in overview gutter
« Reply #1 on: May 19, 2024, 10:48:18 am »
That would be very useful, just like included units already is.
It would probably also fix the parser issue at the same time....
Remember the Medway disaster..

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 10011
  • Debugger - SynEdit - and more
    • wiki
Re: Feature request: include files in overview gutter
« Reply #2 on: May 19, 2024, 02:51:59 pm »
The content of that gutter isn't provided by codetools. So changes to it do not affect codetools.

There are (at least) 3 parsers
- the compiler
- codetools
- highlighter (also used for some indications in the overview gutter)

Each parser needs a different level of detail...

There are a variety of other things that need to be done for that overview gutter. Not sure, if when adding directive will become considerable.



In the meantime, the "code explorer" can show directives. That includes {$i } directives (and using the filter can be limited to just them).

Btw, the code explore (afaik) gets it content from codetools.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 10011
  • Debugger - SynEdit - and more
    • wiki
Re: Feature request: include files in overview gutter
« Reply #3 on: May 19, 2024, 02:54:51 pm »
Few more details.

The highlighters scanner currently doesn't care about includes. Other than on the line itself it sees them as a directive. But neither caring what kind of directive, nor storing the info in a way that it could be looked up.

Currently the overview gutter cares about the begin/end of the interface/implementation/initialization/finalization sections (and those come from the HL, via SourceSynEditer in the IDE)

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 10011
  • Debugger - SynEdit - and more
    • wiki
Re: Feature request: include files in overview gutter
« Reply #4 on: May 19, 2024, 02:56:17 pm »
To get them to be visible, codetools would need to add them as (invisible) gutter marks.

Like the build system adds gutter marks for errors/warnings

 

TinyPortal © 2005-2018