mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
752 lines
18 KiB
Plaintext
752 lines
18 KiB
Plaintext
UseCaseSensitiveFileNames: true
|
|
//// [/projects/container/compositeExec/index.ts] *new*
|
|
import { Pointable } from "../lib";
|
|
class Point2 implements Pointable {
|
|
getX(): number {
|
|
return 0;
|
|
}
|
|
getY(): number {
|
|
return 0;
|
|
}
|
|
}
|
|
//// [/projects/container/compositeExec/tsconfig.json] *new*
|
|
{
|
|
"compilerOptions": {
|
|
"composite": true,
|
|
},
|
|
"files": ["./index.ts"],
|
|
"references": [
|
|
{ "path": "../lib" },
|
|
],
|
|
}
|
|
//// [/projects/container/exec/index.ts] *new*
|
|
import { Pointable } from "../lib";
|
|
class Point1 implements Pointable {
|
|
getX(): number {
|
|
return 0;
|
|
}
|
|
getY(): number {
|
|
return 0;
|
|
}
|
|
}
|
|
//// [/projects/container/exec/tsconfig.json] *new*
|
|
{
|
|
"files": ["./index.ts"],
|
|
"references": [
|
|
{ "path": "../lib" },
|
|
],
|
|
}
|
|
//// [/projects/container/lib/bar.ts] *new*
|
|
import { Pointable } from "./index";
|
|
class Point implements Pointable {
|
|
getX(): number {
|
|
return 0;
|
|
}
|
|
getY(): number {
|
|
return 0;
|
|
}
|
|
}
|
|
//// [/projects/container/lib/index.ts] *new*
|
|
|
|
export interface Pointable {
|
|
getX(): number;
|
|
getY(): number;
|
|
}
|
|
export const val = 42;
|
|
//// [/projects/container/lib/tsconfig.json] *new*
|
|
{
|
|
"compilerOptions": {
|
|
"composite": true,
|
|
},
|
|
references: [],
|
|
files: [
|
|
"index.ts",
|
|
"bar.ts"
|
|
],
|
|
}
|
|
//// [/projects/container/tsconfig.json] *new*
|
|
{
|
|
"files": [],
|
|
"include": [],
|
|
"references": [
|
|
{ "path": "./exec" },
|
|
{ "path": "./compositeExec" },
|
|
],
|
|
}
|
|
|
|
//// [/projects/temp/temp.ts] *new*
|
|
let x = 10
|
|
//// [/projects/temp/tsconfig.json] *new*
|
|
{}
|
|
|
|
|
|
{
|
|
"method": "textDocument/didOpen",
|
|
"params": {
|
|
"textDocument": {
|
|
"uri": "file:///projects/container/lib/index.ts",
|
|
"languageId": "typescript",
|
|
"version": 0,
|
|
"text": "\nexport interface Pointable {\n getX(): number;\n getY(): number;\n}\nexport const val = 42;"
|
|
}
|
|
}
|
|
}
|
|
|
|
Projects::
|
|
[/projects/container/lib/tsconfig.json] *new*
|
|
/projects/container/lib/index.ts
|
|
/projects/container/lib/bar.ts
|
|
[/projects/container/tsconfig.json] *new*
|
|
Open Files::
|
|
[/projects/container/lib/index.ts] *new*
|
|
/projects/container/lib/tsconfig.json (default)
|
|
Config::
|
|
[/projects/container/lib/tsconfig.json] *new*
|
|
RetainingProjects:
|
|
/projects/container/lib/tsconfig.json
|
|
RetainingOpenFiles:
|
|
/projects/container/lib/index.ts
|
|
Config File Names::
|
|
[/projects/container/lib/index.ts] *new*
|
|
NearestConfigFileName: /projects/container/lib/tsconfig.json
|
|
Ancestors:
|
|
/projects/container/lib/tsconfig.json /projects/container/tsconfig.json
|
|
/projects/container/tsconfig.json
|
|
|
|
{
|
|
"method": "textDocument/didOpen",
|
|
"params": {
|
|
"textDocument": {
|
|
"uri": "file:///projects/temp/temp.ts",
|
|
"languageId": "typescript",
|
|
"version": 0,
|
|
"text": "let x = 10"
|
|
}
|
|
}
|
|
}
|
|
|
|
Projects::
|
|
[/projects/container/lib/tsconfig.json]
|
|
/projects/container/lib/index.ts
|
|
/projects/container/lib/bar.ts
|
|
[/projects/container/tsconfig.json]
|
|
[/projects/temp/tsconfig.json] *new*
|
|
/projects/temp/temp.ts
|
|
Open Files::
|
|
[/projects/container/lib/index.ts]
|
|
/projects/container/lib/tsconfig.json (default)
|
|
[/projects/temp/temp.ts] *new*
|
|
/projects/temp/tsconfig.json (default)
|
|
Config::
|
|
[/projects/container/lib/tsconfig.json]
|
|
RetainingProjects:
|
|
/projects/container/lib/tsconfig.json
|
|
RetainingOpenFiles:
|
|
/projects/container/lib/index.ts
|
|
[/projects/temp/tsconfig.json] *new*
|
|
RetainingProjects:
|
|
/projects/temp/tsconfig.json
|
|
RetainingOpenFiles:
|
|
/projects/temp/temp.ts
|
|
Config File Names::
|
|
[/projects/container/lib/index.ts]
|
|
NearestConfigFileName: /projects/container/lib/tsconfig.json
|
|
Ancestors:
|
|
/projects/container/lib/tsconfig.json /projects/container/tsconfig.json
|
|
/projects/container/tsconfig.json
|
|
[/projects/temp/temp.ts] *new*
|
|
NearestConfigFileName: /projects/temp/tsconfig.json
|
|
|
|
{
|
|
"method": "workspace/didChangeConfiguration",
|
|
"params": {
|
|
"settings": {
|
|
"js/ts": {
|
|
"implementationsCodeLens": {
|
|
"enabled": true,
|
|
"showOnAllClassMethods": true,
|
|
"showOnInterfaceMethods": true
|
|
},
|
|
"preferences": {
|
|
"organizeImports": {
|
|
"caseFirst": "default",
|
|
"sort": "auto",
|
|
"typeOrder": "auto",
|
|
"unicodeCollation": "ordinal"
|
|
}
|
|
},
|
|
"referencesCodeLens": {
|
|
"enabled": true,
|
|
"showOnAllFunctions": true
|
|
},
|
|
"unstable": {
|
|
"preferGoToSourceDefinition": false
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
{
|
|
"method": "textDocument/codeLens",
|
|
"params": {
|
|
"textDocument": {
|
|
"uri": "file:///projects/container/lib/index.ts"
|
|
}
|
|
}
|
|
}
|
|
|
|
{
|
|
"method": "codeLens/resolve",
|
|
"params": {
|
|
"range": {
|
|
"start": {
|
|
"line": 1,
|
|
"character": 17
|
|
},
|
|
"end": {
|
|
"line": 4,
|
|
"character": 1
|
|
}
|
|
},
|
|
"data": {
|
|
"kind": "references",
|
|
"uri": "file:///projects/container/lib/index.ts"
|
|
}
|
|
}
|
|
}
|
|
|
|
Projects::
|
|
[/projects/container/compositeExec/tsconfig.json] *new*
|
|
/projects/container/lib/index.ts
|
|
/projects/container/compositeExec/index.ts
|
|
[/projects/container/exec/tsconfig.json] *new*
|
|
/projects/container/lib/index.ts
|
|
/projects/container/exec/index.ts
|
|
[/projects/container/lib/tsconfig.json]
|
|
/projects/container/lib/index.ts
|
|
/projects/container/lib/bar.ts
|
|
[/projects/container/tsconfig.json] *modified*
|
|
[/projects/temp/tsconfig.json]
|
|
/projects/temp/temp.ts
|
|
Open Files::
|
|
[/projects/container/lib/index.ts] *modified*
|
|
/projects/container/compositeExec/tsconfig.json *new*
|
|
/projects/container/exec/tsconfig.json *new*
|
|
/projects/container/lib/tsconfig.json (default)
|
|
[/projects/temp/temp.ts]
|
|
/projects/temp/tsconfig.json (default)
|
|
Config::
|
|
[/projects/container/compositeExec/tsconfig.json] *new*
|
|
RetainingProjects:
|
|
/projects/container/compositeExec/tsconfig.json
|
|
/projects/container/tsconfig.json
|
|
[/projects/container/exec/tsconfig.json] *new*
|
|
RetainingProjects:
|
|
/projects/container/exec/tsconfig.json
|
|
/projects/container/tsconfig.json
|
|
[/projects/container/lib/tsconfig.json] *modified*
|
|
RetainingProjects: *modified*
|
|
/projects/container/compositeExec/tsconfig.json *new*
|
|
/projects/container/exec/tsconfig.json *new*
|
|
/projects/container/lib/tsconfig.json
|
|
/projects/container/tsconfig.json *new*
|
|
RetainingOpenFiles:
|
|
/projects/container/lib/index.ts
|
|
[/projects/container/tsconfig.json] *new*
|
|
RetainingProjects:
|
|
/projects/container/tsconfig.json
|
|
[/projects/temp/tsconfig.json]
|
|
RetainingProjects:
|
|
/projects/temp/tsconfig.json
|
|
RetainingOpenFiles:
|
|
/projects/temp/temp.ts
|
|
|
|
|
|
|
|
|
|
// === Code Lenses ===
|
|
// === /projects/container/compositeExec/index.ts ===
|
|
// import { Pointable } from "../lib";
|
|
// class Point2 implements [|Pointable|] {
|
|
// getX(): number {
|
|
// return 0;
|
|
// }
|
|
// --- (line: 6) skipped ---
|
|
|
|
// === /projects/container/exec/index.ts ===
|
|
// import { Pointable } from "../lib";
|
|
// class Point1 implements [|Pointable|] {
|
|
// getX(): number {
|
|
// return 0;
|
|
// }
|
|
// --- (line: 6) skipped ---
|
|
|
|
// === /projects/container/lib/bar.ts ===
|
|
// import { Pointable } from "./index";
|
|
// class Point implements [|Pointable|] {
|
|
// getX(): number {
|
|
// return 0;
|
|
// }
|
|
// --- (line: 6) skipped ---
|
|
|
|
// === /projects/container/lib/index.ts ===
|
|
//
|
|
// export interface /*CODELENS: 3 references*/Pointable {
|
|
// getX(): number;
|
|
// getY(): number;
|
|
// }
|
|
// export const val = 42;
|
|
{
|
|
"method": "codeLens/resolve",
|
|
"params": {
|
|
"range": {
|
|
"start": {
|
|
"line": 1,
|
|
"character": 17
|
|
},
|
|
"end": {
|
|
"line": 4,
|
|
"character": 1
|
|
}
|
|
},
|
|
"data": {
|
|
"kind": "implementations",
|
|
"uri": "file:///projects/container/lib/index.ts"
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
// === Code Lenses ===
|
|
// === /projects/container/compositeExec/index.ts ===
|
|
// import { Pointable } from "../lib";
|
|
// class [|Point2|] implements Pointable {
|
|
// getX(): number {
|
|
// return 0;
|
|
// }
|
|
// --- (line: 6) skipped ---
|
|
|
|
// === /projects/container/exec/index.ts ===
|
|
// import { Pointable } from "../lib";
|
|
// class [|Point1|] implements Pointable {
|
|
// getX(): number {
|
|
// return 0;
|
|
// }
|
|
// --- (line: 6) skipped ---
|
|
|
|
// === /projects/container/lib/bar.ts ===
|
|
// import { Pointable } from "./index";
|
|
// class [|Point|] implements Pointable {
|
|
// getX(): number {
|
|
// return 0;
|
|
// }
|
|
// --- (line: 6) skipped ---
|
|
|
|
// === /projects/container/lib/index.ts ===
|
|
//
|
|
// export interface /*CODELENS: 3 implementations*/Pointable {
|
|
// getX(): number;
|
|
// getY(): number;
|
|
// }
|
|
// export const val = 42;
|
|
{
|
|
"method": "codeLens/resolve",
|
|
"params": {
|
|
"range": {
|
|
"start": {
|
|
"line": 2,
|
|
"character": 2
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"character": 17
|
|
}
|
|
},
|
|
"data": {
|
|
"kind": "references",
|
|
"uri": "file:///projects/container/lib/index.ts"
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
// === Code Lenses ===
|
|
// === /projects/container/lib/index.ts ===
|
|
//
|
|
// export interface Pointable {
|
|
// /*CODELENS: 0 references*/getX(): number;
|
|
// getY(): number;
|
|
// }
|
|
// export const val = 42;
|
|
{
|
|
"method": "codeLens/resolve",
|
|
"params": {
|
|
"range": {
|
|
"start": {
|
|
"line": 2,
|
|
"character": 2
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"character": 17
|
|
}
|
|
},
|
|
"data": {
|
|
"kind": "implementations",
|
|
"uri": "file:///projects/container/lib/index.ts"
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
// === Code Lenses ===
|
|
// === /projects/container/compositeExec/index.ts ===
|
|
// import { Pointable } from "../lib";
|
|
// class Point2 implements Pointable {
|
|
// [|getX|](): number {
|
|
// return 0;
|
|
// }
|
|
// getY(): number {
|
|
// --- (line: 7) skipped ---
|
|
|
|
// === /projects/container/exec/index.ts ===
|
|
// import { Pointable } from "../lib";
|
|
// class Point1 implements Pointable {
|
|
// [|getX|](): number {
|
|
// return 0;
|
|
// }
|
|
// getY(): number {
|
|
// --- (line: 7) skipped ---
|
|
|
|
// === /projects/container/lib/bar.ts ===
|
|
// import { Pointable } from "./index";
|
|
// class Point implements Pointable {
|
|
// [|getX|](): number {
|
|
// return 0;
|
|
// }
|
|
// getY(): number {
|
|
// --- (line: 7) skipped ---
|
|
|
|
// === /projects/container/lib/index.ts ===
|
|
//
|
|
// export interface Pointable {
|
|
// /*CODELENS: 3 implementations*/getX(): number;
|
|
// getY(): number;
|
|
// }
|
|
// export const val = 42;
|
|
{
|
|
"method": "codeLens/resolve",
|
|
"params": {
|
|
"range": {
|
|
"start": {
|
|
"line": 3,
|
|
"character": 2
|
|
},
|
|
"end": {
|
|
"line": 3,
|
|
"character": 17
|
|
}
|
|
},
|
|
"data": {
|
|
"kind": "references",
|
|
"uri": "file:///projects/container/lib/index.ts"
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
// === Code Lenses ===
|
|
// === /projects/container/lib/index.ts ===
|
|
//
|
|
// export interface Pointable {
|
|
// getX(): number;
|
|
// /*CODELENS: 0 references*/getY(): number;
|
|
// }
|
|
// export const val = 42;
|
|
{
|
|
"method": "codeLens/resolve",
|
|
"params": {
|
|
"range": {
|
|
"start": {
|
|
"line": 3,
|
|
"character": 2
|
|
},
|
|
"end": {
|
|
"line": 3,
|
|
"character": 17
|
|
}
|
|
},
|
|
"data": {
|
|
"kind": "implementations",
|
|
"uri": "file:///projects/container/lib/index.ts"
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
// === Code Lenses ===
|
|
// === /projects/container/compositeExec/index.ts ===
|
|
// import { Pointable } from "../lib";
|
|
// class Point2 implements Pointable {
|
|
// getX(): number {
|
|
// return 0;
|
|
// }
|
|
// [|getY|](): number {
|
|
// return 0;
|
|
// }
|
|
// }
|
|
|
|
// === /projects/container/exec/index.ts ===
|
|
// import { Pointable } from "../lib";
|
|
// class Point1 implements Pointable {
|
|
// getX(): number {
|
|
// return 0;
|
|
// }
|
|
// [|getY|](): number {
|
|
// return 0;
|
|
// }
|
|
// }
|
|
|
|
// === /projects/container/lib/bar.ts ===
|
|
// import { Pointable } from "./index";
|
|
// class Point implements Pointable {
|
|
// getX(): number {
|
|
// return 0;
|
|
// }
|
|
// [|getY|](): number {
|
|
// return 0;
|
|
// }
|
|
// }
|
|
|
|
// === /projects/container/lib/index.ts ===
|
|
//
|
|
// export interface Pointable {
|
|
// getX(): number;
|
|
// /*CODELENS: 3 implementations*/getY(): number;
|
|
// }
|
|
// export const val = 42;
|
|
{
|
|
"method": "codeLens/resolve",
|
|
"params": {
|
|
"range": {
|
|
"start": {
|
|
"line": 5,
|
|
"character": 13
|
|
},
|
|
"end": {
|
|
"line": 5,
|
|
"character": 21
|
|
}
|
|
},
|
|
"data": {
|
|
"kind": "references",
|
|
"uri": "file:///projects/container/lib/index.ts"
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
// === Code Lenses ===
|
|
// === /projects/container/lib/index.ts ===
|
|
//
|
|
// export interface Pointable {
|
|
// getX(): number;
|
|
// getY(): number;
|
|
// }
|
|
// export const /*CODELENS: 0 references*/val = 42;
|
|
{
|
|
"method": "textDocument/codeLens",
|
|
"params": {
|
|
"textDocument": {
|
|
"uri": "file:///projects/temp/temp.ts"
|
|
}
|
|
}
|
|
}
|
|
|
|
{
|
|
"method": "workspace/didChangeConfiguration",
|
|
"params": {
|
|
"settings": {
|
|
"js/ts": {
|
|
"autoClosingTags": {
|
|
"enabled": true
|
|
},
|
|
"format": {
|
|
"convertTabsToSpaces": true,
|
|
"enabled": true,
|
|
"indentSize": 4,
|
|
"indentStyle": 2,
|
|
"indentSwitchCase": true,
|
|
"insertSpaceAfterCommaDelimiter": true,
|
|
"insertSpaceAfterConstructor": false,
|
|
"insertSpaceAfterFunctionKeywordForAnonymousFunctions": false,
|
|
"insertSpaceAfterKeywordsInControlFlowStatements": true,
|
|
"insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces": false,
|
|
"insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces": true,
|
|
"insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets": false,
|
|
"insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis": false,
|
|
"insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces": false,
|
|
"insertSpaceAfterSemicolonInForStatements": true,
|
|
"insertSpaceBeforeAndAfterBinaryOperators": true,
|
|
"insertSpaceBeforeFunctionParenthesis": false,
|
|
"newLineCharacter": "\n",
|
|
"placeOpenBraceOnNewLineForControlBlocks": false,
|
|
"placeOpenBraceOnNewLineForFunctions": false,
|
|
"semicolons": "ignore",
|
|
"tabSize": 4,
|
|
"trimTrailingWhitespace": true
|
|
},
|
|
"preferences": {
|
|
"organizeImports": {
|
|
"caseFirst": "default",
|
|
"sort": "auto",
|
|
"typeOrder": "auto",
|
|
"unicodeCollation": "ordinal"
|
|
}
|
|
},
|
|
"reportStyleChecksAsWarnings": true,
|
|
"suggest": {
|
|
"autoImports": true,
|
|
"includeCompletionsForImportStatements": true,
|
|
"jsdoc": {
|
|
"enabled": true,
|
|
"generateReturns": true
|
|
}
|
|
},
|
|
"unstable": {
|
|
"allowRenameOfImportPath": true,
|
|
"disableLineTextInReferences": true,
|
|
"displayPartsForJSDoc": true,
|
|
"preferGoToSourceDefinition": false,
|
|
"provideRefactorNotApplicableReason": true
|
|
},
|
|
"validate": {
|
|
"enabled": true
|
|
},
|
|
"workspaceSymbols": {
|
|
"excludeLibrarySymbols": true,
|
|
"scope": "allOpenProjects"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
{
|
|
"method": "textDocument/didClose",
|
|
"params": {
|
|
"textDocument": {
|
|
"uri": "file:///projects/temp/temp.ts"
|
|
}
|
|
}
|
|
}
|
|
|
|
Open Files::
|
|
[/projects/container/lib/index.ts]
|
|
/projects/container/compositeExec/tsconfig.json
|
|
/projects/container/exec/tsconfig.json
|
|
/projects/container/lib/tsconfig.json (default)
|
|
[/projects/temp/temp.ts] *closed*
|
|
|
|
{
|
|
"method": "textDocument/didOpen",
|
|
"params": {
|
|
"textDocument": {
|
|
"uri": "file:///projects/temp/temp.ts",
|
|
"languageId": "typescript",
|
|
"version": 0,
|
|
"text": "let x = 10"
|
|
}
|
|
}
|
|
}
|
|
|
|
Open Files::
|
|
[/projects/container/lib/index.ts]
|
|
/projects/container/compositeExec/tsconfig.json
|
|
/projects/container/exec/tsconfig.json
|
|
/projects/container/lib/tsconfig.json (default)
|
|
[/projects/temp/temp.ts] *new*
|
|
/projects/temp/tsconfig.json (default)
|
|
|
|
{
|
|
"method": "textDocument/didClose",
|
|
"params": {
|
|
"textDocument": {
|
|
"uri": "file:///projects/container/lib/index.ts"
|
|
}
|
|
}
|
|
}
|
|
|
|
Open Files::
|
|
[/projects/container/lib/index.ts] *closed*
|
|
[/projects/temp/temp.ts]
|
|
/projects/temp/tsconfig.json (default)
|
|
|
|
{
|
|
"method": "textDocument/didClose",
|
|
"params": {
|
|
"textDocument": {
|
|
"uri": "file:///projects/temp/temp.ts"
|
|
}
|
|
}
|
|
}
|
|
|
|
Open Files::
|
|
[/projects/temp/temp.ts] *closed*
|
|
|
|
{
|
|
"method": "textDocument/didOpen",
|
|
"params": {
|
|
"textDocument": {
|
|
"uri": "file:///projects/temp/temp.ts",
|
|
"languageId": "typescript",
|
|
"version": 0,
|
|
"text": "let x = 10"
|
|
}
|
|
}
|
|
}
|
|
|
|
Projects::
|
|
[/projects/container/compositeExec/tsconfig.json] *deleted*
|
|
/projects/container/lib/index.ts
|
|
/projects/container/compositeExec/index.ts
|
|
[/projects/container/exec/tsconfig.json] *deleted*
|
|
/projects/container/lib/index.ts
|
|
/projects/container/exec/index.ts
|
|
[/projects/container/lib/tsconfig.json] *deleted*
|
|
/projects/container/lib/index.ts
|
|
/projects/container/lib/bar.ts
|
|
[/projects/container/tsconfig.json] *deleted*
|
|
[/projects/temp/tsconfig.json]
|
|
/projects/temp/temp.ts
|
|
Open Files::
|
|
[/projects/temp/temp.ts] *new*
|
|
/projects/temp/tsconfig.json (default)
|
|
Config::
|
|
[/projects/container/compositeExec/tsconfig.json] *deleted*
|
|
[/projects/container/exec/tsconfig.json] *deleted*
|
|
[/projects/container/lib/tsconfig.json] *deleted*
|
|
[/projects/container/tsconfig.json] *deleted*
|
|
[/projects/temp/tsconfig.json]
|
|
RetainingProjects:
|
|
/projects/temp/tsconfig.json
|
|
RetainingOpenFiles:
|
|
/projects/temp/temp.ts
|
|
Config File Names::
|
|
[/projects/container/lib/index.ts] *deleted*
|
|
[/projects/temp/temp.ts]
|
|
NearestConfigFileName: /projects/temp/tsconfig.json
|