-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Added a check of Untitled doc in _getNormalizedFilename and _getDenormalizedFilename #13201
Conversation
Since this code will be refactored probably it is better to add a test. Overall this seems ok to me. |
@ficristo I will definitely add test after the release activities. Also will try to refactor the code as well. |
You can go ahead and merge for me. |
@saurabh95 I am fine with the changes to unblock us for the release now, but would like to see some tests being added in general for InMemory document use cases (not just JS code hints). Also note that, eventually we have to refactor and migrate this code to Tern on node as well so that we can merge that PR on master after brackets 1.9 release. We may need more changes to leverage on new features/APIs added in Tern. |
Merging. |
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.
LGTM
@petetnt We both were typing together I guess 😄 |
@ficristo Let him do cherrypick after merging this to master, to keep master and release even for this module 👍 |
Actually in the normalize path earlier there was no check of Untitled doc and it was appending the project dir to the Untitled path, so I added a check for Untitled doc before appending the project root.
Due to this JS codehints were not working for Untitled documents on changing the mode to JS.
All JavaScriptCodeHints tests are passing