-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Conversation
*/ | ||
Document.prototype._checkAssociatedEditorForPane = function (paneId) { | ||
var editorCount, editorForPane; | ||
for (editorCount = 0; editorCount < this._associatedFullEditors; editorCount++) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing length
there: editorCount < this._associatedFullEditors.length
🔥
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry. Issue with copy paste from another repo. Fixed now.
I was trying the STR in #12396, but with this PR when i click on the filename of the inline editor it doesn't open the file. |
@ficristo Thanks a lot for actually trying the fix 👍 I need one clarification regarding the behavior you have mentioned. I am guessing that the inline editor and the host editor in your case is pointing to the same document. If that's the case then, even without this fix the behavior is same in master. Can you please confirm? |
@swmitra I've opened the SpecRunnerUtils.js and put the cursor on 406 (this on current master). |
Thanks @ficristo. It's clear now, I will fix it tonight. |
@ficristo @marcelgerber Can you please try with the recent changes? |
Now when I click on the inline editor I have this error: |
@ficristo It was getting caused by a missing check in _showEditor(). I had put it back now. URL Code hint test cases are passing as well. Can you please check it once more (hopefully for the last time 😄 ). |
There is still an error on |
*/ | ||
Document.prototype._checkAssociatedEditorForPane = function (paneId) { | ||
var editorCount, editorForPane; | ||
for (editorCount = 0; editorCount < this._associatedFullEditors.length; editorCount++) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
++editorCount
Changing `editorCount++` to `++editorCount`
@swmitra I have taken liberty in changing |
Since travis is not able to run because of API limitation, I have manually run Thanks @swmitra 👍 And thanks to @marcelgerber @ficristo for helping this PR come to light. |
Thanks a lot @nethip @marcelgerber @ficristo for helping us resolving the issue 👍 |
This PR provides a fix for the document refCount issue reported as part of #12396. This resolves the URL Code hints unit test failures barring the one which is to deal with '@import'.
CC @marcelgerber @petetnt @nethip @abose for review.