Skip to content

JSDoc Crash #34164

@NightfallAlicorn

Description

@NightfallAlicorn
  • VSCode Version: Code 1.16.0 (787b31c, 2017-09-06T16:27:49.891Z)
  • OS Version: Windows_NT x64 10.0.15063
  • Extensions:
Extension Author (truncated) Version
vscode-standardjs che 1.1.8
code-spell-checker str 1.3.9
vjass vas 0.0.8
const { EventEmitter } = require('events')

module.exports = class TelegramBot extends EventEmitter {
  /**
   * Create a Telegram bot.
   * @param {string} token - Bot token provided by BotFather.
   * @param {Object} [settings] - Optional settings.
   * @param {boolean} [settings.debug - Print getUpdate results in console.
   * @param {number} settings.number - Interval for each update check.
   */
  constructor (token, settings) {
    super()
  }
}

I'm currently following this guide on how to add optional JSDoc param with default value. http://usejsdoc.org/tags-param.html#parameters-with-properties


Steps to Reproduce:

  1. Place the cursor at the end of "* @param {boolean} [settings.debug".
  2. Then type =. Visual Studio Code hangs for like 10 seconds and then prompts to keep waiting or reopen the window.

Reproduces without extensions: Yes

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugfreeze-slow-crash-leakVS Code crashing, performance, freeze and memory leak issuesgrammarSyntax highlighting grammarjavascriptJavaScript support issuesupstreamIssue identified as 'upstream' component related (exists outside of VS Code)verifiedVerification succeeded

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions