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

+new Date cause highlighting failure #60774

Closed
hezedu opened this issue Oct 12, 2018 · 4 comments
Closed

+new Date cause highlighting failure #60774

hezedu opened this issue Oct 12, 2018 · 4 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug extensions Issues concerning extensions grammar Syntax highlighting grammar javascript JavaScript support issues upstream Issue identified as 'upstream' component related (exists outside of VS Code) verified Verification succeeded
Milestone

Comments

@hezedu
Copy link

hezedu commented Oct 12, 2018

  • VSCode Version:1.28
  • OS Version:MacOS 10.13.6

Steps to Reproduce:

Does this issue occur when all extensions are disabled?: Yes

@vscodebot vscodebot bot added the extensions Issues concerning extensions label Oct 12, 2018
@egamma egamma added the info-needed Issue requires more information from poster label Oct 12, 2018
@egamma
Copy link
Member

egamma commented Oct 12, 2018

What language, what code snippet? How can we reproduce?

@hezedu
Copy link
Author

hezedu commented Oct 12, 2018

image

@hezedu
Copy link
Author

hezedu commented Oct 12, 2018

test code

let clickedAt = +new Date;
let backup_url = 'some';
setTimeout(() => {
  if (+new Date - clickedAt < 2000) {
    window.location = backup_url;
  }
}, 1500);
var abc = 'abc';
function abc2(){

}
// I don't know why anyone use +new Date. But I did encounter it.

@egamma egamma removed the info-needed Issue requires more information from poster label Oct 12, 2018
@mjbvz
Copy link
Collaborator

mjbvz commented Oct 12, 2018

Thanks. Opened microsoft/TypeScript-TmLanguage#673 to track this upstream

@mjbvz mjbvz closed this as completed Oct 12, 2018
@mjbvz mjbvz added javascript JavaScript support issues grammar Syntax highlighting grammar upstream Issue identified as 'upstream' component related (exists outside of VS Code) labels Oct 12, 2018
@mjbvz mjbvz added the bug Issue identified by VS Code Team member as probable bug label Oct 30, 2018
@mjbvz mjbvz added this to the October 2018 milestone Oct 30, 2018
@rebornix rebornix added the verified Verification succeeded label Nov 1, 2018
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 26, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug extensions Issues concerning extensions grammar Syntax highlighting grammar javascript JavaScript support issues upstream Issue identified as 'upstream' component related (exists outside of VS Code) verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

4 participants