graphql / graphql/graphiql

Commenting out code in JavaScript causes incorrect syntax display of JavaScript

Open
#2,339 6 comments 0 reactions 0 assignees View on GitHub
bug grammar needs-reproduction vscode-graphql vscode-graphql-syntax
Dominant language
TypeScript
Stars
16.9k
Forks
1.9k
Avg merge
22h 45m
Merged PRs (30d)
70

Description

## Actual Behavior
Commenting out code in JavaScript causes incorrect syntax display of JavaScript
## Expected Behavior
Show correct code
## Steps to Reproduce the Problem Or Description
Type in line shown in animated gif and comment out (may only happen in server.js when running with node, I found in React app with nextjs did not see error)
## Specifications

- GraphQL for VSCode Extension Version:
- VSCode Version: 1.50.0-insider
- OS Name: mac osx
- OS Version:

![bug](https://user-images.githubusercontent.com/241170/94279397-e547eb00-ff00-11ea-951a-d232f9cfe862.gif)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.