mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
109 lines
1.9 KiB
Plaintext
109 lines
1.9 KiB
Plaintext
UseCaseSensitiveFileNames: true
|
|
//// [/a/a.ts] *new*
|
|
export function f() {}
|
|
//// [/a/tsconfig.json] *new*
|
|
{
|
|
"compilerOptions": {
|
|
"outDir": "../bin",
|
|
"declarationMap": true,
|
|
"composite": true
|
|
}
|
|
}
|
|
//// [/b/b.ts] *new*
|
|
import { f } from "../bin/a";
|
|
f();
|
|
//// [/b/tsconfig.json] *new*
|
|
{
|
|
"references": [
|
|
{ "path": "../a" }
|
|
]
|
|
}
|
|
//// [/bin/a.d.ts] *new*
|
|
export declare function f(): void;
|
|
//# sourceMappingURL=a.d.ts.map
|
|
//// [/bin/a.d.ts.map] *new*
|
|
{
|
|
"version":3,
|
|
"file":"a.d.ts",
|
|
"sourceRoot":"",
|
|
"sources":["a.ts"],
|
|
"names":[],
|
|
"mappings":"AAAA,wBAAgB,CAAC,SAAK"
|
|
}
|
|
|
|
|
|
{
|
|
"method": "textDocument/didOpen",
|
|
"params": {
|
|
"textDocument": {
|
|
"uri": "file:///b/b.ts",
|
|
"languageId": "typescript",
|
|
"version": 0,
|
|
"text": "import { f } from \"../bin/a\";\nf();"
|
|
}
|
|
}
|
|
}
|
|
|
|
Projects::
|
|
[/b/tsconfig.json] *new*
|
|
/a/a.ts
|
|
/b/b.ts
|
|
Open Files::
|
|
[/b/b.ts] *new*
|
|
/b/tsconfig.json (default)
|
|
Config::
|
|
[/a/tsconfig.json] *new*
|
|
RetainingProjects:
|
|
/b/tsconfig.json
|
|
[/b/tsconfig.json] *new*
|
|
RetainingProjects:
|
|
/b/tsconfig.json
|
|
RetainingOpenFiles:
|
|
/b/b.ts
|
|
Config File Names::
|
|
[/b/b.ts] *new*
|
|
NearestConfigFileName: /b/tsconfig.json
|
|
|
|
{
|
|
"method": "textDocument/references",
|
|
"params": {
|
|
"textDocument": {
|
|
"uri": "file:///b/b.ts"
|
|
},
|
|
"position": {
|
|
"line": 1,
|
|
"character": 0
|
|
},
|
|
"context": {
|
|
"includeDeclaration": true
|
|
}
|
|
}
|
|
}
|
|
|
|
Projects::
|
|
[/a/tsconfig.json] *new*
|
|
/a/a.ts
|
|
[/b/tsconfig.json]
|
|
/a/a.ts
|
|
/b/b.ts
|
|
Config::
|
|
[/a/tsconfig.json] *modified*
|
|
RetainingProjects: *modified*
|
|
/a/tsconfig.json *new*
|
|
/b/tsconfig.json
|
|
[/b/tsconfig.json]
|
|
RetainingProjects:
|
|
/b/tsconfig.json
|
|
RetainingOpenFiles:
|
|
/b/b.ts
|
|
|
|
|
|
|
|
|
|
// === findAllReferences ===
|
|
// === /a/a.ts ===
|
|
// export function [|f|]() {}
|
|
|
|
// === /b/b.ts ===
|
|
// import { [|f|] } from "../bin/a";
|
|
// /*FIND ALL REFS*/[|f|](); |