Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.
This repository was archived by the owner on Jan 12, 2024. It is now read-only.

Code Completion for files that are not associated with a compilation unit #304

Description

@ScottCarda-MS

Describe the bug

Code Completion in Visual Studio for qs files will not recognize operations in included namespaces like the Intrinsic namespace. This is with editing a qs file that is not part of a project.

To Reproduce

Create a qs file and open the file in Visual Studio. The file should not be in a project. Begin a namespace and open Microsoft.Quantum.Intrinsic namespace. Begin an operation. In the operation try to type 'X' for the X operation.

Auto-complete will suggest PauliX rather than the X operation, and ignoring the suggestions and typing '(' to begin the argument list for the X operation will result in the suggestion for the PauliX replacing the intended operation X call.

Expected behavior

The X operation should be suggested because the opened namespace should be compiled ahead of time. Or the suggestions should not appear for a qs file not in a project. Or the suggestions should not automatically replace what you are typing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: editorExtensions for Visual Studio and Visual Studio CodebugSomething isn't workingduplicateThis issue or pull request already exists

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions