You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Updated all tmLanguage files that contained the string logical.[jt]s that weren't test files, using add nullish coalescing support microsoft/TypeScript-TmLanguage#768 as a reference to update the patterns for keyword.operator.logical.* and ternary-expression.begin
I didn't closely inspect the diff to main.min.json. Would it make sense to un-minify this file & separate fields by newlines, for ease of review in the future?
I had to skip precommit checks because yarn lint-staged crashed with OOM (this is probably due to the updates to the minified js files causing eslint to report tens of thousands of issues). If this is not a problem, would it make sense to exclude these from the precommit hook? (it seems reasonably straightforward to do this according to https://stackoverflow.com/questions/55457364/husky-lint-staged-is-it-possible-to-exclude-ignore-file).
stevenhao
changed the title
make it work
Fix syntax highlighting for ?? operator (nullish coalescing)
Oct 17, 2021
stevenhao
changed the title
Fix syntax highlighting for ?? operator (nullish coalescing)
Fix javascript syntax highlighting for ?? operator (nullish coalescing)
Oct 17, 2021
It seems like my edits to main.min.json may actually be problematic, since the steps I took to regenerate it from scratch may have erased some other changes made in earlier commits. I'm not sure why this is the case, but it seems like a good reason to hold off on merging this PR until it's addressed.
@danilowoz do you happen to have any ideas as to what's going on?
This file contains hidden or 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
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.
What kind of change does this PR introduce?
Fixes a bug
What is the current behavior?
See issue: #5587
What is the new behavior?
JS, TS, JSX, TSX files are syntax highlighted correctly even when the
??operator is used.What steps did you take to test this? This is required before we can merge, make sure to test the flow you've updated.
.js, .jsx, .ts, .tsxfiles??operator, keywords likeconstare not correctly coloredNotes
tmLanguagefiles that contained the stringlogical.[jt]sthat weren't test files, using add nullish coalescing support microsoft/TypeScript-TmLanguage#768 as a reference to update the patterns forkeyword.operator.logical.*andternary-expression.beginmain.min.json(used an online json minifier since the referenced https://github.com/codesandbox/extension-bundle-utils repo is inaccessible to me) and then bump all version numbers (I used repo-wide find/replace)Caveats
npm run update-grammarsto work. It seems the readme in https://github.com/codesandbox/codesandbox-client/tree/master/standalone-packages/vscode-extensions/out/extensions/typescript-basics/syntaxes is out of date, and maybe it has to do withbuildbeing gitignored.main.min.json. Would it make sense to un-minify this file & separate fields by newlines, for ease of review in the future?yarn lint-stagedcrashed with OOM (this is probably due to the updates to the minified js files causing eslint to report tens of thousands of issues). If this is not a problem, would it make sense to exclude these from the precommit hook? (it seems reasonably straightforward to do this according to https://stackoverflow.com/questions/55457364/husky-lint-staged-is-it-possible-to-exclude-ignore-file).Checklist