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

Extend TextEditorLineNumbersStyle with Interval #198787

Merged
merged 1 commit into from Jan 31, 2024

Conversation

pyrrho
Copy link
Contributor

@pyrrho pyrrho commented Nov 21, 2023

  • Extend TextEditorLineNumbersStyle in both extHostTypes.ts and vscode.d.ts with an Interval member.
  • Update extHostTypeConverters.ts to convert between TextEditorLineNumbersStyle.Interval and (the already extant) RenderLineNumbersType.Interval.
  • Update MainThreadTextEditor.setConfiguration to handle { ..., lineNumbers: 'interval' }.

This should allow extensions to read from/write to vscode.window.activeTextEditor.options.lineNumbers to detect and apply the Interval configuration. This PR was tested by starting a debugging session, and modifying the above field in the Debug Console.

This PR may be relevant to #85471, though that issue is closed, and was locked in January of 2022. (It says there are three comments on there, but I'm not seeing them. I'm guessing they added after the github-actions bot locked the issue and community members can't access them?)

I'd be happy to open a new issue to link this PR to if that would be helpful to the process.

@pyrrho
Copy link
Contributor Author

pyrrho commented Nov 21, 2023

@microsoft-github-policy-service agree

@rebornix
Copy link
Member

@hediet the code looks reasonable to me, I'll leave it to you to decide if we want to take the API change in.

@rebornix rebornix removed their assignment Jan 29, 2024
@hediet hediet enabled auto-merge (squash) January 31, 2024 09:43
@hediet hediet added this to the February 2024 milestone Jan 31, 2024
@hediet hediet force-pushed the TextEditorLineNumbersStyle_Interval branch from d674fad to 901e9d7 Compare January 31, 2024 10:50
@hediet hediet merged commit 3f7e442 into microsoft:main Jan 31, 2024
6 checks passed
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.

None yet

7 participants