This repository has been archived by the owner on Sep 6, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Continued Language API work #2980
Merged
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
6139528
When defining a language, setting a mode is now required. In addition…
DennisKehrig 3dceb96
Fix: language IDs were documented as foo_bar, but validated as foo.bar
DennisKehrig 38a015c
Normalize file extensions by also removing leading dots if necessary
DennisKehrig 37be3d9
Use CollectionUtils instead of $.each
DennisKehrig 8793b2a
Language now encapsulates its properties and makes them accessible ex…
DennisKehrig b582655
Documentation cleanup
DennisKehrig 2eaf956
Merge remote-tracking branch 'origin/master' into dk/language-api
jasonsanjose fc829e9
code review comments pull #2980
jasonsanjose 8a04dc1
Merge branch 'master' into jasonsanjose-dk/language-api
jasonsanjose 513e4e0
fixed mode handling for text/plain and validation of mode
jasonsanjose ce7fd4b
fix language unit tests
jasonsanjose 53e4686
code review comments part 1
jasonsanjose 90cb5c5
code review comments part 2. Track _pendingLanguages while loading. U…
jasonsanjose 3a4ca20
update language id validation
jasonsanjose b42ac95
update defineLanguage jsdoc
jasonsanjose 6fce307
wait for LanguageManager to load before finish init
jasonsanjose File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Of course thinking about it more, I realized there's a case this doesn't fix :-P The race condition still exists for any new modes added by extensions -- we begin project loading (including opening editors) after the extension itself has loaded but potentially before its mode has... So we should probably still leave #2962 open at a lower priority to try to come up with a more robust fix.
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.
How about I close #2962 and file a new bug specifically for the extension use case?