mirror of
https://github.com/Myzel394/config-lsp.git
synced 2025-06-18 23:15:26 +02:00
20 lines
379 B
Go
20 lines
379 B
Go
package diagnostics
|
|
|
|
import (
|
|
"config-lsp/common"
|
|
"fmt"
|
|
|
|
protocol "github.com/tliron/glsp/protocol_3_16"
|
|
)
|
|
|
|
func GenerateUnknownOption(
|
|
diagnosticRange protocol.Range,
|
|
propertyName string,
|
|
) protocol.Diagnostic {
|
|
return protocol.Diagnostic{
|
|
Range: diagnosticRange,
|
|
Message: fmt.Sprintf("Unknown property: %s", propertyName),
|
|
Severity: &common.SeverityError,
|
|
}
|
|
}
|