Skip to content

Conversation

mstv
Copy link
Member

@mstv mstv commented Nov 5, 2023

Supersedes #11321

Proposed changes

  • Remove IRunScript
  • Turn empty IScriptHostControl into IScriptOptionsProvider with string GetValue(string option)

Screenshots

N/A

Test methodology

  • existing tests

Merge strategy

I agree that the maintainer squash merge this PR (if the commit message is clear).


✒️ I contribute this code under The Developer Certificate of Origin.

Comment on lines -19 to +20
public static void AddUserScripts(this ContextMenuStrip contextMenu, ToolStripMenuItem hostMenuItem, Action<int> scriptInvoker, IServiceProvider serviceProvider)
/// <param name="serviceProvider">The DI service provider.</param>
public static void AddUserScripts(this ContextMenuStrip contextMenu, ToolStripMenuItem hostMenuItem, Func<int, bool> scriptInvoker, IServiceProvider serviceProvider)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just changed the type of scriptInvoker in order to directly be compatible with GitModuleControl.ExecuteCommand.

Copy link
Member

@RussKie RussKie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice

@RussKie
Copy link
Member

RussKie commented Nov 5, 2023

/cc: @SlugFiller

@mstv mstv force-pushed the remove_irunscript branch from a9dffe3 to 0898ee6 Compare November 6, 2023 17:54
@mstv mstv merged commit 0898ee6 into gitextensions:master Nov 6, 2023
@ghost ghost added this to the vNext milestone Nov 6, 2023
@mstv mstv deleted the remove_irunscript branch November 6, 2023 17:56
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.

2 participants