Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax highlighting disabled after a certain line in TypeScript React #649

Closed
mjbvz opened this issue Aug 20, 2018 · 3 comments
Closed

Syntax highlighting disabled after a certain line in TypeScript React #649

mjbvz opened this issue Aug 20, 2018 · 3 comments
Assignees

Comments

@mjbvz
Copy link
Contributor

mjbvz commented Aug 20, 2018

From @andraaspar on August 16, 2018 13:3

Issue Type: Bug

  1. New file
  2. Select Language Mode > typescriptreact
  3. Paste code:
function highlightMe() {
    return (
        <Foo>
            <Bar
                fun={() =>
                    <Wicked_Compontent // Highlighting works
                        key={obj[0]} // Highlighting does not work
                    />
                }
            />
            <Quux>
                <em>I'm not highlighted :(</em>
            </Quux>
        </Foo>
    )
}

VS Code version: Code - Insiders 1.27.0-insider (b00ab5288f314f6ef8d82923d89a0555ad15eb06, 2018-08-16T09:38:37.976Z)
OS version: Windows_NT x64 10.0.17134

System Info
Item Value
CPUs Intel(R) Core(TM) i7-5600U CPU @ 2.60GHz (4 x 2594)
GPU Status 2d_canvas: enabled
checker_imaging: disabled_off
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
rasterization: enabled
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
Memory (System) 7.89GB (1.85GB free)
Process Argv C:\Users\aparditka\AppData\Local\Programs\Microsoft VS Code Insiders\Code - Insiders.exe
Screen Reader no
VM 0%
Extensions: none

Copied from original issue: microsoft/vscode#56561

@mjbvz mjbvz self-assigned this Aug 20, 2018
@mjbvz
Copy link
Contributor Author

mjbvz commented Aug 20, 2018

From @andraaspar on August 16, 2018 13:6

I can see three things that trigger this together:

  • the fun attribute with the function
  • the underscore in Wicked_Component
  • the [0]

Deleting some will re-enable highlighting. HTH

@mjbvz
Copy link
Contributor Author

mjbvz commented Aug 20, 2018

Possibly duplicate of #646

@sheetalkamat
Copy link
Member

Duplicate of #648

@sheetalkamat sheetalkamat marked this as a duplicate of #648 Aug 21, 2018
mjbvz added a commit to mjbvz/TypeScript-TmLanguage that referenced this issue Aug 22, 2018
@mjbvz mjbvz closed this as completed in 1004a7b Aug 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants