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

[CLOSED] Expose mode and getTokenAt() on editor #799

Open
core-ai-bot opened this issue Aug 29, 2021 · 5 comments
Open

[CLOSED] Expose mode and getTokenAt() on editor #799

core-ai-bot opened this issue Aug 29, 2021 · 5 comments

Comments

@core-ai-bot
Copy link
Member

Issue by gruehle
Friday May 04, 2012 at 00:26 GMT
Originally opened as adobe/brackets#804


This is related to #803

While writing the "Inline Editor for JavaScript functions" and "Inline Image Viewer" extensions, I needed to access the "private" _codeMirror property in order to get the current mode (using getOption("mode")) and call the getTokenAt() function.

We should either expose these on Editor, or consider just making the _codeMirror property public.

@core-ai-bot
Copy link
Member Author

Comment by njx
Tuesday May 08, 2012 at 18:11 GMT


To@peterflynn and@gruehle to talk about along with #803.

@core-ai-bot
Copy link
Member Author

Comment by peterflynn
Thursday May 24, 2012 at 01:55 GMT


Pull #923 fixed half of this by adding an Editor.getModeForSelection() API. For the remaining half (getTokenAt()) we're still not really sure how much (if any) we should try to abstract away the CodeMirror tokenizer APIs.

@core-ai-bot
Copy link
Member Author

Comment by peterflynn
Thursday Mar 28, 2013 at 23:41 GMT


The existing TokenUtils abstracts away getTokenAt() reasonably well, and the new 'token stream' I'm working on will do so even more cleanly. After that we may be able to close this.

@core-ai-bot
Copy link
Member Author

Comment by ficristo
Thursday Dec 31, 2015 at 13:20 GMT


Is there still something to do here? Has "token stream" landed?

@core-ai-bot
Copy link
Member Author

Comment by MarcelGerber
Friday Feb 19, 2016 at 23:21 GMT


I guess this can be closed now, as we've managed to achieve everything we need from our TokenUtils implementation.
Thanks for noticing,@ficristo (and yeah, it's been some time, I'm catching up with my mail again ;) )

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

No branches or pull requests

1 participant