Files
2026-08-19 20:30:48 +00:00

28 lines
1.1 KiB
Go

package project
import (
"context"
"github.com/microsoft/typescript-go/internal/diagnostics"
"github.com/microsoft/typescript-go/internal/locale"
"github.com/microsoft/typescript-go/internal/lsp/lsproto"
)
type Client interface {
WatchFiles(ctx context.Context, id WatcherID, watchers []*lsproto.FileSystemWatcher) error
UnwatchFiles(ctx context.Context, id WatcherID) error
RegisterContentMapperExtensions(ctx context.Context, extensions []string) error
RefreshDiagnostics(ctx context.Context) error
PublishDiagnostics(ctx context.Context, params *lsproto.PublishDiagnosticsParams) error
RefreshInlayHints(ctx context.Context) error
RefreshCodeLens(ctx context.Context) error
ProgressStart(message *diagnostics.Message, args ...any)
ProgressFinish(message *diagnostics.Message, args ...any)
SendTelemetry(ctx context.Context, telemetry lsproto.TelemetryEvent) error
IsActive() bool
// SetLocale updates the locale used for diagnostic messages.
SetLocale(locale string)
// GetLocale returns the current display locale for diagnostic messages.
GetLocale() locale.Locale
}