Skip to content

Commit

Permalink
fix(lsp): relay.config.json
Browse files Browse the repository at this point in the history
  • Loading branch information
willruggiano committed Aug 3, 2024
1 parent 8041d4e commit 51ce667
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion plugins/lsp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,16 @@ return function()
cmd = { "vscode-json-languageserver", "--stdio" },
settings = {
json = {
schemas = require("schemastore").json.schemas(),
schemas = require("schemastore").json.schemas {
extra = {
{
description = "Configuration file for relay-compiler",
fileMatch = { "relay.config.json" },
name = "relay.config.json",
url = "https://raw.githubusercontent.com/facebook/relay/main/compiler/relay-compiler-config-schema.json",
},
},
},
validate = { enable = true },
},
},
Expand Down

0 comments on commit 51ce667

Please sign in to comment.