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

Improve ToolManagerAPI #367

Merged
merged 4 commits into from
Jun 25, 2024
Merged

Improve ToolManagerAPI #367

merged 4 commits into from
Jun 25, 2024

Conversation

tortmayr
Copy link
Contributor

What it does

  • Add defaultToolsEnabled flag to ToolManager which is true if currently only the default tools are enabled i.e. no tools have been enabled explicitly
  • Avoid (re)activation of default tools if the are already enabled
  • Remove unused GRID_STYLE property

How to test

Follow-ups

Changelog

  • This PR should be mentioned in the changelog
  • This PR introduces a breaking change (if yes, provide more details below for the changelog and the migration guide)

- Add `defaultToolsEnabled` flag to `ToolManager` which is true if currently only the default tools are enabled i.e. no tools have been enabled explicitly
- Avoid (re)activation of default tools if the are already enabled
- Remove unused GRID_STYLE property
@tortmayr tortmayr requested a review from martin-fleck-at June 24, 2024 21:09
Copy link
Contributor

@martin-fleck-at martin-fleck-at left a comment

Choose a reason for hiding this comment

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

Change looks good to me and works well, just the typical changelog shenanigans with the correct PR number. Thank you, Tobias!

CHANGELOG.md Outdated Show resolved Hide resolved
@tortmayr tortmayr requested a review from martin-fleck-at June 25, 2024 12:54
Copy link
Contributor

@martin-fleck-at martin-fleck-at left a comment

Choose a reason for hiding this comment

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

LGTM!

@tortmayr tortmayr merged commit 7e20238 into master Jun 25, 2024
6 checks passed
@tortmayr tortmayr deleted the tool-manager branch June 25, 2024 13:04
holkerveen pushed a commit to holkerveen/glsp-client that referenced this pull request Dec 21, 2024
- Add `defaultToolsEnabled` flag to `ToolManager` which is true if currently only the default tools are enabled i.e. no tools have been enabled explicitly
- Avoid (re)activation of default tools if the are already enabled
- Remove unused GRID_STYLE property


Co-authored-by: Martin Fleck <[email protected]>
holkerveen pushed a commit to holkerveen/glsp-client that referenced this pull request Dec 21, 2024
- Add `defaultToolsEnabled` flag to `ToolManager` which is true if currently only the default tools are enabled i.e. no tools have been enabled explicitly
- Avoid (re)activation of default tools if the are already enabled
- Remove unused GRID_STYLE property


Co-authored-by: Martin Fleck <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants