Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/add-module-shim.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@effect/tsgo": patch
---

Expose additional TypeScript-Go shims for module resolution and language service quick info documentation.
1 change: 1 addition & 0 deletions _tools/gen_shims/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ func main() {
"ls/lsutil",
"lsp",
"lsp/lsproto",
"module",
"modulespecifiers",
"packagejson",
"parser",
Expand Down
2 changes: 2 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ replace (
github.com/microsoft/typescript-go/shim/ls/lsutil => ./shim/ls/lsutil
github.com/microsoft/typescript-go/shim/lsp => ./shim/lsp
github.com/microsoft/typescript-go/shim/lsp/lsproto => ./shim/lsp/lsproto
github.com/microsoft/typescript-go/shim/module => ./shim/module
github.com/microsoft/typescript-go/shim/modulespecifiers => ./shim/modulespecifiers
github.com/microsoft/typescript-go/shim/packagejson => ./shim/packagejson
github.com/microsoft/typescript-go/shim/parser => ./shim/parser
Expand Down Expand Up @@ -62,6 +63,7 @@ require (
github.com/microsoft/typescript-go/shim/ls/lsconv v0.0.0-00010101000000-000000000000
github.com/microsoft/typescript-go/shim/ls/lsutil v0.0.0-00010101000000-000000000000
github.com/microsoft/typescript-go/shim/lsp/lsproto v0.0.0-00010101000000-000000000000
github.com/microsoft/typescript-go/shim/module v0.0.0-00010101000000-000000000000
github.com/microsoft/typescript-go/shim/modulespecifiers v0.0.0-00010101000000-000000000000
github.com/microsoft/typescript-go/shim/packagejson v0.0.0-00010101000000-000000000000
github.com/microsoft/typescript-go/shim/parser v0.0.0-00010101000000-000000000000
Expand Down
1 change: 1 addition & 0 deletions go.work
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ use (
./shim/ls/lsutil
./shim/lsp
./shim/lsp/lsproto
./shim/module
./shim/modulespecifiers
./shim/packagejson
./shim/parser
Expand Down
13 changes: 8 additions & 5 deletions shim/ls/extra-shim.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"ExtraFields": {
"LanguageService": ["converters"]
}
}
{
"ExtraMethods": {
"LanguageService": ["getQuickInfoAndDocumentationForSymbol"]
},
"ExtraFields": {
"LanguageService": ["converters"]
}
}
2 changes: 2 additions & 0 deletions shim/ls/shim.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions shim/module/go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module github.com/microsoft/typescript-go/shim/module

go 1.26

require github.com/microsoft/typescript-go v0.0.0
76 changes: 76 additions & 0 deletions shim/module/shim.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading