Skip to content

Commit

Permalink
installation of formatter: also show some report
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexey-T committed Apr 8, 2024
1 parent 9911e02 commit 0350a77
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/proc_install_zip.pas
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,13 @@ procedure DoInstallPlugin(

for ini_section in sections do
begin
if SRegexMatchesString(ini_section, 'fmt\d+', true) then
begin
s_caption:= ini.ReadString(ini_section, 'caption', '');
AReport+= msgStatusPackageFormatter+' '+s_caption;
Continue;
end;

if not SRegexMatchesString(ini_section, 'item\d+', true) then Continue;

s_section:= ini.ReadString(ini_section, 'section', '');
Expand Down
1 change: 1 addition & 0 deletions app/proc_msg.pas
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,7 @@ interface
msgStatusPackageLexerSettings: string = 'lexer settings:';
msgStatusPackageAutoCompletion: string = 'static auto-completion:';
msgStatusPackageData: string = 'data:';
msgStatusPackageFormatter: string = 'formatter:';
msgStatusPackagePackage: string = 'package:';
msgStatusPackageMissedLexerMap: string = 'lexer misses themes support (.cuda-lexmap file)';
msgStatusInstalledNeedRestart: string = 'Package will take effect after program restart';
Expand Down

0 comments on commit 0350a77

Please sign in to comment.