Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 738 Bytes

editor-integration.md

File metadata and controls

23 lines (17 loc) · 738 Bytes

Editor Integration

TFLint can also act as a Language Server to integrate with various editors. This server conforms to Language Server Protocol v3.14.0 and can be used with an editor that implements any client. The following is an example in VS Code:

demo

This server can be started with the --langserver option:

$ tflint --langserver
14:21:51 cli.go:185: Starting language server...

Currently, it only supports diagnostics and subscribes the following methods:

  • initialize
  • initialized
  • shutdown
  • exit
  • textDocument/didOpen
  • textDocument/didClose
  • textDocument/didChange
  • workspace/didChangeWatchedFiles