Skip to content

Autocomplete Hinter Parity#4043

Merged
khanniie merged 7 commits intodevelop-codemirror-v6from
autocomplete-hinter-parity
Apr 2, 2026
Merged

Autocomplete Hinter Parity#4043
khanniie merged 7 commits intodevelop-codemirror-v6from
autocomplete-hinter-parity

Conversation

@raclim
Copy link
Copy Markdown
Collaborator

@raclim raclim commented Mar 27, 2026

Description:

This PR makes progress towards parity with the current autocomplete hinter (styling, context-awareness, ast analyzer) through the following changes:

  • Adding back kind labels and ghost text previews to hinter (update-p5-hinter.js, p5-hinter.js, p5CompletionPreview.js)
  • Refactor contextaware and analyzer utils to adapt to CM6 and reattach them to hinter (contextAwareHinter.js, getContext.js, p5CodeAstAnalyzer.js, stateUtils,js, p5JavaScript.js)
  • Adding in custom keyboard behavior and UI for the hinter dropdown (stateUtils,js, _hints.scss)

Demo:

CM6 Autocomplete Hinter
Screenshot 2026-03-26 at 9 01 51 PM

CM5 Autocomplete Hinter
Screenshot 2026-03-26 at 9 02 02 PM

I have verified that this pull request:

  • has no linting errors (npm run lint)
  • has no test errors (npm run test)
  • has no typecheck errors (npm run typecheck)
  • is from a uniquely-named feature branch and is up to date with the develop branch.
  • is descriptively named and links to an issue number, i.e. Fixes #123
  • meets the standards outlined in the accessibility guidelines

@raclim raclim requested a review from khanniie March 27, 2026 01:11
@raclim
Copy link
Copy Markdown
Collaborator Author

raclim commented Mar 27, 2026

Sorry it's a bit late! I tried to add back in most of the main features in the current hinter—I might've missed a few, but I think it could potentially be added in a follow up?

Copy link
Copy Markdown
Member

@khanniie khanniie left a comment

Choose a reason for hiding this comment

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

Yay!! This is incredible thank you so much!

@khanniie khanniie merged commit b5e6852 into develop-codemirror-v6 Apr 2, 2026
3 checks passed
@release-com
Copy link
Copy Markdown

release-com Bot commented Apr 2, 2026

Release Environments

This Environment is provided by Release, learn more!
To see the status of the Environment click on Environment Status below.

🔧Environment Status : https://app.release.com/public/Processing%20Foundation/env-7c4ec7e2fb

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.

2 participants