Skip to content

Do Not Return Completions When Writing a Property Name #15937

@mjbvz

Description

@mjbvz

From: microsoft/vscode#26857

TypeScript Version: 2.3.3-insiders

Code

let something;
class Test {
	public some|
}

Trigger a completions request at |

Expected behavior:
Because we are writing a property definition, no completions should be returned

Actual behavior:
All the normal completions are returned:

[Trace  - 12:56:17 PM] Sending request: completions (69). Response expected: yes. Current queue length: 0
Arguments: {
    "file": "/Users/matb/projects/sand/lot.ts",
    "line": 3,
    "offset": 13
}
[Trace  - 12:56:17 PM] Response received: completions (69). Request took 14 ms. Success: true 
Result: [
    {
        "name": "AAGUID",
        "kind": "type",
        "kindModifiers": "declare",
        "sortText": "0"
    },
    {
        "name": "ANGLE_instanced_arrays",
        "kind": "interface",
        "kindModifiers": "declare",
        "sortText": "0"
    },
    {
        "name": "AbstractWorker",
        "kind": "interface",
        "kindModifiers": "declare",
        "sortText": "0"
    },
    ...

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptVS Code TrackedThere is a VS Code equivalent to this issue

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions