Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add setting to control references code lens #1900

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

Merged
andyleejordan merged 2 commits into PowerShell:main from SeeminglyScience:ref-lens-setting
Aug 31, 2022

Conversation

@SeeminglyScience
Copy link
Collaborator

@SeeminglyScience SeeminglyScience commented Aug 17, 2022
edited
Loading

PR Summary

This relies on PowerShell/vscode-powershell#4139

Adds a simple setting and update handler that adds/removes the references code lens.

PR Context

This gives folks the ability to disable the high perf impact code lens without disabling all other code lenses.

fflaten reacted with thumbs up emoji
public CodeFoldingSettings CodeFolding { get; set; }
public PesterSettings Pester { get; set; }
public string Cwd { get; set; }
public bool EnableReferencesCodeLens { get; set; }
Copy link
Member

@andyleejordan andyleejordan Aug 17, 2022

Choose a reason for hiding this comment

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

LMAO this defaulted to false which caused the unit test CanSendReferencesCodeLensRequestAsync to fail. Should we just default to true for now?

Which, being the existing default behavior, fixes the tests.
@andyleejordan andyleejordan merged commit 62142ee into PowerShell:main Aug 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@andyleejordan andyleejordan andyleejordan approved these changes

Assignees

No one assigned

Labels

Area-CodeLens Issue-Enhancement A feature request (enhancement).

Projects

No open projects
Status: Done

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /