Extend TextEditorLineNumbersStyle with Interval #198787
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
TextEditorLineNumbersStyle
in both extHostTypes.ts and vscode.d.ts with anInterval
member.TextEditorLineNumbersStyle.Interval
and (the already extant)RenderLineNumbersType.Interval
.MainThreadTextEditor.setConfiguration
to handle{ ..., lineNumbers: 'interval' }
.This should allow extensions to read from/write to
vscode.window.activeTextEditor.options.lineNumbers
to detect and apply theInterval
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.