iamcco / iamcco/coc-angular

Completion doesn't show after some word preceded by *, (, [

Open
#33 1 comment 0 reactions 0 assignees View on GitHub
help wanted
Dominant language
TypeScript
Stars
144
Forks
20
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
For example the attribute completion only shows after insert [, but if i'm already inside square brackets the completion doesn't show or if i delete some characters and i want to trigger completion

**To Reproduce**
Steps to reproduce the behavior:
1. Inserts [ goes to normal mode and returns to insert mode and try to trigger completion

**Expected behavior**
Completion should appear even after [, (, * has been inserted.

**Screenshots**
![image](https://user-images.githubusercontent.com/36998912/116617032-663de980-a90b-11eb-8698-4a4f875238be.png)
![image](https://user-images.githubusercontent.com/36998912/116616948-460e2a80-a90b-11eb-94da-fb1169518ac9.png)

**Desktop (please complete the following information):**
- OS: macOS

Log:

```
[Trace - 4:59:10 PM] Sending request 'textDocument/completion - (2)'.
Params: {
"textDocument": {
"uri": "file:///Users/edwar/Documents/taller/estrella-cliente/src/app/components/deliveries/repartidores/repartidores.component.html"
},
"position": {
"line": 7,
"character": 7
},
"context": {
"triggerKind": 1
}
}

[Trace - 4:59:10 PM] Received response 'textDocument/completion - (2)' in 8ms.
Result: [
{
"label": "class",
"kind": 10,
"detail": "attribute",
"sortText": "class",
"textEdit": {
"range": {
"start": {
"line": 7,
"character": 5
},
"end": {
"line": 7,
"character": 7
}
},
"newText": "class"
},
"data": {
"kind": "ngCompletionOriginData",
"filePath": "/Users/edwar/Documents/taller/estrella-cliente/src/app/components/deliveries/repartidores/repartidores.component.html",
"position": {
"line": 7,
"character": 7
}
}
},
{
"label": "ngClass",
"kind": 10,
"detail": "attribute",
"sortText": "ngClass",
"textEdit": {
"range": {
"start": {
"line": 7,
"character": 5
},
"end": {
"line": 7,
"character": 7
}
},
"newText": "ngClass"
},
"data": {
"kind": "ngCompletionOriginData",
"filePath": "/Users/edwar/Documents/taller/estrella-cliente/src/app/components/deliveries/repartidores/repartidores.component.html",
"position": {
"line": 7,
"character": 7
}
}
},

```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.