Skip to content

Strange parser behavior: No completions before property whose value is `` #28107

Closed

Description

TypeScript Version: 3.2.0-dev.20181023

Code

/// <reference path='fourslash.ts' />

////f({
////    a/**/
////    xyz: ``,
////});
////declare function f(options: { abc?: number, xyz?: string }): void;

verify.completions({
    marker: "",
    exact: ["abc"],
});

Expected behavior:

Test passes.

Actual behavior:

No completions.
The test passes if I change `` to "".

Activity

  1. ghost added
    BugA bug in TypeScript
    on Oct 24, 2018
  2. ghost added
    Domain: LS: Completion ListsThe issue relates to showing completion lists in an editor
    on Oct 24, 2018
  3. ghost added
    FixedA PR has been merged for this issue
    on Oct 24, 2018
  4. ghost closed this as completedin #28121on Oct 26, 2018
  5. locked as resolved and limited conversation to collaborators on Oct 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptDomain: LS: Completion ListsThe issue relates to showing completion lists in an editorFixedA PR has been merged for this issue

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions