-
Notifications
You must be signed in to change notification settings - Fork 7.6k
StatusBar.addIndicator() doesn't actually add the indicator #5682
Comments
@larz0 - do you know why you removed this? |
@njx I think it was because it was inserting something else that's not supposed to be there. I can't remember what though. Could it be related to JSLint indicator? |
@njx I put it back in on this branch https://github.com/adobe/brackets/tree/larz/issue-5682 and there are no visible changes. |
Assigning this issue to myself to fix, I need resolved so I can address issue #5078. |
@njx, question for you. What repro steps are we using to test it and make sure I fixed it? This is the second issue I have run into where I need to create test steps for a Brackets module and I have no idea how to do it. Do you guys have some way to conduct a headless test on some specific piece of the Brackets API? |
Edited the description to include repro steps. |
@njx and @larz0 , this problem is caused by what @njx mentioned above: the But I also discovered the reason why @larz0 pulled this code in the first place. This is what the status bar indicators look like normally: This is what the status bar indicators look like after inserting the prepend line again: The problem is We must have some special code that sets the JSLint indicator position manually right now. Reactivating the default behavior of My question is, how do you want me to fix this problem? What is the expected behavior? If the JSLint indicator is to remain in the middle, I may have to add relative positioning to the |
Sorry, forgot to follow up. A few thoughts:
|
FBNC back to @njx |
Haven't tried it myself but the code looks sensible. Closing. |
@lkcampbell @redmunds Do you think this is clean enough to be an official API for use by extensions now? If so, would one of you mind adding it to the release notes as a new API? |
Originally, when
StatusBar.addIndicator()
was implemented, it would actually add the indicator into the status bar. However, in d7bce2c, that line was removed, which is a breaking API change. It's not clear why it was removed.(Edited 12/14/2013 by @lkcampbell to add repro steps)
OS Version: Mac OSX Mavericks
Brackets Version: Sprint 34
Repro Steps:
Open Brackets source code, then open Dev Tools to Console and paste the following code snippet into the Console:
Look at the right side of the editor status bar.
In the Dev Tools, Elements tab, look at the contents of status-indicators div tag.
Observed Result:
The FOO div does not show up in the status bar and is not in the status-indicators div tag
Expected Result:
The FOO div shows up in the status bar and is in the status-indicators div tag
The text was updated successfully, but these errors were encountered: