Files
tsgo/testdata/baselines/reference/fourslash/quickInfo/quickinfoVerbosityNamespaceMembers.baseline
e0069505b9 Use typescript instead of tsx for hover code block language (#3458)
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: jakebailey <[email protected]>
2026-04-22 17:14:11 +00:00

124 lines
3.0 KiB
Plaintext

// === QuickInfo ===
=== /quickinfoVerbosityNamespaceMembers.ts ===
//
// declare namespace NS {
// ^^
// | ----------------------------------------------------------------------
// | ```typescript
// | namespace NS {
// | type StringAlias = string;
// | type Pair<T> = {
// | first: T;
// | second: T;
// | };
// | enum Color {
// | Red,
// | Green,
// | Blue
// | }
// | class MyClass {
// | name: string;
// | greet(): void;
// | }
// | interface MyInterface {
// | id: number;
// | label: string;
// | }
// | let value: number;
// | function doSomething(x: string): boolean;
// | namespace doSomething { }
// | }
// | ```
// |
// | (verbosity level: 1)
// | ----------------------------------------------------------------------
// ^^
// | ----------------------------------------------------------------------
// | ```typescript
// | namespace NS
// | ```
// |
// | (verbosity level: 0)
// | ----------------------------------------------------------------------
// type StringAlias = string;
// type Pair<T> = { first: T; second: T };
//
// enum Color { Red, Green, Blue }
//
// class MyClass {
// name: string;
// greet(): void;
// }
//
// interface MyInterface {
// id: number;
// label: string;
// }
//
// const value: number;
// function doSomething(x: string): boolean;
// }
//
[
{
"marker": {
"Position": 21,
"LSPosition": {
"line": 1,
"character": 20
},
"Name": "1",
"Data": {}
},
"item": {
"hover": {
"contents": {
"kind": "markdown",
"value": "```typescript\nnamespace NS\n```\n"
},
"range": {
"start": {
"line": 1,
"character": 18
},
"end": {
"line": 1,
"character": 20
}
},
"canIncreaseVerbosity": true
},
"verbosityLevel": 0
}
},
{
"marker": {
"Position": 21,
"LSPosition": {
"line": 1,
"character": 20
},
"Name": "1",
"Data": {}
},
"item": {
"hover": {
"contents": {
"kind": "markdown",
"value": "```typescript\nnamespace NS {\n type StringAlias = string;\n type Pair<T> = {\n first: T;\n second: T;\n };\n enum Color {\n Red,\n Green,\n Blue\n }\n class MyClass {\n name: string;\n greet(): void;\n }\n interface MyInterface {\n id: number;\n label: string;\n }\n let value: number;\n function doSomething(x: string): boolean;\n namespace doSomething { }\n}\n```\n"
},
"range": {
"start": {
"line": 1,
"character": 18
},
"end": {
"line": 1,
"character": 20
}
}
},
"verbosityLevel": 1
}
}
]