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

Do not steal the focus when showing the channels #2828

Merged
merged 2 commits into from
Jan 28, 2019

Conversation

akshita31
Copy link
Contributor

Fixes: #2756

observer = new OmnisharpChannelObserver({
...getNullChannel(),
show: () => { hasShown = true; },
show: (preserve) => {
Copy link

Choose a reason for hiding this comment

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

Do we ever call this with 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.

Is there a case where we want to steal the focus

Copy link
Contributor Author

Choose a reason for hiding this comment

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

As of now I couldnt think of any particular case hence right now we are using true everywhere

Copy link

Choose a reason for hiding this comment

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

Why not make it even easier and remove the paramter/always pass true in this method?

@codecov
Copy link

codecov bot commented Jan 28, 2019

Codecov Report

Merging #2828 into master will decrease coverage by 0.05%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2828      +/-   ##
==========================================
- Coverage   65.12%   65.06%   -0.06%     
==========================================
  Files         104      104              
  Lines        4505     4503       -2     
  Branches      657      657              
==========================================
- Hits         2934     2930       -4     
- Misses       1386     1387       +1     
- Partials      185      186       +1
Flag Coverage Δ
#integration 52.33% <25%> (-0.32%) ⬇️
#unit 86.17% <100%> (-0.02%) ⬇️
Impacted Files Coverage Δ
src/observers/DotnetChannelObserver.ts 100% <100%> (ø) ⬆️
src/observers/CsharpChannelObserver.ts 100% <100%> (ø) ⬆️
src/observers/OmnisharpChannelObserver.ts 100% <100%> (ø) ⬆️
src/observers/DotnetTestChannelObserver.ts 100% <100%> (ø) ⬆️
src/features/codeLensProvider.ts 46.29% <0%> (-1.86%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 48703e5...7e01ae6. Read the comment docs.

@akshita31 akshita31 merged commit 659906d into dotnet:master Jan 28, 2019
@akshita31 akshita31 deleted the do_not_steal_focus branch January 28, 2019 22:42
@filipw
Copy link
Contributor

filipw commented Jan 29, 2019

this is great - thanks!

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