I added "gender" (an IANA registered JWT claim) to my JWT payload schema and found Copilot will not provide any suggestions after that. Not on the same line, nor in the rest of the file. After removing the word gender entirely, it works again.
They just described almost identical behaviour but with an isolated test case. Yeah there’s no video or whatever but it does support the original diagnosis.
export const CLAIM_PAYLOAD_SCHEMA = Type.Object({
"iss": Type.Literal("my-app"),
"exp": Type.Integer(),
"sub": Type.String(),
"name": Type.String(),
"priv": Type.Integer({minimum:0, maximum: Privileges.All}),
"gender": Type. // No completion is available.
Additionally, I get "No completion is available." from copilot.el on every line after that one, but completing on lines before it does work. When removing "gender", it works again, e.g. suggesting `"iat": Type.Integer()` for that line. I don't actually plan on using "gender" in my tokens, but it is a bit frustrating that an arbitrary word can opaquely disable Copilot for the rest of the file.Then you do it and report back when he's wrong.