-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
convert LSP Server to Typescript, remove watchman #1138
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1138 +/- ##
=========================================
+ Coverage 53.74% 53.85% +0.1%
=========================================
Files 76 75 -1
Lines 3414 3435 +21
Branches 650 662 +12
=========================================
+ Hits 1835 1850 +15
- Misses 1361 1448 +87
+ Partials 218 137 -81
Continue to review full report at Codecov.
|
480c1c7
to
7e771ed
Compare
@divyenduz would you like to give this a review when you get a chance in January? |
oops forgot to remove the |
@acao Sure, I will do that, is the public interface completely same? Apart from review, I can also integrate this with the GraphQL extension maybe to test. |
@divyenduz indeed! that would be great. that's the goal, the interface should be completely the same, though slightly adopted to use more built in vscode types. |
I plan on keeping the watcher in for this go around, though it's been a lot of trouble. Is the GraphQL extension using the watcher or a vscode extension client watcher? |
It uses the watcher from this project but that has been troublesome, feel free to remove it, the extension can be mended later :) |
I think I will keep it for this PR, to keep it as close to a refactor as possible. going to start creating PRs off of this one |
bb3d56f
to
53a5452
Compare
@divyenduz what do you think? should we just remove it in this PR? it seems that removing it will add its own complexity, so possibly in a successive PR? that way I can make sure the tests here match up also i noticed that i had actually broken The possiblity is that via a configuration option, the deprecated fields could still appear in completion but with the official |
@acao Keeping it in this PR, and getting rid of it in a successive PR sounds like a good plan. |
9469d49
to
8151dee
Compare
8151dee
to
260bd93
Compare
@divyenduz exciting update
|
260bd93
to
8b6a57a
Compare
8b6a57a
to
493b941
Compare
@acao Exciting 🎉 I would like to use this and cut a release in the VSCode extension (after testing it a lot manually), as watchman was a big pain point there. But how do I grab a hold of the alpha? Is there an automatic alpha release? I know that releasing master is a manual process right now but was wondering if I can get a bite of this code in alpha or something? |
I'm going to go ahead and cut an alpha release of everything. thats a good idea, of cutting an alpha automatically |
const namedInputType = getNamedType(typeInfo.inputType as GraphQLType); | ||
if (namedInputType instanceof GraphQLEnumType) { | ||
const values = namedInputType.getValues(); | ||
const values: GraphQLEnumValues[] = namedInputType.getValues(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GraphQLEnumValues[]
(not GraphQLEnumValue[]
) is not defined in this file, and without defining a type here, values
is implied as GraphQLEnumValue[]
from namedInputType.getValues()
. I'm wondering if it's just a mistake or is there any reason to define a type for values
here?
good catch! string | undefined will have to do for now |
0 compile errors! now just tell me what i did wrong 😂
graphql-language-service-server
to typescriptgraphql-language-service
to typescriptgraphql-language-service-interface
with missing deprecated fields in autocomplete? https://github.com/graphql/graphiql/pull/1138/files#diff-564f41e59f16fb85571ebd58e501253eR106@ts-ignore
lines in server still