elastic / elastic/esql-idea-plugin

Make sure completions work even after an operator / parentheses

Open
#8 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
Java
Stars
8
Forks
2
PR merge metrics
No merged PRs in 30d

Description

For example for a query that starts a function parentheses:

```sql
FROM index | WHERE TRIM(
^
```

we should be getting completions that preserve the closing parenthesis.

For queries like:

```sql
FROM index
| EVAL g = 1, a=1+
^
```

we should get and complete g even if we haven't typed a space after the +

## How

This might involve building either a collection of all symbols the parser can have (look at https://github.com/neo4j/cypher-language-support/blob/d5191e5a140d0f8153d5bd343db96c440e083b63/packages/language-support/src/lexerSymbols.ts for inspiration) and maybe considering whether the caret for the completion was moved back or not.

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.