From cfda91d3ca68172d9c7a0f9772e084f0baf1969b Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Thu, 4 May 2023 15:50:46 -0700 Subject: [PATCH] Seems like these baselines shouldnt be there --- ...r-a-file-belonging-to-multiple-projects.js | 112 ---------- ...-for-an-inferred-project-for-a-.js-file.js | 201 ------------------ ...-for-an-inferred-project-for-a-.ts-file.js | 123 ----------- .../works-with-different-.ts-extensions.js | 145 ------------- .../works-with-different-extensions.js | 130 ----------- 5 files changed, 711 deletions(-) delete mode 100644 tests/baselines/reference/tsserver/getMoveToRefactoringFileSuggestions/works-for-suggesting-a-list-of-files,-for-a-file-belonging-to-multiple-projects.js delete mode 100644 tests/baselines/reference/tsserver/getMoveToRefactoringFileSuggestions/works-for-suggesting-a-list-of-files,-for-an-inferred-project-for-a-.js-file.js delete mode 100644 tests/baselines/reference/tsserver/getMoveToRefactoringFileSuggestions/works-for-suggesting-a-list-of-files,-for-an-inferred-project-for-a-.ts-file.js delete mode 100644 tests/baselines/reference/tsserver/getMoveToRefactoringFileSuggestions/works-with-different-.ts-extensions.js delete mode 100644 tests/baselines/reference/tsserver/getMoveToRefactoringFileSuggestions/works-with-different-extensions.js diff --git a/tests/baselines/reference/tsserver/getMoveToRefactoringFileSuggestions/works-for-suggesting-a-list-of-files,-for-a-file-belonging-to-multiple-projects.js b/tests/baselines/reference/tsserver/getMoveToRefactoringFileSuggestions/works-for-suggesting-a-list-of-files,-for-a-file-belonging-to-multiple-projects.js deleted file mode 100644 index 019f6c912ce43..0000000000000 --- a/tests/baselines/reference/tsserver/getMoveToRefactoringFileSuggestions/works-for-suggesting-a-list-of-files,-for-a-file-belonging-to-multiple-projects.js +++ /dev/null @@ -1,112 +0,0 @@ -currentDirectory:: / useCaseSensitiveFileNames: false -Info 0 [00:00:19.000] Provided types map file "/a/lib/typesMap.json" doesn't exist -Before request -//// [/blah/file1.ts] -class CC { } - -//// [/blah/file2.ts] - - -//// [/blah-tests/file3.ts] -import { value1 } from "../blah/file1.ts"; - -//// [/blah-tests/file4.ts] - - -//// [/blah/tsconfig.json] -{ "files": ["./file1.ts", "./file2.ts"] } - -//// [/blah-tests/tsconfig.json] -{ "files": ["./file3.ts", "./file4.ts"] } - - -Info 1 [00:00:20.000] request: - { - "command": "open", - "arguments": { - "file": "/blah/file1.ts" - }, - "seq": 1, - "type": "request" - } -Info 2 [00:00:21.000] Search path: /blah -Info 3 [00:00:22.000] For info: /blah/file1.ts :: Config file name: /blah/tsconfig.json -Info 4 [00:00:23.000] Creating configuration project /blah/tsconfig.json -Info 5 [00:00:24.000] FileWatcher:: Added:: WatchInfo: /blah/tsconfig.json 2000 undefined Project: /blah/tsconfig.json WatchType: Config file -Info 6 [00:00:25.000] Config: /blah/tsconfig.json : { - "rootNames": [ - "/blah/file1.ts", - "/blah/file2.ts" - ], - "options": { - "configFilePath": "/blah/tsconfig.json" - } -} -Info 7 [00:00:26.000] FileWatcher:: Added:: WatchInfo: /blah/file2.ts 500 undefined WatchType: Closed Script info -Info 8 [00:00:27.000] Starting updateGraphWorker: Project: /blah/tsconfig.json -Info 9 [00:00:28.000] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /blah/tsconfig.json WatchType: Missing file -Info 10 [00:00:29.000] DirectoryWatcher:: Added:: WatchInfo: /blah/node_modules/@types 1 undefined Project: /blah/tsconfig.json WatchType: Type roots -Info 11 [00:00:30.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /blah/node_modules/@types 1 undefined Project: /blah/tsconfig.json WatchType: Type roots -Info 12 [00:00:31.000] Finishing updateGraphWorker: Project: /blah/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms -Info 13 [00:00:32.000] Project '/blah/tsconfig.json' (Configured) -Info 14 [00:00:33.000] Files (2) - /blah/file1.ts SVC-1-0 "class CC { }" - /blah/file2.ts Text-1 "" - - - file1.ts - Part of 'files' list in tsconfig.json - file2.ts - Part of 'files' list in tsconfig.json - -Info 15 [00:00:34.000] ----------------------------------------------- -Info 16 [00:00:35.000] Project '/blah/tsconfig.json' (Configured) -Info 16 [00:00:36.000] Files (2) - -Info 16 [00:00:37.000] ----------------------------------------------- -Info 16 [00:00:38.000] Open files: -Info 16 [00:00:39.000] FileName: /blah/file1.ts ProjectRootPath: undefined -Info 16 [00:00:40.000] Projects: /blah/tsconfig.json -Info 16 [00:00:41.000] response: - { - "responseRequired": false - } -After request - -PolledWatches:: -/a/lib/lib.d.ts: *new* - {"pollingInterval":500} -/blah/node_modules/@types: *new* - {"pollingInterval":500} - -FsWatches:: -/blah/tsconfig.json: *new* - {} -/blah/file2.ts: *new* - {} - -Before request - -Info 17 [00:00:42.000] request: - { - "command": "getMoveToRefactoringFileSuggestions", - "arguments": { - "file": "/blah/file1.ts", - "line": 1, - "offset": 7 - }, - "seq": 2, - "type": "request" - } -Info 18 [00:00:43.000] response: - { - "response": { - "newFilename": "/blah/CC.ts", - "files": [ - "/blah/file1.ts", - "/blah/file2.ts" - ] - }, - "responseRequired": true - } -After request diff --git a/tests/baselines/reference/tsserver/getMoveToRefactoringFileSuggestions/works-for-suggesting-a-list-of-files,-for-an-inferred-project-for-a-.js-file.js b/tests/baselines/reference/tsserver/getMoveToRefactoringFileSuggestions/works-for-suggesting-a-list-of-files,-for-an-inferred-project-for-a-.js-file.js deleted file mode 100644 index 17da752e876eb..0000000000000 --- a/tests/baselines/reference/tsserver/getMoveToRefactoringFileSuggestions/works-for-suggesting-a-list-of-files,-for-an-inferred-project-for-a-.js-file.js +++ /dev/null @@ -1,201 +0,0 @@ -currentDirectory:: / useCaseSensitiveFileNames: false -Info 0 [00:00:09.000] Provided types map file "/a/lib/typesMap.json" doesn't exist -Before request -//// [/file1.js] -import {} from "./file.js"; - -//// [/file2.js] -class C {} - -//// [/jsconfig.json] -{"files":["./file1.js","./file.js"]} - - -Info 1 [00:00:10.000] request: - { - "command": "open", - "arguments": { - "file": "/file2.js" - }, - "seq": 1, - "type": "request" - } -Info 2 [00:00:11.000] Search path: / -Info 3 [00:00:12.000] For info: /file2.js :: Config file name: /jsconfig.json -Info 4 [00:00:13.000] Creating configuration project /jsconfig.json -Info 5 [00:00:14.000] FileWatcher:: Added:: WatchInfo: /jsconfig.json 2000 undefined Project: /jsconfig.json WatchType: Config file -Info 6 [00:00:15.000] Config: /jsconfig.json : { - "rootNames": [ - "/file1.js", - "/file.js" - ], - "options": { - "allowJs": true, - "maxNodeModuleJsDepth": 2, - "allowSyntheticDefaultImports": true, - "skipLibCheck": true, - "noEmit": true, - "configFilePath": "/jsconfig.json" - } -} -Info 7 [00:00:16.000] FileWatcher:: Added:: WatchInfo: /file1.js 500 undefined WatchType: Closed Script info -Info 8 [00:00:17.000] Starting updateGraphWorker: Project: /jsconfig.json -Info 9 [00:00:18.000] DirectoryWatcher:: Added:: WatchInfo: /file.js 1 undefined Project: /jsconfig.json WatchType: Failed Lookup Locations -Info 10 [00:00:19.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /file.js 1 undefined Project: /jsconfig.json WatchType: Failed Lookup Locations -Info 11 [00:00:20.000] DirectoryWatcher:: Added:: WatchInfo: 0 undefined Project: /jsconfig.json WatchType: Failed Lookup Locations -Info 12 [00:00:21.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: 0 undefined Project: /jsconfig.json WatchType: Failed Lookup Locations -Info 13 [00:00:22.000] FileWatcher:: Added:: WatchInfo: /file.js 500 undefined Project: /jsconfig.json WatchType: Missing file -Info 14 [00:00:23.000] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /jsconfig.json WatchType: Missing file -Info 15 [00:00:24.000] Finishing updateGraphWorker: Project: /jsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms -Info 16 [00:00:25.000] Project '/jsconfig.json' (Configured) -Info 17 [00:00:26.000] Files (1) - /file1.js Text-1 "import {} from \"./file.js\";" - - - file1.js - Part of 'files' list in tsconfig.json - -Info 18 [00:00:27.000] ----------------------------------------------- -TI:: Creating typing installer - -PolledWatches:: -/file.js: *new* - {"pollingInterval":500} -/a/lib/lib.d.ts: *new* - {"pollingInterval":500} - -FsWatches:: -/jsconfig.json: *new* - {} -/file1.js: *new* - {} -/: *new* - {} - -TI:: [00:00:28.000] Global cache location '/a/data/', safe file path '/safeList.json', types map path /typesMap.json -TI:: [00:00:29.000] Processing cache location '/a/data/' -TI:: [00:00:30.000] Trying to find '/a/data/package.json'... -TI:: [00:00:31.000] Finished processing cache location '/a/data/' -TI:: [00:00:32.000] Npm config file: /a/data/package.json -TI:: [00:00:33.000] Npm config file: '/a/data/package.json' is missing, creating new one... -Info 19 [00:00:36.000] DirectoryWatcher:: Triggered with a :: WatchInfo: 0 undefined Project: /jsconfig.json WatchType: Failed Lookup Locations -Info 20 [00:00:37.000] Elapsed:: *ms DirectoryWatcher:: Triggered with a :: WatchInfo: 0 undefined Project: /jsconfig.json WatchType: Failed Lookup Locations -TI:: [00:00:42.000] Updating types-registry npm package... -TI:: [00:00:43.000] npm install --ignore-scripts types-registry@latest -TI:: [00:00:50.000] TI:: Updated types-registry npm package -TI:: typing installer creation complete -//// [/a/data/package.json] -{ "private": true } - -//// [/a/data/node_modules/types-registry/index.json] -{ - "entries": {} -} - - -TI:: [00:00:51.000] Got install request {"projectName":"/jsconfig.json","fileNames":["/file1.js"],"compilerOptions":{"allowJs":true,"maxNodeModuleJsDepth":2,"allowSyntheticDefaultImports":true,"skipLibCheck":true,"noEmit":true,"configFilePath":"/jsconfig.json","allowNonTsExtensions":true},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/","cachePath":"/a/data/","kind":"discover"} -TI:: [00:00:52.000] Request specifies cache path '/a/data/', loading cached information... -TI:: [00:00:53.000] Processing cache location '/a/data/' -TI:: [00:00:54.000] Cache location was already processed... -TI:: [00:00:55.000] Failed to load safelist from types map file '/typesMap.json' -TI:: [00:00:56.000] Explicitly included types: [] -TI:: [00:00:57.000] Inferred typings from unresolved imports: [] -TI:: [00:00:58.000] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/bower_components","/node_modules"]} -TI:: [00:00:59.000] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/bower_components","/node_modules"]} -TI:: [00:01:00.000] DirectoryWatcher:: Added:: WatchInfo: /bower_components -TI:: [00:01:01.000] DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /jsconfig.json watcher already invoked: false -TI:: [00:01:02.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /jsconfig.json watcher already invoked: false -TI:: [00:01:03.000] DirectoryWatcher:: Added:: WatchInfo: /node_modules -TI:: [00:01:04.000] DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: /jsconfig.json watcher already invoked: false -TI:: [00:01:05.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: /jsconfig.json watcher already invoked: false -TI:: [00:01:06.000] Sending response: - {"projectName":"/jsconfig.json","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"maxNodeModuleJsDepth":2,"allowSyntheticDefaultImports":true,"skipLibCheck":true,"noEmit":true,"configFilePath":"/jsconfig.json","allowNonTsExtensions":true},"typings":[],"unresolvedImports":[],"kind":"action::set"} -TI:: [00:01:07.000] No new typings were requested as a result of typings discovery -Info 21 [00:01:08.000] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info 22 [00:01:09.000] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /dev/null/inferredProject1* WatchType: Missing file -Info 23 [00:01:10.000] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms -Info 24 [00:01:11.000] Project '/dev/null/inferredProject1*' (Inferred) -Info 25 [00:01:12.000] Files (1) - /file2.js SVC-1-0 "class C {}" - - - file2.js - Root file specified for compilation - -Info 26 [00:01:13.000] ----------------------------------------------- -TI:: [00:01:14.000] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/file2.js"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/","cachePath":"/a/data/","kind":"discover"} -TI:: [00:01:15.000] Request specifies cache path '/a/data/', loading cached information... -TI:: [00:01:16.000] Processing cache location '/a/data/' -TI:: [00:01:17.000] Cache location was already processed... -TI:: [00:01:18.000] Explicitly included types: [] -TI:: [00:01:19.000] Inferred typings from unresolved imports: [] -TI:: [00:01:20.000] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/bower_components","/node_modules"]} -TI:: [00:01:21.000] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/bower_components","/node_modules"]} -TI:: [00:01:22.000] DirectoryWatcher:: Added:: WatchInfo: /bower_components -TI:: [00:01:23.000] DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject1* watcher already invoked: false -TI:: [00:01:24.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject1* watcher already invoked: false -TI:: [00:01:25.000] DirectoryWatcher:: Added:: WatchInfo: /node_modules -TI:: [00:01:26.000] DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: /dev/null/inferredProject1* watcher already invoked: false -TI:: [00:01:27.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: /dev/null/inferredProject1* watcher already invoked: false -TI:: [00:01:28.000] Sending response: - {"projectName":"/dev/null/inferredProject1*","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typings":[],"unresolvedImports":[],"kind":"action::set"} -TI:: [00:01:29.000] No new typings were requested as a result of typings discovery -Info 27 [00:01:30.000] Project '/jsconfig.json' (Configured) -Info 27 [00:01:31.000] Files (1) - -Info 27 [00:01:32.000] ----------------------------------------------- -Info 27 [00:01:33.000] Project '/dev/null/inferredProject1*' (Inferred) -Info 27 [00:01:34.000] Files (1) - -Info 27 [00:01:35.000] ----------------------------------------------- -Info 27 [00:01:36.000] Open files: -Info 27 [00:01:37.000] FileName: /file2.js ProjectRootPath: undefined -Info 27 [00:01:38.000] Projects: /dev/null/inferredProject1* -Info 27 [00:01:39.000] response: - { - "responseRequired": false - } -After request - -PolledWatches:: -/file.js: - {"pollingInterval":500} -/a/lib/lib.d.ts: - {"pollingInterval":500} -/bower_components: *new* - {"pollingInterval":500} -/node_modules: *new* - {"pollingInterval":500} - -FsWatches:: -/jsconfig.json: - {} -/file1.js: - {} -/: - {} - -Before request - -Info 28 [00:01:40.000] request: - { - "command": "getMoveToRefactoringFileSuggestions", - "arguments": { - "file": "/file2.js", - "line": 1, - "offset": 7 - }, - "seq": 2, - "type": "request" - } -Info 29 [00:01:41.000] response: - { - "response": { - "newFilename": "/C.js", - "files": [ - "/file2.js" - ] - }, - "responseRequired": true - } -After request diff --git a/tests/baselines/reference/tsserver/getMoveToRefactoringFileSuggestions/works-for-suggesting-a-list-of-files,-for-an-inferred-project-for-a-.ts-file.js b/tests/baselines/reference/tsserver/getMoveToRefactoringFileSuggestions/works-for-suggesting-a-list-of-files,-for-an-inferred-project-for-a-.ts-file.js deleted file mode 100644 index 5294fb0b108bb..0000000000000 --- a/tests/baselines/reference/tsserver/getMoveToRefactoringFileSuggestions/works-for-suggesting-a-list-of-files,-for-an-inferred-project-for-a-.ts-file.js +++ /dev/null @@ -1,123 +0,0 @@ -currentDirectory:: / useCaseSensitiveFileNames: false -Info 0 [00:00:09.000] Provided types map file "/a/lib/typesMap.json" doesn't exist -Before request -//// [/file1.ts] -import {} from "./file.ts"; - -//// [/file2.ts] -interface ka { - name: string; - } - - -//// [/tsconfig.json] -{"files":["./file1.ts","./file.ts"]} - - -Info 1 [00:00:10.000] request: - { - "command": "open", - "arguments": { - "file": "/file2.ts" - }, - "seq": 1, - "type": "request" - } -Info 2 [00:00:11.000] Search path: / -Info 3 [00:00:12.000] For info: /file2.ts :: Config file name: /tsconfig.json -Info 4 [00:00:13.000] Creating configuration project /tsconfig.json -Info 5 [00:00:14.000] FileWatcher:: Added:: WatchInfo: /tsconfig.json 2000 undefined Project: /tsconfig.json WatchType: Config file -Info 6 [00:00:15.000] Config: /tsconfig.json : { - "rootNames": [ - "/file1.ts", - "/file.ts" - ], - "options": { - "configFilePath": "/tsconfig.json" - } -} -Info 7 [00:00:16.000] FileWatcher:: Added:: WatchInfo: /file1.ts 500 undefined WatchType: Closed Script info -Info 8 [00:00:17.000] Starting updateGraphWorker: Project: /tsconfig.json -Info 9 [00:00:18.000] DirectoryWatcher:: Added:: WatchInfo: /file.ts 1 undefined Project: /tsconfig.json WatchType: Failed Lookup Locations -Info 10 [00:00:19.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /file.ts 1 undefined Project: /tsconfig.json WatchType: Failed Lookup Locations -Info 11 [00:00:20.000] DirectoryWatcher:: Added:: WatchInfo: 0 undefined Project: /tsconfig.json WatchType: Failed Lookup Locations -Info 12 [00:00:21.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: 0 undefined Project: /tsconfig.json WatchType: Failed Lookup Locations -Info 13 [00:00:22.000] FileWatcher:: Added:: WatchInfo: /file.ts 500 undefined Project: /tsconfig.json WatchType: Missing file -Info 14 [00:00:23.000] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /tsconfig.json WatchType: Missing file -Info 15 [00:00:24.000] Finishing updateGraphWorker: Project: /tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms -Info 16 [00:00:25.000] Project '/tsconfig.json' (Configured) -Info 17 [00:00:26.000] Files (1) - /file1.ts Text-1 "import {} from \"./file.ts\";" - - - file1.ts - Part of 'files' list in tsconfig.json - -Info 18 [00:00:27.000] ----------------------------------------------- -Info 19 [00:00:28.000] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info 20 [00:00:29.000] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /dev/null/inferredProject1* WatchType: Missing file -Info 21 [00:00:30.000] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms -Info 22 [00:00:31.000] Project '/dev/null/inferredProject1*' (Inferred) -Info 23 [00:00:32.000] Files (1) - /file2.ts SVC-1-0 "interface ka {\n name: string;\n }\n " - - - file2.ts - Root file specified for compilation - -Info 24 [00:00:33.000] ----------------------------------------------- -Info 25 [00:00:34.000] Project '/tsconfig.json' (Configured) -Info 25 [00:00:35.000] Files (1) - -Info 25 [00:00:36.000] ----------------------------------------------- -Info 25 [00:00:37.000] Project '/dev/null/inferredProject1*' (Inferred) -Info 25 [00:00:38.000] Files (1) - -Info 25 [00:00:39.000] ----------------------------------------------- -Info 25 [00:00:40.000] Open files: -Info 25 [00:00:41.000] FileName: /file2.ts ProjectRootPath: undefined -Info 25 [00:00:42.000] Projects: /dev/null/inferredProject1* -Info 25 [00:00:43.000] response: - { - "responseRequired": false - } -After request - -PolledWatches:: -/file.ts: *new* - {"pollingInterval":500} -/a/lib/lib.d.ts: *new* - {"pollingInterval":500} - -FsWatches:: -/tsconfig.json: *new* - {} -/file1.ts: *new* - {} -/: *new* - {} - -Before request - -Info 26 [00:00:44.000] request: - { - "command": "getMoveToRefactoringFileSuggestions", - "arguments": { - "file": "/file2.ts", - "line": 1, - "offset": 11 - }, - "seq": 2, - "type": "request" - } -Info 27 [00:00:45.000] response: - { - "response": { - "newFilename": "/ka.ts", - "files": [ - "/file2.ts" - ] - }, - "responseRequired": true - } -After request diff --git a/tests/baselines/reference/tsserver/getMoveToRefactoringFileSuggestions/works-with-different-.ts-extensions.js b/tests/baselines/reference/tsserver/getMoveToRefactoringFileSuggestions/works-with-different-.ts-extensions.js deleted file mode 100644 index 3946f44852f49..0000000000000 --- a/tests/baselines/reference/tsserver/getMoveToRefactoringFileSuggestions/works-with-different-.ts-extensions.js +++ /dev/null @@ -1,145 +0,0 @@ -currentDirectory:: / useCaseSensitiveFileNames: false -Info 0 [00:00:17.000] Provided types map file "/a/lib/typesMap.json" doesn't exist -Before request -//// [/file1.ts] -interface ka { - name: string; - } - - -//// [/file2.tsx] - - -//// [/file3.mts] - - -//// [/file4.cts] - - -//// [/file5.js] - - -//// [/file6.d.ts] - - -//// [/tsconfig.json] -{"files":["./file1.ts","./file2.tsx","./file3.mts","./file4.cts","./file5.js","./file6.d.ts"]} - - -Info 1 [00:00:18.000] request: - { - "command": "open", - "arguments": { - "file": "/file1.ts" - }, - "seq": 1, - "type": "request" - } -Info 2 [00:00:19.000] Search path: / -Info 3 [00:00:20.000] For info: /file1.ts :: Config file name: /tsconfig.json -Info 4 [00:00:21.000] Creating configuration project /tsconfig.json -Info 5 [00:00:22.000] FileWatcher:: Added:: WatchInfo: /tsconfig.json 2000 undefined Project: /tsconfig.json WatchType: Config file -Info 6 [00:00:23.000] Config: /tsconfig.json : { - "rootNames": [ - "/file1.ts", - "/file2.tsx", - "/file3.mts", - "/file4.cts", - "/file5.js", - "/file6.d.ts" - ], - "options": { - "configFilePath": "/tsconfig.json" - } -} -Info 7 [00:00:24.000] FileWatcher:: Added:: WatchInfo: /file2.tsx 500 undefined WatchType: Closed Script info -Info 8 [00:00:25.000] FileWatcher:: Added:: WatchInfo: /file3.mts 500 undefined WatchType: Closed Script info -Info 9 [00:00:26.000] FileWatcher:: Added:: WatchInfo: /file4.cts 500 undefined WatchType: Closed Script info -Info 10 [00:00:27.000] FileWatcher:: Added:: WatchInfo: /file5.js 500 undefined WatchType: Closed Script info -Info 11 [00:00:28.000] FileWatcher:: Added:: WatchInfo: /file6.d.ts 500 undefined WatchType: Closed Script info -Info 12 [00:00:29.000] Starting updateGraphWorker: Project: /tsconfig.json -Info 13 [00:00:30.000] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /tsconfig.json WatchType: Missing file -Info 14 [00:00:31.000] Finishing updateGraphWorker: Project: /tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms -Info 15 [00:00:32.000] Project '/tsconfig.json' (Configured) -Info 16 [00:00:33.000] Files (6) - /file1.ts SVC-1-0 "interface ka {\n name: string;\n }\n " - /file2.tsx Text-1 "" - /file3.mts Text-1 "" - /file4.cts Text-1 "" - /file5.js Text-1 "" - /file6.d.ts Text-1 "" - - - file1.ts - Part of 'files' list in tsconfig.json - file2.tsx - Part of 'files' list in tsconfig.json - file3.mts - Part of 'files' list in tsconfig.json - file4.cts - Part of 'files' list in tsconfig.json - file5.js - Part of 'files' list in tsconfig.json - file6.d.ts - Part of 'files' list in tsconfig.json - -Info 17 [00:00:34.000] ----------------------------------------------- -Info 18 [00:00:35.000] Project '/tsconfig.json' (Configured) -Info 18 [00:00:36.000] Files (6) - -Info 18 [00:00:37.000] ----------------------------------------------- -Info 18 [00:00:38.000] Open files: -Info 18 [00:00:39.000] FileName: /file1.ts ProjectRootPath: undefined -Info 18 [00:00:40.000] Projects: /tsconfig.json -Info 18 [00:00:41.000] response: - { - "responseRequired": false - } -After request - -PolledWatches:: -/a/lib/lib.d.ts: *new* - {"pollingInterval":500} - -FsWatches:: -/tsconfig.json: *new* - {} -/file2.tsx: *new* - {} -/file3.mts: *new* - {} -/file4.cts: *new* - {} -/file5.js: *new* - {} -/file6.d.ts: *new* - {} - -Before request - -Info 19 [00:00:42.000] request: - { - "command": "getMoveToRefactoringFileSuggestions", - "arguments": { - "file": "/file1.ts", - "line": 1, - "offset": 11 - }, - "seq": 2, - "type": "request" - } -Info 20 [00:00:43.000] response: - { - "response": { - "newFilename": "/ka.ts", - "files": [ - "/file1.ts", - "/file2.tsx", - "/file3.mts", - "/file4.cts", - "/file6.d.ts" - ] - }, - "responseRequired": true - } -After request diff --git a/tests/baselines/reference/tsserver/getMoveToRefactoringFileSuggestions/works-with-different-extensions.js b/tests/baselines/reference/tsserver/getMoveToRefactoringFileSuggestions/works-with-different-extensions.js deleted file mode 100644 index c39d3b43ed599..0000000000000 --- a/tests/baselines/reference/tsserver/getMoveToRefactoringFileSuggestions/works-with-different-extensions.js +++ /dev/null @@ -1,130 +0,0 @@ -currentDirectory:: / useCaseSensitiveFileNames: false -Info 0 [00:00:15.000] Provided types map file "/a/lib/typesMap.json" doesn't exist -Before request -//// [/file1.js] -class C {} - -//// [/file2.js] - - -//// [/file3.mts] - - -//// [/file4.ts] - - -//// [/file5.js] - - -//// [/tsconfig.json] -{"files":["./file1.js","./file2.js","./file3.mts","./file4.ts","./file5.js"]} - - -Info 1 [00:00:16.000] request: - { - "command": "open", - "arguments": { - "file": "/file1.js" - }, - "seq": 1, - "type": "request" - } -Info 2 [00:00:17.000] Search path: / -Info 3 [00:00:18.000] For info: /file1.js :: Config file name: /tsconfig.json -Info 4 [00:00:19.000] Creating configuration project /tsconfig.json -Info 5 [00:00:20.000] FileWatcher:: Added:: WatchInfo: /tsconfig.json 2000 undefined Project: /tsconfig.json WatchType: Config file -Info 6 [00:00:21.000] Config: /tsconfig.json : { - "rootNames": [ - "/file1.js", - "/file2.js", - "/file3.mts", - "/file4.ts", - "/file5.js" - ], - "options": { - "configFilePath": "/tsconfig.json" - } -} -Info 7 [00:00:22.000] FileWatcher:: Added:: WatchInfo: /file2.js 500 undefined WatchType: Closed Script info -Info 8 [00:00:23.000] FileWatcher:: Added:: WatchInfo: /file3.mts 500 undefined WatchType: Closed Script info -Info 9 [00:00:24.000] FileWatcher:: Added:: WatchInfo: /file4.ts 500 undefined WatchType: Closed Script info -Info 10 [00:00:25.000] FileWatcher:: Added:: WatchInfo: /file5.js 500 undefined WatchType: Closed Script info -Info 11 [00:00:26.000] Starting updateGraphWorker: Project: /tsconfig.json -Info 12 [00:00:27.000] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /tsconfig.json WatchType: Missing file -Info 13 [00:00:28.000] Finishing updateGraphWorker: Project: /tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms -Info 14 [00:00:29.000] Project '/tsconfig.json' (Configured) -Info 15 [00:00:30.000] Files (5) - /file1.js SVC-1-0 "class C {}" - /file2.js Text-1 "" - /file3.mts Text-1 "" - /file4.ts Text-1 "" - /file5.js Text-1 "" - - - file1.js - Part of 'files' list in tsconfig.json - file2.js - Part of 'files' list in tsconfig.json - file3.mts - Part of 'files' list in tsconfig.json - file4.ts - Part of 'files' list in tsconfig.json - file5.js - Part of 'files' list in tsconfig.json - -Info 16 [00:00:31.000] ----------------------------------------------- -Info 17 [00:00:32.000] Project '/tsconfig.json' (Configured) -Info 17 [00:00:33.000] Files (5) - -Info 17 [00:00:34.000] ----------------------------------------------- -Info 17 [00:00:35.000] Open files: -Info 17 [00:00:36.000] FileName: /file1.js ProjectRootPath: undefined -Info 17 [00:00:37.000] Projects: /tsconfig.json -Info 17 [00:00:38.000] response: - { - "responseRequired": false - } -After request - -PolledWatches:: -/a/lib/lib.d.ts: *new* - {"pollingInterval":500} - -FsWatches:: -/tsconfig.json: *new* - {} -/file2.js: *new* - {} -/file3.mts: *new* - {} -/file4.ts: *new* - {} -/file5.js: *new* - {} - -Before request - -Info 18 [00:00:39.000] request: - { - "command": "getMoveToRefactoringFileSuggestions", - "arguments": { - "file": "/file1.js", - "line": 1, - "offset": 7 - }, - "seq": 2, - "type": "request" - } -Info 19 [00:00:40.000] response: - { - "response": { - "newFilename": "/C.js", - "files": [ - "/file1.js", - "/file2.js", - "/file5.js" - ] - }, - "responseRequired": true - } -After request