Skip to content

[trivial] Add example sources to docstrings in cursorEvents.ts #241250

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

alexander-zw
Copy link

I know the guidelines say to link a Github issue, but this is such a minor change I think it's not necessary.

Adding these examples will help a lot for devs to use the code more easily, without having to test it to see what is returned.

I didn't definitively say these are the only options to keep the possibility of adding more sources in the future to guard against the docs becoming outdated.

These docstrings will be shown on hover in an IDE and on the docs website, e.g. https://microsoft.github.io/monaco-editor/typedoc/interfaces/editor.ICursorPositionChangedEvent.html#source.

How to test: Hover over the attribute in an IDE like VSCode with the TypeScript extension to see the changes.

@alexander-zw alexander-zw changed the title Add example sources to docstrings in cursorEvents.ts [trivial] Add example sources to docstrings in cursorEvents.ts Feb 19, 2025
Copy link

@Mannyman77 Mannyman77 left a comment

Choose a reason for hiding this comment

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

access denied

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.

3 participants