graphql / vscode-graphql

MIGRATED: VSCode GraphQL extension (autocompletion, go-to definition, syntax highlighting)
https://marketplace.visualstudio.com/items?itemName=Prisma.vscode-graphql
MIT License
555 stars 71 forks source link

Output window stealing focus from terminal #149

Closed isaiahtaylorhh closed 4 years ago

isaiahtaylorhh commented 4 years ago

Actual Behavior

Every few seconds, the output window steals focus from the terminal.

Expected Behavior

The output window does not steal focus from the terminal.

Steps to Reproduce the Problem Or Description

Install this extension without watchman. When in a .graphql file, the output window will grab focus every few seconds. There needs to be a way to disable these errors if you only want syntax highlighting out of this extension and don't want to install watchman.

Specifications

Logs Of TS Server || GraphQL Language Service

(node:29897) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 226)
[Error - 10:44:29 AM] Request textDocument/hover failed.
  Message: Request textDocument/hover failed with message: No config found for uri: file:///[redacted]/schema.graphql
  Code: -32603 
[Error - 10:44:30 AM] Request textDocument/hover failed.
  Message: Request textDocument/hover failed with message: No config found for uri: file:///[redacted]/schema.graphql
  Code: -32603 
isaiahtaylorhh commented 4 years ago

See https://github.com/Microsoft/vscode/issues/46343. This should be handled at the extension level.

isaiahtaylorhh commented 4 years ago

See https://github.com/Dart-Code/Dart-Code/issues/2280 for how the Flutter extension solved a similar problem. Thanks!

Bulletninja commented 4 years ago

I've got the same issue with "prisma.vscode-graphql"

Huetarded commented 4 years ago

I've got the same issue with "prisma.vscode-graphql"

Same. This issue is killing me! Please tell me there is some kind of fix for this?

acao commented 4 years ago

oh, yikes!

I've been developing the extension with the output window open...

acao commented 4 years ago

apologies for the delay on this critical one liner!

a new patch release of prisma.vscode-graphql should now be available with the fix!

i will add this fix to the PR used for the insiders release as well.

enjoy

Huetarded commented 4 years ago

@acao Thank you, thank you, thank you! Amazing response and turn-around time!