Skip to content

Commit 481c203

Browse files
author
Orta Therox
authored
Re-name really long file (#44413)
1 parent 4903c64 commit 481c203

File tree

3 files changed

+77
-75
lines changed

3 files changed

+77
-75
lines changed

src/testRunner/unittests/tsserver/projectReferences.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,7 @@ ${usage}`
655655
);
656656

657657
verify(
658-
"when using arrow function as object literal property",
658+
"when using arrow function as object literal property types",
659659
`export const foo = { bar: () => { } };`,
660660
`shared.foo.bar();`,
661661
"bar"
@@ -676,8 +676,10 @@ instance.fly();`,
676676
"fly"
677677
);
678678

679+
679680
verify(
680-
"when using arrow function as object literal property is loaded through indirect assignment with original declaration local to project is treated as local",
681+
// when using arrow function as object literal property is loaded through indirect assignment with original declaration local to project is treated as local
682+
"when using arrow function as object literal property",
681683
`const local = { bar: () => { } };
682684
export const foo = local;`,
683685
`shared.foo.bar();`,
Original file line numberDiff line numberDiff line change
@@ -106,4 +106,75 @@ Project '/user/username/projects/solution/shared/tsconfig.json' (Configured)
106106
-----------------------------------------------
107107
Search path: /user/username/projects/solution/shared/src
108108
For info: /user/username/projects/solution/shared/src/index.ts :: Config file name: /user/username/projects/solution/shared/tsconfig.json
109-
response:{"response":{"refs":[{"file":"/user/username/projects/solution/shared/src/index.ts","start":{"line":1,"offset":17},"end":{"line":1,"offset":20},"contextStart":{"line":1,"offset":17},"contextEnd":{"line":1,"offset":31},"lineText":"const local = { bar: () => { } };","isWriteAccess":true,"isDefinition":true},{"file":"/user/username/projects/solution/api/src/server.ts","start":{"line":2,"offset":12},"end":{"line":2,"offset":15},"lineText":"shared.foo.bar();","isWriteAccess":false,"isDefinition":false}],"symbolName":"bar","symbolStartOffset":12,"symbolDisplayString":"(property) bar: () => void"},"responseRequired":true}
109+
Loading configured project /user/username/projects/solution/tsconfig.json
110+
Config: /user/username/projects/solution/tsconfig.json : {
111+
"rootNames": [],
112+
"options": {
113+
"configFilePath": "/user/username/projects/solution/tsconfig.json"
114+
},
115+
"projectReferences": [
116+
{
117+
"path": "/user/username/projects/solution/api",
118+
"originalPath": "./api"
119+
},
120+
{
121+
"path": "/user/username/projects/solution/app",
122+
"originalPath": "./app"
123+
}
124+
]
125+
}
126+
Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded
127+
Starting updateGraphWorker: Project: /user/username/projects/solution/tsconfig.json
128+
Config: /user/username/projects/solution/app/tsconfig.json : {
129+
"rootNames": [
130+
"/user/username/projects/solution/app/src/app.ts"
131+
],
132+
"options": {
133+
"composite": true,
134+
"outDir": "/user/username/projects/solution/app/dist",
135+
"rootDir": "/user/username/projects/solution/app/src",
136+
"configFilePath": "/user/username/projects/solution/app/tsconfig.json"
137+
},
138+
"projectReferences": [
139+
{
140+
"path": "/user/username/projects/solution/shared",
141+
"originalPath": "../shared"
142+
}
143+
]
144+
}
145+
FileWatcher:: Added:: WatchInfo: /user/username/projects/solution/app/tsconfig.json 2000 undefined Project: /user/username/projects/solution/tsconfig.json WatchType: Config file
146+
DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/solution/app/src 1 undefined Config: /user/username/projects/solution/app/tsconfig.json WatchType: Wild card directory
147+
Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/solution/app/src 1 undefined Config: /user/username/projects/solution/app/tsconfig.json WatchType: Wild card directory
148+
DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/solution/node_modules/@types 1 undefined Project: /user/username/projects/solution/tsconfig.json WatchType: Type roots
149+
Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/solution/node_modules/@types 1 undefined Project: /user/username/projects/solution/tsconfig.json WatchType: Type roots
150+
Finishing updateGraphWorker: Project: /user/username/projects/solution/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms
151+
Different program with same set of files
152+
Creating configuration project /user/username/projects/solution/app/tsconfig.json
153+
Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded
154+
FileWatcher:: Added:: WatchInfo: /user/username/projects/solution/app/src/app.ts 500 undefined WatchType: Closed Script info
155+
Starting updateGraphWorker: Project: /user/username/projects/solution/app/tsconfig.json
156+
DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/solution/shared 1 undefined Project: /user/username/projects/solution/app/tsconfig.json WatchType: Failed Lookup Locations
157+
Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/solution/shared 1 undefined Project: /user/username/projects/solution/app/tsconfig.json WatchType: Failed Lookup Locations
158+
DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/solution/app/node_modules/@types 1 undefined Project: /user/username/projects/solution/app/tsconfig.json WatchType: Type roots
159+
Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/solution/app/node_modules/@types 1 undefined Project: /user/username/projects/solution/app/tsconfig.json WatchType: Type roots
160+
DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/solution/node_modules/@types 1 undefined Project: /user/username/projects/solution/app/tsconfig.json WatchType: Type roots
161+
Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/solution/node_modules/@types 1 undefined Project: /user/username/projects/solution/app/tsconfig.json WatchType: Type roots
162+
Finishing updateGraphWorker: Project: /user/username/projects/solution/app/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms
163+
Project '/user/username/projects/solution/app/tsconfig.json' (Configured)
164+
Files (3)
165+
/a/lib/lib.d.ts
166+
/user/username/projects/solution/shared/src/index.ts
167+
/user/username/projects/solution/app/src/app.ts
168+
169+
170+
../../../../../a/lib/lib.d.ts
171+
Default library
172+
../shared/src/index.ts
173+
Imported via "../../shared/dist" from file 'src/app.ts'
174+
src/app.ts
175+
Matched by include pattern 'src' in 'tsconfig.json'
176+
177+
-----------------------------------------------
178+
Search path: /user/username/projects/solution/shared/src
179+
For info: /user/username/projects/solution/shared/src/index.ts :: Config file name: /user/username/projects/solution/shared/tsconfig.json
180+
response:{"response":{"refs":[{"file":"/user/username/projects/solution/shared/src/index.ts","start":{"line":1,"offset":22},"end":{"line":1,"offset":25},"contextStart":{"line":1,"offset":22},"contextEnd":{"line":1,"offset":36},"lineText":"export const foo = { bar: () => { } };","isWriteAccess":true,"isDefinition":true},{"file":"/user/username/projects/solution/api/src/server.ts","start":{"line":2,"offset":12},"end":{"line":2,"offset":15},"lineText":"shared.foo.bar();","isWriteAccess":false,"isDefinition":false},{"file":"/user/username/projects/solution/app/src/app.ts","start":{"line":2,"offset":12},"end":{"line":2,"offset":15},"lineText":"shared.foo.bar();","isWriteAccess":false,"isDefinition":false}],"symbolName":"bar","symbolStartOffset":12,"symbolDisplayString":"(property) bar: () => void"},"responseRequired":true}

tests/baselines/reference/tsserver/projectReferences/special-handling-of-localness-when-using-arrow-function-as-object-literal-property.js

Lines changed: 1 addition & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -106,75 +106,4 @@ Project '/user/username/projects/solution/shared/tsconfig.json' (Configured)
106106
-----------------------------------------------
107107
Search path: /user/username/projects/solution/shared/src
108108
For info: /user/username/projects/solution/shared/src/index.ts :: Config file name: /user/username/projects/solution/shared/tsconfig.json
109-
Loading configured project /user/username/projects/solution/tsconfig.json
110-
Config: /user/username/projects/solution/tsconfig.json : {
111-
"rootNames": [],
112-
"options": {
113-
"configFilePath": "/user/username/projects/solution/tsconfig.json"
114-
},
115-
"projectReferences": [
116-
{
117-
"path": "/user/username/projects/solution/api",
118-
"originalPath": "./api"
119-
},
120-
{
121-
"path": "/user/username/projects/solution/app",
122-
"originalPath": "./app"
123-
}
124-
]
125-
}
126-
Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded
127-
Starting updateGraphWorker: Project: /user/username/projects/solution/tsconfig.json
128-
Config: /user/username/projects/solution/app/tsconfig.json : {
129-
"rootNames": [
130-
"/user/username/projects/solution/app/src/app.ts"
131-
],
132-
"options": {
133-
"composite": true,
134-
"outDir": "/user/username/projects/solution/app/dist",
135-
"rootDir": "/user/username/projects/solution/app/src",
136-
"configFilePath": "/user/username/projects/solution/app/tsconfig.json"
137-
},
138-
"projectReferences": [
139-
{
140-
"path": "/user/username/projects/solution/shared",
141-
"originalPath": "../shared"
142-
}
143-
]
144-
}
145-
FileWatcher:: Added:: WatchInfo: /user/username/projects/solution/app/tsconfig.json 2000 undefined Project: /user/username/projects/solution/tsconfig.json WatchType: Config file
146-
DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/solution/app/src 1 undefined Config: /user/username/projects/solution/app/tsconfig.json WatchType: Wild card directory
147-
Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/solution/app/src 1 undefined Config: /user/username/projects/solution/app/tsconfig.json WatchType: Wild card directory
148-
DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/solution/node_modules/@types 1 undefined Project: /user/username/projects/solution/tsconfig.json WatchType: Type roots
149-
Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/solution/node_modules/@types 1 undefined Project: /user/username/projects/solution/tsconfig.json WatchType: Type roots
150-
Finishing updateGraphWorker: Project: /user/username/projects/solution/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms
151-
Different program with same set of files
152-
Creating configuration project /user/username/projects/solution/app/tsconfig.json
153-
Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded
154-
FileWatcher:: Added:: WatchInfo: /user/username/projects/solution/app/src/app.ts 500 undefined WatchType: Closed Script info
155-
Starting updateGraphWorker: Project: /user/username/projects/solution/app/tsconfig.json
156-
DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/solution/shared 1 undefined Project: /user/username/projects/solution/app/tsconfig.json WatchType: Failed Lookup Locations
157-
Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/solution/shared 1 undefined Project: /user/username/projects/solution/app/tsconfig.json WatchType: Failed Lookup Locations
158-
DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/solution/app/node_modules/@types 1 undefined Project: /user/username/projects/solution/app/tsconfig.json WatchType: Type roots
159-
Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/solution/app/node_modules/@types 1 undefined Project: /user/username/projects/solution/app/tsconfig.json WatchType: Type roots
160-
DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/solution/node_modules/@types 1 undefined Project: /user/username/projects/solution/app/tsconfig.json WatchType: Type roots
161-
Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/solution/node_modules/@types 1 undefined Project: /user/username/projects/solution/app/tsconfig.json WatchType: Type roots
162-
Finishing updateGraphWorker: Project: /user/username/projects/solution/app/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms
163-
Project '/user/username/projects/solution/app/tsconfig.json' (Configured)
164-
Files (3)
165-
/a/lib/lib.d.ts
166-
/user/username/projects/solution/shared/src/index.ts
167-
/user/username/projects/solution/app/src/app.ts
168-
169-
170-
../../../../../a/lib/lib.d.ts
171-
Default library
172-
../shared/src/index.ts
173-
Imported via "../../shared/dist" from file 'src/app.ts'
174-
src/app.ts
175-
Matched by include pattern 'src' in 'tsconfig.json'
176-
177-
-----------------------------------------------
178-
Search path: /user/username/projects/solution/shared/src
179-
For info: /user/username/projects/solution/shared/src/index.ts :: Config file name: /user/username/projects/solution/shared/tsconfig.json
180-
response:{"response":{"refs":[{"file":"/user/username/projects/solution/shared/src/index.ts","start":{"line":1,"offset":22},"end":{"line":1,"offset":25},"contextStart":{"line":1,"offset":22},"contextEnd":{"line":1,"offset":36},"lineText":"export const foo = { bar: () => { } };","isWriteAccess":true,"isDefinition":true},{"file":"/user/username/projects/solution/api/src/server.ts","start":{"line":2,"offset":12},"end":{"line":2,"offset":15},"lineText":"shared.foo.bar();","isWriteAccess":false,"isDefinition":false},{"file":"/user/username/projects/solution/app/src/app.ts","start":{"line":2,"offset":12},"end":{"line":2,"offset":15},"lineText":"shared.foo.bar();","isWriteAccess":false,"isDefinition":false}],"symbolName":"bar","symbolStartOffset":12,"symbolDisplayString":"(property) bar: () => void"},"responseRequired":true}
109+
response:{"response":{"refs":[{"file":"/user/username/projects/solution/shared/src/index.ts","start":{"line":1,"offset":17},"end":{"line":1,"offset":20},"contextStart":{"line":1,"offset":17},"contextEnd":{"line":1,"offset":31},"lineText":"const local = { bar: () => { } };","isWriteAccess":true,"isDefinition":true},{"file":"/user/username/projects/solution/api/src/server.ts","start":{"line":2,"offset":12},"end":{"line":2,"offset":15},"lineText":"shared.foo.bar();","isWriteAccess":false,"isDefinition":false}],"symbolName":"bar","symbolStartOffset":12,"symbolDisplayString":"(property) bar: () => void"},"responseRequired":true}

0 commit comments

Comments
 (0)