NewHandler creates a new LSP request handler. This constructor initializes the handler with a reference to the server and sets up the SQL keywords database for hover documentation and completion. The handler uses DialectGeneric for maximum SQL compatibility across PostgreSQL, MySQL, SQL Server, Or
(server *Server)
| 130 | // |
| 131 | // Returns a fully initialized Handler ready to process LSP requests. |
| 132 | func NewHandler(server *Server) *Handler { |
| 133 | return &Handler{ |
| 134 | server: server, |
| 135 | keywords: keywords.New(keywords.DialectGeneric, true), |
| 136 | debounceTimers: make(map[string]*time.Timer), |
| 137 | } |
| 138 | } |
| 139 | |
| 140 | // HandleRequest processes an LSP request and returns a result |
| 141 | func (h *Handler) HandleRequest(method string, params json.RawMessage) (interface{}, error) { |