graphql / graphql/graphiql

Cannot autocomplete types in the same file

Open
#2,301 1 comment 4 reactions 0 assignees View on GitHub
bug lsp-server
Dominant language
TypeScript
Stars
16.9k
Forks
1.9k
Avg merge
22h 45m
Merged PRs (30d)
70

Description

## Actual Behavior

![Screen Capture_select-area_20201020174721](https://user-images.githubusercontent.com/14249439/96570456-f9fb8100-12fc-11eb-85c4-aa92bab5c654.gif)

## Expected Behavior

I expect to show the suggestion `User` after typing `user: U`, but it only shows the snippet.

## Specifications

- GraphQL for VSCode Extension Version: v0.3.10
- VSCode Version: 1.50.1
- OS Name: arch linux
- OS Version: 5.8.12-arch1-1 graphql/vscode-graphql#1 SMP PREEMPT Sat, 26 Sep 2020 21:42:58 +0000 x86_64 GNU/Linux

## Logs Of TS Server || GraphQL Language Service
```
10/20/2020, 5:49:24 PM [4] (pid: 39049) graphql-language-service-usage-logs: {"type":"usage","messageType":"textDocument/didChange","projectName":"default","fileName":"file:///home/yuanjun/CodeBase/learn_graphql/schema.graphql"}

undefined
10/20/2020, 5:49:24 PM [4] (pid: 39049) graphql-language-service-usage-logs: {"type":"usage","messageType":"textDocument/completion","projectName":"default","fileName":"file:///home/yuanjun/CodeBase/learn_graphql/schema.graphql"}

undefined
10/20/2020, 5:49:24 PM [4] (pid: 39049) graphql-language-service-usage-logs: {"type":"usage","messageType":"textDocument/completion","projectName":"default","fileName":"file:///home/yuanjun/CodeBase/learn_graphql/schema.graphql"}

undefined
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.