Skip to content

Only include files with open editors in Analyze All Open Files - #115

Open
Bazooper-blip wants to merge 1 commit into
integrated-application-development:masterfrom
Bazooper-blip:analyze-open-files-filter
Open

Only include files with open editors in Analyze All Open Files#115
Bazooper-blip wants to merge 1 commit into
integrated-application-development:masterfrom
Bazooper-blip:analyze-open-files-filter

Conversation

@Bazooper-blip

Copy link
Copy Markdown

Fixes #7.

GetOpenSourceModules iterated all of IOTAModuleServices.Modules and filtered only by the .pas extension. That collection also contains modules that no longer have an open editor — for example files that were recently closed but whose module hasn't been released yet — which is why "Analyze All Open Files" sometimes analyzed more files than were open.

The function now additionally requires the module to have a source editor with at least one edit view, the usual ToolsAPI test for "actually open in the editor".

Testing: new unit test covering the two exclusion cases (module without a source editor, source editor without edit views); the existing GetOpenSourceModules test was updated so its mock modules have open editors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"Analyze All Open Files" analyzes more files than are open

1 participant