Skip to content

No aria suggestions for on react element when suggestions are manually triggered #39530

@mjbvz

Description

@mjbvz

From microsoft/vscode#97220
TypeScript Version: 4.0.0-dev.20200708

Search Terms:

  • jsx
  • react
  • aria
  • suggest / suggestions / completions

Code
For the TS

import * as React from 'react';

export const a = (<div className="fdsa"></div>)

After the classname attribute:

  1. Manually trigger suggestions.
  2. Type aria

Expected behavior:
Suggestions for aria show up

Actual behavior:
No suggestions.

In my testing, the suggestions do show up in a few different cases:

  1. When you manually trigger suggestions before className
  2. When you start typing to trigger suggestions

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptDomain: Completion ListsThe issue relates to showing completion lists in an editorDomain: JSX/TSXRelates to the JSX parser and emitterEffort: ModerateRequires experience with the TypeScript codebase, but feasible. Harder than "Effort: Casual".Fix AvailableA PR has been opened for this issueHelp WantedYou can do this

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions