-
Notifications
You must be signed in to change notification settings - Fork 0
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] Revert "Ensures fold-gutter is always inserted after the line-number gutter (if it exists)" #10845
Comments
Comment by zaggino I think something like this should be sufficient:
first two methods should probably live on EditorManager, the second two on Editor
|
Comment by thehogfather
Only thing I would say was missing is an ability to list current gutters and their priorities. So: .getGutters():Array<{name: string, priority: number}> This would enable extension authors to avoid/address any potential conflicts with existing gutters names and priorities. Both name and priorities should be unique - possibly throw errors on conflict. Also is there any reason why all methods shouldn't be in |
Comment by zaggino
The reason I'd put registerGutter, unregisterGutter, getRegisteredGutters on the EditorManager and not the Editor itself, it's that I'm able to just call But... if you want to make it simply, they can all live on the editor. About the conflicts, I think we should hardcode priorities for inbuilt default gutters (line numbers, code folding) and console warning when someone else tries to use them. Besides that, let extensions set which priority they want. For example all my linting extensions would probably use the same priority, whatever the number would it be. |
Comment by zaggino Merging this, |
Comment by thehogfather
|
Comment by zaggino Thanks |
Issue by petetnt
Sunday Aug 28, 2016 at 15:32 GMT
Originally opened as adobe/brackets#12727
Reverts adobe/brackets#12673
The PR had some issues regarding scroll states in some cases which I didn't catch/that didn't occur to myself.
Let's revert the PR and think of nicer API instead.
Reopen #11577 #10864 and #12725 when this gets merged.
/cc
@
zagginopetetnt included the following code: https://github.com/adobe/brackets/pull/12727/commits
The text was updated successfully, but these errors were encountered: