Skip to content

No autocomplete for extern C type definitions #3131

Closed
@chinedufn

Description

@chinedufn

Environment

  • Intellij-Rust plugin version:

Version: 0.2.0.2492-182-nightly (87)

  • Rust toolchain version:

rustc 1.32.0-nightly (14997d56a 2018-12-05)

  • IDE name and version:

PhpStorm 2018.2.4

  • Operating system:

macOS Mojave 10.14

Problem description

There is no auto complete for the web-sys crate.

Steps to reproduce

  1. Add web-sys as a dependency
[dependencies.web-sys]
version = "=0.3.6"
features = [
  'Document',
  'Element',
  'HtmlCanvasElement',
  'HtmlElement',
  'Node',
  'WebGlBuffer',
  'WebGlProgram',
  'WebGlRenderingContext',
  'WebGlShader',
  'WebGlVertexArrayObject',
  'WebGlUniformLocation',
  'Window',
  'console',
]
  1. Type web_sys:: and the only autocomplete suggestion will be web_sys::window()

web_sys uses a ton of code generation and extern blocks, not sure if that's related here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    improvementsubsystem::code insightGeneral label for issues related to code understanding: highlighting, completion, annotation, etc.subsystem::wasmIssues related to WebAssembly support

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions