Skip to content

Commit c96fbc7

Browse files
committed
Inline the context span and information
1 parent f891a24 commit c96fbc7

File tree

866 files changed

+37865
-1687903
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

866 files changed

+37865
-1687903
lines changed

src/harness/fourslashImpl.ts

Lines changed: 167 additions & 161 deletions
Large diffs are not rendered by default.

tests/baselines/reference/ambientShorthandFindAllRefs.baseline.jsonc

Lines changed: 8 additions & 136 deletions
Original file line numberDiff line numberDiff line change
@@ -1,73 +1,9 @@
11
// === /tests/cases/fourslash/user.ts ===
2-
// import {/*FIND ALL REFS*/[|x|]} from "jquery";
3-
4-
// === 0 ===
5-
// === Definition ===
6-
// containerKind: ""
7-
// containerName: ""
8-
// kind: "alias"
9-
// name: "(alias) module \"jquery\"\nimport x"
10-
// displayParts: [
11-
// {
12-
// "text": "(",
13-
// "kind": "punctuation"
14-
// },
15-
// {
16-
// "text": "alias",
17-
// "kind": "text"
18-
// },
19-
// {
20-
// "text": ")",
21-
// "kind": "punctuation"
22-
// },
23-
// {
24-
// "text": " ",
25-
// "kind": "space"
26-
// },
27-
// {
28-
// "text": "module",
29-
// "kind": "keyword"
30-
// },
31-
// {
32-
// "text": " ",
33-
// "kind": "space"
34-
// },
35-
// {
36-
// "text": "\"jquery\"",
37-
// "kind": "stringLiteral"
38-
// },
39-
// {
40-
// "text": "\n",
41-
// "kind": "lineBreak"
42-
// },
43-
// {
44-
// "text": "import",
45-
// "kind": "keyword"
46-
// },
47-
// {
48-
// "text": " ",
49-
// "kind": "space"
50-
// },
51-
// {
52-
// "text": "x",
53-
// "kind": "aliasName"
54-
// }
55-
// ]
56-
// === /tests/cases/fourslash/user.ts ===
57-
// import {[|x|]} from "jquery";
58-
// === ContextSpan ===
59-
// === /tests/cases/fourslash/user.ts ===
60-
// [|import {x} from "jquery";|]
61-
// === References ===
62-
// === 0 ===
63-
// isWriteAccess: true
64-
// isDefinition: true
65-
// === /tests/cases/fourslash/user.ts ===
66-
// import {[|x|]} from "jquery";
67-
// === ContextSpan ===
68-
// === /tests/cases/fourslash/user.ts ===
69-
// [|import {x} from "jquery";|]
2+
// <|import {/*FIND ALL REFS*/[|{| contextId: 0, defId: 0, isWriteAccess: true, isDefinition: true |}x|]} from "jquery";|>
703

4+
// === Definitions ===
5+
// === /tests/cases/fourslash/user.ts ===
6+
// <|import {/*FIND ALL REFS*/[|{| contextId: 0, defId: 0, kind: "alias", name: "(alias) module \"jquery\"\nimport x", displayParts: [{"text":"(","kind":"punctuation"},{"text":"alias","kind":"text"},{"text":")","kind":"punctuation"},{"text":" ","kind":"space"},{"text":"module","kind":"keyword"},{"text":" ","kind":"space"},{"text":"\"jquery\"","kind":"stringLiteral"},{"text":"\n","kind":"lineBreak"},{"text":"import","kind":"keyword"},{"text":" ","kind":"space"},{"text":"x","kind":"aliasName"}] |}x|]} from "jquery";|>
717

728
[
739
{
@@ -151,75 +87,11 @@
15187
]
15288

15389
// === /tests/cases/fourslash/user2.ts ===
154-
// import {/*FIND ALL REFS*/[|x|]} from "jquery";
155-
156-
// === 0 ===
157-
// === Definition ===
158-
// containerKind: ""
159-
// containerName: ""
160-
// kind: "alias"
161-
// name: "(alias) module \"jquery\"\nimport x"
162-
// displayParts: [
163-
// {
164-
// "text": "(",
165-
// "kind": "punctuation"
166-
// },
167-
// {
168-
// "text": "alias",
169-
// "kind": "text"
170-
// },
171-
// {
172-
// "text": ")",
173-
// "kind": "punctuation"
174-
// },
175-
// {
176-
// "text": " ",
177-
// "kind": "space"
178-
// },
179-
// {
180-
// "text": "module",
181-
// "kind": "keyword"
182-
// },
183-
// {
184-
// "text": " ",
185-
// "kind": "space"
186-
// },
187-
// {
188-
// "text": "\"jquery\"",
189-
// "kind": "stringLiteral"
190-
// },
191-
// {
192-
// "text": "\n",
193-
// "kind": "lineBreak"
194-
// },
195-
// {
196-
// "text": "import",
197-
// "kind": "keyword"
198-
// },
199-
// {
200-
// "text": " ",
201-
// "kind": "space"
202-
// },
203-
// {
204-
// "text": "x",
205-
// "kind": "aliasName"
206-
// }
207-
// ]
208-
// === /tests/cases/fourslash/user2.ts ===
209-
// import {[|x|]} from "jquery";
210-
// === ContextSpan ===
211-
// === /tests/cases/fourslash/user2.ts ===
212-
// [|import {x} from "jquery";|]
213-
// === References ===
214-
// === 0 ===
215-
// isWriteAccess: true
216-
// isDefinition: true
217-
// === /tests/cases/fourslash/user2.ts ===
218-
// import {[|x|]} from "jquery";
219-
// === ContextSpan ===
220-
// === /tests/cases/fourslash/user2.ts ===
221-
// [|import {x} from "jquery";|]
90+
// <|import {/*FIND ALL REFS*/[|{| contextId: 0, defId: 0, isWriteAccess: true, isDefinition: true |}x|]} from "jquery";|>
22291

92+
// === Definitions ===
93+
// === /tests/cases/fourslash/user2.ts ===
94+
// <|import {/*FIND ALL REFS*/[|{| contextId: 0, defId: 0, kind: "alias", name: "(alias) module \"jquery\"\nimport x", displayParts: [{"text":"(","kind":"punctuation"},{"text":"alias","kind":"text"},{"text":")","kind":"punctuation"},{"text":" ","kind":"space"},{"text":"module","kind":"keyword"},{"text":" ","kind":"space"},{"text":"\"jquery\"","kind":"stringLiteral"},{"text":"\n","kind":"lineBreak"},{"text":"import","kind":"keyword"},{"text":" ","kind":"space"},{"text":"x","kind":"aliasName"}] |}x|]} from "jquery";|>
22395

22496
[
22597
{

0 commit comments

Comments
 (0)