@@ -50,7 +50,8 @@ The language server accepts initialization options via the LSP `initialize` requ
5050 "version" : " 1.0.0"
5151 }
5252 },
53- "telemetryEnabled" : true
53+ "telemetryEnabled" : true ,
54+ "logLevel" : " info"
5455 }
5556 }
5657}
@@ -133,15 +134,14 @@ if not configs.cfn_lsp then
133134 configs .cfn_lsp = {
134135 default_config = {
135136 cmd = { " node" , " /path/to/install-location/cfn-lsp-server-standalone.js" , " --stdio" },
136- filetypes = { " yaml" , " json " },
137+ filetypes = { " json " , " yaml" , " yml " , " cfn " , " template " },
137138 root_dir = function (fname )
138139 return lspconfig .util .root_pattern (" .git" , " package.json" )(fname ) or vim .fn .getcwd ()
139140 end ,
140141 init_options = {
141142 aws = {
142143 clientInfo = {
143144 extension = { name = " neovim" , version = vim .version ().major .. " ." .. vim .version ().minor },
144- clientId = vim .fn .hostname (),
145145 },
146146 telemetryEnabled = true ,
147147 },
@@ -166,7 +166,7 @@ Verify: Open a YAML/JSON file and run `:LspInfo`
166166``` json
167167{
168168 "languages" : {
169- "cloudformation " : {
169+ "cfn-lsp " : {
170170 "name" : " cloudformation-languageserver" ,
171171 "command" : " node" ,
172172 "args" : [" /path/to/install-location/cfn-lsp-server-standalone.js" , " --stdio" ],
@@ -178,11 +178,12 @@ Verify: Open a YAML/JSON file and run `:LspInfo`
178178 "aws" : {
179179 "clientInfo" : {
180180 "extension" : {
181- "name" : " kiro-cli" ,
181+ "name" : " kiro-cli" ,
182182 "version" : " 1.0.0"
183183 }
184184 },
185- "telemetryEnabled" : true
185+ "telemetryEnabled" : true ,
186+ "logLevel" : " warn"
186187 }
187188 },
188189 "request_timeout_secs" : 60
@@ -193,7 +194,7 @@ Verify: Open a YAML/JSON file and run `:LspInfo`
193194
1941953 . Restart Kiro CLI to load the new configuration, or run ` /code init -f ` to force re-initialization
195196
196- Verify: Run ` /code status ` to confirm the ` cloudformation ` server is initialized.
197+ Verify: Run ` /code status ` to confirm the ` cfn-lsp ` server is initialized.
197198
198199### Sublime Text (LSP package)
199200
@@ -204,13 +205,19 @@ Add to LSP settings:
204205 "clients" : {
205206 "cfn-lsp" : {
206207 "enabled" : true ,
207- "command" : [" node" , " /path/to/install-location/cfn-lsp-server-standalone.js" , " --stdio" ],
208+ "command" : [
209+ " node" ,
210+ " /path/to/install-location/cfn-lsp-server-standalone.js" ,
211+ " --stdio"
212+ ],
208213 "selector" : " source.yaml | source.json" ,
209214 "initializationOptions" : {
210215 "aws" : {
211216 "clientInfo" : {
212- "extension" : { "name" : " sublime" , "version" : " 4.0" },
213- "clientId" : " sublime-client"
217+ "extension" : {
218+ "name" : " sublime" ,
219+ "version" : " 4.0"
220+ }
214221 },
215222 "telemetryEnabled" : true
216223 }
0 commit comments