vendor tsgo

This commit is contained in:
2026-07-09 16:50:43 -04:00
parent c06ea2e5a4
commit 98978e4930
5804 changed files with 1556156 additions and 101 deletions

View File

@@ -0,0 +1,25 @@
package ls
import (
"github.com/microsoft/typescript-go/internal/ls/autoimport"
"github.com/microsoft/typescript-go/internal/ls/lsconv"
"github.com/microsoft/typescript-go/internal/ls/lsutil"
"github.com/microsoft/typescript-go/internal/sourcemap"
)
type Host interface {
UseCaseSensitiveFileNames() bool
ReadFile(path string) (contents string, ok bool)
Converters() *lsconv.Converters
GetPreferences(activeFile string) lsutil.UserPreferences
GetECMALineInfo(fileName string) *sourcemap.ECMALineInfo
AutoImportRegistry() *autoimport.Registry
// Used for module specifier completions.
// ! Do not use for anything else, as this violates the principle that
// the host is a snapshot-in-time.
ReadDirectory(currentDir string, path string, extensions []string, excludes []string, includes []string, depth int) []string
GetDirectories(path string) []string
DirectoryExists(path string) bool
FileExists(path string) bool
}