stackus / goht-vscode

GoHT VSCode Extension

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GoHT for VSCode

GoHT

This extension provides IDE features and syntax highlighting for the .goht extension from GoHT. It also provides language server support for both GoHT and Go.

Features

  • Syntax Highlighting
  • Language Server Support for GoHT and Go

Requirements

LSPs

GoPls: You should install the Go extension into VSCode which will install this LSP as well. You may also manually install it by running:

go install golang.org/x/tools/gopls@latest

GoHT: You should install the latest version of GoHT which will include the LSP. You may manually install it by running:

go install github.com/stackus/goht/cmd/goht@latest

Note

Both LSPs must be in your PATH for this extension to work. You may need to include the ~/go/bin directory in your PATH if it is not already there.

Configuration

There is no required configuration for this extension. However, it does provide some settings to help with debugging problems.

Known Issues

  • Some syntax highlighting is not quite correct.
  • Odd "textDocument/codeAction" error on startup from time to time.

About

GoHT VSCode Extension

License:MIT License


Languages

Language:TypeScript 98.5%Language:JavaScript 1.5%