Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exposes APIs to support upcoming Web console feature #1770

Merged
merged 9 commits into from
Jun 8, 2022

Conversation

JessicaMulein
Copy link
Contributor

Our team, and especially @BDisp have been working quite hard and have produced a web console driver for Gui.cs. Our driver needs visibility into some internal variables and we've also found/fixed a couple typos and bugs.
ezgif com-gif-maker
For #1642

@@ -385,7 +411,7 @@ protected virtual void Dispose (bool disposing)

static void ProcessKeyEvent (KeyEvent ke)
{
if(RootKeyEvent?.Invoke(ke) ?? false) {
if (RootKeyEvent?.Invoke (ke) ?? false) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

the space after invoke may be accidental?

Copy link
Collaborator

Choose a reason for hiding this comment

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

No it's how .editorconfig is configured.

Copy link
Collaborator

@tig tig left a comment

Choose a reason for hiding this comment

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

Very interesting stuff guys!

See my comments.

Terminal.Gui/Core/MainLoop.cs Show resolved Hide resolved
Terminal.Gui/Core/MainLoop.cs Show resolved Hide resolved
@@ -210,6 +215,24 @@ static void OnQuitKeyChanged (Key oldKey)
/// </summary>
public static bool IsMouseDisabled { get; set; }

/// <summary>
/// By default this is false which will continue executing the <see cref="RunLoop(RunState, bool)"/> method,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Poor English phrasing. I think you mean:

"Set to true to cause the RunLoop method to exit after the first iterations. Set to false (the default) to cause the RunLoop to continue running until Application.RequestStop() is called."

Copy link
Collaborator

Choose a reason for hiding this comment

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

Done thanks.

Terminal.Gui/Core/Application.cs Outdated Show resolved Hide resolved
Terminal.Gui/Core/Application.cs Outdated Show resolved Hide resolved
@tig tig changed the title Web console feature Exposes APIs to support upcoming Web console feature Jun 7, 2022
@BDisp
Copy link
Collaborator

BDisp commented Jun 7, 2022

Now is the Editor scenario that is giving failed test, OMG.

editor-scenario

It's not supposed the Build should be run after the Code scanning?

code-scanning

@tig
Copy link
Collaborator

tig commented Jun 8, 2022

It's not supposed the Build should be run after the Code scanning?

They are independent workflows. Theoretically they run in parallel.

Copy link
Collaborator

@tig tig left a comment

Choose a reason for hiding this comment

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

Woot!

@tig tig merged commit 68b40a9 into gui-cs:main Jun 8, 2022
@BDisp BDisp deleted the web-console-feature branch June 8, 2022 20:09
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.

3 participants